Josef, Please create a JIRA ticket for this issue.
Andreas On Mon, Mar 21, 2016 at 9:13 AM, Stadelmann Josef < josef.stadelm...@axa-winterthur.ch> wrote: > Hi > > > > Just wanted to build one more time axis2 from the trunk, with > -Dmaven.test.skip=true > > That worked well for me in the past as I started to not run all the tests > as they seldom where running and where too often the cause for a abort of > the build. > > Now even with –Dmaven.test.skip=true it failed. The reason is a missing > file which is not generated if tests are skipped. > > > > <plugin> > > <artifactId>maven-antrun-plugin</artifactId> > > <executions> > > <execution> > > <goals> > > <goal>run</goal> > > </goals> > > <phase>test</phase> > > <configuration> > > <tasks unless="maven.test.skip"> > > <echo message="Generating p2n.wsdl" /> > > > > <java > classname="org.apache.ws.java2wsdl.Java2WSDL" > classpathref="maven.test.classpath" fork="true" failonerror="true"> > > <arg value="-o" /> > > <arg > value="${project.build.directory}/java2wsdl" /> > > <arg value="-of" /> > > <arg value="p2n.wsdl" /> > > <arg value="-cn" /> > > <arg > value="org.apache.axis2.description.CalculatorService" /> > > <arg value="-p2n" /> > > <arg > value="[org.apache.axis2.description,http://www.example.org/calculator]" > /> > > <arg value="-stn" /> > > <arg value=" > http://www.example.org/calculator-service" /> > > </java> > > </tasks> > > </configuration> > > </execution> > > </executions> > > </plugin> > > > > The file p2n.wsdl is missing as it will be not generated if > -Dmaven.test.skip=true is selected. > > Why is that file not generated when I just intend to not have tests? > > > > Josef > > > > > > [INFO] BUILD FAILURE > > [INFO] > ------------------------------------------------------------------------ > > [INFO] Total time: 6.552s > > [INFO] Finished at: Mon Mar 21 10:00:45 CET 2016 > > [INFO] Final Memory: 46M/911M > > [INFO] > ------------------------------------------------------------------------ > > [ERROR] Failed to execute goal > org.codehaus.gmavenplus:gmavenplus-plugin:1.5:execute (default) on project > axis2-java2wsdl: Error occurred while calling a method on a Groovy class > from classp > > ath. InvocationTargetException: > E:\asf\axis\axis2\java\core\trunk\modules\java2wsdl\target\java2wsdl\p2n.wsdl > (The system cannot find the path specified) -> [Help 1] > > org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute > goal org.codehaus.gmavenplus:gmavenplus-plugin:1.5:execute (default) on > project axis2-java2wsdl: Error occurred whil > > e calling a method on a Groovy class from classpath. > > at > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:216) > > at > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) > > at > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) > > 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:310) > > at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:146) > > at org.apache.maven.cli.MavenCli.execute(MavenCli.java:534) > > at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:211) > > at org.apache.maven.cli.MavenCli.main(MavenCli.java:156) > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) > > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > > at java.lang.reflect.Method.invoke(Method.java:606) > > 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.MojoExecutionException: Error occurred > while calling a method on a Groovy class from classpath. > > at > org.codehaus.gmavenplus.mojo.ExecuteMojo.doExecute(ExecuteMojo.java:128) > > at > org.codehaus.gmavenplus.mojo.ExecuteMojo.execute(ExecuteMojo.java:83) > > at > org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101) > > at > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208) > > ... 19 more > > Caused by: java.lang.reflect.InvocationTargetException > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) > > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > > at java.lang.reflect.Method.invoke(Method.java:606) > > at > org.codehaus.gmavenplus.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:118) > > at > org.codehaus.gmavenplus.mojo.ExecuteMojo.executeScripts(ExecuteMojo.java:199) > > at > org.codehaus.gmavenplus.mojo.ExecuteMojo.doExecute(ExecuteMojo.java:124) > > ... 22 more > > Caused by: java.io.FileNotFoundException: > E:\asf\axis\axis2\java\core\trunk\modules\java2wsdl\target\java2wsdl\p2n.wsdl > (The system cannot find the path specified) > > at java.io.FileInputStream.open(Native Method) > > at java.io.FileInputStream.<init>(FileInputStream.java:146) > > at groovy.util.XmlParser.parse(XmlParser.java:191) > > at groovy.util.XmlParser$parse.call(Unknown Source) > > at > org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48) > > at > org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113) > > at > org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125) > > at Script1.run(Script1.groovy:14) > > at groovy.lang.GroovyShell.evaluate(GroovyShell.java:591) > > at groovy.lang.GroovyShell.evaluate(GroovyShell.java:629) > > at groovy.lang.GroovyShell.evaluate(GroovyShell.java:600) > > ... 29 more > > [ERROR] > > [ERROR] Re-run Maven using the -X switch to enable full debug logging. > > [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/MojoExecutionException > > E:\asf\axis\axis2\java\core\trunk> > > > > > > > > > > >