You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by ev...@apache.org on 2003/04/08 14:19:26 UTC

cvs commit: maven/src/plugins-build/eclipse/xdocs changes.xml

evenisse    2003/04/08 05:19:26

  Modified:    src/plugins-build/eclipse plugin.jelly project.xml
               src/plugins-build/eclipse/xdocs changes.xml
  Log:
  Add dependency mechanism to eclipse project.
  
  Revision  Changes    Path
  1.12      +18 -2     maven/src/plugins-build/eclipse/plugin.jelly
  
  Index: plugin.jelly
  ===================================================================
  RCS file: /home/cvs/maven/src/plugins-build/eclipse/plugin.jelly,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- plugin.jelly	8 Apr 2003 08:32:23 -0000	1.11
  +++ plugin.jelly	8 Apr 2003 12:19:25 -0000	1.12
  @@ -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>
  
  
  
  1.9       +10 -1     maven/src/plugins-build/eclipse/project.xml
  
  Index: project.xml
  ===================================================================
  RCS file: /home/cvs/maven/src/plugins-build/eclipse/project.xml,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- project.xml	19 Mar 2003 05:36:10 -0000	1.8
  +++ project.xml	8 Apr 2003 12:19:25 -0000	1.9
  @@ -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>
  @@ -32,6 +32,15 @@
         <id>dion</id>
         <email>dion@multitask.com.au</email>
         <organization>Multitask Consulting</organization>
  +      <roles>
  +        <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>
  
  
  
  1.2       +10 -1     maven/src/plugins-build/eclipse/xdocs/changes.xml
  
  Index: changes.xml
  ===================================================================
  RCS file: /home/cvs/maven/src/plugins-build/eclipse/xdocs/changes.xml,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- changes.xml	24 Jan 2003 03:45:09 -0000	1.1
  +++ changes.xml	8 Apr 2003 12:19:25 -0000	1.2
  @@ -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>
  
  
  

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


POM (WAS cvs commit: maven/src/plugins-build/eclipse/xdocs changes.xml)

Posted by "michal.maczka" <mi...@cqs.ch>.
I don't understand one thing:

Jason is trying to implement a pratice, that in a POM there is no plugin
specific
information (see the thread: "Why no multiple locations of sources" from
Maven User Group).

While some other places in the POM are getting "polutted" with plugin
specific information.
Someody can explain me what's the common direction then?

I think Jason is right. But it seems that  his vision about POM is not
"implementable".
Or maybe this is just one of those "extension" points which are allowed?


BTW: Why we need "eclipse.dependency" property?
I don't get it. What's the purpose of it? Can I have dependecy in Maven,
which I don't want to see
in Eclipse? Can I see example of such dependency?
It is painful to mark all dependiecise in this way. I would rather exclude
then, then include.



Michal


> -----Original Message-----
> From: evenisse@apache.org [mailto:evenisse@apache.org]
> Sent: Tuesday, April 08, 2003 2:19 PM
> To: maven-cvs@apache.org
> Subject: cvs commit: maven/src/plugins-build/eclipse/xdocs changes.xml
>
>
> evenisse    2003/04/08 05:19:26
>
>   Modified:    src/plugins-build/eclipse plugin.jelly project.xml
>                src/plugins-build/eclipse/xdocs changes.xml
>   Log:
>   Add dependency mechanism to eclipse project.
>
>   Revision  Changes    Path
>   1.12      +18 -2     maven/src/plugins-build/eclipse/plugin.jelly
>
>   Index: plugin.jelly
>   ===================================================================
>   RCS file: /home/cvs/maven/src/plugins-build/eclipse/plugin.jelly,v
>   retrieving revision 1.11
>   retrieving revision 1.12
>   diff -u -r1.11 -r1.12
>   --- plugin.jelly	8 Apr 2003 08:32:23 -0000	1.11
>   +++ plugin.jelly	8 Apr 2003 12:19:25 -0000	1.12
>   @@ -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>
>
>
>
>   1.9       +10 -1     maven/src/plugins-build/eclipse/project.xml
>
>   Index: project.xml
>   ===================================================================
>   RCS file: /home/cvs/maven/src/plugins-build/eclipse/project.xml,v
>   retrieving revision 1.8
>   retrieving revision 1.9
>   diff -u -r1.8 -r1.9
>   --- project.xml	19 Mar 2003 05:36:10 -0000	1.8
>   +++ project.xml	8 Apr 2003 12:19:25 -0000	1.9
>   @@ -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>
>   @@ -32,6 +32,15 @@
>          <id>dion</id>
>          <email>dion@multitask.com.au</email>
>          <organization>Multitask Consulting</organization>
>   +      <roles>
>   +        <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>
>
>
>
>   1.2       +10 -1     maven/src/plugins-build/eclipse/xdocs/changes.xml
>
>   Index: changes.xml
>   ===================================================================
>   RCS file: /home/cvs/maven/src/plugins-build/eclipse/xdocs/changes.xml,v
>   retrieving revision 1.1
>   retrieving revision 1.2
>   diff -u -r1.1 -r1.2
>   --- changes.xml	24 Jan 2003 03:45:09 -0000	1.1
>   +++ changes.xml	8 Apr 2003 12:19:25 -0000	1.2
>   @@ -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>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
>


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