You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Shahbaz Hafeez <sz...@it-innovation.soton.ac.uk> on 2006/05/09 12:51:32 UTC

Problem using Maven 2 Axistools wsdl2java (namespaceToPackage)

Hi there, 
 
I seem to have run into a problem using the axistools wsdl2java to
generate source from a WSDL file, specifically with the
namespaceToPackage tag. Here's a snippet from my pom.xml:
 
...
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>axistools-maven-plugin</artifactId>
        <version>1.0</version>
        <dependencies>
          <dependency>
            <groupId>axis</groupId>
            <artifactId>axis</artifactId>
            <version>1.2.1</version>
            <scope>provided</scope>
          </dependency>
          <dependency>
            <groupId>axis</groupId>
            <artifactId>axis-jaxrpc</artifactId>
            <version>1.2</version>
            <scope>provided</scope>
          </dependency>
        </dependencies>
  <configuration>
 
<namespaceToPackage>"http://localhost:8080/openmkssrw/services/SRW"=urn:
uk.ac.soton.itinnovation.modules.services.srw.stubs</namespaceToPackage>
 
  </configuration>
        <executions>
          <execution>
            <goals>
              <goal>wsdl2java</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
 
    </plugins>
  </build>
</project>
 
 
When I try 'mvn generate-sources' from the prompt it fails with the
following error:
"Error:  Unable to parse first argument for option -N"
 
Is anyone able to help? I need to map a specific namespace to a package
and there is no documentation on the format of this option. I've tried
various combinations of declaring this and non have worked. Any ideas?
 
Thanks in advance, 
Shahbaz
 
---
Shahbaz Hafeez
IT Innovation Centre
2 Venture Road
Chilworth Science Park
Southampton, SO16 7NP, UK

Tel: +44 23 8076 0834
Fax: +44 23 8076 0833

mailto:szh@it-innovation.soton.ac.uk 
http://www.it-innovation.soton.ac.uk
<http://www.it-innovation.soton.ac.uk/>