I'm trying to use the axis2 wsdl2code plugin to generate code. Unfortunately 
I'm getting an error in maven that it cannot fine the plugin.
Does anyone know how to get this working?

I'm Using maven V2.0.9

My pom contains:

           <plugin>
               <groupId>org.apache.axis2</groupId>
               <artifactId>axis2-wsdl2code-maven-plugin</artifactId>
               <version>1.4.1</version>
               <executions>
                  <execution>
                     <phase>generate-sources</phase>
                     <goals>
                        <goal>wsdl2code</goal>
                     </goals>
                  </execution>
               </executions>
               <configuration>
                  <packageName>com.nomadix</packageName>
                  <wsdlFile>src/main/resources/ACSService.wsdl</wsdlFile>
                  <databindingName>adb</databindingName>
                  <generateServerSide>true</generateServerSide>
                  
<generateServerSideInterface>true</generateServerSideInterface>
                  <generateServicesXml>true</generateServicesXml>
                  <namespaceToPackages>
                     
http://nomadix.com/acs/services/ns/acs=com.nomadix.acs.services.acsservice
                  </namespaceToPackages>
                  <outputDirectory>src/main/java</outputDirectory>
                  <skipWSDL>true</skipWSDL>
                  <skipBuildXml>true</skipBuildXml>
               </configuration>
               <dependencies>
                  <dependency>
                     <groupId>org.apache.axis2</groupId>
                     <artifactId>axis2</artifactId>
                     <version>1.4.1</version>
                  </dependency>
               </dependencies>
            </plugin>


Any the error is:

$ mvn axis2-wsdl2code:wsdl2code
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'axis2-wsdl2code'.
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] The plugin 'org.apache.maven.plugins:maven-axis2-wsdl2code-plugin' does 
not exist or no valid version could be found
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: < 1 second
[INFO] Finished at: Wed Feb 11 11:58:37 PST 2009
[INFO] Final Memory: 1M/4M
[INFO] ------------------------------------------------------------------------


Very strange. From the error, maven seems to be looking for the plugin in 
"'org.apache.maven.plugins",
but I have defined the groupId as "org.apache.axis2". Is this a bug in maven?

Thanks in advance for any help,

Kevin Witten



________________________________
Notice? The information and attachment(s) contained in this communication are 
intended for the addressee only, and may be confidential and/or legally 
privileged. If you have received this communication in error, please contact 
the sender immediately, and delete this communication from any computer or 
network system. Any interception, review, printing, copying, re-transmission, 
dissemination, or other use of, or taking of any action upon this information 
by persons or entities other than the intended recipient is strictly prohibited 
by law and may subject them to criminal or civil liability. None of the 
interTouch Group of Companies shall be liable for the improper and/or 
incomplete transmission of the information contained in this communication or 
for any delay in its receipt.

Reply via email to