On Saturday, December 31, 2011 11:13:35 AM Celinio wrote: > No, it is not occuring outside of Sonar.
I commented on the JIRA, but this really looks like a Sonar issue of some sort. However, both the main CXF build and the Camel build at: http://analysis.apache.org/ which would run the codegen plugin are succeeding fine. Thus, it seems to be something semi-local to your setup. Maybe the Sonar version. It may be the version of maven you have your sonar build setup to run. (we use 3.0.3 for our sonar builds) That said, please add any additional information to the Jira. Olivier apparently has forwarded the JIRA ticket URL off to some of his friends who work on Sonar. Thus, they may look deeper into it. Dan > On Thu, Dec 29, 2011 at 3:55 AM, Daniel Kulp <[email protected]> wrote: > > Is this occurring outside of Sonar as well? I have no idea what > > would > > cause this error as you aren't configuring in a classesDirectory. > > Strange. > > > > Dan > > > > On Tuesday, December 27, 2011 11:02:39 AM Celinio wrote: > > > Hi, > > > I am getting this error when using the version 2.5.1 of the > > > cxf-codegen-plugin (i did not get this error with the previous > > > version > > > > that > > > > > was using which was 2.1.8) . > > > Any idea about what could go wrong ? Thanks ! > > > > > > Pom of the parent : > > > <plugin> > > > > > > <groupId>org.apache.cxf</groupId> > > > <artifactId>cxf-codegen-plugin</artifactId> > > > <version>2.5.1</version> > > > > > > </plugin> > > > > > > Pom of the child : > > > > > > <plugin> > > > > > > <groupId>org.apache.cxf</groupId> > > > <artifactId>cxf-codegen-plugin</artifactId> > > > <executions> > > > > > > <execution> > > > > > > <id>generate-sources</id> > > > <phase>generate-sources</phase> > > > <configuration> > > > > > > <sourceRoot>${basedir}/src/main/gene > > > rated/</sourceRoot> > > > <wsdlOptions> > > > > > > <wsdlOption> > > > > <wsdl>${basedir}/src/main/resources/wsdl/mobileclient/blablaClient-1.0.w > > sdl<> > > > /wsdl> <extraargs> > > > > > > <extraarg>-c > > > lient</extra > > > arg> > > > <extraarg>-p > > > </extraarg> > > > > > > <extraarg>http://www.xxx.com/client.blablaClient</extraarg> > > > > > > </extraargs> > > > > > > </wsdlOption> > > > > > > </wsdlOptions> > > > > > > </configuration> > > > <goals> > > > > > > <goal>wsdl2java</goal> > > > > > > </goals> > > > > > > </execution> > > > > > > </executions> > > > > > > </plugin> > > > > > > Here is the complete stack trace : > > > > > > Embedded error: Unable to execute maven plugin Error configuring: > > > org.apache.cxf:cxf-codegen-plugin. Reason: ERROR: Cannot override > > > > read-only > > > > > parameter: classesDirectory in goal: cxf-codegen:wsdl2java [INFO] > > > -------------------------------------------------------------------- > > > ---- [INFO] Trace > > > Caused by: org.sonar.api.utils.SonarException: Unable to execute > > > maven > > > plugin > > > > > > at > > > > org.sonar.batch.AbstractMavenPluginExecutor.execute(AbstractMavenPluginE > > xecu> > > > tor.java:48) at > > > > org.sonar.batch.AbstractMavenPluginExecutor.execute(AbstractMavenPluginE > > xecu> > > > tor.java:37) at > > > > org.sonar.batch.phases.InitializersExecutor.executeMavenPlugin(Initializ > > ersE> > > > xecutor.java:67) at > > > > org.sonar.batch.phases.InitializersExecutor.execute(InitializersExecutor > > .jav> > > > a:54) at org.sonar.batch.phases.Phases.execute(Phases.java:77) > > > > > > at > > > org.sonar.batch.ProjectBatch.execute(ProjectBatch.java:59) > > > at org.sonar.batch.Batch.analyzeModule(Batch.java:164) > > > at org.sonar.batch.Batch.analyzeModule(Batch.java:155) > > > at org.sonar.batch.Batch.analyzeModule(Batch.java:155) > > > at org.sonar.batch.Batch.analyzeModules(Batch.java:82) > > > at org.sonar.batch.Batch.execute(Batch.java:62) > > > at > > > org.sonar.maven.SonarMojo.executeBatch(SonarMojo.java:155) > > > at org.sonar.maven.SonarMojo.execute(SonarMojo.java:144) > > > at > > > > org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginMa > > nage> > > > r.java:490) at > > > org.codehaus.mojo.sonar.Bootstraper.executeMojo(Bootstraper.java:98) > > > ...> > > 21 > > > > > more > > > Caused by: org.apache.maven.lifecycle.LifecycleExecutionException: > > > Error configuring: org.apache.cxf:cxf-codegen-plugin. Reason: > > > ERROR: Cannot override read-only parameter: classesDirectory in > > > goal: > > > cxf-codegen:wsdl2java > > > > > > at > > > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Default > > Life> > > > cycleExecutor.java:723) at > > > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifec > > ycle> > > > (DefaultLifecycleExecutor.java:556) at > > > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.forkProjectLifecycle > > (Def> > > > aultLifecycleExecutor.java:1205) at > > > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.forkLifecycle(Defaul > > tLif> > > > ecycleExecutor.java:1038) at > > > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Default > > Life> > > > cycleExecutor.java:643) at > > > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoa > > l(De> > > > faultLifecycleExecutor.java:569) at > > > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultL > > ifec> > > > ycleExecutor.java:539) at > > > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandle > > Fail> > > > ures(DefaultLifecycleExecutor.java:387) at > > > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments( > > Defa> > > > ultLifecycleExecutor.java:348) at > > > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifec > > ycle> > > > Executor.java:180) at > > > > org.sonar.maven.Maven2PluginExecutor.concreteExecute(Maven2PluginExecuto > > r.ja> > > > va:52) at > > > > org.sonar.batch.AbstractMavenPluginExecutor.execute(AbstractMavenPluginE > > xecu> > > > tor.java:46) ... 35 more > > > Caused by: org.apache.maven.plugin.PluginConfigurationException: > > > Error > > > configuring: org.apache.cxf:cxf-codegen-plugin. Reason: ERROR: > > > Cannot > > > override read-only parameter: classesDirectory in goal: > > > cxf-codegen:wsdl2java > > > > > > at > > > > org.apache.maven.plugin.DefaultPluginManager.validatePomConfiguration(De > > faul> > > > tPluginManager.java:1157) at > > > > org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(DefaultPl > > ugin> > > > Manager.java:705) at > > > > org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginMa > > nage> > > > r.java:468) at > > > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Default > > Life> > > > cycleExecutor.java:694) ... 46 more > > > > -- > > Daniel Kulp > > [email protected] - http://dankulp.com/blog > > Talend Community Coder - http://coders.talend.com -- Daniel Kulp [email protected] - http://dankulp.com/blog Talend Community Coder - http://coders.talend.com
