AW: maven 3.0.1 doesn't download sources

2010-11-30 Thread Moser, Christian
Just found it out by myself..

The dependency plugin creates in target a folder called 
"dependency-maven-plugin-markers" which acts like a cache. To make sure all 
available sources will be checked & downloaded again you have to clean the 
cache with the maven clean.

mvn -U clean dependency:sources -DoverWriteSnapshots=true 
-DoverWriteReleases=true

solved the problem :-)


-Ursprüngliche Nachricht-
Von: Moser, Christian [mailto:c...@metrohm.com] 
Gesendet: Dienstag, 30. November 2010 09:38
An: Maven Users List
Betreff: AW: maven 3.0.1 doesn't download sources

Thanks for your response. Just tested it with maven 2.2.1 and maven 3.0, I 
doesn't work neither.
Do you think it's a problem with the dependency-plugin? I wonder what's the 
criteria is to skip files when using the goal :sources. How does the plugin 
know, if it should skip or not?

-Ursprüngliche Nachricht-
Von: anders.g.ham...@gmail.com [mailto:anders.g.ham...@gmail.com] Im Auftrag 
von Anders Hammar
Gesendet: Dienstag, 30. November 2010 09:26
An: Maven Users List
Betreff: Re: maven 3.0.1 doesn't download sources

Are you saying this worked with Maven 3.0?
If not, it could be a problem with either Maven or Artifactory. However, I
do vaguely recall seeing a ticket regarding something similar to this.
Couldn't find it in jira when I searched though.

/Anders

On Tue, Nov 30, 2010 at 08:25, Moser, Christian  wrote:

> Hi
>
>
>
> Maven 3.0.1 and artifactory 2.3.1 with unique (non-unique won't work)
> snapshot repository doesn't UPDATE sources from the repository. Calling
> mvn -U dependency:sources with an empty local repository will resolve
> all sources correctly. After a newer artifact was deployed and the maven
> was called again with mvn -U dependency:sources, the pom and .jar
> archive was updated, but the dependency plugin skips to download the
> newer source files. Why does the plugin refuses to download?
>
> We're using the default -sources classifier.
>
>
>
> Regards,
>
> Christian
>
>
>
>

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



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



AW: maven 3.0.1 doesn't download sources

2010-11-30 Thread Moser, Christian
Thanks for your response. Just tested it with maven 2.2.1 and maven 3.0, I 
doesn't work neither.
Do you think it's a problem with the dependency-plugin? I wonder what's the 
criteria is to skip files when using the goal :sources. How does the plugin 
know, if it should skip or not?

-Ursprüngliche Nachricht-
Von: anders.g.ham...@gmail.com [mailto:anders.g.ham...@gmail.com] Im Auftrag 
von Anders Hammar
Gesendet: Dienstag, 30. November 2010 09:26
An: Maven Users List
Betreff: Re: maven 3.0.1 doesn't download sources

Are you saying this worked with Maven 3.0?
If not, it could be a problem with either Maven or Artifactory. However, I
do vaguely recall seeing a ticket regarding something similar to this.
Couldn't find it in jira when I searched though.

/Anders

On Tue, Nov 30, 2010 at 08:25, Moser, Christian  wrote:

> Hi
>
>
>
> Maven 3.0.1 and artifactory 2.3.1 with unique (non-unique won't work)
> snapshot repository doesn't UPDATE sources from the repository. Calling
> mvn -U dependency:sources with an empty local repository will resolve
> all sources correctly. After a newer artifact was deployed and the maven
> was called again with mvn -U dependency:sources, the pom and .jar
> archive was updated, but the dependency plugin skips to download the
> newer source files. Why does the plugin refuses to download?
>
> We're using the default -sources classifier.
>
>
>
> Regards,
>
> Christian
>
>
>
>

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



Re: maven 3.0.1 doesn't download sources

2010-11-30 Thread Anders Hammar
Are you saying this worked with Maven 3.0?
If not, it could be a problem with either Maven or Artifactory. However, I
do vaguely recall seeing a ticket regarding something similar to this.
Couldn't find it in jira when I searched though.

/Anders

On Tue, Nov 30, 2010 at 08:25, Moser, Christian  wrote:

> Hi
>
>
>
> Maven 3.0.1 and artifactory 2.3.1 with unique (non-unique won't work)
> snapshot repository doesn't UPDATE sources from the repository. Calling
> mvn -U dependency:sources with an empty local repository will resolve
> all sources correctly. After a newer artifact was deployed and the maven
> was called again with mvn -U dependency:sources, the pom and .jar
> archive was updated, but the dependency plugin skips to download the
> newer source files. Why does the plugin refuses to download?
>
> We're using the default -sources classifier.
>
>
>
> Regards,
>
> Christian
>
>
>
>


maven 3.0.1 doesn't download sources

2010-11-29 Thread Moser, Christian
Hi

 

Maven 3.0.1 and artifactory 2.3.1 with unique (non-unique won't work)
snapshot repository doesn't UPDATE sources from the repository. Calling
mvn -U dependency:sources with an empty local repository will resolve
all sources correctly. After a newer artifact was deployed and the maven
was called again with mvn -U dependency:sources, the pom and .jar
archive was updated, but the dependency plugin skips to download the
newer source files. Why does the plugin refuses to download?

We're using the default -sources classifier.

 

Regards,

Christian

 



AW: Maven 3.0 doesn't download sources

2010-11-25 Thread Moser, Christian
At the moment I have no idea which tool is causing the problem. I still have 
problems with artifactory 2.3.1. Just a quick question: Does artifactory 2.3.0+ 
supports the m3 format with both, unique and non-unique repositories? Currently 
the build system is running with 2.3.1 and non-unique snapshot repositories 
deployed with maven 3.0 and it still doesn't download artifact-sources neither 
it's downloading newer artifactory-snapshots deployed on the artifactory if 
build is called with maven -U.

- Chris

-Ursprüngliche Nachricht-
Von: Yoav Landman [mailto:yland...@gmail.com] 
Gesendet: Donnerstag, 25. November 2010 20:44
An: Maven Users List
Betreff: Re: Maven 3.0 doesn't download sources

Hi,

Artifactory 2.3.0+ supports the m3 format for maven-metadata.xml
for snapshot artifacts. But, if you upgraded to 2.3.x and still think there
is something wrong on the Artifactory side, better ask on the Artifactory
user list and we'll be happy to assist you there.

Thanks,

On Wed, Nov 24, 2010 at 8:34 AM, Moser, Christian  wrote:

> I could imagine the culprit could be artifactory. We were forced to update
> from 2.2.2 to 2.2.3, otherwise we weren't be able to deploy with maven 3.0
> (metadata issue in Artifactory 2.2.2, deploy worked only in legacy mode). In
> the meantime just to be sure, we updated to 2.3.1. But were also required to
> change all our repositories to handle "non-unique" snapshots and to deploy
> every snapshot again. It was necessary to use "non-unique" snapshots in
> artifactory because maven was overriding newer locally installed artifacts,
> with older remote artifacts everytime we tried to install a new artifact.
>
> But regarding my two maven user list entries (Maven 3.0 doesn't download
> sources / Maven 3.0 doesn't update snapshot artifacts) it seems there are
> some metadata issues with artifactory & maven 3.0.
>
> So, the right way to go with maven 3.0 is to use repositories with unique
> (timestamped) snapshots artifacts? But this won't work with artifactory at
> least not with version 2.2.3.
>
> -thx Chris
>
> -Ursprüngliche Nachricht-
> Von: Brett Porter [mailto:br...@porterclan.net] Im Auftrag von Brett
> Porter
> Gesendet: Dienstag, 23. November 2010 23:14
> An: Maven Users List
> Betreff: Re: Maven 3.0 doesn't download sources
>
> There's a couple of potential things in the way you've described it:
> - Maven 3.0 does not support non-unique snapshots - you would need to use
> timestamps and rely on the repo manager to purge old versions
> - if I've misunderstood the above, the difference on timestamps is that
> Maven 3.0 will actually store separate metadata per classifier. They should
> be the same in the scenario you describe, but maybe Artifactory doesn't
> support the new metadata format and affects it in some way.
>
> HTH,
> Brett
>
> On 24/11/2010, at 3:21 AM, Stephen Connolly wrote:
>
> > Don't know what it should be but I think we may have found a possible
> > culpret.
> >
> > Check with Benjamin Bentmann, he'd know what m3 is supposed to do
> >
> > -Stephen
> >
> > On 23 November 2010 14:30, Moser, Christian  wrote:
> >
> >> They are from snapshot artifacts. We use non-unique snapshots in
> >> artifactory.
> >> The sources are deployed on the same time like the compiled artifacts.
> So
> >> the timestamp should be equals, shouldn't it?
> >> If not, how could I archieve it?
> >>
> >> -Chris
> >>
> >> -Ursprüngliche Nachricht-
> >> Von: Stephen Connolly [mailto:stephen.alan.conno...@gmail.com]
> >> Gesendet: Dienstag, 23. November 2010 14:39
> >> An: Maven Users List
> >> Betreff: Re: Maven 3.0 doesn't download sources
> >>
> >> Are these sources of snapshots or releases?
> >>
> >> If snapshots it may be that the sources were deployed with a different
> >> timestamp, in which case the maven metadata my not be letting maven 3
> find
> >> the artifacts.
> >>
> >> IIRC Maven 3 pays more attention to the metadata, whereas Maven 2 might
> not
> >> trust it as much (but I could be wrong, my recollection is fuzzy)
> >>
> >> -Stephen
> >>
> >> On 23 November 2010 12:13, Moser, Christian  wrote:
> >>
> >>> I'm unable to download artifact sources with maven 3.0 and 3.0.1-RC1
> >>> with following command.
> >>>
> >>>
> >>>
> >>> Sources classifier is: -sources (default)
> >>>
> >>>
> >>>
> >>&

Re: Maven 3.0 doesn't download sources

2010-11-25 Thread Yoav Landman
Hi,

Artifactory 2.3.0+ supports the m3 format for maven-metadata.xml
for snapshot artifacts. But, if you upgraded to 2.3.x and still think there
is something wrong on the Artifactory side, better ask on the Artifactory
user list and we'll be happy to assist you there.

Thanks,

On Wed, Nov 24, 2010 at 8:34 AM, Moser, Christian  wrote:

> I could imagine the culprit could be artifactory. We were forced to update
> from 2.2.2 to 2.2.3, otherwise we weren't be able to deploy with maven 3.0
> (metadata issue in Artifactory 2.2.2, deploy worked only in legacy mode). In
> the meantime just to be sure, we updated to 2.3.1. But were also required to
> change all our repositories to handle "non-unique" snapshots and to deploy
> every snapshot again. It was necessary to use "non-unique" snapshots in
> artifactory because maven was overriding newer locally installed artifacts,
> with older remote artifacts everytime we tried to install a new artifact.
>
> But regarding my two maven user list entries (Maven 3.0 doesn't download
> sources / Maven 3.0 doesn't update snapshot artifacts) it seems there are
> some metadata issues with artifactory & maven 3.0.
>
> So, the right way to go with maven 3.0 is to use repositories with unique
> (timestamped) snapshots artifacts? But this won't work with artifactory at
> least not with version 2.2.3.
>
> -thx Chris
>
> -Ursprüngliche Nachricht-
> Von: Brett Porter [mailto:br...@porterclan.net] Im Auftrag von Brett
> Porter
> Gesendet: Dienstag, 23. November 2010 23:14
> An: Maven Users List
> Betreff: Re: Maven 3.0 doesn't download sources
>
> There's a couple of potential things in the way you've described it:
> - Maven 3.0 does not support non-unique snapshots - you would need to use
> timestamps and rely on the repo manager to purge old versions
> - if I've misunderstood the above, the difference on timestamps is that
> Maven 3.0 will actually store separate metadata per classifier. They should
> be the same in the scenario you describe, but maybe Artifactory doesn't
> support the new metadata format and affects it in some way.
>
> HTH,
> Brett
>
> On 24/11/2010, at 3:21 AM, Stephen Connolly wrote:
>
> > Don't know what it should be but I think we may have found a possible
> > culpret.
> >
> > Check with Benjamin Bentmann, he'd know what m3 is supposed to do
> >
> > -Stephen
> >
> > On 23 November 2010 14:30, Moser, Christian  wrote:
> >
> >> They are from snapshot artifacts. We use non-unique snapshots in
> >> artifactory.
> >> The sources are deployed on the same time like the compiled artifacts.
> So
> >> the timestamp should be equals, shouldn't it?
> >> If not, how could I archieve it?
> >>
> >> -Chris
> >>
> >> -Ursprüngliche Nachricht-
> >> Von: Stephen Connolly [mailto:stephen.alan.conno...@gmail.com]
> >> Gesendet: Dienstag, 23. November 2010 14:39
> >> An: Maven Users List
> >> Betreff: Re: Maven 3.0 doesn't download sources
> >>
> >> Are these sources of snapshots or releases?
> >>
> >> If snapshots it may be that the sources were deployed with a different
> >> timestamp, in which case the maven metadata my not be letting maven 3
> find
> >> the artifacts.
> >>
> >> IIRC Maven 3 pays more attention to the metadata, whereas Maven 2 might
> not
> >> trust it as much (but I could be wrong, my recollection is fuzzy)
> >>
> >> -Stephen
> >>
> >> On 23 November 2010 12:13, Moser, Christian  wrote:
> >>
> >>> I'm unable to download artifact sources with maven 3.0 and 3.0.1-RC1
> >>> with following command.
> >>>
> >>>
> >>>
> >>> Sources classifier is: -sources (default)
> >>>
> >>>
> >>>
> >>> "mvn -U validate dependency:sources -DoverWriteSnapshots=true
> >>> -DoverWriteReleases=true"
> >>>
> >>>
> >>>
> >>>
> >>>
> >>> the artifacts with classifier -sources are available in the locale
> >>> remote-repository manager (artifactory).
> >>>
> >>>
> >>>
> >>> Is there another call to force maven to download sources?
> >>>
> >>>
> >>>
> >>> Greez Chris
> >>>
> >>>
> >>>
> >>>
> >>
> >> -
> >> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> >> For additional commands, e-mail: users-h...@maven.apache.org
> >>
> >>
>
> --
> Brett Porter
> br...@apache.org
> http://brettporter.wordpress.com/
>
>
>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>


-- 
Yoav


AW: Maven 3.0 doesn't download sources

2010-11-23 Thread Moser, Christian
I could imagine the culprit could be artifactory. We were forced to update from 
2.2.2 to 2.2.3, otherwise we weren't be able to deploy with maven 3.0 (metadata 
issue in Artifactory 2.2.2, deploy worked only in legacy mode). In the meantime 
just to be sure, we updated to 2.3.1. But were also required to change all our 
repositories to handle "non-unique" snapshots and to deploy every snapshot 
again. It was necessary to use "non-unique" snapshots in artifactory because 
maven was overriding newer locally installed artifacts, with older remote 
artifacts everytime we tried to install a new artifact.

But regarding my two maven user list entries (Maven 3.0 doesn't download 
sources / Maven 3.0 doesn't update snapshot artifacts) it seems there are some 
metadata issues with artifactory & maven 3.0.

So, the right way to go with maven 3.0 is to use repositories with unique 
(timestamped) snapshots artifacts? But this won't work with artifactory at 
least not with version 2.2.3.

-thx Chris

-Ursprüngliche Nachricht-
Von: Brett Porter [mailto:br...@porterclan.net] Im Auftrag von Brett Porter
Gesendet: Dienstag, 23. November 2010 23:14
An: Maven Users List
Betreff: Re: Maven 3.0 doesn't download sources

There's a couple of potential things in the way you've described it:
- Maven 3.0 does not support non-unique snapshots - you would need to use 
timestamps and rely on the repo manager to purge old versions
- if I've misunderstood the above, the difference on timestamps is that Maven 
3.0 will actually store separate metadata per classifier. They should be the 
same in the scenario you describe, but maybe Artifactory doesn't support the 
new metadata format and affects it in some way.

HTH,
Brett

On 24/11/2010, at 3:21 AM, Stephen Connolly wrote:

> Don't know what it should be but I think we may have found a possible
> culpret.
> 
> Check with Benjamin Bentmann, he'd know what m3 is supposed to do
> 
> -Stephen
> 
> On 23 November 2010 14:30, Moser, Christian  wrote:
> 
>> They are from snapshot artifacts. We use non-unique snapshots in
>> artifactory.
>> The sources are deployed on the same time like the compiled artifacts. So
>> the timestamp should be equals, shouldn't it?
>> If not, how could I archieve it?
>> 
>> -Chris
>> 
>> -Ursprüngliche Nachricht-
>> Von: Stephen Connolly [mailto:stephen.alan.conno...@gmail.com]
>> Gesendet: Dienstag, 23. November 2010 14:39
>> An: Maven Users List
>> Betreff: Re: Maven 3.0 doesn't download sources
>> 
>> Are these sources of snapshots or releases?
>> 
>> If snapshots it may be that the sources were deployed with a different
>> timestamp, in which case the maven metadata my not be letting maven 3 find
>> the artifacts.
>> 
>> IIRC Maven 3 pays more attention to the metadata, whereas Maven 2 might not
>> trust it as much (but I could be wrong, my recollection is fuzzy)
>> 
>> -Stephen
>> 
>> On 23 November 2010 12:13, Moser, Christian  wrote:
>> 
>>> I'm unable to download artifact sources with maven 3.0 and 3.0.1-RC1
>>> with following command.
>>> 
>>> 
>>> 
>>> Sources classifier is: -sources (default)
>>> 
>>> 
>>> 
>>> "mvn -U validate dependency:sources -DoverWriteSnapshots=true
>>> -DoverWriteReleases=true"
>>> 
>>> 
>>> 
>>> 
>>> 
>>> the artifacts with classifier -sources are available in the locale
>>> remote-repository manager (artifactory).
>>> 
>>> 
>>> 
>>> Is there another call to force maven to download sources?
>>> 
>>> 
>>> 
>>> Greez Chris
>>> 
>>> 
>>> 
>>> 
>> 
>> -
>> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
>> For additional commands, e-mail: users-h...@maven.apache.org
>> 
>> 

--
Brett Porter
br...@apache.org
http://brettporter.wordpress.com/





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



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



Re: Maven 3.0 doesn't download sources

2010-11-23 Thread Brett Porter
There's a couple of potential things in the way you've described it:
- Maven 3.0 does not support non-unique snapshots - you would need to use 
timestamps and rely on the repo manager to purge old versions
- if I've misunderstood the above, the difference on timestamps is that Maven 
3.0 will actually store separate metadata per classifier. They should be the 
same in the scenario you describe, but maybe Artifactory doesn't support the 
new metadata format and affects it in some way.

HTH,
Brett

On 24/11/2010, at 3:21 AM, Stephen Connolly wrote:

> Don't know what it should be but I think we may have found a possible
> culpret.
> 
> Check with Benjamin Bentmann, he'd know what m3 is supposed to do
> 
> -Stephen
> 
> On 23 November 2010 14:30, Moser, Christian  wrote:
> 
>> They are from snapshot artifacts. We use non-unique snapshots in
>> artifactory.
>> The sources are deployed on the same time like the compiled artifacts. So
>> the timestamp should be equals, shouldn't it?
>> If not, how could I archieve it?
>> 
>> -Chris
>> 
>> -Ursprüngliche Nachricht-
>> Von: Stephen Connolly [mailto:stephen.alan.conno...@gmail.com]
>> Gesendet: Dienstag, 23. November 2010 14:39
>> An: Maven Users List
>> Betreff: Re: Maven 3.0 doesn't download sources
>> 
>> Are these sources of snapshots or releases?
>> 
>> If snapshots it may be that the sources were deployed with a different
>> timestamp, in which case the maven metadata my not be letting maven 3 find
>> the artifacts.
>> 
>> IIRC Maven 3 pays more attention to the metadata, whereas Maven 2 might not
>> trust it as much (but I could be wrong, my recollection is fuzzy)
>> 
>> -Stephen
>> 
>> On 23 November 2010 12:13, Moser, Christian  wrote:
>> 
>>> I'm unable to download artifact sources with maven 3.0 and 3.0.1-RC1
>>> with following command.
>>> 
>>> 
>>> 
>>> Sources classifier is: -sources (default)
>>> 
>>> 
>>> 
>>> "mvn -U validate dependency:sources -DoverWriteSnapshots=true
>>> -DoverWriteReleases=true"
>>> 
>>> 
>>> 
>>> 
>>> 
>>> the artifacts with classifier -sources are available in the locale
>>> remote-repository manager (artifactory).
>>> 
>>> 
>>> 
>>> Is there another call to force maven to download sources?
>>> 
>>> 
>>> 
>>> Greez Chris
>>> 
>>> 
>>> 
>>> 
>> 
>> -
>> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
>> For additional commands, e-mail: users-h...@maven.apache.org
>> 
>> 

--
Brett Porter
br...@apache.org
http://brettporter.wordpress.com/





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



Re: Maven 3.0 doesn't download sources

2010-11-23 Thread Stephen Connolly
Don't know what it should be but I think we may have found a possible
culpret.

Check with Benjamin Bentmann, he'd know what m3 is supposed to do

-Stephen

On 23 November 2010 14:30, Moser, Christian  wrote:

> They are from snapshot artifacts. We use non-unique snapshots in
> artifactory.
> The sources are deployed on the same time like the compiled artifacts. So
> the timestamp should be equals, shouldn't it?
> If not, how could I archieve it?
>
> -Chris
>
> -Ursprüngliche Nachricht-
> Von: Stephen Connolly [mailto:stephen.alan.conno...@gmail.com]
> Gesendet: Dienstag, 23. November 2010 14:39
> An: Maven Users List
> Betreff: Re: Maven 3.0 doesn't download sources
>
> Are these sources of snapshots or releases?
>
> If snapshots it may be that the sources were deployed with a different
> timestamp, in which case the maven metadata my not be letting maven 3 find
> the artifacts.
>
> IIRC Maven 3 pays more attention to the metadata, whereas Maven 2 might not
> trust it as much (but I could be wrong, my recollection is fuzzy)
>
> -Stephen
>
> On 23 November 2010 12:13, Moser, Christian  wrote:
>
> > I'm unable to download artifact sources with maven 3.0 and 3.0.1-RC1
> > with following command.
> >
> >
> >
> > Sources classifier is: -sources (default)
> >
> >
> >
> > "mvn -U validate dependency:sources -DoverWriteSnapshots=true
> > -DoverWriteReleases=true"
> >
> >
> >
> >
> >
> > the artifacts with classifier -sources are available in the locale
> > remote-repository manager (artifactory).
> >
> >
> >
> > Is there another call to force maven to download sources?
> >
> >
> >
> > Greez Chris
> >
> >
> >
> >
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>


AW: Maven 3.0 doesn't download sources

2010-11-23 Thread Moser, Christian
They are from snapshot artifacts. We use non-unique snapshots in artifactory.
The sources are deployed on the same time like the compiled artifacts. So the 
timestamp should be equals, shouldn't it?
If not, how could I archieve it?

-Chris

-Ursprüngliche Nachricht-
Von: Stephen Connolly [mailto:stephen.alan.conno...@gmail.com] 
Gesendet: Dienstag, 23. November 2010 14:39
An: Maven Users List
Betreff: Re: Maven 3.0 doesn't download sources

Are these sources of snapshots or releases?

If snapshots it may be that the sources were deployed with a different
timestamp, in which case the maven metadata my not be letting maven 3 find
the artifacts.

IIRC Maven 3 pays more attention to the metadata, whereas Maven 2 might not
trust it as much (but I could be wrong, my recollection is fuzzy)

-Stephen

On 23 November 2010 12:13, Moser, Christian  wrote:

> I'm unable to download artifact sources with maven 3.0 and 3.0.1-RC1
> with following command.
>
>
>
> Sources classifier is: -sources (default)
>
>
>
> "mvn -U validate dependency:sources -DoverWriteSnapshots=true
> -DoverWriteReleases=true"
>
>
>
>
>
> the artifacts with classifier -sources are available in the locale
> remote-repository manager (artifactory).
>
>
>
> Is there another call to force maven to download sources?
>
>
>
> Greez Chris
>
>
>
>

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



Re: Maven 3.0 doesn't download sources

2010-11-23 Thread Stephen Connolly
Are these sources of snapshots or releases?

If snapshots it may be that the sources were deployed with a different
timestamp, in which case the maven metadata my not be letting maven 3 find
the artifacts.

IIRC Maven 3 pays more attention to the metadata, whereas Maven 2 might not
trust it as much (but I could be wrong, my recollection is fuzzy)

-Stephen

On 23 November 2010 12:13, Moser, Christian  wrote:

> I'm unable to download artifact sources with maven 3.0 and 3.0.1-RC1
> with following command.
>
>
>
> Sources classifier is: -sources (default)
>
>
>
> "mvn -U validate dependency:sources -DoverWriteSnapshots=true
> -DoverWriteReleases=true"
>
>
>
>
>
> the artifacts with classifier -sources are available in the locale
> remote-repository manager (artifactory).
>
>
>
> Is there another call to force maven to download sources?
>
>
>
> Greez Chris
>
>
>
>


Maven 3.0 doesn't download sources

2010-11-23 Thread Moser, Christian
I'm unable to download artifact sources with maven 3.0 and 3.0.1-RC1
with following command.

 

Sources classifier is: -sources (default)

 

"mvn -U validate dependency:sources -DoverWriteSnapshots=true
-DoverWriteReleases=true"

 

 

the artifacts with classifier -sources are available in the locale
remote-repository manager (artifactory).

 

Is there another call to force maven to download sources?

 

Greez Chris

 



How to stop maven1 from trying to download sources and javadoc

2010-05-11 Thread emerson cargnin
Since a few weeks ago, the maven1 client started to try to download sources
and javadocs of the libraries.
Is there any way to stop it from happening_

thanks
Emerson


Re: download sources

2008-02-09 Thread simon
This should do the same thing:
  mvn dependency:sources
  mvn eclipse:eclipse

Not every project publishes its source unfortunately. Have a look in the
maven repo dir for the jars you depend on (eg
http://rep1.maven.org/maven2/...), and see if there is a -sources.jar
file next to the binary jar.

Regards,
Simon

On Sat, 2008-02-09 at 13:22 +0100, nicolas de loof wrote:
> This works fine for me
> (I've set true in my
> settings.xml)
> 
> Many artifacts in maven "central" repo don't have the expected source
> bundles.
> 
> One option is to build them yourself from source distribution, and even
> better propose for upload (http://jira.codehaus.org/browse/MAVENUPLOAD)
> 
> Another option is to contact the developer list and ask them to publish
> themself the required -sources.jar. This is automatically created by maven
> during release (if predefine profile is used), so recent maven2-based-builds
> should all have thoses sources.jars.
> 
> I'm myself in discution on apache commons dev list to publish sources for
> archived commons-*
> 
> Nico.
> 
> 
> 
> 2008/2/9, Jan Torben Heuer <[EMAIL PROTECTED]>:
> >
> > Hi,
> >
> > I don't know if I'm doing something wrong, but shouldn't
> >
> > mvn eclipse:eclipse -DdownloadSources=true
> >
> > download and reference the sources in eclipse?
> >
> >
> > Are the sources normally available for libs in the central repository? I
> > mean for example log4j, httpunit, xmlbeans...
> >
> >
> >
> > Does it work for someone here?
> >
> > Jan
> >
> >
> > -
> > 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: download sources

2008-02-09 Thread nicolas de loof
This works fine for me
(I've set true in my
settings.xml)

Many artifacts in maven "central" repo don't have the expected source
bundles.

One option is to build them yourself from source distribution, and even
better propose for upload (http://jira.codehaus.org/browse/MAVENUPLOAD)

Another option is to contact the developer list and ask them to publish
themself the required -sources.jar. This is automatically created by maven
during release (if predefine profile is used), so recent maven2-based-builds
should all have thoses sources.jars.

I'm myself in discution on apache commons dev list to publish sources for
archived commons-*

Nico.



2008/2/9, Jan Torben Heuer <[EMAIL PROTECTED]>:
>
> Hi,
>
> I don't know if I'm doing something wrong, but shouldn't
>
> mvn eclipse:eclipse -DdownloadSources=true
>
> download and reference the sources in eclipse?
>
>
> Are the sources normally available for libs in the central repository? I
> mean for example log4j, httpunit, xmlbeans...
>
>
>
> Does it work for someone here?
>
> Jan
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


download sources

2008-02-09 Thread Jan Torben Heuer
Hi,

I don't know if I'm doing something wrong, but shouldn't

mvn eclipse:eclipse -DdownloadSources=true

download and reference the sources in eclipse?


Are the sources normally available for libs in the central repository? I
mean for example log4j, httpunit, xmlbeans...



Does it work for someone here?

Jan


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



RE: Forcing maven to download sources

2007-03-28 Thread Brian E. Fox
You can use the maven-dependency-plugin:sources goal.

-Original Message-
From: Wojtek Ciesielski [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 28, 2007 8:12 AM
To: users@maven.apache.org
Subject: Forcing maven to download sources

Hi there,

How can I change pom.xml of my project to cause Maven to automatically 
download sources for a particular dependency my project's using? I need 
to setup a source-attachment for this library within eclipse (no, I am 
not using maven plugin and don't intend to do so) in such a way that all

members of my team do not have to manually DL those sources to their 
local repos.

Thanks in advance and sorry, if I'm missing something obvious.

With regards,
Wojtek


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



Forcing maven to download sources

2007-03-28 Thread Wojtek Ciesielski

Hi there,

How can I change pom.xml of my project to cause Maven to automatically 
download sources for a particular dependency my project's using? I need 
to setup a source-attachment for this library within eclipse (no, I am 
not using maven plugin and don't intend to do so) in such a way that all 
members of my team do not have to manually DL those sources to their 
local repos.


Thanks in advance and sorry, if I'm missing something obvious.

With regards,
Wojtek



Re: Download Sources

2007-02-15 Thread Tomislav Stojcevich

Try mvn dependency:sources -U, the -U will force the check, if it
already checked once today, it won't check again unless you force it.

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



Re: Download Sources

2007-02-15 Thread gc134728
Thx that seems to fix the resolving issue.

But it doesn't help with the downloading of the sources.
The command succeeds but doesn't download one source package any ideas ???
I think it isn't fully functional this plugin.
It seems to be in alpha status.

> Try -cpu or a -U option with that, maybe that'll trigger the download
> of the maven version.
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
> ---
Scarlet ONE -  Combine ADSL with unlimited fixed phone and save 400 euros
http://www.scarlet.be


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



Re: Download Sources

2007-02-15 Thread Tomislav Stojcevich

Try -cpu or a -U option with that, maybe that'll trigger the download
of the maven version.

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



Re: Download Sources

2007-02-15 Thread gc134728
Well it can't because then he resolves to the depencency-maven-plugin from the
codehaus. which causes a problem because it doesn't contain the sources goal.

Can't seem to fix this? any ideas ?

> You shouldn't need to configure anything in the pom, just do mvn
> dependency:sources
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
> ---
Scarlet ONE -  Combine ADSL with unlimited fixed phone and save 400 euros
http://www.scarlet.be


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



Re: Download Sources

2007-02-15 Thread Donnchadh Ó Donnabháin

Running mvn dependency:sources results in the following error for me

[ERROR] BUILD FAILURE
[INFO] 
[INFO] Required goal not found: dependency:sources

 Donnchadh

On 2/15/07, Tomislav Stojcevich <[EMAIL PROTECTED]> wrote:

You shouldn't need to configure anything in the pom, just do mvn
dependency:sources



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



Re: Download Sources

2007-02-15 Thread Tomislav Stojcevich

You shouldn't need to configure anything in the pom, just do mvn
dependency:sources

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



Re: Download Sources

2007-02-15 Thread gc134728
Hmm i didn't know that it could also map generated-sources as source folders.
This could come in handy.  But that still won't handle all my problems.  I
also have to refer to a couple of projects (on different scm systems) that
aren't maven projects.
Maven would depend on a deployed binary version and in eclipse refer to the
eclipse project. And i know it's a mess but porting it to isn't an option.
Management won't let me cause lots of other teams rely on these projects.
So I would like to spare my team the problem of also mapping these projects
every time dependencies change.  Which is a lot. Since lots of version are
deployed.

So this maven-dependency-plugin seams interesting but i can't get i to work.
It doesn't download any sources.  Anyone have any idea.  I use this 
configuration.

  
org.apache.maven.plugins
maven-dependency-plugin


sources





  

I tried them with these options but no deal. It doesn't work.

  false
  sources
  com.agfa.hap.bpe.basic

Anyone tried this before 

> I also try to limit maven knoledge requirement in my development team.
> We only use [svn checkout] + [mvn eclipse:eclipse] + [import existing
> projects into wrokspace].
> This is the only thing required by developpers to get the project configured
> in eclipse.
> They code/test in eclipse and package all using mvn install from the root
> folder.
>
> I don't really understand your requirement. Eclipse plugin handles generated
> source folders as well as they follow maven conventions
> (target/generated-sources/xxx). I'd suggest to align your build with those
> maven conventions and you will get a fully eclipse compliant project.
>
> Nico.
>
> 2007/2/15, gc134728 <[EMAIL PROTECTED]>:
> >
> > I know but it's not all project that are set to interproject dependencies
> > which causes a problem. It's also the mapping of generated foldes as
> > source
> > folder in eclipse.
> >
> > I'm trying to limit the knowledge people need about maven internals just
> > operational knowledge is required.  We split up the work so everybody can
> > handle jobs retaining to their extensive knowledge. Other persons should
> > just
> > do a checkout from the svn repo, refresh there workspace build and bamm
> > everything is setup.
> >
> > > eclipse:eclipse can handle dependencies with other eclipse projects if
> > it is
> > > ran from the top-level project. It will create .classpath & .project
> > files
> > > for all modules and respect inter-projects dependencies
> > > (see
> > *useProjectReferences<
> >
http://maven.apache.org/plugins/maven-eclipse-plugin/eclipse-mojo.html#useProjectReferences
> > >
> > > *)
> > >
> > > Nico.
> > >
> > > 2007/2/15, gc134728 <[EMAIL PROTECTED]>:
> > > >
> > > > Hey dear maven users,
> > > >
> > > > I got a question.  I have one person in our team that updates the
> > pom.xmland
> > > > creates the .classpath files namely MYSELF.  But i attach sources to
> > our
> > > > own
> > > > project artifacts but i want the other members of our team to get the
> > > > attached
> > > > sources when they download dependencies so they can view it in
> > > > eclipse.  The
> > > > problem is they have to execute the "eclipse:eclipse
> > > > -DdownloadSources=true"
> > > > command.  And this fucks up some .classpath files cause some projects
> > have
> > > > special eclipse project dependencies which i have to set manually.
> > > >
> > > > My question is how can i download the sources with the eclipse:eclipse
> > > > plugin
> > > > without the creation of the .project and .classpath file.  Or is there
> > an
> > > > other way to download the sources?
> > > >
> > > > If there are no ideas i'm gonna tweak the eclipse:eclipse plugin.
> > > >
> > > > Thx for any assitance.---
> > > > Scarlet ONE -  Combine ADSL with unlimited fixed phone and save 400
> > euros
> > > > http://www.scarlet.be
> > > >
> > > >
> > > > -
> > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > >
> > > >
> > >
> > > ---
> > Scarlet ONE -  Combine ADSL with unlimited fixed phone and save 400 euros
> > http://www.scarlet.be
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
> ---
Scarlet ONE -  Combine ADSL with unlimited fixed phone and save 400 euros
http://www.scarlet.be


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



Re: Download Sources

2007-02-15 Thread nicolas de loof

I also try to limit maven knoledge requirement in my development team.
We only use [svn checkout] + [mvn eclipse:eclipse] + [import existing
projects into wrokspace].
This is the only thing required by developpers to get the project configured
in eclipse.
They code/test in eclipse and package all using mvn install from the root
folder.

I don't really understand your requirement. Eclipse plugin handles generated
source folders as well as they follow maven conventions
(target/generated-sources/xxx). I'd suggest to align your build with those
maven conventions and you will get a fully eclipse compliant project.

Nico.

2007/2/15, gc134728 <[EMAIL PROTECTED]>:


I know but it's not all project that are set to interproject dependencies
which causes a problem. It's also the mapping of generated foldes as
source
folder in eclipse.

I'm trying to limit the knowledge people need about maven internals just
operational knowledge is required.  We split up the work so everybody can
handle jobs retaining to their extensive knowledge. Other persons should
just
do a checkout from the svn repo, refresh there workspace build and bamm
everything is setup.

> eclipse:eclipse can handle dependencies with other eclipse projects if
it is
> ran from the top-level project. It will create .classpath & .project
files
> for all modules and respect inter-projects dependencies
> (see
*useProjectReferences<
http://maven.apache.org/plugins/maven-eclipse-plugin/eclipse-mojo.html#useProjectReferences
>
> *)
>
> Nico.
>
> 2007/2/15, gc134728 <[EMAIL PROTECTED]>:
> >
> > Hey dear maven users,
> >
> > I got a question.  I have one person in our team that updates the
pom.xmland
> > creates the .classpath files namely MYSELF.  But i attach sources to
our
> > own
> > project artifacts but i want the other members of our team to get the
> > attached
> > sources when they download dependencies so they can view it in
> > eclipse.  The
> > problem is they have to execute the "eclipse:eclipse
> > -DdownloadSources=true"
> > command.  And this fucks up some .classpath files cause some projects
have
> > special eclipse project dependencies which i have to set manually.
> >
> > My question is how can i download the sources with the eclipse:eclipse
> > plugin
> > without the creation of the .project and .classpath file.  Or is there
an
> > other way to download the sources?
> >
> > If there are no ideas i'm gonna tweak the eclipse:eclipse plugin.
> >
> > Thx for any assitance.---
> > Scarlet ONE -  Combine ADSL with unlimited fixed phone and save 400
euros
> > http://www.scarlet.be
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
> ---
Scarlet ONE -  Combine ADSL with unlimited fixed phone and save 400 euros
http://www.scarlet.be


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




Re: Download Sources

2007-02-15 Thread Tom Huybrechts

http://maven.apache.org/plugins/maven-dependency-plugin/sources-mojo.html

On 2/15/07, gc134728 <[EMAIL PROTECTED]> wrote:

I know but it's not all project that are set to interproject dependencies
which causes a problem. It's also the mapping of generated foldes as source
folder in eclipse.

I'm trying to limit the knowledge people need about maven internals just
operational knowledge is required.  We split up the work so everybody can
handle jobs retaining to their extensive knowledge. Other persons should just
do a checkout from the svn repo, refresh there workspace build and bamm
everything is setup.

> eclipse:eclipse can handle dependencies with other eclipse projects if it is
> ran from the top-level project. It will create .classpath & .project files
> for all modules and respect inter-projects dependencies
> (see
*useProjectReferences
> *)
>
> Nico.
>
> 2007/2/15, gc134728 <[EMAIL PROTECTED]>:
> >
> > Hey dear maven users,
> >
> > I got a question.  I have one person in our team that updates the pom.xmland
> > creates the .classpath files namely MYSELF.  But i attach sources to our
> > own
> > project artifacts but i want the other members of our team to get the
> > attached
> > sources when they download dependencies so they can view it in
> > eclipse.  The
> > problem is they have to execute the "eclipse:eclipse
> > -DdownloadSources=true"
> > command.  And this fucks up some .classpath files cause some projects have
> > special eclipse project dependencies which i have to set manually.
> >
> > My question is how can i download the sources with the eclipse:eclipse
> > plugin
> > without the creation of the .project and .classpath file.  Or is there an
> > other way to download the sources?
> >
> > If there are no ideas i'm gonna tweak the eclipse:eclipse plugin.
> >
> > Thx for any assitance.---
> > Scarlet ONE -  Combine ADSL with unlimited fixed phone and save 400 euros
> > http://www.scarlet.be
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
> ---
Scarlet ONE -  Combine ADSL with unlimited fixed phone and save 400 euros
http://www.scarlet.be


-
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: Download Sources

2007-02-15 Thread gc134728
I know but it's not all project that are set to interproject dependencies
which causes a problem. It's also the mapping of generated foldes as source
folder in eclipse.

I'm trying to limit the knowledge people need about maven internals just
operational knowledge is required.  We split up the work so everybody can
handle jobs retaining to their extensive knowledge. Other persons should just
do a checkout from the svn repo, refresh there workspace build and bamm
everything is setup.

> eclipse:eclipse can handle dependencies with other eclipse projects if it is
> ran from the top-level project. It will create .classpath & .project files
> for all modules and respect inter-projects dependencies
> (see
*useProjectReferences
> *)
>
> Nico.
>
> 2007/2/15, gc134728 <[EMAIL PROTECTED]>:
> >
> > Hey dear maven users,
> >
> > I got a question.  I have one person in our team that updates the pom.xmland
> > creates the .classpath files namely MYSELF.  But i attach sources to our
> > own
> > project artifacts but i want the other members of our team to get the
> > attached
> > sources when they download dependencies so they can view it in
> > eclipse.  The
> > problem is they have to execute the "eclipse:eclipse
> > -DdownloadSources=true"
> > command.  And this fucks up some .classpath files cause some projects have
> > special eclipse project dependencies which i have to set manually.
> >
> > My question is how can i download the sources with the eclipse:eclipse
> > plugin
> > without the creation of the .project and .classpath file.  Or is there an
> > other way to download the sources?
> >
> > If there are no ideas i'm gonna tweak the eclipse:eclipse plugin.
> >
> > Thx for any assitance.---
> > Scarlet ONE -  Combine ADSL with unlimited fixed phone and save 400 euros
> > http://www.scarlet.be
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
> ---
Scarlet ONE -  Combine ADSL with unlimited fixed phone and save 400 euros
http://www.scarlet.be


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



Re: Download Sources

2007-02-15 Thread nicolas de loof

eclipse:eclipse can handle dependencies with other eclipse projects if it is
ran from the top-level project. It will create .classpath & .project files
for all modules and respect inter-projects dependencies
(see 
*useProjectReferences
*)

Nico.

2007/2/15, gc134728 <[EMAIL PROTECTED]>:


Hey dear maven users,

I got a question.  I have one person in our team that updates the pom.xmland
creates the .classpath files namely MYSELF.  But i attach sources to our
own
project artifacts but i want the other members of our team to get the
attached
sources when they download dependencies so they can view it in
eclipse.  The
problem is they have to execute the "eclipse:eclipse
-DdownloadSources=true"
command.  And this fucks up some .classpath files cause some projects have
special eclipse project dependencies which i have to set manually.

My question is how can i download the sources with the eclipse:eclipse
plugin
without the creation of the .project and .classpath file.  Or is there an
other way to download the sources?

If there are no ideas i'm gonna tweak the eclipse:eclipse plugin.

Thx for any assitance.---
Scarlet ONE -  Combine ADSL with unlimited fixed phone and save 400 euros
http://www.scarlet.be


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




Download Sources

2007-02-15 Thread gc134728
Hey dear maven users,

I got a question.  I have one person in our team that updates the pom.xml and
creates the .classpath files namely MYSELF.  But i attach sources to our own
project artifacts but i want the other members of our team to get the attached
sources when they download dependencies so they can view it in eclipse.  The
problem is they have to execute the "eclipse:eclipse -DdownloadSources=true"
command.  And this fucks up some .classpath files cause some projects have
special eclipse project dependencies which i have to set manually.

My question is how can i download the sources with the eclipse:eclipse plugin
without the creation of the .project and .classpath file.  Or is there an
other way to download the sources?

If there are no ideas i'm gonna tweak the eclipse:eclipse plugin.

Thx for any assitance.---
Scarlet ONE -  Combine ADSL with unlimited fixed phone and save 400 euros
http://www.scarlet.be


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



Re: Howto Tell maven2 to also download sources

2006-10-25 Thread n2


Erick Dovale wrote:
> 
> For the eclipse plugin you have to pass in -DdownloadSource=true to the 
> plugin and they will get downloaded and linked.
> 

The property is -DdownloadSources=true not -DdownloadSource=true
-- 
View this message in context: 
http://www.nabble.com/Howto-Tell-maven2-to-also-download-sources-tf1344787.html#a6990496
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: [m2] download sources to local repo

2006-05-10 Thread Alexandre Poitras

There may be a bug because the type element imply a new classifier type.
Anyway, Im glad it helped.

On 5/10/06, delasoul <[EMAIL PROTECTED]> wrote:



Thank you for your reply.
I had to add both - the source and the normal jar dependency plus I had to
add
 sources
to the source dependency - instead of the   element.
With the  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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: [m2] download sources to local repo

2006-05-09 Thread delasoul

Thank you for your reply.
I had to add both - the source and the normal jar dependency plus I had to
add 
 sources
to the source dependency - instead of the   element.
With the  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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [m2] download sources to local repo

2006-05-09 Thread Roald Bankras
Hi

Alas, the jar does not include the binaries. So you have to add both the jars. 
Three if you also want the javadoc available. Futhermore, all jars will 
automatically be packaged into a war file, which is something I don't like. Is 
there an easy way to exclude the source/javadoc jars from your final package?
Finally I haven't been able to make the idea-plugin setup the classpath 
correctly for the modules. Instead of adding the source-jar as source to the 
binary jar, it adds it as just another jar. Does anybody know how the handle 
this?
Any help is appreciated.

Roald Bankras
Software Engineer
JTeam b.v.

-Original Message-
From: Alexandre Poitras [mailto:[EMAIL PROTECTED] 
Sent: Monday, May 08, 2006 10:25 PM
To: Maven Users List
Subject: Re: [m2] download sources to local repo

Add this to your dependency :
java-source

*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 <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.392 / Virus Database: 268.5.5/333 - Release Date: 5/5/2006
 

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.392 / Virus Database: 268.5.5/333 - Release Date: 5/5/2006
 

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



Re: [m2] download sources to local repo

2006-05-08 Thread Alexandre Poitras

Add this to your dependency :
java-source

*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 <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




[m2] download sources to local repo

2006-05-08 Thread delasoul

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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Howto Tell maven2 to also download sources

2006-03-26 Thread Erick Dovale
For the eclipse plugin you have to pass in -DdownloadSource=true to the 
plugin and they will get downloaded and linked.
For the idea plugin I can't tell as the documentation does not state it. 
I would recommend that you first try passing -DdownloadSources to the 
idea plugin and if it doe snot work then get the code from svn and find 
out if it has the capacility and, if it does, what is the name of the 
property to use for this.


I hope it helps.

cheers,

erick

Stephen Duncan wrote:


Yes, the eclipse plugin downloads the sources and links them within
Eclipse.  To get them downloaded, you could probably run mvn
eclipse:eclipse eclipse:clean

-Stephen

On 3/26/06, Christian Cabanero <[EMAIL PROTECTED]> wrote:
 


How do you ask Mavne2 to also download the sources if the artifact's sources
are also in the repository?  I have it properly downloading the jars but
often I see something like easymock-2.0-sources.jar and would like to have
them downloaded automatically.

On a related note, once I've got the sources, i'd really like it if "mvn
idea:idea" would generate an IntelliJ project file that also had the sources
hooked up to the jar modules.  That would be slick.  I heard that the maven2
eclipse plug-in does this and I'm jealous.  ;-)

Thanks,
Christian


   




--
Stephen Duncan Jr
www.stephenduncanjr.com

-
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: Howto Tell maven2 to also download sources

2006-03-26 Thread Stephen Duncan
Yes, the eclipse plugin downloads the sources and links them within
Eclipse.  To get them downloaded, you could probably run mvn
eclipse:eclipse eclipse:clean

-Stephen

On 3/26/06, Christian Cabanero <[EMAIL PROTECTED]> wrote:
> How do you ask Mavne2 to also download the sources if the artifact's sources
> are also in the repository?  I have it properly downloading the jars but
> often I see something like easymock-2.0-sources.jar and would like to have
> them downloaded automatically.
>
> On a related note, once I've got the sources, i'd really like it if "mvn
> idea:idea" would generate an IntelliJ project file that also had the sources
> hooked up to the jar modules.  That would be slick.  I heard that the maven2
> eclipse plug-in does this and I'm jealous.  ;-)
>
> Thanks,
> Christian
>
>


--
Stephen Duncan Jr
www.stephenduncanjr.com

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



Howto Tell maven2 to also download sources

2006-03-26 Thread Christian Cabanero
How do you ask Mavne2 to also download the sources if the artifact's sources
are also in the repository?  I have it properly downloading the jars but
often I see something like easymock-2.0-sources.jar and would like to have
them downloaded automatically.

On a related note, once I've got the sources, i'd really like it if "mvn
idea:idea" would generate an IntelliJ project file that also had the sources
hooked up to the jar modules.  That would be slick.  I heard that the maven2
eclipse plug-in does this and I'm jealous.  ;-)

Thanks,
Christian


Re: [M2] Is there a way to automatically download sources for plugins?

2006-03-24 Thread Wayne Fay
This will only work if the plugins have sources loaded in the ibiblio
repo. You can check yourself by going to:
http://www.ibiblio.org/maven2//...///

Plugins are generally under group org.apache.maven.plugins.

You can download source files by adding the following dependency to
your pom.xml:





sources


You can pull down the javadoc with:
javadoc

There's probably a better/easier way but this should work, again,
assuming the sources have been uploaded into the repo in the first
place. Otherwise you'll need to pull sources from SVN yourself.

Wayne


On 3/24/06, Szczepan Faber <[EMAIL PROTECTED]> wrote:
> Is there a way to automatically download sources for plugins?
>
> E.g. When I type 'mvn compile' the maven-compiler-plugin is
> automatically downloaded into local repository. Where can I find
> sources for that? (Yes, I know I can look at
> http://maven.apache.org/plugins/maven-compiler-plugin/source-repository.html
> and checkout...) Can I set maven to download plugins with sources?
>
> Thanks,
> Szczepan
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


[M2] Is there a way to automatically download sources for plugins?

2006-03-24 Thread Szczepan Faber
Is there a way to automatically download sources for plugins?

E.g. When I type 'mvn compile' the maven-compiler-plugin is
automatically downloaded into local repository. Where can I find
sources for that? (Yes, I know I can look at
http://maven.apache.org/plugins/maven-compiler-plugin/source-repository.html
and checkout...) Can I set maven to download plugins with sources?

Thanks,
Szczepan

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



[eclipse:eclipse] download sources just works for the first time

2006-01-15 Thread Rice Yeh
Hi,
  I find that the "downloadSources" parameter in eclipse:eclipse plugin only
works for the first time download for a jar. The problem seems because the
source path for the jar is not added in eclipse if this source has been
donwloaded before.

Regards,
Rice


RE: [M1] eclipse plugin: how to download sources?

2005-05-06 Thread Stéphane Nicoll


-Original Message-
From: Ralph Pöllath [mailto:[EMAIL PROTECTED] 


On 06.05.2005, at 15:36, David Jackman wrote:
> I didn't know that.  Do you know if there's also a way for it to
> figure out a JavaDoc reference (either downloading a zip or some  
> other way)?

> I've never seen this documented, 

Well, check the home page: http://maven.apache.org/reference/plugins/eclipse/ 
see 'Source Code Integration w/ Eclipse'

Cheers,
Stéphane

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



Re: [M1] eclipse plugin: how to download sources?

2005-05-06 Thread Ralph Pöllath
On 06.05.2005, at 15:14, Stéphane Nicoll wrote:
This has not been added to the plugin itself and I wonder why.
See http://jira.codehaus.org/browse/MPECLIPSE-60 for a patch (it  
does not handle snapshot!)
Thanks Stéphane, works like a charm (I don't need snapshots at this  
point)!

This functionality should really be added to the plugin.
Cheers,
-Ralph.
-Original Message-
From: Ralph Pöllath [mailto:[EMAIL PROTECTED]
Sent: Friday, May 06, 2005 3:07 PM
To: Maven Users List
Subject: [M1] eclipse plugin: how to download sourc
Hi,
I just noticed that the eclipse plugin will add sourcepath-entries to
the generated .classpath file for zip files found in the local repo
(e.g.  ~/.maven/repository/springframework/src//spring-1.1.5.zip).
Now how do I get them in place? I wouldn't mind dropping them into my
own remote repository, but I can't get them to be downloaded.
Cheers,
-Ralph.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: [M1] eclipse plugin: how to download sources?

2005-05-06 Thread Ralph Pöllath
On 06.05.2005, at 15:36, David Jackman wrote:
I didn't know that.  Do you know if there's also a way for it to  
figure out a JavaDoc reference (either downloading a zip or some  
other way)?
I've never seen this documented, but found it in the source:
http://cvs.apache.org/viewcvs.cgi/maven/maven-1/plugins/trunk/eclipse/ 
plugin.jelly?root=Apache-SVN&rev=126755&view=markup

JavaDoc references seem not to be supported, but could be added using  
the very same mechanism, I guess.

I just noticed that the eclipse plugin will add sourcepath-entries  
to the generated .classpath file for zip files found in the local  
repo (e.g.  ~/.maven/repository/springframework/src// 
spring-1.1.5.zip).

Now how do I get them in place? I wouldn't mind dropping them into  
my own remote repository, but I can't get them to be downloaded.
Cheers,
-Ralph.

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


RE: [M1] eclipse plugin: how to download sources?

2005-05-06 Thread Stéphane Nicoll
This has not been added to the plugin itself and I wonder why. 

See http://jira.codehaus.org/browse/MPECLIPSE-60 for a patch (it does not 
handle snapshot!)

Cheers,
Stéphane

-Original Message-
From: Ralph Pöllath [mailto:[EMAIL PROTECTED] 
Sent: Friday, May 06, 2005 3:07 PM
To: Maven Users List
Subject: [M1] eclipse plugin: how to download sources?


Hi,

I just noticed that the eclipse plugin will add sourcepath-entries to  
the generated .classpath file for zip files found in the local repo  
(e.g.  ~/.maven/repository/springframework/src//spring-1.1.5.zip).

Now how do I get them in place? I wouldn't mind dropping them into my  
own remote repository, but I can't get them to be downloaded.

Cheers,
-Ralph.




-
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: [M1] eclipse plugin: how to download sources?

2005-05-06 Thread David Jackman
I didn't know that.  Do you know if there's also a way for it to figure out a 
JavaDoc reference (either downloading a zip or some other way)? 

-Original Message-
From: Ralph Pöllath [mailto:[EMAIL PROTECTED] 
Sent: Friday, May 06, 2005 7:07 AM
To: Maven Users List
Subject: [M1] eclipse plugin: how to download sources?

Hi,

I just noticed that the eclipse plugin will add sourcepath-entries to the 
generated .classpath file for zip files found in the local repo (e.g.  
~/.maven/repository/springframework/src//spring-1.1.5.zip).

Now how do I get them in place? I wouldn't mind dropping them into my own 
remote repository, but I can't get them to be downloaded.

Cheers,
-Ralph.




-
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]



[M1] eclipse plugin: how to download sources?

2005-05-06 Thread Ralph Pöllath
Hi,
I just noticed that the eclipse plugin will add sourcepath-entries to  
the generated .classpath file for zip files found in the local repo  
(e.g.  ~/.maven/repository/springframework/src//spring-1.1.5.zip).

Now how do I get them in place? I wouldn't mind dropping them into my  
own remote repository, but I can't get them to be downloaded.

Cheers,
-Ralph.

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