You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "Ryan H." <wa...@gmail.com> on 2008/01/24 07:59:31 UTC

Is there a tool that can dowload and package the dependencies from Maven repository?

Hello,

I have a need to download some of dependencies off maven repository and then
package all of them to a zip file for distribution because my customers
don't use maven. Is there such off-shelf tool that can accomplish such need?

Thanks
Ryan

Re: Is there a tool that can dowload and package the dependencies from Maven repository?

Posted by Wendy Smoak <ws...@gmail.com>.
On Jan 25, 2008 6:46 AM, Chris A.
<ch...@orange-ftgroup.com> wrote:
>
> So, the only way I found to remove the jar of my module from the zip file of
> all the dependencies is to exclude the module explicitely in the
> DependencySets of the assembly configuration file. Does this kinds of
> packaging constitute a good practice? if not, is there another way to do it?

Often, people build the assembly from a separate module with packaging of 'pom'.

Then you can do what you need in the pom for the assembly, without
affecting the pom for your artifact.

-- 
Wendy

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


RE: Is there a tool that can dowload and package the dependencies from Maven repository?

Posted by "Chris A." <ch...@orange-ftgroup.com>.
So, the only way I found to remove the jar of my module from the zip file of
all the dependencies is to exclude the module explicitely in the
DependencySets of the assembly configuration file. Does this kinds of
packaging constitute a good practice? if not, is there another way to do it? 



Jörg Schaible wrote:
> 
> Chris A. wrote:
>> Hello,
>> 
>> When using the assembly plugin, I get a zip file containing all the
>> dependencies of my module. Is it normal that the module itself is
>> also packaged in the zip file? 
> 
> If you POM declares in its packaging, that you are creating a jar - then
> yes ;-)
> 
> - Jörg
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Is-there-a-tool-that-can-dowload-and-package-the-dependencies-from-Maven-repository--tp15059697s177p15088043.html
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Is there a tool that can dowload and package the dependencies from Maven repository?

Posted by Rémy Sanlaville <re...@gmail.com>.
>
> > When using the assembly plugin, I get a zip file containing all the
> > dependencies of my module. Is it normal that the module itself is
> > also packaged in the zip file?
>
> If you POM declares in its packaging, that you are creating a jar - then
> yes ;-)
>

I found that it's a strange behavior. Isn't it (a bug) ?

Rémy

RE: Is there a tool that can dowload and package the dependencies from Maven repository?

Posted by Jörg Schaible <Jo...@Elsag-Solutions.com>.
Chris A. wrote:
> Hello,
> 
> When using the assembly plugin, I get a zip file containing all the
> dependencies of my module. Is it normal that the module itself is
> also packaged in the zip file? 

If you POM declares in its packaging, that you are creating a jar - then yes ;-)

- Jörg

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


RE: Is there a tool that can dowload and package the dependencies from Maven repository?

Posted by "Chris A." <ch...@orange-ftgroup.com>.
Hello,

When using the assembly plugin, I get a zip file containing all the
dependencies of my module. Is it normal that the module itself is also
packaged in the zip file?



Brian E Fox wrote:
> 
> If you intend to zip them, the assembly plugin might be the most direct
> route since you'll need that to make the zip anyway. You can use the
> dependencySet declaration in the descriptor to pull down dependencies.
> 
> -----Original Message-----
> From: Jerome Lacoste [mailto:jerome.lacoste@gmail.com] 
> Sent: Thursday, January 24, 2008 2:15 AM
> To: Maven Users List
> Subject: Re: Is there a tool that can dowload and package the
> dependencies from Maven repository?
> 
> On Jan 24, 2008 7:59 AM, Ryan H. <wa...@gmail.com> wrote:
>> Hello,
>>
>> I have a need to download some of dependencies off maven repository
> and then
>> package all of them to a zip file for distribution because my
> customers
>> don't use maven. Is there such off-shelf tool that can accomplish such
> need?
> 
> 
> Yes:     maven
> 
> 
> Create a pom that list your dependencies, and use the dependency plugin:
> 
> http://maven.apache.org/plugins/maven-dependency-plugin/examples/copying
> -project-dependencies.html
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Is-there-a-tool-that-can-dowload-and-package-the-dependencies-from-Maven-repository--tp15059697s177p15083861.html
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


RE: Is there a tool that can dowload and package the dependencies from Maven repository?

Posted by "Brian E. Fox" <br...@reply.infinity.nu>.
If you intend to zip them, the assembly plugin might be the most direct
route since you'll need that to make the zip anyway. You can use the
dependencySet declaration in the descriptor to pull down dependencies.

-----Original Message-----
From: Jerome Lacoste [mailto:jerome.lacoste@gmail.com] 
Sent: Thursday, January 24, 2008 2:15 AM
To: Maven Users List
Subject: Re: Is there a tool that can dowload and package the
dependencies from Maven repository?

On Jan 24, 2008 7:59 AM, Ryan H. <wa...@gmail.com> wrote:
> Hello,
>
> I have a need to download some of dependencies off maven repository
and then
> package all of them to a zip file for distribution because my
customers
> don't use maven. Is there such off-shelf tool that can accomplish such
need?


Yes:     maven


Create a pom that list your dependencies, and use the dependency plugin:

http://maven.apache.org/plugins/maven-dependency-plugin/examples/copying
-project-dependencies.html

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Is there a tool that can dowload and package the dependencies from Maven repository?

Posted by Jerome Lacoste <je...@gmail.com>.
On Jan 24, 2008 7:59 AM, Ryan H. <wa...@gmail.com> wrote:
> Hello,
>
> I have a need to download some of dependencies off maven repository and then
> package all of them to a zip file for distribution because my customers
> don't use maven. Is there such off-shelf tool that can accomplish such need?


Yes:     maven


Create a pom that list your dependencies, and use the dependency plugin:

http://maven.apache.org/plugins/maven-dependency-plugin/examples/copying-project-dependencies.html

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org