You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by tog <gu...@gmail.com> on 2007/04/13 14:07:17 UTC
New to cxf : build with maven
Hi,
I try to build cxf out from svn and I got some minor problems (I am new to
maven 2).
When just typing mvn, I got the following error:
The 'plugin 'org.apache.maven.plugins:maven-pmd-plugin' does not exist or no
valid version can be found
What can I do to fix that ? I thought this should come automatically from
the maven2 repos.
When going with maven -Pfastinstall except is usually fine except with the
latest revision for which I get this:
[INFO]
----------------------------------------------------------------------------
[INFO] Building Apache CXF Test Utilities
[INFO] task-segment: [install]
[INFO]
----------------------------------------------------------------------------
[INFO] [antrun:run {execution: validate}]
[INFO] Executing tasks
[INFO] Executed tasks
[INFO] Registering compile source root
/home/alleon/projects/cxf/trunk/testutils/target/generated/src/main/java
[INFO] [cxf-codegen:wsdl2java {execution: generate-sources}]
13 avr. 2007 13:09:02 org.apache.cxf.tools.wsdlto.core.PluginLoaderloadPlugin
INFO: Loading plugin
jar:file:/home/alleon/projects/cxf/trunk/tools/wsdlto/frontend/jaxws/target/cxf-
tools-wsdlto-frontend-jaxws-2.0-incubator-RC-SNAPSHOT.jar!/META-INF/tools-plugin.xml
13 avr. 2007 13:09:02 org.apache.cxf.tools.wsdlto.core.PluginLoaderloadPlugin
INFO: Found 1 frontends in <jaxws> plugin.
13 avr. 2007 13:09:02 org.apache.cxf.tools.wsdlto.core.PluginLoaderloadPlugin
INFO: Loading <jaxws> frontend from <jaxws> plugin.
13 avr. 2007 13:09:02 org.apache.cxf.tools.wsdlto.core.PluginLoaderloadPlugin
INFO: Loading plugin
jar:file:/home/alleon/projects/cxf/trunk/tools/wsdlto/databinding/jaxb/target/cxf-
tools-wsdlto-databinding-jaxb-2.0-incubator-RC-SNAPSHOT.jar!/META-INF/tools-plugin.xml
13 avr. 2007 13:09:02 org.apache.cxf.tools.wsdlto.core.PluginLoaderloadPlugin
INFO: Found 1 databindings in <jaxb> plugin.
13 avr. 2007 13:09:02 org.apache.cxf.tools.wsdlto.core.PluginLoaderloadPlugin
INFO: Loading <jaxb> databinding from <jaxb> plugin.
WSDLToJava Error : java.lang.ClassCastException:
sun.net.www.protocol.file.FileURLConnection
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] ExitException: status 1
[INFO]
------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: ExitException:
status 1
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
DefaultLifecycleExecutor.java:564)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle
(DefaultLifecycleExecutor.java:480)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(
DefaultLifecycleExecutor.java:459)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures
(DefaultLifecycleExecutor.java:311)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
DefaultLifecycleExecutor.java:278)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(
DefaultLifecycleExecutor.java:143)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:272)
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:585)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java
:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java
:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.MojoExecutionException: ExitException:
status 1
at org.apache.cxf.maven_plugin.WSDL2JavaMojo.processWsdl(
WSDL2JavaMojo.java:199)
at org.apache.cxf.maven_plugin.WSDL2JavaMojo.execute(
WSDL2JavaMojo.java:102)
at org.apache.maven.plugin.DefaultPluginManager.executeMojo(
DefaultPluginManager.java:443)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
DefaultLifecycleExecutor.java:539)
... 16 more
Caused by: org.apache.tools.ant.ExitException: ExitException: status 1
at
org.apache.tools.ant.util.optional.NoExitSecurityManager.checkExit(
NoExitSecurityManager.java:38)
at java.lang.Runtime.exit(Runtime.java:88)
at java.lang.System.exit(System.java:869)
at org.apache.cxf.tools.wsdlto.WSDLToJava.main(WSDLToJava.java:181)
at org.apache.cxf.maven_plugin.WSDL2JavaMojo.processWsdl(
WSDL2JavaMojo.java:184)
... 19 more
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 25 seconds
[INFO] Finished at: Fri Apr 13 13:09:03 GMT+01:00 2007
[INFO] Final Memory: 29M/117M
[INFO]
------------------------------------------------------------------------
alleon@oggy:~/projects/cxf/trunk$
Cheers
Guillaume
Re: New to cxf : build with maven
Posted by Thorsten Kamann <th...@googlemail.com>.
On 4/13/07, tog <gu...@gmail.com> wrote:
>
> Hi,
>
> I try to build cxf out from svn and I got some minor problems (I am new to
> maven 2).
>
> When just typing mvn, I got the following error:
>
> The 'plugin 'org.apache.maven.plugins:maven-pmd-plugin' does not exist or
> no
> valid version can be found
You must add the version to this plugin in the POM to get Maven to resolve
this dependency properly. Without this I have similar problems.
You will find the latest version at http://mvnrepository.com/. Simply search
for maven-pmd-plugin
Thorsten
--
Thorsten Kamann
Software-Architect, Consultant, Coaching
Germany, NRW
Business:
itemis products and solutions GmbH & Co. KG
Heinrichstraße 51
44536 Lünen
Rechtlicher Hinweis:
Amtsgericht Dortmund, HRA 15841
P.h.G.:
Komplementär: itemis management GmbH, Amtsgericht Dortmund HRB 18939
Geschäftsführer Jürgen Rödl
Personal:
thorsten.kamann@googlemail.com
http://www.thorsten-kamann.de/
callto://thorque
Re: New to cxf : build with maven
Posted by Daniel Kulp <dk...@apache.org>.
Guillaume
On Friday 13 April 2007 11:19, tog wrote:
> The first problem was solved using thorsten's hint, I added the
> version of the plugin in parent/pom.xml and that solved my problem.
I just committed that change to hopefully figure out what the apache
continuum is complaining about.
> The other problem was on my side but I got a new one ! I build on a
> Linux box using 1.5.0_11.
It looks like you're caught between a couple of merges I did yesterday.
The <init>(Lorg/apache/cxf/service/model/ServiceInfo;)V stuff was added
yesterday.
I would suggest a top level:
mvn clean
svn up
mvn -Pfastinstall
to just clean it all out and start fresh.
Dan
>
> Regards
> Guillaume
>
> -------------------------------------------------------
> T E S T S
> -------------------------------------------------------
> Running
> org.apache.cxf.tools.java2wsdl.generator.WSDLGeneratorFactoryTest
> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.05
> sec Running
> org.apache.cxf.tools.java2wsdl.processor.internal.jaxws.JaxwsServiceBu
>ilderTest Tests run: 14, Failures: 0, Errors: 1, Skipped: 12, Time
> elapsed: 1.993 sec <<< FAILURE!
> testRPCLit(
> org.apache.cxf.tools.java2wsdl.processor.internal.jaxws.JaxwsServiceBu
>ilderTest) Time elapsed: 1.797 sec <<< ERROR!
> java.lang.NoSuchMethodError: org.apache.cxf.wsdl11.ServiceWSDLBuilder
> .<init>(Lorg/apache/cxf/service/model/ServiceInfo;)V
> at
> org.apache.cxf.tools.java2wsdl.generator.wsdl11.WSDL11Generator.genera
>te( WSDL11Generator.java:40)
> at
> org.apache.cxf.tools.java2wsdl.processor.internal.jaxws.JaxwsServiceBu
>ilderTest.testRPCLit (JaxwsServiceBuilderTest.java:94)
> 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:585)
> at
> org.junit.internal.runners.TestMethodRunner.executeMethodBody(
> TestMethodRunner.java:99)
> at org.junit.internal.runners.TestMethodRunner.runUnprotected(
> TestMethodRunner.java:81)
> at
> org.junit.internal.runners.BeforeAndAfterRunner.runProtected(
> BeforeAndAfterRunner.java:34)
> at org.junit.internal.runners.TestMethodRunner.runMethod(
> TestMethodRunner.java:75)
> at org.junit.internal.runners.TestMethodRunner.run(
> TestMethodRunner.java:45)
> at
> org.junit.internal.runners.TestClassMethodsRunner.invokeTestMethod(
> TestClassMethodsRunner.java:66)
> at org.junit.internal.runners.TestClassMethodsRunner.run(
> TestClassMethodsRunner.java:35)
> at
> org.junit.internal.runners.TestClassRunner$1.runUnprotected(
> TestClassRunner.java:42)
> at
> org.junit.internal.runners.BeforeAndAfterRunner.runProtected(
> BeforeAndAfterRunner.java:34)
> at org.junit.internal.runners.TestClassRunner.run(
> TestClassRunner.java:52)
> at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(
> JUnit4TestSet.java:62)
> at
> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTest
>Set( AbstractDirectoryTestSuite.java:138)
> at
> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(
> AbstractDirectoryTestSuite.java:125)
> at org.apache.maven.surefire.Surefire.run(Surefire.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:585)
> at
> org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(
> SurefireBooter.java:290)
> at org.apache.maven.surefire.booter.SurefireBooter.main(
> SurefireBooter.java:818)
>
> Running org.apache.cxf.tools.java2wsdl.processor.JavaToProcessorTest
> Tests run: 3, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 0.149
> sec <<< FAILURE!
> testSimpleClass(org.apache.cxf.tools.java2wsdl.processor.JavaToProcess
>orTest) Time elapsed: 0.099 sec <<< ERROR!
> java.lang.NoSuchMethodError: org.apache.cxf.wsdl11.ServiceWSDLBuilder
> .<init>(Lorg/apache/cxf/service/model/ServiceInfo;)V
> at
> org.apache.cxf.tools.java2wsdl.generator.wsdl11.WSDL11Generator.genera
>te( WSDL11Generator.java:40)
> at
> org.apache.cxf.tools.java2wsdl.generator.wsdl11.WSDL11Generator.genera
>te( WSDL11Generator.java:32)
> at
> org.apache.cxf.tools.java2wsdl.processor.JavaToProcessor.process(
> JavaToProcessor.java:68)
> at
> org.apache.cxf.tools.java2wsdl.processor.JavaToProcessorTest.testSimpl
>eClass (JavaToProcessorTest.java:51)
> 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:585)
> at
> org.junit.internal.runners.TestMethodRunner.executeMethodBody(
> TestMethodRunner.java:99)
> at org.junit.internal.runners.TestMethodRunner.runUnprotected(
> TestMethodRunner.java:81)
> at
> org.junit.internal.runners.BeforeAndAfterRunner.runProtected(
> BeforeAndAfterRunner.java:34)
> at org.junit.internal.runners.TestMethodRunner.runMethod(
> TestMethodRunner.java:75)
> at org.junit.internal.runners.TestMethodRunner.run(
> TestMethodRunner.java:45)
> at
> org.junit.internal.runners.TestClassMethodsRunner.invokeTestMethod(
> TestClassMethodsRunner.java:66)
> at org.junit.internal.runners.TestClassMethodsRunner.run(
> TestClassMethodsRunner.java:35)
> at
> org.junit.internal.runners.TestClassRunner$1.runUnprotected(
> TestClassRunner.java:42)
> at
> org.junit.internal.runners.BeforeAndAfterRunner.runProtected(
> BeforeAndAfterRunner.java:34)
> at org.junit.internal.runners.TestClassRunner.run(
> TestClassRunner.java:52)
> at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(
> JUnit4TestSet.java:62)
> at
> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTest
>Set( AbstractDirectoryTestSuite.java:138)
> at
> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(
> AbstractDirectoryTestSuite.java:125)
> at org.apache.maven.surefire.Surefire.run(Surefire.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:585)
> at
> org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(
> SurefireBooter.java:290)
> at org.apache.maven.surefire.booter.SurefireBooter.main(
> SurefireBooter.java:818)
>
> testCalculator(org.apache.cxf.tools.java2wsdl.processor.JavaToProcesso
>rTest) Time elapsed: 0.034 sec <<< ERROR!
> java.lang.NoSuchMethodError: org.apache.cxf.wsdl11.ServiceWSDLBuilder
> .<init>(Lorg/apache/cxf/service/model/ServiceInfo;)V
> at
> org.apache.cxf.tools.java2wsdl.generator.wsdl11.WSDL11Generator.genera
>te( WSDL11Generator.java:40)
> at
> org.apache.cxf.tools.java2wsdl.generator.wsdl11.WSDL11Generator.genera
>te( WSDL11Generator.java:32)
> at
> org.apache.cxf.tools.java2wsdl.processor.JavaToProcessor.process(
> JavaToProcessor.java:68)
> at
> org.apache.cxf.tools.java2wsdl.processor.JavaToProcessorTest.testCalcu
>lator( JavaToProcessorTest.java:71)
> 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:585)
> at
> org.junit.internal.runners.TestMethodRunner.executeMethodBody(
> TestMethodRunner.java:99)
> at org.junit.internal.runners.TestMethodRunner.runUnprotected(
> TestMethodRunner.java:81)
> at
> org.junit.internal.runners.BeforeAndAfterRunner.runProtected(
> BeforeAndAfterRunner.java:34)
> at org.junit.internal.runners.TestMethodRunner.runMethod(
> TestMethodRunner.java:75)
> at org.junit.internal.runners.TestMethodRunner.run(
> TestMethodRunner.java:45)
> at
> org.junit.internal.runners.TestClassMethodsRunner.invokeTestMethod(
> TestClassMethodsRunner.java:66)
> at org.junit.internal.runners.TestClassMethodsRunner.run(
> TestClassMethodsRunner.java:35)
> at
> org.junit.internal.runners.TestClassRunner$1.runUnprotected(
> TestClassRunner.java:42)
> at
> org.junit.internal.runners.BeforeAndAfterRunner.runProtected(
> BeforeAndAfterRunner.java:34)
> at org.junit.internal.runners.TestClassRunner.run(
> TestClassRunner.java:52)
> at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(
> JUnit4TestSet.java:62)
> at
> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTest
>Set( AbstractDirectoryTestSuite.java:138)
> at
> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(
> AbstractDirectoryTestSuite.java:125)
> at org.apache.maven.surefire.Surefire.run(Surefire.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:585)
> at
> org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(
> SurefireBooter.java:290)
> at org.apache.maven.surefire.booter.SurefireBooter.main(
> SurefireBooter.java:818)
>
> On 4/13/07, Daniel Kulp <dk...@apache.org> wrote:
> > On Friday 13 April 2007 08:07, tog wrote:
> > > I try to build cxf out from svn and I got some minor problems (I
> > > am new to maven 2).
> > >
> > > When just typing mvn, I got the following error:
> > >
> > > The 'plugin 'org.apache.maven.plugins:maven-pmd-plugin' does not
> > > exist or no valid version can be found
> >
> > Hmm... that's not good. Do you have anything in your
> > ~/.m2/settings.xml (like a mirror) that could be interfering?
> >
> > > What can I do to fix that ? I thought this should come
> > > automatically from the maven2 repos.
> >
> > It definitely should. However, it's possible that your
> > ~/.m2/repository has some corrupt metadata. You could try "rm -rf"
> > the
> > org/apache/maven/plugins directory to force it to re-resolve them
> > all.
> >
> > > When going with maven -Pfastinstall except is usually fine except
> > > with the latest revision for which I get this:
> >
> > Hmm.. that's not good. Could you run with "-X" and see if
> > additional information is spit out?
> >
> > Also, what platform/OS are you on?
> >
> >
> > --
> > J. Daniel Kulp
> > Principal Engineer
> > IONA
> > P: 781-902-8727 C: 508-380-7194
> > daniel.kulp@iona.com
> > http://www.dankulp.com/blog
--
J. Daniel Kulp
Principal Engineer
IONA
P: 781-902-8727 C: 508-380-7194
daniel.kulp@iona.com
http://www.dankulp.com/blog
Re: New to cxf : build with maven
Posted by tog <gu...@gmail.com>.
Daniel,
The first problem was solved using thorsten's hint, I added the version of
the plugin in parent/pom.xml and that solved my problem.
The other problem was on my side but I got a new one ! I build on a Linux
box using 1.5.0_11.
Regards
Guillaume
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running org.apache.cxf.tools.java2wsdl.generator.WSDLGeneratorFactoryTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.05 sec
Running
org.apache.cxf.tools.java2wsdl.processor.internal.jaxws.JaxwsServiceBuilderTest
Tests run: 14, Failures: 0, Errors: 1, Skipped: 12, Time elapsed: 1.993 sec
<<< FAILURE!
testRPCLit(
org.apache.cxf.tools.java2wsdl.processor.internal.jaxws.JaxwsServiceBuilderTest)
Time elapsed: 1.797 sec <<< ERROR!
java.lang.NoSuchMethodError: org.apache.cxf.wsdl11.ServiceWSDLBuilder
.<init>(Lorg/apache/cxf/service/model/ServiceInfo;)V
at
org.apache.cxf.tools.java2wsdl.generator.wsdl11.WSDL11Generator.generate(
WSDL11Generator.java:40)
at
org.apache.cxf.tools.java2wsdl.processor.internal.jaxws.JaxwsServiceBuilderTest.testRPCLit
(JaxwsServiceBuilderTest.java:94)
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:585)
at org.junit.internal.runners.TestMethodRunner.executeMethodBody(
TestMethodRunner.java:99)
at org.junit.internal.runners.TestMethodRunner.runUnprotected(
TestMethodRunner.java:81)
at org.junit.internal.runners.BeforeAndAfterRunner.runProtected(
BeforeAndAfterRunner.java:34)
at org.junit.internal.runners.TestMethodRunner.runMethod(
TestMethodRunner.java:75)
at org.junit.internal.runners.TestMethodRunner.run(
TestMethodRunner.java:45)
at
org.junit.internal.runners.TestClassMethodsRunner.invokeTestMethod(
TestClassMethodsRunner.java:66)
at org.junit.internal.runners.TestClassMethodsRunner.run(
TestClassMethodsRunner.java:35)
at org.junit.internal.runners.TestClassRunner$1.runUnprotected(
TestClassRunner.java:42)
at org.junit.internal.runners.BeforeAndAfterRunner.runProtected(
BeforeAndAfterRunner.java:34)
at org.junit.internal.runners.TestClassRunner.run(
TestClassRunner.java:52)
at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(
JUnit4TestSet.java:62)
at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(
AbstractDirectoryTestSuite.java:138)
at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(
AbstractDirectoryTestSuite.java:125)
at org.apache.maven.surefire.Surefire.run(Surefire.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:585)
at
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(
SurefireBooter.java:290)
at org.apache.maven.surefire.booter.SurefireBooter.main(
SurefireBooter.java:818)
Running org.apache.cxf.tools.java2wsdl.processor.JavaToProcessorTest
Tests run: 3, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 0.149 sec
<<< FAILURE!
testSimpleClass(org.apache.cxf.tools.java2wsdl.processor.JavaToProcessorTest)
Time elapsed: 0.099 sec <<< ERROR!
java.lang.NoSuchMethodError: org.apache.cxf.wsdl11.ServiceWSDLBuilder
.<init>(Lorg/apache/cxf/service/model/ServiceInfo;)V
at
org.apache.cxf.tools.java2wsdl.generator.wsdl11.WSDL11Generator.generate(
WSDL11Generator.java:40)
at
org.apache.cxf.tools.java2wsdl.generator.wsdl11.WSDL11Generator.generate(
WSDL11Generator.java:32)
at org.apache.cxf.tools.java2wsdl.processor.JavaToProcessor.process(
JavaToProcessor.java:68)
at
org.apache.cxf.tools.java2wsdl.processor.JavaToProcessorTest.testSimpleClass
(JavaToProcessorTest.java:51)
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:585)
at org.junit.internal.runners.TestMethodRunner.executeMethodBody(
TestMethodRunner.java:99)
at org.junit.internal.runners.TestMethodRunner.runUnprotected(
TestMethodRunner.java:81)
at org.junit.internal.runners.BeforeAndAfterRunner.runProtected(
BeforeAndAfterRunner.java:34)
at org.junit.internal.runners.TestMethodRunner.runMethod(
TestMethodRunner.java:75)
at org.junit.internal.runners.TestMethodRunner.run(
TestMethodRunner.java:45)
at
org.junit.internal.runners.TestClassMethodsRunner.invokeTestMethod(
TestClassMethodsRunner.java:66)
at org.junit.internal.runners.TestClassMethodsRunner.run(
TestClassMethodsRunner.java:35)
at org.junit.internal.runners.TestClassRunner$1.runUnprotected(
TestClassRunner.java:42)
at org.junit.internal.runners.BeforeAndAfterRunner.runProtected(
BeforeAndAfterRunner.java:34)
at org.junit.internal.runners.TestClassRunner.run(
TestClassRunner.java:52)
at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(
JUnit4TestSet.java:62)
at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(
AbstractDirectoryTestSuite.java:138)
at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(
AbstractDirectoryTestSuite.java:125)
at org.apache.maven.surefire.Surefire.run(Surefire.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:585)
at
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(
SurefireBooter.java:290)
at org.apache.maven.surefire.booter.SurefireBooter.main(
SurefireBooter.java:818)
testCalculator(org.apache.cxf.tools.java2wsdl.processor.JavaToProcessorTest)
Time elapsed: 0.034 sec <<< ERROR!
java.lang.NoSuchMethodError: org.apache.cxf.wsdl11.ServiceWSDLBuilder
.<init>(Lorg/apache/cxf/service/model/ServiceInfo;)V
at
org.apache.cxf.tools.java2wsdl.generator.wsdl11.WSDL11Generator.generate(
WSDL11Generator.java:40)
at
org.apache.cxf.tools.java2wsdl.generator.wsdl11.WSDL11Generator.generate(
WSDL11Generator.java:32)
at org.apache.cxf.tools.java2wsdl.processor.JavaToProcessor.process(
JavaToProcessor.java:68)
at
org.apache.cxf.tools.java2wsdl.processor.JavaToProcessorTest.testCalculator(
JavaToProcessorTest.java:71)
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:585)
at org.junit.internal.runners.TestMethodRunner.executeMethodBody(
TestMethodRunner.java:99)
at org.junit.internal.runners.TestMethodRunner.runUnprotected(
TestMethodRunner.java:81)
at org.junit.internal.runners.BeforeAndAfterRunner.runProtected(
BeforeAndAfterRunner.java:34)
at org.junit.internal.runners.TestMethodRunner.runMethod(
TestMethodRunner.java:75)
at org.junit.internal.runners.TestMethodRunner.run(
TestMethodRunner.java:45)
at
org.junit.internal.runners.TestClassMethodsRunner.invokeTestMethod(
TestClassMethodsRunner.java:66)
at org.junit.internal.runners.TestClassMethodsRunner.run(
TestClassMethodsRunner.java:35)
at org.junit.internal.runners.TestClassRunner$1.runUnprotected(
TestClassRunner.java:42)
at org.junit.internal.runners.BeforeAndAfterRunner.runProtected(
BeforeAndAfterRunner.java:34)
at org.junit.internal.runners.TestClassRunner.run(
TestClassRunner.java:52)
at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(
JUnit4TestSet.java:62)
at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(
AbstractDirectoryTestSuite.java:138)
at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(
AbstractDirectoryTestSuite.java:125)
at org.apache.maven.surefire.Surefire.run(Surefire.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:585)
at
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(
SurefireBooter.java:290)
at org.apache.maven.surefire.booter.SurefireBooter.main(
SurefireBooter.java:818)
On 4/13/07, Daniel Kulp <dk...@apache.org> wrote:
>
>
>
> On Friday 13 April 2007 08:07, tog wrote:
> > I try to build cxf out from svn and I got some minor problems (I am
> > new to maven 2).
> >
> > When just typing mvn, I got the following error:
> >
> > The 'plugin 'org.apache.maven.plugins:maven-pmd-plugin' does not exist
> > or no valid version can be found
>
> Hmm... that's not good. Do you have anything in your
> ~/.m2/settings.xml (like a mirror) that could be interfering?
>
>
> > What can I do to fix that ? I thought this should come automatically
> > from the maven2 repos.
>
> It definitely should. However, it's possible that your ~/.m2/repository
> has some corrupt metadata. You could try "rm -rf" the
> org/apache/maven/plugins directory to force it to re-resolve them all.
>
>
> > When going with maven -Pfastinstall except is usually fine except with
> > the latest revision for which I get this:
>
> Hmm.. that's not good. Could you run with "-X" and see if additional
> information is spit out?
>
> Also, what platform/OS are you on?
>
>
> --
> J. Daniel Kulp
> Principal Engineer
> IONA
> P: 781-902-8727 C: 508-380-7194
> daniel.kulp@iona.com
> http://www.dankulp.com/blog
>
--
<a target="_blank"
href="http://www.google.com/calendar/render?cid=guillaume.alleon%40gmail.com"><img
src="http://www.google.com/calendar/images/ext/gc_button1_en.gif "
border=0></a>
Re: New to cxf : build with maven
Posted by Daniel Kulp <dk...@apache.org>.
On Friday 13 April 2007 08:07, tog wrote:
> I try to build cxf out from svn and I got some minor problems (I am
> new to maven 2).
>
> When just typing mvn, I got the following error:
>
> The 'plugin 'org.apache.maven.plugins:maven-pmd-plugin' does not exist
> or no valid version can be found
Hmm... that's not good. Do you have anything in your
~/.m2/settings.xml (like a mirror) that could be interfering?
> What can I do to fix that ? I thought this should come automatically
> from the maven2 repos.
It definitely should. However, it's possible that your ~/.m2/repository
has some corrupt metadata. You could try "rm -rf" the
org/apache/maven/plugins directory to force it to re-resolve them all.
> When going with maven -Pfastinstall except is usually fine except with
> the latest revision for which I get this:
Hmm.. that's not good. Could you run with "-X" and see if additional
information is spit out?
Also, what platform/OS are you on?
--
J. Daniel Kulp
Principal Engineer
IONA
P: 781-902-8727 C: 508-380-7194
daniel.kulp@iona.com
http://www.dankulp.com/blog