Hi,

Put the xdoclet dependencies inside the plugin like you did first. And try 
writing the taskdef like this: 
<taskdef name="webdoclet" classname="xdoclet.modules.web.WebDocletTask">
   <classpath refid="maven.plugin.classpath"/>
</taskdef>

I use the xdoclet-maven-plugin from the mojo project hosted by codehaus. Check 
it at http://mojo.codehaus.org/ They also have a webdoclet plugin which I think 
just wraps the xdoclet-plugin.
Regarding the problem with xdoclet not generating anything sounds very 
familiar, it's definitely a classpath problem.

Finn-Robert

-----Opprinnelig melding-----
Fra: Rémy Sanlaville [mailto:[EMAIL PROTECTED] 
Sendt: 18. september 2006 18:14
Til: Maven Users List
Emne: [M2] maven.plugin.classpath

Hi all,

I wanted to use the maven.plugin.classpath (see [1]), but it seems that this 
variable does not exist any more
   > Embedded error: Reference maven.plugin.classpath not found.
It is normal ?

My context :
------------------
I want to use the antrun plugin like this

<plugin>
    <artifactId>maven-antrun-plugin</artifactId>
    <version>1.0</version>

     <dependencies>
        <dependency>
            <artifactId>xdoclet-apache-module</artifactId>
            <groupId>xdoclet</groupId>
            <version>1.2.3</version>
            <type>jar</type>
        </dependency>
        [...]
     </dependencies>

    <executions>
        <execution>
            <phase>generate-sources</phase>
            <goals>
                <goal>run</goal>
            </goals>
            <configuration>
                <tasks>

                    <taskdef
                        name        = "webdoclet"
                        classname    = "xdoclet.modules.web.WebDocletTask"
                        classpathref= "maven.plugin.classpath"
                    />

but it's not working : > Embedded error: Reference maven.plugin.classpathnot 
found.

So I need to do like this :

    <dependencies>
        <dependency>
            <artifactId>xdoclet-apache-module</artifactId>
            <groupId>xdoclet</groupId>
            <version>1.2.3</version>
            <type>jar</type>
        </dependency>
        [...]
     </dependencies>

    <build>
      <plugin>
         <artifactId>maven-antrun-plugin</artifactId>
         <version>1.0</version>

        <executions>
            <execution>
                <phase>generate-sources</phase>
                <goals>
                    <goal>run</goal>
                </goals>
                <configuration>
                    <tasks>

                        <taskdef
                            name        = "webdoclet"
                            classname    = "
xdoclet.modules.web.WebDocletTask"
                            classpathref= "maven.dependency.classpath"
                        />


But it's not very nice because maven put all the xdoclet dependencies in the 
WEB-INF/lib.

It is not possible also to use the scope provided because the 
maven.dependency.classpath don't take into account this scope.

What can I do ?
Thanks,

Rémy


[1] http://maven.apache.org/plugins/maven-antrun-plugin/classpaths.html

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

Reply via email to