Hi,
I'm trying to use the xdoclet plugin for maven, to build the classes and
interfaces for enterprise javabeans. My problem is that when the
xdoclet:ejbdoclet task is executed, nothing is generated, causing
compilation errors because the classes and interfaces never exists.
Following is the output from maven:
___________________________________
C:\travelshare_platform\TravelShare-EJB>maven
__ __
| \/ |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \ ~ intelligent projects ~
|_| |_\__,_|\_/\___|_||_| v. 1.1-SNAPSHOT
Tag library requested that is not present: 'maven' in plugin:
'maven-doclet-plugin-1.2'
Tag library requested that is not present: 'resources' in plugin:
'maven-test-plugin-1.4'
Tag library requested that is not present: 'resources' in plugin:
'maven-clover-plugin-1.2'
build:start:
travelshare-dist:
ejb:init:
xdoclet:ejbdoclet: <--------- Notice that this does nothing!
java:prepare-filesystem:
java:compile:
[echo] Compiling to
C:\travelshare_platform\TravelShare-EJB/target/classes
[javac] Compiling 15 source files to
C:\travelshare_platform\TravelShare-EJB\target\classes
C:\travelshare_platform\TravelShare-EJB\src\java\ve\com\direct3003\travelshare\ejb\ContratoBean.java:157:
cannot resolve symbol
symbol : class ContratoPK
location: package ejb
public ve.com.direct3003.travelshare.ejb.ContratoPK
ejbCreate(java.lang.Stri
ng codigoEmpresaProveedor, java.lang.String codigoEmpresaConsumidor,
java.math.B
igDecimal porcentajeComision) throws javax.ejb.CreateException {
...
...
...
More "Cannot resolve symbol", for all the things that xdoclet should
generate....
Here are the project.xml and the maven.xml:
___________________________________
project.xml:
<project>
<extend>${basedir}/../project.xml</extend>
<id>TravelShare-EJB</id>
<name>Travelshare Domain Layer Components</name>
<package>ve.com.direct3003.travelshare.ejb.*</package>
<description>Travelshare Domain Layer Components</description>
<dependencies>
<dependency>
<id>xdoclet</id>
<version>1.2</version>
</dependency>
<dependency>
<id>xdoclet+ejb-module</id>
<version>1.2b4</version>
</dependency>
<dependency>
<id>xdoclet+jboss-module</id>
<version>1.2b4</version>
</dependency>
<!-- This one is needed because jboss-module depends on it -->
<dependency>
<id>xdoclet+jmx-module</id>
<version>1.2b4</version>
</dependency>
<dependency>
<id>xdoclet+xdoclet-module</id>
<version>1.2</version>
</dependency>
<dependency>
<id>xjavadoc</id>
<version>1.0.2</version>
</dependency>
<dependency>
<id>jboss</id>
<jar>jboss-j2ee.jar</jar>
</dependency>
</dependencies>
</project>
______________________________________
______________________________________
maven.xml:
<project default="travelshare-dist" xmlns:m="jelly:maven"
xmlns:ant="jelly:ant">
<goal name="travelshare-dist">
<attainGoal name="ejb:install" />
</goal>
<preGoal name="ejb:init">
<attainGoal name="xdoclet:ejbdoclet"/>
</preGoal>
<postGoal name="ejb:install">
<ant:property name="maven.ejb.install.dir"
value="${maven.repo.local}/${pom.artifactDirectory}/ejbs"/>
<ant:mkdir dir="${maven.ejb.install.dir}"/>
<ant:copy file="${maven.build.dir}/${maven.final.name}.jar"
tofile="${maven.ejb.install.dir}/../
jars/${maven.final.name}.jar"/>
</postGoal>
</project>
___________________________________
I think that I haven't configured the plugin correctly, especially for
these "tag library requested cannot be found" messages.
I appreciate any help on this!
Thaks!
--
Jesus De Oliveira - Administrador de red
Representaciones Direct3003, C.A.
Av. Libertador, Edif. La Linea, Piso 12, Of. 124B, Caracas - Venezuela.
-------------------------------------------------------
This SF.Net email is sponsored by Sleepycat Software
Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to deliver
higher performing products faster, at low TCO.
http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user