You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Fr...@KabelDeutschland.de on 2006/08/07 09:17:58 UTC

[m2] eclipse attached sources for snapshot builds

Hey,
if i have released an artifact, so there is a ...sources.jar in my releaseRepository that will be downloaded in my local repository. The goal eclipse:eclipse add's this jar as attached Source to the eclipse build path.

But if I install a snapshot, the sources wont't be in the eclipse build path.

Is there any solution for this problem? Has somebody the same problem?

Fredy
 

Kabel Deutschland bietet Ihnen Internet, Telefonieren und Fernsehen aus einer Hand. Informieren Sie sich über unsere Produkte unter 

www.kabeldeutschland.de
 
Diese E-Mail und etwaige Anhänge enthalten vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind, benachrichtigen Sie bitte den Absender und vernichten Sie anschließend diese Mail und die Anlagen.


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


Re: [m2] eclipse attached sources for snapshot builds

Posted by Barrie Treloar <ba...@gmail.com>.
On 8/7/06, Fred.Hauschel@kabeldeutschland.de
<Fr...@kabeldeutschland.de> wrote:
> Hey,
> if i have released an artifact, so there is a ...sources.jar in my releaseRepository that will be downloaded in my local repository. The goal eclipse:eclipse add's this jar as attached Source to the eclipse build path.
>
> But if I install a snapshot, the sources wont't be in the eclipse build path.
>
> Is there any solution for this problem? Has somebody the same problem?

I use the following in the pluginManagement section, which will create
source jars for my code and test classes as well as create a jar
containing my test code.

      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-source-plugin</artifactId>
        <executions>
          <execution>
            <goals>
              <goal>jar</goal>
              <goal>test-jar</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
    </plugins>
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-jar-plugin</artifactId>
          <configuration>
            <archive>
              <manifestEntries>
                <Class-Path>config/</Class-Path>
              </manifestEntries>
              <manifest>
                <addClasspath>true</addClasspath>
              </manifest>
            </archive>
          </configuration>
          <executions>
            <execution>
              <goals>
                <goal>test-jar</goal>
              </goals>
            </execution>
          </executions>
        </plugin>
      </plugins>
    <pluginManagement>

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