Re: Including dependencies in final JAR

2006-07-30 Thread Alex Turner

Okay - I just realised something - maybe what I'm trying to do is wrong
here... do I really want an ear file instead?

Alex

On 7/30/06, Alex Turner [EMAIL PROTECTED] wrote:


How do I tell maven to include my dependency jars in my final jar file?

I am referencing 
http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html
, but none of the scopes described seems to do that.

Thanks,

Alex.



Re: Including dependencies in final JAR

2006-07-30 Thread Wayne Fay

Depends entirely on what you're building...

Do you want an EAR (for J2EE app) or a JAR (for various other types of apps)?

Wayne

On 7/30/06, Alex Turner [EMAIL PROTECTED] wrote:

Okay - I just realised something - maybe what I'm trying to do is wrong
here... do I really want an ear file instead?

Alex

On 7/30/06, Alex Turner [EMAIL PROTECTED] wrote:

 How do I tell maven to include my dependency jars in my final jar file?

 I am referencing 
http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html
 , but none of the scopes described seems to do that.

 Thanks,

 Alex.





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Including dependencies in final JAR

2006-07-30 Thread Alex Turner

Looking at it now, I think what I want is a JAR not an EAR.  I have a stand
alone app that is fired from cron.

Alex

On 7/30/06, Wayne Fay [EMAIL PROTECTED] wrote:


Depends entirely on what you're building...

Do you want an EAR (for J2EE app) or a JAR (for various other types of
apps)?

Wayne

On 7/30/06, Alex Turner [EMAIL PROTECTED] wrote:
 Okay - I just realised something - maybe what I'm trying to do is wrong
 here... do I really want an ear file instead?

 Alex

 On 7/30/06, Alex Turner [EMAIL PROTECTED] wrote:
 
  How do I tell maven to include my dependency jars in my final jar
file?
 
  I am referencing
http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html
  , but none of the scopes described seems to do that.
 
  Thanks,
 
  Alex.
 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: Including dependencies in final JAR

2006-07-30 Thread Wayne Fay

Yes, it sounds like you want a Jar...

Search the user list for assembly plugin plus jar-with-dependencies parameter.

Wayne

On 7/30/06, Alex Turner [EMAIL PROTECTED] wrote:

Looking at it now, I think what I want is a JAR not an EAR.  I have a stand
alone app that is fired from cron.

Alex

On 7/30/06, Wayne Fay [EMAIL PROTECTED] wrote:

 Depends entirely on what you're building...

 Do you want an EAR (for J2EE app) or a JAR (for various other types of
 apps)?

 Wayne

 On 7/30/06, Alex Turner [EMAIL PROTECTED] wrote:
  Okay - I just realised something - maybe what I'm trying to do is wrong
  here... do I really want an ear file instead?
 
  Alex
 
  On 7/30/06, Alex Turner [EMAIL PROTECTED] wrote:
  
   How do I tell maven to include my dependency jars in my final jar
 file?
  
   I am referencing
 
http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html
   , but none of the scopes described seems to do that.
  
   Thanks,
  
   Alex.
  
 
 

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]






-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Including dependencies in final JAR

2006-07-30 Thread Alex Turner

Not to ask a stupid question, but why should I have to use a plugin for
this?  This is standard functionality that many projects require.  Shouldn't
this be part of the standard maven goals?

Alex

On 7/30/06, Wayne Fay [EMAIL PROTECTED] wrote:


Yes, it sounds like you want a Jar...

Search the user list for assembly plugin plus jar-with-dependencies
parameter.

Wayne

On 7/30/06, Alex Turner [EMAIL PROTECTED] wrote:
 Looking at it now, I think what I want is a JAR not an EAR.  I have a
stand
 alone app that is fired from cron.

 Alex

 On 7/30/06, Wayne Fay [EMAIL PROTECTED] wrote:
 
  Depends entirely on what you're building...
 
  Do you want an EAR (for J2EE app) or a JAR (for various other types of
  apps)?
 
  Wayne
 
  On 7/30/06, Alex Turner [EMAIL PROTECTED] wrote:
   Okay - I just realised something - maybe what I'm trying to do is
wrong
   here... do I really want an ear file instead?
  
   Alex
  
   On 7/30/06, Alex Turner [EMAIL PROTECTED] wrote:
   
How do I tell maven to include my dependency jars in my final jar
  file?
   
I am referencing
 
http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html
, but none of the scopes described seems to do that.
   
Thanks,
   
Alex.
   
  
  
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: Including dependencies in final JAR

2006-07-30 Thread Mike Perham
Maven has no standard goals.  _Everything_ is a plugin. 

-Original Message-
From: Alex Turner [mailto:[EMAIL PROTECTED] 
Sent: Sunday, July 30, 2006 5:54 PM
To: Maven Users List
Subject: Re: Including dependencies in final JAR

Not to ask a stupid question, but why should I have to use a plugin for
this?  This is standard functionality that many projects require.
Shouldn't
this be part of the standard maven goals?

Alex

On 7/30/06, Wayne Fay [EMAIL PROTECTED] wrote:

 Yes, it sounds like you want a Jar...

 Search the user list for assembly plugin plus jar-with-dependencies
 parameter.

 Wayne

 On 7/30/06, Alex Turner [EMAIL PROTECTED] wrote:
  Looking at it now, I think what I want is a JAR not an EAR.  I have
a
 stand
  alone app that is fired from cron.
 
  Alex
 
  On 7/30/06, Wayne Fay [EMAIL PROTECTED] wrote:
  
   Depends entirely on what you're building...
  
   Do you want an EAR (for J2EE app) or a JAR (for various other
types of
   apps)?
  
   Wayne
  
   On 7/30/06, Alex Turner [EMAIL PROTECTED] wrote:
Okay - I just realised something - maybe what I'm trying to do
is
 wrong
here... do I really want an ear file instead?
   
Alex
   
On 7/30/06, Alex Turner [EMAIL PROTECTED] wrote:

 How do I tell maven to include my dependency jars in my final
jar
   file?

 I am referencing
  

http://maven.apache.org/guides/introduction/introduction-to-dependency-m
echanism.html
 , but none of the scopes described seems to do that.

 Thanks,

 Alex.

   
   
  
  
-
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
 
 

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Including dependencies in final JAR

2006-07-30 Thread Alex Turner

ok - but there are standard plugins (I assume defined in the super pom), and
plugins that have to be detailed in the project's pom.xml.  This is
functionality that really should be in a standard plugin

Alex

On 7/30/06, Mike Perham [EMAIL PROTECTED] wrote:


Maven has no standard goals.  _Everything_ is a plugin.

-Original Message-
From: Alex Turner [mailto:[EMAIL PROTECTED]
Sent: Sunday, July 30, 2006 5:54 PM
To: Maven Users List
Subject: Re: Including dependencies in final JAR

Not to ask a stupid question, but why should I have to use a plugin for
this?  This is standard functionality that many projects require.
Shouldn't
this be part of the standard maven goals?

Alex

On 7/30/06, Wayne Fay [EMAIL PROTECTED] wrote:

 Yes, it sounds like you want a Jar...

 Search the user list for assembly plugin plus jar-with-dependencies
 parameter.

 Wayne

 On 7/30/06, Alex Turner [EMAIL PROTECTED] wrote:
  Looking at it now, I think what I want is a JAR not an EAR.  I have
a
 stand
  alone app that is fired from cron.
 
  Alex
 
  On 7/30/06, Wayne Fay [EMAIL PROTECTED] wrote:
  
   Depends entirely on what you're building...
  
   Do you want an EAR (for J2EE app) or a JAR (for various other
types of
   apps)?
  
   Wayne
  
   On 7/30/06, Alex Turner [EMAIL PROTECTED] wrote:
Okay - I just realised something - maybe what I'm trying to do
is
 wrong
here... do I really want an ear file instead?
   
Alex
   
On 7/30/06, Alex Turner [EMAIL PROTECTED] wrote:

 How do I tell maven to include my dependency jars in my final
jar
   file?

 I am referencing
  

http://maven.apache.org/guides/introduction/introduction-to-dependency-m
echanism.html
 , but none of the scopes described seems to do that.

 Thanks,

 Alex.

   
   
  
  
-
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
 
 

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: Including dependencies in final JAR

2006-07-30 Thread Barrie Treloar

On 7/31/06, Alex Turner [EMAIL PROTECTED] wrote:

Not to ask a stupid question, but why should I have to use a plugin for
this?  This is standard functionality that many projects require.  Shouldn't
this be part of the standard maven goals?


If you have a standalone app then you probably want to create an
binary assembly that would include your jar file (with correct
Class-Path in the Manifest file), any dependent libraries, and config
files, any documentation.

To do this you will want to use the
http://maven.apache.org/plugins/maven-assembly-plugin

Search the archives, there should be plenty of examples on this.
I tend not to use the built in descriptors as I find they don't meet my needs.
It is very easy to write your assembly descriptors.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Including dependencies in final JAR

2006-07-30 Thread Mike Perham
Standard plugins just use a naming convention so they don't need to
hard-coded anywhere.  The assembly plugin is a standard plugin.

-Original Message-
From: Alex Turner [mailto:[EMAIL PROTECTED] 
Sent: Sunday, July 30, 2006 8:48 PM
To: Maven Users List
Subject: Re: Including dependencies in final JAR

ok - but there are standard plugins (I assume defined in the super pom),
and
plugins that have to be detailed in the project's pom.xml.  This is
functionality that really should be in a standard plugin

Alex

On 7/30/06, Mike Perham [EMAIL PROTECTED] wrote:

 Maven has no standard goals.  _Everything_ is a plugin.

 -Original Message-
 From: Alex Turner [mailto:[EMAIL PROTECTED]
 Sent: Sunday, July 30, 2006 5:54 PM
 To: Maven Users List
 Subject: Re: Including dependencies in final JAR

 Not to ask a stupid question, but why should I have to use a plugin
for
 this?  This is standard functionality that many projects require.
 Shouldn't
 this be part of the standard maven goals?

 Alex

 On 7/30/06, Wayne Fay [EMAIL PROTECTED] wrote:
 
  Yes, it sounds like you want a Jar...
 
  Search the user list for assembly plugin plus jar-with-dependencies
  parameter.
 
  Wayne
 
  On 7/30/06, Alex Turner [EMAIL PROTECTED] wrote:
   Looking at it now, I think what I want is a JAR not an EAR.  I
have
 a
  stand
   alone app that is fired from cron.
  
   Alex
  
   On 7/30/06, Wayne Fay [EMAIL PROTECTED] wrote:
   
Depends entirely on what you're building...
   
Do you want an EAR (for J2EE app) or a JAR (for various other
 types of
apps)?
   
Wayne
   
On 7/30/06, Alex Turner [EMAIL PROTECTED] wrote:
 Okay - I just realised something - maybe what I'm trying to do
 is
  wrong
 here... do I really want an ear file instead?

 Alex

 On 7/30/06, Alex Turner [EMAIL PROTECTED] wrote:
 
  How do I tell maven to include my dependency jars in my
final
 jar
file?
 
  I am referencing
   
 

http://maven.apache.org/guides/introduction/introduction-to-dependency-m
 echanism.html
  , but none of the scopes described seems to do that.
 
  Thanks,
 
  Alex.
 


   
   
 -
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
   
   
  
  
 
 
-
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Including dependencies in final JAR

2006-07-30 Thread Alex Turner

A list of goals isn't really much of an 'about' the plugin.  It would be
more usefull to describe what the plugin can do and provide tutorials...

(I'm in the process of getting sorted out with a confluence id etc... I'll
be happy to help write some docs).

Alex.

On 7/30/06, Barrie Treloar [EMAIL PROTECTED] wrote:


On 7/31/06, Alex Turner [EMAIL PROTECTED] wrote:
 Not to ask a stupid question, but why should I have to use a plugin for
 this?  This is standard functionality that many projects
require.  Shouldn't
 this be part of the standard maven goals?

If you have a standalone app then you probably want to create an
binary assembly that would include your jar file (with correct
Class-Path in the Manifest file), any dependent libraries, and config
files, any documentation.

To do this you will want to use the
http://maven.apache.org/plugins/maven-assembly-plugin

Search the archives, there should be plenty of examples on this.
I tend not to use the built in descriptors as I find they don't meet my
needs.
It is very easy to write your assembly descriptors.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: Including dependencies in final JAR

2006-07-30 Thread Barrie Treloar

On 7/31/06, Alex Turner [EMAIL PROTECTED] wrote:

A list of goals isn't really much of an 'about' the plugin.  It would be
more usefull to describe what the plugin can do and provide tutorials...


Err,
Did you check the Overview section on the left?
It reads:
   * Introduction
   * How to Use
   * Examples
   * Descriptor Format
   * Predefined Descriptors

Admittedly the docs are sometimes thin and assembly could use a bit
more in some places, but there is enough there to get started on.
It's only when you want to do more advanced things that you will need
more help and search on the archives to find it.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]