Gerard, Couple of comments:
* The issue with the Eclipse plugin is currently being investigated; see AXIS2-4896. * You are using a very old version of the Maven plugin. This is because you use org.apache.axis2.maven2 as groupId. That should be org.apache.axis2. See also AXIS2-4697. Please make sure that you use version 1.5.3. * The issue with the -jar "kind of file" (actually this is called a "classifier" in Maven) is addressed by AXIS2-4888. Andreas On Thu, Nov 25, 2010 at 09:39, Gerard Draper <[email protected]> wrote: > Thanks Chris, > I've tried using Maven, but I failed too. I've tried to build the java code > from a simple WSDL, but it seems there's some problem with the dependencies, > some are not available or corrupted. Any idea how to fix this? > I'm new to Maven, thus I'm not sure what to do. Can I download the missing > dependencies to the "local" repository (.m2 folder somewhere). I also tried > to use the Axis2 1.5.3 version, which is in the oficial repository, but it > seems that there's a problem with the filenames. The uploades files have a > "-<kind of file>" after the version number, thus Maven can't find them > (axis2_1.5.3-jar, -doc,...), and if I add the "-jar" to the version number, > maven fails to find the ".pom" because it doesn't have the "-jar". > (http://repo1.maven.org/maven2/org/apache/axis2/axis2/1.5.3/) > Apache Maven 3.0 (r1004208; 2010-10-04 13:50:56+0200) > Java version: 1.6.0_07 > Java home: C:\JAVA\JDK\jdk1.6.0_07\jre > Default locale: es_ES, platform encoding: UTF-8 > OS name: "windows vista" version: "6.1" arch: "x86" Family: "windows" > [INFO] Error stacktraces are turned on. > [DEBUG] Reading user settings from C:\Users\usuario\.m2\settings.xml > [DEBUG] Reading global settings from EMBEDDED\conf\settings.xml > [DEBUG] Using local repository at C:\Users\usuario\.m2\repository > [INFO] Scanning for projects... > [DEBUG] Extension realms for project > MavenTest:Wsdl2JavaTest:jar:0.0.1-SNAPSHOT: (none) > [DEBUG] Looking up lifecyle mappings for packaging jar from > ClassRealm[plexus.core, parent: null] > [DEBUG] Resolving plugin prefix axis2-wsdl2code from > [org.apache.maven.plugins, org.codehaus.mojo] > [DEBUG] Resolved plugin prefix axis2-wsdl2code to > org.apache.axis2.maven2:axis2-wsdl2code-maven-plugin from POM > MavenTest:Wsdl2JavaTest:jar:0.0.1-SNAPSHOT > [DEBUG] === REACTOR BUILD PLAN > ================================================ > [DEBUG] Project: MavenTest:Wsdl2JavaTest:jar:0.0.1-SNAPSHOT > [DEBUG] Tasks: [axis2-wsdl2code:wsdl2code] > [DEBUG] Style: Regular > [DEBUG] > ======================================================================= > [INFO] > > [INFO] > ------------------------------------------------------------------------ > [INFO] Building mavenTest 0.0.1-SNAPSHOT > [INFO] > ------------------------------------------------------------------------ > [DEBUG] Resolving plugin prefix axis2-wsdl2code from > [org.apache.maven.plugins, org.codehaus.mojo] > [DEBUG] Resolved plugin prefix axis2-wsdl2code to > org.apache.axis2.maven2:axis2-wsdl2code-maven-plugin from POM > MavenTest:Wsdl2JavaTest:jar:0.0.1-SNAPSHOT > [DEBUG] Lifecycle default -> [validate, initialize, generate-sources, > process-sources, generate-resources, process-resources, compile, > process-classes, generate-test-sources, process-test-sources, > generate-test-resources, process-test-resources, test-compile, > process-test-classes, test, prepare-package, package, pre-integration-test, > integration-test, post-integration-test, verify, install, deploy] > [DEBUG] Lifecycle clean -> [pre-clean, clean, post-clean] > [DEBUG] Lifecycle site -> [pre-site, site, post-site, site-deploy] > [DEBUG] === PROJECT BUILD PLAN > ================================================ > [DEBUG] Project: MavenTest:Wsdl2JavaTest:0.0.1-SNAPSHOT > [DEBUG] Dependencies (collect): [] > [DEBUG] Dependencies (resolve): [test] > [DEBUG] > ----------------------------------------------------------------------- > [DEBUG] Goal: > org.apache.axis2.maven2:axis2-wsdl2code-maven-plugin:1.1:wsdl2code > (default-cli) > [DEBUG] Style: Regular > [DEBUG] Configuration: <?xml version="1.0" encoding="UTF-8"?> > <configuration> > <databindingName default-value="adb">adb</databindingName> > <generateAllClasses > default-value="false">${axis2.wsdl2code.generateAllClasses}</generateAllClasses> > <generateServerSide > default-value="false">${axis2.wsdl2code.generateServerSide}</generateServerSide> > <generateServerSideInterface > default-value="false">${axis2.wsdl2code.generateServerSideInterface}</generateServerSideInterface> > <generateServicesXml > default-value="false">${axis2.wsdl2code.generateServicesXml}</generateServicesXml> > <generateTestcase > default-value="false">${axis2.wsdl2code.generateTestCase}</generateTestcase> > <language default-value="java">${axis2.wsdl2code.language}</language> > <namespaceToPackages>${axis2.wsdl2code.namespaceToPackages}</namespaceToPackages> > <outputDirectory > default-value="${project.build.directory}/generated-sources/axis2/wsdl2code">${axis2.wsdl2code.target}</outputDirectory> > <packageName>test.wsdl2java</packageName> > <pluginArtifacts>${plugin.artifacts}</pluginArtifacts> > <portName>${axis2.wsdl2code.portName}</portName> > <project>${project}</project> > <serviceName>${axis2.wsdl2code.serviceName}</serviceName> > <syncMode default-value="both">${axis2.wsdl2code.syncMode}</syncMode> > <unpackClasses > default-value="false">${axis2.wsdl2code.unpackClasses}</unpackClasses> > <wsdlFile > default-value="src/main/axis2/service.wsdl">src/main/resources/testWsdl2Java.wsdl</wsdlFile> > </configuration> > [DEBUG] > ======================================================================= > [DEBUG] MavenTest:Wsdl2JavaTest:jar:0.0.1-SNAPSHOT > [DEBUG] org.apache.axis2:axis2:jar:1.5.1:compile > [INFO] > [INFO] --- axis2-wsdl2code-maven-plugin:1.1:wsdl2code (default-cli) @ > Wsdl2JavaTest --- > [WARNING] The POM for org.apache.axis2:axis2-kernel:jar:1.1 is invalid, > transitive dependencies (if any) will not be available: 1 problem was > encountered while building the effective model for > org.apache.axis2:axis2-kernel:1.1 > [ERROR] 'dependencies.dependency.version' for > org.apache.ws.commons.neethi:neethi:jar is missing. @ > [DEBUG] Reading resolution tracking file > C:\Users\usuario\.m2\repository\jaxen\jaxen\1.1-beta-10\jaxen-1.1-beta-10.pom.lastUpdated > [DEBUG] Writing resolution tracking file > C:\Users\usuario\.m2\repository\jaxen\jaxen\1.1-beta-10\jaxen-1.1-beta-10.pom.lastUpdated > [DEBUG] Reading resolution tracking file > C:\Users\usuario\.m2\repository\jaxen\jaxen\1.1-beta-10\jaxen-1.1-beta-10.pom.lastUpdated > [DEBUG] Writing resolution tracking file > C:\Users\usuario\.m2\repository\jaxen\jaxen\1.1-beta-10\jaxen-1.1-beta-10.pom.lastUpdated > [DEBUG] Reading resolution tracking file > C:\Users\usuario\.m2\repository\woodstox\wstx-asl\3.0.1\wstx-asl-3.0.1.pom.lastUpdated > [DEBUG] Writing resolution tracking file > C:\Users\usuario\.m2\repository\woodstox\wstx-asl\3.0.1\wstx-asl-3.0.1.pom.lastUpdated > [DEBUG] Reading resolution tracking file > C:\Users\usuario\.m2\repository\woodstox\wstx-asl\3.0.1\wstx-asl-3.0.1.pom.lastUpdated > [DEBUG] Writing resolution tracking file > C:\Users\usuario\.m2\repository\woodstox\wstx-asl\3.0.1\wstx-asl-3.0.1.pom.lastUpdated > [DEBUG] Reading resolution tracking file > C:\Users\usuario\.m2\repository\jaxen\jaxen\1.1-beta-10\jaxen-1.1-beta-10.pom.lastUpdated > [DEBUG] Writing resolution tracking file > C:\Users\usuario\.m2\repository\jaxen\jaxen\1.1-beta-10\jaxen-1.1-beta-10.pom.lastUpdated > [DEBUG] Reading resolution tracking file > C:\Users\usuario\.m2\repository\jaxen\jaxen\1.1-beta-10\jaxen-1.1-beta-10.pom.lastUpdated > [DEBUG] Writing resolution tracking file > C:\Users\usuario\.m2\repository\jaxen\jaxen\1.1-beta-10\jaxen-1.1-beta-10.pom.lastUpdated > [INFO] > ------------------------------------------------------------------------ > [INFO] BUILD FAILURE > [INFO] > ------------------------------------------------------------------------ > [INFO] Total time: 0.384s > [INFO] Finished at: Thu Nov 25 09:20:08 CET 2010 > [INFO] Final Memory: 2M/4M > [INFO] > ------------------------------------------------------------------------ > [ERROR] Failed to execute goal > org.apache.axis2.maven2:axis2-wsdl2code-maven-plugin:1.1:wsdl2code > (default-cli) on project Wsdl2JavaTest: Execution default-cli of goal > org.apache.axis2.maven2:axis2-wsdl2code-maven-plugin:1.1:wsdl2code failed: > Plugin org.apache.axis2.maven2:axis2-wsdl2code-maven-plugin:1.1 or one of > its dependencies could not be resolved: Failed to collect dependencies for > org.apache.axis2.maven2:axis2-wsdl2code-maven-plugin:jar:1.1 (): Failed to > read artifact descriptor for jaxen:jaxen:jar:1.1-beta-10: Could not transfer > artifact jaxen:jaxen:pom:1.1-beta-10 from maven-repo1 > (http://repo1.maven.org/maven/): No connector available to access repository > maven-repo1 (http://repo1.maven.org/maven/) of type legacy using the > available factories AsyncRepositoryConnectorFactory, > WagonRepositoryConnectorFactory -> [Help 1] > org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute > goal org.apache.axis2.maven2:axis2-wsdl2code-maven-plugin:1.1:wsdl2code > (default-cli) on project Wsdl2JavaTest: Execution default-cli of goal > org.apache.axis2.maven2:axis2-wsdl2code-maven-plugin:1.1:wsdl2code failed: > Plugin org.apache.axis2.maven2:axis2-wsdl2code-maven-plugin:1.1 or one of > its dependencies could not be resolved: Failed to collect dependencies for > org.apache.axis2.maven2:axis2-wsdl2code-maven-plugin:jar:1.1 () > at > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:211) > at > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:148) > at > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:140) > at > org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84) > at > org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59) > at > org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183) > at > org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161) > at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:314) > at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:151) > at org.apache.maven.cli.MavenCli.execute(MavenCli.java:445) > at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:168) > at org.apache.maven.cli.MavenCli.main(MavenCli.java:132) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:597) > at > org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290) > at > org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230) > at > org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409) > at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352) > Caused by: org.apache.maven.plugin.PluginExecutionException: Execution > default-cli of goal > org.apache.axis2.maven2:axis2-wsdl2code-maven-plugin:1.1:wsdl2code failed: > Plugin org.apache.axis2.maven2:axis2-wsdl2code-maven-plugin:1.1 or one of > its dependencies could not be resolved: Failed to collect dependencies for > org.apache.axis2.maven2:axis2-wsdl2code-maven-plugin:jar:1.1 () > at > org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:86) > at > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:195) > ... 19 more > Caused by: org.apache.maven.plugin.PluginResolutionException: Plugin > org.apache.axis2.maven2:axis2-wsdl2code-maven-plugin:1.1 or one of its > dependencies could not be resolved: Failed to collect dependencies for > org.apache.axis2.maven2:axis2-wsdl2code-maven-plugin:jar:1.1 () > at > org.apache.maven.plugin.internal.DefaultPluginDependenciesResolver.resolve(DefaultPluginDependenciesResolver.java:159) > at > org.apache.maven.plugin.internal.DefaultMavenPluginManager.createPluginRealm(DefaultMavenPluginManager.java:316) > at > org.apache.maven.plugin.internal.DefaultMavenPluginManager.setupPluginRealm(DefaultMavenPluginManager.java:284) > at > org.apache.maven.plugin.DefaultBuildPluginManager.getPluginRealm(DefaultBuildPluginManager.java:186) > at > org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:82) > ... 20 more > Caused by: org.sonatype.aether.collection.DependencyCollectionException: > Failed to collect dependencies for > org.apache.axis2.maven2:axis2-wsdl2code-maven-plugin:jar:1.1 () > at > org.sonatype.aether.impl.internal.DefaultDependencyCollector.collectDependencies(DefaultDependencyCollector.java:256) > at > org.sonatype.aether.impl.internal.DefaultRepositorySystem.collectDependencies(DefaultRepositorySystem.java:272) > at > org.apache.maven.plugin.internal.DefaultPluginDependenciesResolver.resolve(DefaultPluginDependenciesResolver.java:148) > ... 24 more > Caused by: org.sonatype.aether.resolution.ArtifactDescriptorException: > Failed to read artifact descriptor for jaxen:jaxen:jar:1.1-beta-10 > at > org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.loadPom(DefaultArtifactDescriptorReader.java:274) > at > org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.readArtifactDescriptor(DefaultArtifactDescriptorReader.java:170) > at > org.sonatype.aether.impl.internal.DefaultDependencyCollector.process(DefaultDependencyCollector.java:424) > at > org.sonatype.aether.impl.internal.DefaultDependencyCollector.process(DefaultDependencyCollector.java:520) > at > org.sonatype.aether.impl.internal.DefaultDependencyCollector.process(DefaultDependencyCollector.java:520) > at > org.sonatype.aether.impl.internal.DefaultDependencyCollector.process(DefaultDependencyCollector.java:520) > at > org.sonatype.aether.impl.internal.DefaultDependencyCollector.process(DefaultDependencyCollector.java:520) > at > org.sonatype.aether.impl.internal.DefaultDependencyCollector.collectDependencies(DefaultDependencyCollector.java:238) > ... 26 more > Caused by: org.sonatype.aether.resolution.ArtifactResolutionException: Could > not transfer artifact jaxen:jaxen:pom:1.1-beta-10 from maven-repo1 > (http://repo1.maven.org/maven/): No connector available to access repository > maven-repo1 (http://repo1.maven.org/maven/) of type legacy using the > available factories AsyncRepositoryConnectorFactory, > WagonRepositoryConnectorFactory > at > org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:488) > at > org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifact(DefaultArtifactResolver.java:190) > at > org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.loadPom(DefaultArtifactDescriptorReader.java:259) > ... 33 more > Caused by: org.sonatype.aether.transfer.ArtifactTransferException: Could not > transfer artifact jaxen:jaxen:pom:1.1-beta-10 from maven-repo1 > (http://repo1.maven.org/maven/): No connector available to access repository > maven-repo1 (http://repo1.maven.org/maven/) of type legacy using the > available factories AsyncRepositoryConnectorFactory, > WagonRepositoryConnectorFactory > at > org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:418) > ... 35 more > Caused by: org.sonatype.aether.transfer.NoRepositoryConnectorException: No > connector available to access repository maven-repo1 > (http://repo1.maven.org/maven/) of type legacy using the available factories > AsyncRepositoryConnectorFactory, WagonRepositoryConnectorFactory > at > org.sonatype.aether.impl.internal.DefaultRemoteRepositoryManager.getRepositoryConnector(DefaultRemoteRepositoryManager.java:361) > at > org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:403) > ... 35 more > [ERROR] > [ERROR] > [ERROR] For more information about the errors and possible solutions, please > read the following articles: > [ERROR] [Help 1] > http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException > > Gerard, > On Tue, Nov 23, 2010 at 6:08 PM, Meeusen, Christopher W. > <[email protected]> wrote: >> >> I would highly recommend not using the axis2 eclipse plugin. We were >> using that for a while and found it buggy when you not include your >> dependent artifacts in the aar files. >> >> >> >> We switched to building aars using the maven aar plugin. It’s much >> better. I would recommend looking at using MAVEN for your builds. >> >> >> >> Chris >> >> >> >> From: java-user-return-83782-meeusen.christopher=mayo....@axis.apache.org >> [mailto:java-user-return-83782-meeusen.christopher=mayo....@axis.apache.org] >> On Behalf Of Gerard Draper >> Sent: Tuesday, November 23, 2010 11:06 AM >> To: [email protected] >> Subject: Re: [Axis2] eclipse plugin >> >> >> >> Hi Andreas, >> >> >> >> Thanks, but unfortunately I haven't been able to install the plugin yet. >> I've installed the google plugin (the one in the example) using the "dropin" >> folder, but it didn't work with the Axis2 plugins (I've tried different >> layouts http://goo.gl/ORypw) . It's like if eclipse ignores it. I don't >> think it's "eclipse's fault", because I've been able to install the axis2 >> 1.4.0 version, just copying it into the plugin folder. >> >> >> >> Has anyone been able to install the eclipse axis2 plugin 1.5.3 ? >> >> >> >> >> >> Gerard >> >> >> >> On Tue, Nov 23, 2010 at 3:43 PM, Andreas Veithen >> <[email protected]> wrote: >> >> Gerard, >> >> Recent Eclipse versions have an alternative approach for installing >> plugins from ZIP files. This involves extracting the file into the >> "dropins" directory. Maybe this works better. Here is an example (for >> another plugin) of how to do this: >> >> http://code.google.com/eclipse/docs/install-from-zip.html >> >> Can you give this a try and report back if that solves the problem >> (and if it works, explain what you did exactly to get the plugins >> installed on Helios)? >> >> Andreas >> >> On Tue, Nov 23, 2010 at 15:34, Gerard Draper <[email protected]> >> wrote: >> > I've download Axis2 codegen and service eclipse plug-in 1.5.3 and >> > followed >> > the install instructions: unzip and copy the folder to the plugin >> > directory >> > in eclipse (I've tried copying the .jar, the folder,...), then restart >> > the >> > eclipse (I'vre tried Galileo and Helios). But I can't see the Axis2 >> > wizard >> > in the "File->New->Other" options. Any idea about what I'm doing wrong? >> > thankx! >> > >> > -- >> > Gerard Draper Gil >> > >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [email protected] >> For additional commands, e-mail: [email protected] >> >> >> -- >> Gerard Draper Gil > > > -- > Gerard Draper Gil > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
