You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Przemyslaw Madzik <pm...@hektor.umcs.lublin.pl> on 2007/04/04 14:34:29 UTC

maven 2.0.6 and xdoclet-maven-plugin

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>
            <groupId>org.codehaus.mojo</groupId>
            <artifactId>xdoclet-maven-plugin</artifactId>
            <version>1.0-alpha-2</version>
            <executions>
                <execution>
                    <phase>generate-sources</phase>
                    <goals>
                        <goal>xdoclet</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
Settings/pmadzik/.m2/repository/jboss/jboss-j2ee/3.2.1/jboss-j2ee-3.2.1.jar
urls[24] = file:/C:/Documents and
Settings/pmadzik/.m2/repository/xdoclet/xdoclet-caucho-module/1.2.3/xdoclet-caucho-module-1.2.3.jar
urls[25] = file:/C:/Documents and
Settings/pmadzik/.m2/repository/javax/servlet/servlet-api/2.3/servlet-api-2.3.jar
urls[26] = file:/C:/Documents and
Settings/pmadzik/.m2/repository/xdoclet/xdoclet-web-module/1.2.3/xdoclet-web-module-1.2.3.jar
urls[27] = file:/C:/Documents and
Settings/pmadzik/.m2/repository/xdoclet/xdoclet-jdo-module/1.2.3/xdoclet-jdo-module-1.2.3.jar
urls[28] = file:/C:/Documents and
Settings/pmadzik/.m2/repository/xdoclet/xdoclet-tjdo-module/1.2.3/xdoclet-tjdo-module-1.2.3.jar
urls[29] = file:/C:/Documents and
Settings/pmadzik/.m2/repository/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar
urls[30] = file:/C:/Documents and
Settings/pmadzik/.m2/repository/xdoclet/xdoclet-openejb-module/1.2.3/xdoclet-openejb-module-1.2.3.jar
urls[31] = file:/C:/Documents and
Settings/pmadzik/.m2/repository/xdoclet/xdoclet-oracle-module/1.2.3/xdoclet-oracle-module-1.2.3.jar
urls[32] = file:/C:/Documents and
Settings/pmadzik/.m2/repository/xdoclet/xdoclet-hp-module/1.2.3/xdoclet-hp-module-1.2.3.jar
urls[33] = file:/C:/Documents and
Settings/pmadzik/.m2/repository/xdoclet/xdoclet-webwork-module/1.2.3/xdoclet-webwork-module-1.2.3.jar
urls[34] = file:/C:/Documents and
Settings/pmadzik/.m2/repository/xdoclet/xdoclet-mx4j-module/1.2.3/xdoclet-mx4j-module-1.2.3.jar
urls[35] = file:/C:/Documents and
Settings/pmadzik/.m2/repository/xdoclet/xdoclet-solarmetric-module/1.2.3/xdoclet-solarmetric-module-1.2.3.jar
urls[36] = file:/C:/Documents and
Settings/pmadzik/.m2/repository/xdoclet/xdoclet/1.2.3/xdoclet-1.2.3.jar
urls[37] = file:/C:/Documents and
Settings/pmadzik/.m2/repository/xdoclet/xdoclet-jsf-module/1.2.3/xdoclet-jsf-module-1.2.3.jar
urls[38] = file:/C:/Documents and
Settings/pmadzik/.m2/repository/xdoclet/xdoclet-pt_BR-locale/1.2.3/xdoclet-pt_BR-locale-1.2.3.jar
urls[39] = file:/C:/Documents and
Settings/pmadzik/.m2/repository/xdoclet/xdoclet-pramati-module/1.2.3/xdoclet-pramati-module-1.2.3.jar
urls[40] = file:/C:/Documents and
Settings/pmadzik/.m2/repository/xdoclet/xdoclet-borland-module/1.2.3/xdoclet-borland-module-1.2.3.jar
urls[41] = file:/C:/Documents and
Settings/pmadzik/.m2/repository/xdoclet/xdoclet-ejb-module/1.2.3/xdoclet-ejb-module-1.2.3.jar
urls[42] = file:/C:/Documents and
Settings/pmadzik/.m2/repository/xdoclet/xdoclet-hibernate-module/1.2.3/xdoclet-hibernate-module-1.2.3.jar
urls[43] = file:/C:/Documents and
Settings/pmadzik/.m2/repository/xdoclet/xdoclet-sybase-module/1.2.3/xdoclet-sybase-module-1.2.3.jar
urls[44] = file:/C:/Documents and
Settings/pmadzik/.m2/repository/xdoclet/xdoclet-mockobjects-module/1.2.3/xdoclet-mockobjects-module-1.2.3.jar
urls[45] = file:/C:/Documents and
Settings/pmadzik/.m2/repository/xdoclet/xdoclet-libelis-module/1.2.3/xdoclet-libelis-module-1.2.3.jar
urls[46] = file:/C:/Documents and
Settings/pmadzik/.m2/repository/xdoclet/xdoclet-portlet-module/1.2.3/xdoclet-portlet-module-1.2.3.jar
urls[47] = file:/C:/Documents and
Settings/pmadzik/.m2/repository/xdoclet/xjavadoc/1.1/xjavadoc-1.1.jar
urls[48] = file:/C:/Documents and
Settings/pmadzik/.m2/repository/xdoclet/xdoclet-macromedia-module/1.2.3/xdoclet-macromedia-module-1.2.3.jar
Number of imports: 4
import: org.codehaus.classworlds.Entry@4891bb28
import: org.codehaus.classworlds.Entry@f8e44ca4
import: org.codehaus.classworlds.Entry@c51bc9e7
import: org.codehaus.classworlds.Entry@bece5185


this realm = plexus.core
urls[0] = file:/e:/maven-2.0.6/lib/maven-core-2.0.6-uber.jar
Number of imports: 4
import: org.codehaus.classworlds.Entry@4891bb28
import: org.codehaus.classworlds.Entry@f8e44ca4
import: org.codehaus.classworlds.Entry@c51bc9e7
import: org.codehaus.classworlds.Entry@bece5185
-----------------------------------------------------
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Internal error in the plugin manager executing goal
'org.codehaus.mojo:xdoclet-maven-plugin:1.0-alpha-2:xdoclet': Unable to find
the mojo 'org.codehaus.mojo:xdoclet-maven-plugin:1.0-alpha-2:xdoclet' in the
plugin 'org.codehaus.mojo:xdoclet-maven-plugin'
org/apache/tools/ant/PropertyHelper
[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 3 seconds
[INFO] Finished at: Wed Apr 04 14:24:18 CEST 2007
[INFO] Final Memory: 2M/6M
[INFO]
------------------------------------------------------------------------


In 2.0.5 everything works ok. Is this issue with xdoclet plugin or new
version of maven?
-- 
View this message in context: http://www.nabble.com/maven-2.0.6-and-xdoclet-maven-plugin-tf3525559s177.html#a9836034
Sent from the Maven - Users mailing list archive at Nabble.com.


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


Re: xdoclet-maven-plugin and java 1.5

Posted by Erik Drolshammer <dr...@idi.ntnu.no>.
Yuri Schimke wrote:
> We are using a non released jar also.  

I remember where we downloaded the jar though;
http://sourceforge.net/projects/xdoclet/


> Sorry.  the xdoclet stuff seems effectively dead.

Yes, it does. Java annotations should be preferred I guess.


-- 
Regards
Erik Drolshammer







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


Re: xdoclet-maven-plugin and java 1.5

Posted by Yuri Schimke <yu...@gmail.com>.
We are using a non released jar also.  

Sorry.  the xdoclet stuff seems effectively dead.


Erik Drolshammer-2 wrote:
> 
> Yuri Schimke wrote:
> 
>> 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
> 
> Do you have a reference to a repo which contains this (unofficial) 
> xjavadoc which supports java 1.5?
> 
> (We are using a snapshot-version we have as jar, but we haven't been 
> able to track were it originally came from. :P)
> 
> 
> 
> -- 
> Erik Drolshammer
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/maven-2.0.6-and-xdoclet-maven-plugin-tf3525559s177.html#a10033346
Sent from the Maven - Users mailing list archive at Nabble.com.


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


xdoclet-maven-plugin and java 1.5

Posted by Erik Drolshammer <dr...@idi.ntnu.no>.
Yuri Schimke wrote:

> 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

Do you have a reference to a repo which contains this (unofficial) 
xjavadoc which supports java 1.5?

(We are using a snapshot-version we have as jar, but we haven't been 
able to track were it originally came from. :P)



-- 
Erik Drolshammer


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


Re: maven 2.0.6 and xdoclet-maven-plugin

Posted by Yuri Schimke <yu...@gmail.com>.
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>
>             <groupId>org.codehaus.mojo</groupId>
>             <artifactId>xdoclet-maven-plugin</artifactId>
>             <version>1.0-alpha-2</version>
>             <executions>
>                 <execution>
>                     <phase>generate-sources</phase>
>                     <goals>
>                         <goal>xdoclet</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
> Settings/pmadzik/.m2/repository/jboss/jboss-j2ee/3.2.1/jboss-j2ee-3.2.1.jar
> urls[24] = file:/C:/Documents and
> Settings/pmadzik/.m2/repository/xdoclet/xdoclet-caucho-module/1.2.3/xdoclet-caucho-module-1.2.3.jar
> urls[25] = file:/C:/Documents and
> Settings/pmadzik/.m2/repository/javax/servlet/servlet-api/2.3/servlet-api-2.3.jar
> urls[26] = file:/C:/Documents and
> Settings/pmadzik/.m2/repository/xdoclet/xdoclet-web-module/1.2.3/xdoclet-web-module-1.2.3.jar
> urls[27] = file:/C:/Documents and
> Settings/pmadzik/.m2/repository/xdoclet/xdoclet-jdo-module/1.2.3/xdoclet-jdo-module-1.2.3.jar
> urls[28] = file:/C:/Documents and
> Settings/pmadzik/.m2/repository/xdoclet/xdoclet-tjdo-module/1.2.3/xdoclet-tjdo-module-1.2.3.jar
> urls[29] = file:/C:/Documents and
> Settings/pmadzik/.m2/repository/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar
> urls[30] = file:/C:/Documents and
> Settings/pmadzik/.m2/repository/xdoclet/xdoclet-openejb-module/1.2.3/xdoclet-openejb-module-1.2.3.jar
> urls[31] = file:/C:/Documents and
> Settings/pmadzik/.m2/repository/xdoclet/xdoclet-oracle-module/1.2.3/xdoclet-oracle-module-1.2.3.jar
> urls[32] = file:/C:/Documents and
> Settings/pmadzik/.m2/repository/xdoclet/xdoclet-hp-module/1.2.3/xdoclet-hp-module-1.2.3.jar
> urls[33] = file:/C:/Documents and
> Settings/pmadzik/.m2/repository/xdoclet/xdoclet-webwork-module/1.2.3/xdoclet-webwork-module-1.2.3.jar
> urls[34] = file:/C:/Documents and
> Settings/pmadzik/.m2/repository/xdoclet/xdoclet-mx4j-module/1.2.3/xdoclet-mx4j-module-1.2.3.jar
> urls[35] = file:/C:/Documents and
> Settings/pmadzik/.m2/repository/xdoclet/xdoclet-solarmetric-module/1.2.3/xdoclet-solarmetric-module-1.2.3.jar
> urls[36] = file:/C:/Documents and
> Settings/pmadzik/.m2/repository/xdoclet/xdoclet/1.2.3/xdoclet-1.2.3.jar
> urls[37] = file:/C:/Documents and
> Settings/pmadzik/.m2/repository/xdoclet/xdoclet-jsf-module/1.2.3/xdoclet-jsf-module-1.2.3.jar
> urls[38] = file:/C:/Documents and
> Settings/pmadzik/.m2/repository/xdoclet/xdoclet-pt_BR-locale/1.2.3/xdoclet-pt_BR-locale-1.2.3.jar
> urls[39] = file:/C:/Documents and
> Settings/pmadzik/.m2/repository/xdoclet/xdoclet-pramati-module/1.2.3/xdoclet-pramati-module-1.2.3.jar
> urls[40] = file:/C:/Documents and
> Settings/pmadzik/.m2/repository/xdoclet/xdoclet-borland-module/1.2.3/xdoclet-borland-module-1.2.3.jar
> urls[41] = file:/C:/Documents and
> Settings/pmadzik/.m2/repository/xdoclet/xdoclet-ejb-module/1.2.3/xdoclet-ejb-module-1.2.3.jar
> urls[42] = file:/C:/Documents and
> Settings/pmadzik/.m2/repository/xdoclet/xdoclet-hibernate-module/1.2.3/xdoclet-hibernate-module-1.2.3.jar
> urls[43] = file:/C:/Documents and
> Settings/pmadzik/.m2/repository/xdoclet/xdoclet-sybase-module/1.2.3/xdoclet-sybase-module-1.2.3.jar
> urls[44] = file:/C:/Documents and
> Settings/pmadzik/.m2/repository/xdoclet/xdoclet-mockobjects-module/1.2.3/xdoclet-mockobjects-module-1.2.3.jar
> urls[45] = file:/C:/Documents and
> Settings/pmadzik/.m2/repository/xdoclet/xdoclet-libelis-module/1.2.3/xdoclet-libelis-module-1.2.3.jar
> urls[46] = file:/C:/Documents and
> Settings/pmadzik/.m2/repository/xdoclet/xdoclet-portlet-module/1.2.3/xdoclet-portlet-module-1.2.3.jar
> urls[47] = file:/C:/Documents and
> Settings/pmadzik/.m2/repository/xdoclet/xjavadoc/1.1/xjavadoc-1.1.jar
> urls[48] = file:/C:/Documents and
> Settings/pmadzik/.m2/repository/xdoclet/xdoclet-macromedia-module/1.2.3/xdoclet-macromedia-module-1.2.3.jar
> Number of imports: 4
> import: org.codehaus.classworlds.Entry@4891bb28
> import: org.codehaus.classworlds.Entry@f8e44ca4
> import: org.codehaus.classworlds.Entry@c51bc9e7
> import: org.codehaus.classworlds.Entry@bece5185
> 
> 
> this realm = plexus.core
> urls[0] = file:/e:/maven-2.0.6/lib/maven-core-2.0.6-uber.jar
> Number of imports: 4
> import: org.codehaus.classworlds.Entry@4891bb28
> import: org.codehaus.classworlds.Entry@f8e44ca4
> import: org.codehaus.classworlds.Entry@c51bc9e7
> import: org.codehaus.classworlds.Entry@bece5185
> -----------------------------------------------------
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Internal error in the plugin manager executing goal
> 'org.codehaus.mojo:xdoclet-maven-plugin:1.0-alpha-2:xdoclet': Unable to
> find the mojo 'org.codehaus.mojo:xdoclet-maven-plugin:1.0-alpha-2:xdoclet'
> in the plugin 'org.codehaus.mojo:xdoclet-maven-plugin'
> org/apache/tools/ant/PropertyHelper
> [INFO]
> ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 3 seconds
> [INFO] Finished at: Wed Apr 04 14:24:18 CEST 2007
> [INFO] Final Memory: 2M/6M
> [INFO]
> ------------------------------------------------------------------------
> 
> 
> In 2.0.5 everything works ok. Is this issue with xdoclet plugin or new
> version of maven?
> 

-- 
View this message in context: http://www.nabble.com/maven-2.0.6-and-xdoclet-maven-plugin-tf3525559s177.html#a9852319
Sent from the Maven - Users mailing list archive at Nabble.com.


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


Re: maven 2.0.6 and xdoclet-maven-plugin

Posted by nicolas de loof <ni...@gmail.com>.
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>
                <artifactId>xdoclet-maven-plugin</artifactId>
                <groupId>org.codehaus.mojo</groupId>
                <executions>
                    <execution>
                        <id>xdoclet</id>
                        <phase>generate-resources</phase>
                        <goals>
                            <goal>xdoclet</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>
                        <groupId>ant</groupId>
                        <artifactId>ant</artifactId>
                        <version>1.6.5</version>
                    </dependency>
                </dependencies>
            </plugin>

2007/4/4, Przemyslaw Madzik <pm...@hektor.umcs.lublin.pl>:
>
>
> 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>
>             <groupId>org.codehaus.mojo</groupId>
>             <artifactId>xdoclet-maven-plugin</artifactId>
>             <version>1.0-alpha-2</version>
>             <executions>
>                 <execution>
>                     <phase>generate-sources</phase>
>                     <goals>
>                         <goal>xdoclet</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
> Settings/pmadzik/.m2/repository/jboss/jboss-j2ee/3.2.1/jboss-
> j2ee-3.2.1.jar
> urls[24] = file:/C:/Documents and
>
> Settings/pmadzik/.m2/repository/xdoclet/xdoclet-caucho-module/1.2.3/xdoclet-
> caucho-module-1.2.3.jar
> urls[25] = file:/C:/Documents and
> Settings/pmadzik/.m2/repository/javax/servlet/servlet-api/2.3/servlet-
> api-2.3.jar
> urls[26] = file:/C:/Documents and
> Settings/pmadzik/.m2/repository/xdoclet/xdoclet-web-module/1.2.3/xdoclet-
> web-module-1.2.3.jar
> urls[27] = file:/C:/Documents and
> Settings/pmadzik/.m2/repository/xdoclet/xdoclet-jdo-module/1.2.3/xdoclet-
> jdo-module-1.2.3.jar
> urls[28] = file:/C:/Documents and
> Settings/pmadzik/.m2/repository/xdoclet/xdoclet-tjdo-module/1.2.3/xdoclet-
> tjdo-module-1.2.3.jar
> urls[29] = file:/C:/Documents and
>
> Settings/pmadzik/.m2/repository/org/codehaus/plexus/plexus-utils/1.1/plexus-
> utils-1.1.jar
> urls[30] = file:/C:/Documents and
>
> Settings/pmadzik/.m2/repository/xdoclet/xdoclet-openejb-module/1.2.3/xdoclet-
> openejb-module-1.2.3.jar
> urls[31] = file:/C:/Documents and
>
> Settings/pmadzik/.m2/repository/xdoclet/xdoclet-oracle-module/1.2.3/xdoclet-
> oracle-module-1.2.3.jar
> urls[32] = file:/C:/Documents and
> Settings/pmadzik/.m2/repository/xdoclet/xdoclet-hp-module/1.2.3/xdoclet-
> hp-module-1.2.3.jar
> urls[33] = file:/C:/Documents and
>
> Settings/pmadzik/.m2/repository/xdoclet/xdoclet-webwork-module/1.2.3/xdoclet-
> webwork-module-1.2.3.jar
> urls[34] = file:/C:/Documents and
> Settings/pmadzik/.m2/repository/xdoclet/xdoclet-mx4j-module/1.2.3/xdoclet-
> mx4j-module-1.2.3.jar
> urls[35] = file:/C:/Documents and
>
> Settings/pmadzik/.m2/repository/xdoclet/xdoclet-solarmetric-module/1.2.3/xdoclet-
> solarmetric-module-1.2.3.jar
> urls[36] = file:/C:/Documents and
> Settings/pmadzik/.m2/repository/xdoclet/xdoclet/1.2.3/xdoclet-1.2.3.jar
> urls[37] = file:/C:/Documents and
> Settings/pmadzik/.m2/repository/xdoclet/xdoclet-jsf-module/1.2.3/xdoclet-
> jsf-module-1.2.3.jar
> urls[38] = file:/C:/Documents and
>
> Settings/pmadzik/.m2/repository/xdoclet/xdoclet-pt_BR-locale/1.2.3/xdoclet-pt_BR-
> locale-1.2.3.jar
> urls[39] = file:/C:/Documents and
>
> Settings/pmadzik/.m2/repository/xdoclet/xdoclet-pramati-module/1.2.3/xdoclet-
> pramati-module-1.2.3.jar
> urls[40] = file:/C:/Documents and
>
> Settings/pmadzik/.m2/repository/xdoclet/xdoclet-borland-module/1.2.3/xdoclet-
> borland-module-1.2.3.jar
> urls[41] = file:/C:/Documents and
> Settings/pmadzik/.m2/repository/xdoclet/xdoclet-ejb-module/1.2.3/xdoclet-
> ejb-module-1.2.3.jar
> urls[42] = file:/C:/Documents and
>
> Settings/pmadzik/.m2/repository/xdoclet/xdoclet-hibernate-module/1.2.3/xdoclet-
> hibernate-module-1.2.3.jar
> urls[43] = file:/C:/Documents and
>
> Settings/pmadzik/.m2/repository/xdoclet/xdoclet-sybase-module/1.2.3/xdoclet-
> sybase-module-1.2.3.jar
> urls[44] = file:/C:/Documents and
>
> Settings/pmadzik/.m2/repository/xdoclet/xdoclet-mockobjects-module/1.2.3/xdoclet-
> mockobjects-module-1.2.3.jar
> urls[45] = file:/C:/Documents and
>
> Settings/pmadzik/.m2/repository/xdoclet/xdoclet-libelis-module/1.2.3/xdoclet-
> libelis-module-1.2.3.jar
> urls[46] = file:/C:/Documents and
>
> Settings/pmadzik/.m2/repository/xdoclet/xdoclet-portlet-module/1.2.3/xdoclet-
> portlet-module-1.2.3.jar
> urls[47] = file:/C:/Documents and
> Settings/pmadzik/.m2/repository/xdoclet/xjavadoc/1.1/xjavadoc-1.1.jar
> urls[48] = file:/C:/Documents and
>
> Settings/pmadzik/.m2/repository/xdoclet/xdoclet-macromedia-module/1.2.3/xdoclet-
> macromedia-module-1.2.3.jar
> Number of imports: 4
> import: org.codehaus.classworlds.Entry@4891bb28
> import: org.codehaus.classworlds.Entry@f8e44ca4
> import: org.codehaus.classworlds.Entry@c51bc9e7
> import: org.codehaus.classworlds.Entry@bece5185
>
>
> this realm = plexus.core
> urls[0] = file:/e:/maven-2.0.6/lib/maven-core-2.0.6-uber.jar
> Number of imports: 4
> import: org.codehaus.classworlds.Entry@4891bb28
> import: org.codehaus.classworlds.Entry@f8e44ca4
> import: org.codehaus.classworlds.Entry@c51bc9e7
> import: org.codehaus.classworlds.Entry@bece5185
> -----------------------------------------------------
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Internal error in the plugin manager executing goal
> 'org.codehaus.mojo:xdoclet-maven-plugin:1.0-alpha-2:xdoclet': Unable to
> find
> the mojo 'org.codehaus.mojo:xdoclet-maven-plugin:1.0-alpha-2:xdoclet' in
> the
> plugin 'org.codehaus.mojo:xdoclet-maven-plugin'
> org/apache/tools/ant/PropertyHelper
> [INFO]
> ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 3 seconds
> [INFO] Finished at: Wed Apr 04 14:24:18 CEST 2007
> [INFO] Final Memory: 2M/6M
> [INFO]
> ------------------------------------------------------------------------
>
>
> In 2.0.5 everything works ok. Is this issue with xdoclet plugin or new
> version of maven?
> --
> View this message in context:
> http://www.nabble.com/maven-2.0.6-and-xdoclet-maven-plugin-tf3525559s177.html#a9836034
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>