You should be able to do this with the plugin I wrote. The zip is here:
http://jira.codehaus.org/browse/MOJO-173

Download the code and build the site, it has pages to tell how it works.
In a nutshell, you can retrieve artifacts from the repo and copy or
explode them. This works separate from the normal dependancy list.

If it works and you like it, maybe leave a comment in the jira so we can
get it added to the mojo project.
 

-----Original Message-----
From: Christian Schulte [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, December 06, 2005 11:48 AM
To: Maven Users List
Subject: Re: [m2] Downloading source-code jar files ?

Jochen Wiedmann schrieb:

> Henry Isidro wrote:
>
>> Try this:
>>
>> <dependencies>
>>   <dependency>
>>     <groupId>junit</groupId>
>>     <artifactId>junit</artifactId>
>>     <version>3.8.1-sources</version>
>>     <type>jar</type>
>>     <scope>provided</scope>
>>   </dependency>
>> </dependencies>
>
>
> If you are using the Eclipse plugin, then a more simple trick is 
> addding the following to the pom's plugins section. It doesn't depend 
> on a certain jar file.
>
>       <plugin>
>         <groupId>org.apache.maven.plugins</groupId>
>         <artifactId>maven-eclipse-plugin</artifactId>
>         <configuration>
>           <downloadSources>true</downloadSources>
>         </configuration>
>       </plugin>


Hi,

the problem I am having is that I cannot use the eclipse plugin and need
maven to download the source-jars somehow. Currently I am doing it like

<dependency>
  <groupId>someGroupId</groupId>
  <artifactId>someArtifactId</artifactId>
  <classifier>sources</classifier>
  <scope>provided</scope>
</dependency>

but this seems to be incorrect since the sources will be added to the
various classpaths. Is it possible to just download the jars without
putting them in some classpath ?

--
Christian


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

Reply via email to