Re: maven 2.0.6 and xdoclet-maven-plugin

2007-04-05 Thread nicolas de loof

Why don't we get a dependency failure if maven cannot built the expected
classpath ?


2007/4/4, Jörg Schaible [EMAIL PROTECTED]:


nicolas de loof wrote on Wednesday, April 04, 2007 5:24 PM:

 I got the same issue.
 xdoclet plugin requires some ant classes. Maven 2.0.6 seems
 to make changes
 in plugins classpath and you have to add a dependency to the plugin :

 plugin
 artifactIdxdoclet-maven-plugin/artifactId
 groupIdorg.codehaus.mojo/groupId
 executions execution
 idxdoclet/id
 phasegenerate-resources/phase
 goals
 goalxdoclet/goal
 /goals
 /execution
 /executions
 configuration
 tasks
 hibernatedoclet
 destdir=${project.build.outputDirectory}
 mergeDir=${basedir}/src/main/merge
 fileset dir=${basedir}/src/main/java
 includes=**/domain/*.java /
 hibernate version=3.0 /
 /hibernatedoclet
 /tasks
 /configuration
 dependencies
 dependency
 groupIdant/groupId
 artifactIdant/artifactId
 version1.6.5/version
 /dependency
 /dependencies
 /plugin

However, the origin of this problem is the dependency on the antrun
plugin, that is referenced in the plugin's deps as jar...

- Jörg

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




RE: maven 2.0.6 and xdoclet-maven-plugin

2007-04-05 Thread Jörg Schaible
nicolas de loof wrote on Thursday, April 05, 2007 9:20 AM:

 Why don't we get a dependency failure if maven cannot built the
 expected classpath ?

It can, but with different versions. The xdoclet plugin itself does not declare 
any dep to ant, so it is inherited. The problem is, that the used 
maven-antrun-plugin declares a dep to ant and ant-launcher, while the used 
xdoclet:xjavadoc artifact declares a dep on ant only. Obviously is 
ant:ant-launcher:1.6.5 used in the antrun plugin not compatible to 
ant:ant:1.5.1 used in xjavadoc... and I have no idea if there are more 
transitive deps to ant in all those declared deps of the xdoclet plugin.

M206 has changed the sequence of the dep resolution and it does not have an 
idea that ant and ant-launcher are related ... since ant:ant-launcher:1.6.5 has 
a converted POM without any deps. So it worked formerly simply by chance.

Welcome to dependency hell :)

- Jörg

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



Re: maven 2.0.6 and xdoclet-maven-plugin

2007-04-05 Thread Yuri Schimke

I got the same issue and raised a jira issue

http://jira.codehaus.org/browse/MNG-2917

But I managed to solve it by re-deploying the maven plugins to our internal
repository with patched poms and different version names.  We need to do
this anyway to use the xjavadoc supporting Java 1.5

This plugin seems effectively dead, and particularly because there is no
official support for Java 1.5


Przemyslaw Madzik wrote:
 
 Hello,
 
 I have problem with maven 2.0.6 and xdoclet-maven-plugin (1.0-alpha-2).
 
 After creating simple project (mvn archetype:create
 -DgroupId=com.mycompany.app -DartifactId=my-app)
 and adding following section to pom.xml:
 
 build
 plugins
 plugin
 groupIdorg.codehaus.mojo/groupId
 artifactIdxdoclet-maven-plugin/artifactId
 version1.0-alpha-2/version
 executions
 execution
 phasegenerate-sources/phase
 goals
 goalxdoclet/goal
 /goals
 configuration
 tasks
 echo
 Hello world!
 /echo
 /tasks
 /configuration
 /execution
 /executions
 /plugin
 /plugins
 /build
 
 i get this output (mvn generate-sources):
 
 [INFO] Scanning for projects...
 [INFO]
 
 [INFO] Building my-app
 [INFO]task-segment: [generate-sources]
 [INFO]
 
 [WARNING] While downloading servletapi:servletapi:2.3
   This artifact has been relocated to javax.servlet:servlet-api:2.3.
 
 
 -
 this realm = app0.child-container[org.codehaus.mojo:xdoclet-maven-plugin]
 urls[0] = file:/C:/Documents and
 Settings/pmadzik/.m2/repository/org/codehaus/mojo/xdoclet-maven-plugin/1.0-alpha-2/xdoclet-maven-plugin-1.0-alpha-2.jar
 urls[1] = file:/C:/Documents and
 Settings/pmadzik/.m2/repository/xdoclet/xdoclet-wsee-module/1.2.3/xdoclet-wsee-module-1.2.3.jar
 urls[2] = file:/C:/Documents and
 Settings/pmadzik/.m2/repository/xdoclet/xdoclet-jboss-module/1.2.3/xdoclet-jboss-module-1.2.3.jar
 urls[3] = file:/C:/Documents and
 Settings/pmadzik/.m2/repository/junit/junit/3.8.1/junit-3.8.1.jar
 urls[4] = file:/C:/Documents and
 Settings/pmadzik/.m2/repository/xdoclet/xdoclet-orion-module/1.2.3/xdoclet-orion-module-1.2.3.jar
 urls[5] = file:/C:/Documents and
 Settings/pmadzik/.m2/repository/xdoclet/xdoclet-xdoclet-module/1.2.3/xdoclet-xdoclet-module-1.2.3.jar
 urls[6] = file:/C:/Documents and
 Settings/pmadzik/.m2/repository/xdoclet/xdoclet-ibm-module/1.2.3/xdoclet-ibm-module-1.2.3.jar
 urls[7] = file:/C:/Documents and
 Settings/pmadzik/.m2/repository/xdoclet/xdoclet-jmx-module/1.2.3/xdoclet-jmx-module-1.2.3.jar
 urls[8] = file:/C:/Documents and
 Settings/pmadzik/.m2/repository/commons-logging/commons-logging/1.0.4/commons-logging-1.0.4.jar
 urls[9] = file:/C:/Documents and
 Settings/pmadzik/.m2/repository/commons-collections/commons-collections/2.1/commons-collections-2.1.jar
 urls[10] = file:/C:/Documents and
 Settings/pmadzik/.m2/repository/ant/ant/1.5.2/ant-1.5.2.jar
 urls[11] = file:/C:/Documents and
 Settings/pmadzik/.m2/repository/xdoclet/xdoclet-apache-module/1.2.3/xdoclet-apache-module-1.2.3.jar
 urls[12] = file:/C:/Documents and
 Settings/pmadzik/.m2/repository/xdoclet/xdoclet-objectweb-module/1.2.3/xdoclet-objectweb-module-1.2.3.jar
 urls[13] = file:/C:/Documents and
 Settings/pmadzik/.m2/repository/ant/ant-launcher/1.6.5/ant-launcher-1.6.5.jar
 urls[14] = file:/C:/Documents and
 Settings/pmadzik/.m2/repository/xdoclet/xdoclet-fr_FR-locale/1.2.3/xdoclet-fr_FR-locale-1.2.3.jar
 urls[15] = file:/C:/Documents and
 Settings/pmadzik/.m2/repository/org/apache/maven/plugins/maven-antrun-plugin/1.0/maven-antrun-plugin-1.0.jar
 urls[16] = file:/C:/Documents and
 Settings/pmadzik/.m2/repository/xdoclet/xdoclet-java-module/1.2.3/xdoclet-java-module-1.2.3.jar
 urls[17] = file:/C:/Documents and
 Settings/pmadzik/.m2/repository/xdoclet/xdoclet-exolab-module/1.2.3/xdoclet-exolab-module-1.2.3.jar
 urls[18] = file:/C:/Documents and
 Settings/pmadzik/.m2/repository/xdoclet/xdoclet-mvcsoft-module/1.2.3/xdoclet-mvcsoft-module-1.2.3.jar
 urls[19] = file:/C:/Documents and
 Settings/pmadzik/.m2/repository/xdoclet/xdoclet-bea-module/1.2.3/xdoclet-bea-module-1.2.3.jar
 urls[20] = file:/C:/Documents and
 Settings/pmadzik/.m2/repository/xdoclet/xdoclet-sun-module/1.2.3/xdoclet-sun-module-1.2.3.jar
 urls[21] = file:/C:/Documents and
 Settings/pmadzik/.m2/repository/xdoclet/xdoclet-spring-module/1.2.3/xdoclet-spring-module-1.2.3.jar
 urls[22] = file:/C:/Documents and
 Settings/pmadzik/.m2/repository/xdoclet/xdoclet-de-locale/1.2.3/xdoclet-de-locale-1.2.3.jar
 urls[23] = file:/C:/Documents and

Re: maven 2.0.6 and xdoclet-maven-plugin

2007-04-04 Thread nicolas de loof

I got the same issue.
xdoclet plugin requires some ant classes. Maven 2.0.6 seems to make changes
in plugins classpath and you have to add a dependency to the plugin :

plugin
   artifactIdxdoclet-maven-plugin/artifactId
   groupIdorg.codehaus.mojo/groupId
   executions
   execution
   idxdoclet/id
   phasegenerate-resources/phase
   goals
   goalxdoclet/goal
   /goals
   /execution
   /executions
   configuration
   tasks
   hibernatedoclet
   destdir=${project.build.outputDirectory}
   mergeDir=${basedir}/src/main/merge
   fileset dir=${basedir}/src/main/java
   includes=**/domain/*.java /
   hibernate version=3.0 /
   /hibernatedoclet
   /tasks
   /configuration
   dependencies
   dependency
   groupIdant/groupId
   artifactIdant/artifactId
   version1.6.5/version
   /dependency
   /dependencies
   /plugin

2007/4/4, Przemyslaw Madzik [EMAIL PROTECTED]:



Hello,

I have problem with maven 2.0.6 and xdoclet-maven-plugin (1.0-alpha-2).

After creating simple project (mvn archetype:create
-DgroupId=com.mycompany.app -DartifactId=my-app)
and adding following section to pom.xml:

build
plugins
plugin
groupIdorg.codehaus.mojo/groupId
artifactIdxdoclet-maven-plugin/artifactId
version1.0-alpha-2/version
executions
execution
phasegenerate-sources/phase
goals
goalxdoclet/goal
/goals
configuration
tasks
echo
Hello world!
/echo
/tasks
/configuration
/execution
/executions
/plugin
/plugins
/build

i get this output (mvn generate-sources):

[INFO] Scanning for projects...
[INFO]


[INFO] Building my-app
[INFO]task-segment: [generate-sources]
[INFO]


[WARNING] While downloading servletapi:servletapi:2.3
  This artifact has been relocated to javax.servlet:servlet-api:2.3.


-
this realm = app0.child-container[org.codehaus.mojo:xdoclet-maven-plugin]
urls[0] = file:/C:/Documents and

Settings/pmadzik/.m2/repository/org/codehaus/mojo/xdoclet-maven-plugin/1.0-alpha-2/xdoclet-
maven-plugin-1.0-alpha-2.jar
urls[1] = file:/C:/Documents and
Settings/pmadzik/.m2/repository/xdoclet/xdoclet-wsee-module/1.2.3/xdoclet-
wsee-module-1.2.3.jar
urls[2] = file:/C:/Documents and

Settings/pmadzik/.m2/repository/xdoclet/xdoclet-jboss-module/1.2.3/xdoclet-
jboss-module-1.2.3.jar
urls[3] = file:/C:/Documents and
Settings/pmadzik/.m2/repository/junit/junit/3.8.1/junit-3.8.1.jar
urls[4] = file:/C:/Documents and

Settings/pmadzik/.m2/repository/xdoclet/xdoclet-orion-module/1.2.3/xdoclet-
orion-module-1.2.3.jar
urls[5] = file:/C:/Documents and

Settings/pmadzik/.m2/repository/xdoclet/xdoclet-xdoclet-module/1.2.3/xdoclet-
xdoclet-module-1.2.3.jar
urls[6] = file:/C:/Documents and
Settings/pmadzik/.m2/repository/xdoclet/xdoclet-ibm-module/1.2.3/xdoclet-
ibm-module-1.2.3.jar
urls[7] = file:/C:/Documents and
Settings/pmadzik/.m2/repository/xdoclet/xdoclet-jmx-module/1.2.3/xdoclet-
jmx-module-1.2.3.jar
urls[8] = file:/C:/Documents and

Settings/pmadzik/.m2/repository/commons-logging/commons-logging/1.0.4/commons-
logging-1.0.4.jar
urls[9] = file:/C:/Documents and

Settings/pmadzik/.m2/repository/commons-collections/commons-collections/2.1/commons-
collections-2.1.jar
urls[10] = file:/C:/Documents and
Settings/pmadzik/.m2/repository/ant/ant/1.5.2/ant-1.5.2.jar
urls[11] = file:/C:/Documents and

Settings/pmadzik/.m2/repository/xdoclet/xdoclet-apache-module/1.2.3/xdoclet-
apache-module-1.2.3.jar
urls[12] = file:/C:/Documents and

Settings/pmadzik/.m2/repository/xdoclet/xdoclet-objectweb-module/1.2.3/xdoclet-
objectweb-module-1.2.3.jar
urls[13] = file:/C:/Documents and
Settings/pmadzik/.m2/repository/ant/ant-launcher/1.6.5/ant-
launcher-1.6.5.jar
urls[14] = file:/C:/Documents and

Settings/pmadzik/.m2/repository/xdoclet/xdoclet-fr_FR-locale/1.2.3/xdoclet-fr_FR-
locale-1.2.3.jar
urls[15] = file:/C:/Documents and

Settings/pmadzik/.m2/repository/org/apache/maven/plugins/maven-antrun-plugin/1.0/maven-
antrun-plugin-1.0.jar
urls[16] = file:/C:/Documents and

RE: maven 2.0.6 and xdoclet-maven-plugin

2007-04-04 Thread Jörg Schaible
nicolas de loof wrote on Wednesday, April 04, 2007 5:24 PM:

 I got the same issue.
 xdoclet plugin requires some ant classes. Maven 2.0.6 seems
 to make changes
 in plugins classpath and you have to add a dependency to the plugin :
 
 plugin
 artifactIdxdoclet-maven-plugin/artifactId
 groupIdorg.codehaus.mojo/groupId
 executions execution
 idxdoclet/id
 phasegenerate-resources/phase
 goals
 goalxdoclet/goal
 /goals
 /execution
 /executions
 configuration
 tasks
 hibernatedoclet
 destdir=${project.build.outputDirectory}
 mergeDir=${basedir}/src/main/merge
 fileset dir=${basedir}/src/main/java
 includes=**/domain/*.java /
 hibernate version=3.0 /
 /hibernatedoclet
 /tasks
 /configuration
 dependencies
 dependency
 groupIdant/groupId
 artifactIdant/artifactId
 version1.6.5/version
 /dependency
 /dependencies
 /plugin

However, the origin of this problem is the dependency on the antrun plugin, 
that is referenced in the plugin's deps as jar...

- Jörg

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