On 06.01.2006, at 10:20, Valerio Schiavoni wrote:
i have a multimodule project (actually, 2 modules). I wanted to have sources
of dependency jar to be usable within eclipse, so I issued:
mvn -Declipse.downloadSources=true eclipse:eclipse

it created .classpath and .project for both modules, and in my local
repository it downloaded sources: problem is I don't know how to access them
within eclipse (3.1, linux).

i have installed m2 plugin.

any pointer is appreciated.

Works fine here by configuring the maven eclipse plugin in pom.xml:

    <build>
        <pluginManagement>
            <plugins>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-eclipse-plugin</artifactId>
                    <version>2.0</version>
                    <configuration>
                        <downloadSources>true</downloadSources>
                    </configuration>
                </plugin>
            </plugins>
        </pluginManagement>
    </build>

Make sure the generated .classpath actually contains sourcepath attributes, like this:

<classpathentry kind="var" path="M2_REPO/javax/servlet/servlet-api/ 2.4/servlet-api-2.4.jar" sourcepath="M2_REPO/javax/servlet/servlet- api/2.4/servlet-api-2.4-sources.jar"/>

Cheers,
-Ralph.


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

Reply via email to