Kostis Anagnostopoulos wrote:
> Hi to all,
>
> i desperately need help, since i have 2 days working on it and nothing yet.
>
> I want to use xdoclet with maven2 (2.0.2 and 2.0.4).
>
> Maven prints info messages when executing the sub-tasks but nothing
> else gets generated:
> .....
> [INFO]
> ----------------------------------------------------------------------------
> [INFO] Building SIOL EJB
> [INFO] task-segment: [package]
> [INFO]
> ----------------------------------------------------------------------------
> [INFO] [xdoclet:xdoclet {execution: default}]
> [INFO] Initializing DocletTasks!!!
> [INFO] Executing tasks
> 13 Απρ 2006 7:44:13 μμ xdoclet.XDocletMain start
> INFO: Running <homeinterface/>
> 13 Απρ 2006 7:44:14 μμ xdoclet.XDocletMain start
> INFO: Running <localinterface/>
> 13 Απρ 2006 7:44:14 μμ xdoclet.XDocletMain start
> INFO: Running <localhomeinterface/>
> 13 Απρ 2006 7:44:14 μμ xdoclet.XDocletMain start
> INFO: Running <remoteinterface/>
> 13 Απρ 2006 7:44:14 μμ xdoclet.XDocletMain start
> INFO: Running <deploymentdescriptor/>
> 13 Απρ 2006 7:44:15 μμ xdoclet.XDocletMain start
> INFO: Running <weblogic/>
> [INFO] Executed tasks
> .....
>
> This is my pom.xml (it is a multiple module project):
> <?xml version="1.0"?>
> <project xmlns="http://maven.apache.org/POM/4.0.0"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> http://maven.apache.org/maven-v4_0_0.xsd">
> <parent>
> <groupId>gr.forthnet.siol</groupId>
> <artifactId>siol</artifactId>
> <version>1.0</version>
> </parent>
> <modelVersion>4.0.0</modelVersion>
>
> <groupId>gr.forthnet.siol</groupId>
> <artifactId>siol_ejb</artifactId>
> <packaging>ejb</packaging>
> <name>SIOL EJB</name>
> <version>1.0</version>
>
> <build>
> <defaultGoal>install</defaultGoal>
>
> <plugins>
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-compiler-plugin</artifactId>
> <configuration>
> <source>1.4</source>
> <target>1.4</target>
> </configuration>
> </plugin>
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-ejb-plugin</artifactId>
> <configuration>
> <generateClient>true</generateClient>
> </configuration>
> </plugin>
> <plugin>
> <artifactId>xdoclet-maven-plugin</artifactId>
> <groupId>org.codehaus.mojo</groupId>
> <executions>
> <execution>
> <phase>generate-sources</phase>
> <goals>
> <goal>xdoclet</goal>
> </goals>
> <configuration>
> <tasks>
> <ejbdoclet
>
> destdir="${project.build.directory}/src-ejb-gen"
>
> verbose="true"
>
> excludedTags="@author,@version">
>
> <fileset
>
> dir="${project.build.sourceDirectory}"
>
> includes="*.*" />
>
>
You probably meant includes="**/*.java". I think that "*.*" only will
take java sources directly in src/main/java, and not in any
subdirectories (packages).
> <homeinterface >
>
> <packagesubstitution packages="session"
> substituteWith="interfaces" useFirst=" true"/>
>
> </homeinterface>
>
> <localinterface
>
> mergeDir="${project.build.directory}/merge-dir" />
>
> <localhomeinterface
>
> mergeDir="${project.build.directory}/merge-dir" />
>
> <remoteinterface
>
> mergeDir="${project.build.directory}/merge-dir" />
>
> <deploymentdescriptor
>
> destdir="${project.build.outputDirectory}/META-INF"
> />
> </ejbdoclet>
>
> </tasks>
> </configuration>
> </execution>
> </executions>
> </plugin>
> </plugins>
>
> </build>
>
> <dependencies>
> ...nothing of interest here.
> </dependencies>
>
> </project>
>
>
> What am i doing wrong ???
>
> Thank you very much in advance.
>
> Kostis Anagnostopoulos
>
> PS: Subscribed to list after posting once. I hope i din't resend mail twice.
>
>
>
--
Marcel May
ConSol* Software GmbH
Tel: +49 89 45841-155