I'm having a problem with the axis plugin. I was able to do the build in Ant, but when trying to use Maven, I get the following issue:
INFO] ------------------------------------------------------------------------ [INFO] Building aimwebservices.war [INFO] task-segment: [compile] [INFO] ------------------------------------------------------------------------ [INFO] [axistools:wsdl2java {execution: default}] [INFO] about to add compile source root [INFO] Nothing to generate. All WSDL files are up to date. [INFO] [build-helper:add-source {execution: add-wsdl-source}] [INFO] Source directory: /home/dweintraub/builds/adinventory-trunk/aimwebservices.war/target/generated-sources/axistools/wsdl2java added. [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 10 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 For some reason, the _PortType is being appended to my generated Java file. Another question is whether or not I need to specify the org.codehaus.mojo:build-helper-maven-plugin, so that Maven can find the generated wsdl2java sources. It appears to work in my project without the need for this plugin, but another project seems to need this plugin. 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.0 http://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.2</version> <configuration> <wsdlFiles> <wsdlFile>solbright_inventory_service.wsdl</wsdlFile> </wsdlFiles> <packageSpace>com.solbright.aimwebservices</packageSpace> <serverSide>false</serverSide> <subPackageByFileName>false</subPackageByFileName> </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> <goal>add-source</goal> </goals> <configuration> <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> <!-- Not listed for space savings --> </dependencies> </project> -- David Weintraub qazw...@gmail.com --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org