We are using the org.codehaus.mojo:axistools-maven-plugin:1.3, and I
am having a few problems with it.
When we did builds from ant, everything worked. However, when I do
builds from Maven, one of the java files gets _PortType appended to
the end of it. This makes the program not compile.
Also, do I need the maven-helper to tell Maven where to find the
generated sources, or will the axistools-maven-plugin do that
automatically?
Here's my pom.xml
<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.0http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.solbright.adinventory</groupId>
<artifactId>aimwebservices</artifactId>
<packaging>war</packaging>
<version>2.1.2-SNAPSHOT</version>
<parent>
<groupId>com.solbright</groupId>
<artifactId>adinventory</artifactId>
<version>2.1.2-SNAPSHOT</version>
</parent>
<name>aimwebservices.war</name>
<url>
http://maven.apache.org</url>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>axistools-maven-plugin</artifactId>
<version>1.3</version>
<configuration>
<wsdlFiles>
<wsdlFile>solbright_inventory_service.wsdl</wsdlFile>
</wsdlFiles>
<packageSpace>com.solbright.aimwebservices</packageSpace>
<serverSide>true</serverSide>
<skeletonDeploy>true</skeletonDeploy>
</configuration>
<executions>
<execution>
<goals>
<goal>wsdl2java</goal>
</goals>
</execution>
</executions>
</plugin>
<!--
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<executions>
<execution>
<id>add-wsdl-source</id>
<phase>generate-sources</phase>
<goals>
<configuration>
<typeMappingVersion>1.2</typeMappingVersion>
<sources>
<source>${project.build.directory}/generated-sources/axistools/wsdl2java</source>
</sources>
</configuration>
</execution>
</executions>
</plugin>
-->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.6</source>
<target>1.6</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.4.2</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<configuration>
<archive>
<addMavenDescriptor>false</addMavenDescriptor>
<manifest>
<addClasspath>true</addClasspath>
</manifest>
</archive>
</configuration>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>com.solbright</groupId>
<artifactId>base</artifactId>
<version>2.1.2-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>com.solbright.base</groupId>
<artifactId>servlet</artifactId>
<version>2.1.2-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>com.solbright.adinventory</groupId>
<artifactId>adplanning</artifactId>
<version>2.1.2-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>axis</groupId>
<artifactId>axis</artifactId>
<version>1.4</version>
</dependency>
<dependency/>
</dependencies>
</project>
Here is the output:
[INFO] Building aimwebservices.war
[INFO] task-segment: [compile]
[INFO] ------------------------------------------------------------------------
[INFO] [axistools:wsdl2java {execution: default}]
[INFO] about to add compile source root
[INFO] Processing wsdl:
/home/dweintraub/builds/adinventory-trunk/aimwebservices.war/src/main/wsdl/solbright_inventory_service.wsdl
Jul 2, 2009 4:59:21 PM org.apache.axis.utils.JavaUtils isAttachmentSupported
WARNING: Unable to find required classes (javax.activation.DataHandler
and javax.mail.internet.MimeMultipart). Attachment support is
disabled.
[INFO] [resources:resources]
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered
resources, i.e. build is platform dependent!
[INFO] Copying 3 resources
[INFO] [compiler:compile]
[INFO] Compiling 29 source files to
/home/dweintraub/builds/adinventory-trunk/aimwebservices.war/target/classes
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Compilation failure
/home/dweintraub/builds/adinventory-trunk/aimwebservices.war/src/main/java/com/solbright/aimwebservices/client/InventoryAvailsCommandExecutor.java:[53,81]
incompatible types
found : com.solbright.aimwebservices.SolbrightInventoryService_PortType
required: com.solbright.aimwebservices.SolbrightInventoryService
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4 seconds
[INFO] Finished at: Thu Jul 02 16:59:23 GMT-05:00 2009
[INFO] Final Memory: 28M/166M
[INFO] ---------------------------------------------------------------
--
David Weintraub
qazwart@...
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email