Add dependency mechanism to eclipse project.
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@113285 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
1 parent
f80a98ec12
commit
bd18a72612
3 files changed
+38
-4
No files matched your search
+18
-2
@@ -26,6 +26,13 @@
|
||||
<name>${pom.artifactId}</name>
|
||||
<comment>${pom.description}</comment>
|
||||
<projects>
|
||||
<j:forEach var="lib" items="${pom.artifacts}">
|
||||
<j:set var="eclipseDependency"
|
||||
value="${lib.dependency.getProperty('eclipse.dependency')}"/>
|
||||
<j:if test="${eclipseDependency == 'true'}">
|
||||
<project>${lib.dependency.artifactId}</project>
|
||||
</j:if>
|
||||
</j:forEach>
|
||||
</projects>
|
||||
<buildSpec>
|
||||
<buildCommand>
|
||||
@@ -48,7 +55,7 @@
|
||||
|
||||
<j:set var="outputDir" value="${maven.eclipse.output.dir}"/>
|
||||
<j:if test="${empty outputDir}">
|
||||
<j:set var="outputDir" value="target\classes"/>
|
||||
<j:set var="outputDir" value="target/classes"/>
|
||||
</j:if>
|
||||
|
||||
<j:file name="${basedir}/.classpath" prettyPrint="true" xmlns="dummy">
|
||||
@@ -89,7 +96,16 @@
|
||||
|
||||
<classpathentry kind="var" path="JRE_LIB" rootpath="JRE_SRCROOT" sourcepath="JRE_SRC"/>
|
||||
<j:forEach var="lib" items="${pom.artifacts}">
|
||||
<classpathentry kind="var" path="MAVEN_REPO${lib.urlPath}"/>
|
||||
<j:set var="eclipseDependency"
|
||||
value="${lib.dependency.getProperty('eclipse.dependency')}"/>
|
||||
<j:choose>
|
||||
<j:when test="${eclipseDependency == 'true'}">
|
||||
<classpathentry kind="src" path="/${lib.dependency.artifactId}"/>
|
||||
</j:when>
|
||||
<j:otherwise>
|
||||
<classpathentry kind="var" path="MAVEN_REPO${lib.urlPath}"/>
|
||||
</j:otherwise>
|
||||
</j:choose>
|
||||
</j:forEach>
|
||||
<classpathentry kind="output" path="${outputDir}"/>
|
||||
</classpath>
|
||||
|
||||
+10
-1
@@ -5,7 +5,7 @@
|
||||
<pomVersion>3</pomVersion>
|
||||
<id>maven-eclipse-plugin</id>
|
||||
<name>Maven Eclipse Plug-in</name>
|
||||
<currentVersion>1.2</currentVersion>
|
||||
<currentVersion>1.3-SNAPSHOT</currentVersion>
|
||||
<description>A plugin to generate various files for the Eclipse IDE and ease the use of Maven within that environment</description>
|
||||
<shortDescription>Eclipse Plugin for Maven</shortDescription>
|
||||
<url>http://maven.apache.org/reference/plugins/eclipse/</url>
|
||||
@@ -36,5 +36,14 @@
|
||||
<role>Java Developer</role>
|
||||
</roles>
|
||||
</developer>
|
||||
<developer>
|
||||
<name>Emmanuel Venisse</name>
|
||||
<id>evenisse</id>
|
||||
<email>evenisse@ifrance.com</email>
|
||||
<organization>Fi System</organization>
|
||||
<roles>
|
||||
<role>Java Developer</role>
|
||||
</roles>
|
||||
</developer>
|
||||
</developers>
|
||||
</project>
|
||||
@@ -6,7 +6,16 @@
|
||||
</properties>
|
||||
|
||||
<body>
|
||||
<release version="1.2" date="in CVS">
|
||||
<release version="1.3" date="In CVS">
|
||||
<action dev="evenisse" type="add">
|
||||
Added dependency functionality between projects
|
||||
</action>
|
||||
<action dev="bwalding" type="update">
|
||||
Split eclispe goal in two goals : eclipse:generate-project
|
||||
and eclipse:generate-classpath
|
||||
</action>
|
||||
</release>
|
||||
<release version="1.2" date="Unknown">
|
||||
<action dev="dion" type="add">
|
||||
Added more documentation
|
||||
</action>
|
||||
|
||||
Reference in new issue
Block a user