[EMAIL PROTECTED] wrote:

Include a dependency in your project xml to the xdoclet-xdoclet module
and use as classpathref the ${maven.dependency.classpath}.
You might also have a look at the xdoclet plugins:
http://xdoclet.sourceforge.net/maven-plugin.html

Cheers,
simon


P.s. The dependency declaration:

           <dependency>
                       <artifactId>xdoclet</artifactId>
                       <groupId>xdoclet</groupId>
                       <version>1.2b4</version>
                       <type>jar</type>
               </dependency>

-----Original Message-----


I try to use maven to build xdoclet-plugins and I get an exception that:


Unable to obtain goal [java:compile] -- file:/C:/Documents and Settings/maciek/D
esktop/PRACA MAGISTERSKA/xdoclet-plugins/testapp-pojo/:22:15: <taskdef> taskdef
class org.xdoclet.ant.XDocletTask cannot be found


I know that it is rather an ant related problem since exception is caused by the following piece of code:

<taskdef
           name="xdoclet"
           classname="org.xdoclet.ant.XDocletTask"
           classpathref="xdoclet.task.classpath"
/>

in one of subprojects' maven.xml file.

Maybe you can tell how can I fix the problem?

Thanks in advance

Maciek



Thanks, but it does not work, java:compile is unattainable due to
com.werken.werkz.UnattainableGoalException: Unable to obtain goal [java:compile]
-- file:/C:/Documents and Settings/maciek/Desktop/PRACA MAGISTERSKA/xdoclet-plu
gins/plugin-qtags/:55:9: <taskdef> Reference not found.


*The java:compile in my subproject is:
*
<preGoal name="java:compile">
   <j:set var="generateQtags" value="${xdoclet.qtags.generate}"/>
   <j:if test="${generateQtags == 'true'}">
     <attainGoal name="qtags"/>
     </j:if>
 </preGoal>

*So the problem is in qtags goal which I put below:
*
<goal name="qtags"> <mkdir dir="${basedir}/target/src"/>
<path id="xdoclet.generated.path" location="${basedir}/target/src"/>
<maven:addPath id="maven.compile.src.set" refid="xdoclet.generated.path"/>


   *<path id="xdoclet.task.classpath">
     <pathelement location="${basedir}/target/classes"/>
     <path refid="maven.dependency.classpath"/>
   </path>*

   *<taskdef
     name="xdoclet"
     classname="org.xdoclet.ant.XDocletTask"
     classpathref="${xdoclet.task.classpath}"
     />*

<xdoclet> <fileset dir="${pom.build.sourceDirectory}">
<include name="**/*.java"/>
</fileset>


     <component
       classname="org.xdoclet.plugin.qtags.impl.QTagImplPlugin"
       destdir="${basedir}/target/src"
       />

     <component
       classname="org.xdoclet.plugin.qtags.impl.QTagLibraryPlugin"
       destdir="${basedir}/target/src"
       packagereplace="org.xdoclet.plugin.${xdoclet.qtags.namespace}.qtags"
       />

     <component
       classname="org.xdoclet.plugin.qtags.xdoc.QTagXDocPlugin"
       destdir="${basedir}/target/generated-xdocs"
       namespace="${xdoclet.qtags.namespace}"
       />
     </xdoclet>
   </goal>

*In master project I have a dependency:*

<dependency>
     <id>xdoclet</id>
     <version>2.0-alpha-1-SNAPSHOT</version>
     <url>http://xdoclet.sf.net/xdoclet2/</url>
</dependency>
*

I read in maven manual about settings in maven java-plugin that :

*
maven.dependency.classpath Yes This property holds the Ant |path| of all the dependent jar files listed in the |dependencies| block of your project descriptor <http://maven.apache.org/reference/project-descriptor.html>


*
And I checked that
<echo message="${maven.dependency.classpath}"/> gives nothing actually.
*
Should I set it somehow?

Could you try to help me once again?

Thanks in advance!

Maciek Zywno


* *


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



Reply via email to