You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by delasoul <mi...@gmx.at> on 2006/05/08 17:46:54 UTC

[m2] download sources to local repo

Hello,

for certain projects our build generates an additional ***-sources.jar file
which is deployed to our remote repository.
If I have a dependency on one of these projects I want this ***-source.jar
to be downloaded to my local repo together with the artifact jar.

Is there a possibility to do this without using the eclipse plugin?

thanx in advance for any help,

michael

--
View this message in context: http://www.nabble.com/-m2-download-sources-to-local-repo-t1577673.html#a4283001
Sent from the Maven - Users forum at Nabble.com.


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


Re: [m2] download sources to local repo

Posted by Alexandre Poitras <al...@gmail.com>.
There may be a bug because the type element imply a new classifier type.
Anyway, Im glad it helped.

On 5/10/06, delasoul <mi...@gmx.at> wrote:
>
>
> Thank you for your reply.
> I had to add both - the source and the normal jar dependency plus I had to
> add
>          <classifier>sources</classifier>
> to the source dependency - instead of the  <type> element.
> With the <type> element, Maven complained about not finding the pom
> for the sources jar...
>
> But now its working,
>
> Michael
> --
> View this message in context:
> http://www.nabble.com/-m2-download-sources-to-local-repo-t1577673.html#a4313663
> Sent from the Maven - Users forum at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

Re: [m2] download sources to local repo

Posted by delasoul <mi...@gmx.at>.
Thank you for your reply.
I had to add both - the source and the normal jar dependency plus I had to
add 
         <classifier>sources</classifier>
to the source dependency - instead of the  <type> element.
With the <type> element, Maven complained about not finding the pom
for the sources jar...

But now its working,

Michael
--
View this message in context: http://www.nabble.com/-m2-download-sources-to-local-repo-t1577673.html#a4313663
Sent from the Maven - Users forum at Nabble.com.


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


Re: [m2] download sources to local repo

Posted by Alexandre Poitras <al...@gmail.com>.
Add this to your dependency :
<type>java-source</type>

*I don't know if you need to add both a normal jar dependency and a
java-source dependency. My guess is that a java-source dependency
automatically include the binary jar in the build but I could be wrong.


On 5/8/06, delasoul <mi...@gmx.at> wrote:
>
>
> Hello,
>
> for certain projects our build generates an additional ***-sources.jarfile
> which is deployed to our remote repository.
> If I have a dependency on one of these projects I want this ***-source.jar
> to be downloaded to my local repo together with the artifact jar.
>
> Is there a possibility to do this without using the eclipse plugin?
>
> thanx in advance for any help,
>
> michael
>
> --
> View this message in context:
> http://www.nabble.com/-m2-download-sources-to-local-repo-t1577673.html#a4283001
> Sent from the Maven - Users forum at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>