Hallo,

I want to use the XDoclet-Maven plugin. I found out that the XDoclet version
1.2.3 is not able to handle Java 1.5 properly. There is a problem with Java
Generics like:

private static ConcurrentHashMap<String, CheckResult> statusInfo;

Error Output is:
[INFO] [xdoclet:xdoclet {execution: default}]
[INFO] Initializing DocletTasks!!!
[INFO] Executing tasks
14.12.2006 17:26:03 xdoclet.XDocletMain start
INFO: Running <homeinterface/>
Error parsing File
/export/home/v/vree/workspace/NewProvisioningManager/ejb/src/main/java/de/web/services/j2eeprovisioningmanager/ejb/MonitoringStatusBean.java:Encountered
"<" at line 31, column 41.
Was expecting one of:
    <IDENTIFIER> ...
    "[" ...
    "." ...

So I tried to exchange xjavadoc-1.1.jar with xjavadoc-1.5-snapshot050611.jar
using the following pom.xml. 

But it did not work. The xjavadoc-1.1.jar is still downloaded into local
repository each time I call 'mvn install'. It seems to me, that there is a
bug in the '<exclusion>' clause.

Am I'm right?



<project>
    :
    :
        <build>
                <plugins>
                        <plugin>
                                <groupId>org.codehaus.mojo</groupId>
                                <artifactId>xdoclet-maven-plugin</artifactId>
                                <dependencies>
                                        <dependency>
                                                
<groupId>org.codehaus.mojo</groupId>
                                                
<artifactId>xdoclet-maven-plugin</artifactId>
                                                <version>1.0-alpha-2</version>  
                                        
                                                <exclusions>
                                                        <exclusion>
                                                                
<groupId>xdoclet</groupId>
                                                                
<artifactId>xjavadoc</artifactId>
                                                        </exclusion>
                                                </exclusions>
                                        </dependency>
                                        <dependency>
                                                <groupId>xdoclet</groupId>
                                                
<artifactId>xjavadoc</artifactId>
                                                
<version>1.5-snapshot050611</version>
                                        </dependency>
                                </dependencies>
                                <executions>
                                        <execution>
                                                <phase>generate-sources</phase>
                                                <goals>
                                                        <goal>xdoclet</goal>
                                                </goals>
                                                <configuration>
                                                        <tasks>
                                                                <ejbdoclet 
verbose="true" force="true" ejbSpec="2.1"
destDir="${project.build.directory}/generated-sources/xdoclet">
                                                                        
<fileset dir="${project.build.sourceDirectory}">
                                                                                
<include name="**/*Bean.java"/>
                                                                                
<include name="**/*MDB.java"/>
                                                                        
</fileset>
                                                                        
<packageSubstitution packages="ejb" substituteWith="interfaces"/>
                                                                        
<homeinterface/>
                                                                        
<remoteinterface/>
                                                                        
<localhomeinterface/>
                                                                        
<localinterface/>
                                                                        
<deploymentdescriptor
destDir="${project.build.outputDirectory}/META-INF"/>
                                                                </ejbdoclet>
                                                        </tasks>
                                                </configuration>
                                        </execution>
                                </executions>
                        </plugin>
                        <plugin>
                                <groupId>org.apache.maven.plugins</groupId>
                                <artifactId>maven-ejb-plugin</artifactId>
                                <configuration>
                                        <generateClient>true</generateClient>
                                        <clientExcludes>
                                                
<clientExclude>**/ejb/*Bean.class</clientExclude>
                                                
<clientExclude>**/mdb/*MDB.class</clientExclude>
                                        </clientExcludes>
                                </configuration>
                        </plugin>
                </plugins>
        </build>
</project>
-- 
View this message in context: 
http://www.nabble.com/XDoclet-and-Java-1.5-and-Maven2-tf2821951.html#a7876379
Sent from the mojo - user mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to