cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "K.C. Sham (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CXF-4002) Cannot override read-only parameter: classesDirectory in goal: cxf-codegen:wsdl2java
Date Fri, 27 Apr 2012 21:56:50 GMT

    [ https://issues.apache.org/jira/browse/CXF-4002?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13264013#comment-13264013
] 

K.C. Sham commented on CXF-4002:
--------------------------------

CXF 2.6.0 maven 2.2.1 mac same issue.

Failed when running mvn install; works when running mvn generate-sources.

            <plugin>
                <groupId>org.apache.cxf</groupId>
                <artifactId>cxf-codegen-plugin</artifactId>
                <version>${cxf.version}</version>
                <executions>
                    <execution>
                        <id>generate-sources</id>
                        <phase>generate-sources</phase>
                        <configuration>
                            <sourceRoot>${project.build.directory}/generated/cxf</sourceRoot>
                            <wsdlRoot>${basedir}/src/main/wsdl</wsdlRoot>
                            <includes>
                                <include>**/*.wsdl</include>
                            </includes>
                        </configuration>
                        <goals>
                            <goal>wsdl2java</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>

                
> Cannot override read-only parameter: classesDirectory in goal: cxf-codegen:wsdl2java
> ------------------------------------------------------------------------------------
>
>                 Key: CXF-4002
>                 URL: https://issues.apache.org/jira/browse/CXF-4002
>             Project: CXF
>          Issue Type: Bug
>          Components: Tooling
>    Affects Versions: 2.5.1
>         Environment: Maven, Sonar
>            Reporter: Celinio Fernandes
>              Labels: maven
>             Fix For: NeedMoreInfo
>
>
> 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 I was using which was 2.1.8).
> 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/generated/</sourceRoot>
>                 <wsdlOptions>
>                     <wsdlOption>
>                         <wsdl>${basedir}/src/main/resources/wsdl/mobileclient/blablaClient-1.0.wsdl</wsdl>
>                         <extraargs>
>                             <extraarg>-client</extraarg>       
>                             <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(AbstractMavenPluginExecutor.java:48)
>     at org.sonar.batch.AbstractMavenPluginExecutor.execute(AbstractMavenPluginExecutor.java:37)
>     at org.sonar.batch.phases.InitializersExecutor.executeMavenPlugin(InitializersExecutor.java:67)
>     at org.sonar.batch.phases.InitializersExecutor.execute(InitializersExecutor.java: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(DefaultPluginManager.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(DefaultLifecycleExecutor.java:723)
>     at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
>     at org.apache.maven.lifecycle.DefaultLifecycleExecutor.forkProjectLifecycle(DefaultLifecycleExecutor.java:1205)
>     at org.apache.maven.lifecycle.DefaultLifecycleExecutor.forkLifecycle(DefaultLifecycleExecutor.java:1038)
>     at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:643)
>     at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:569)
>     at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:539)
>     at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
>     at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
>     at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
>     at org.sonar.maven.Maven2PluginExecutor.concreteExecute(Maven2PluginExecutor.java:52)
>     at org.sonar.batch.AbstractMavenPluginExecutor.execute(AbstractMavenPluginExecutor.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(DefaultPluginManager.java:1157)
>     at org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(DefaultPluginManager.java:705)
>     at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:468)
>     at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
>     ... 46 more

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message