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]

Reply via email to