[ 
https://issues.apache.org/jira/browse/CXF-7751?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Sergey Pushkin updated CXF-7751:
--------------------------------
    Summary: Codegen plugin can't work with empty extraarg tag  (was: Codegen 
plugin can't work with empty extraarg)

> Codegen plugin can't work with empty extraarg tag
> -------------------------------------------------
>
>                 Key: CXF-7751
>                 URL: https://issues.apache.org/jira/browse/CXF-7751
>             Project: CXF
>          Issue Type: Bug
>          Components: Build system
>    Affects Versions: 3.1.6, 3.2.4
>            Reporter: Sergey Pushkin
>            Priority: Critical
>
>  
> I use cxf codegen plugin and i have separate maven profile to generate code 
> by wsdl. My problem in extraarg tag.
> i have soap connectors, that have pom where is configuration of codegen 
> plugin. When project runnnig with generate code by wsdl profile 
> ${wsdl.extraarg.keep} equal "-keep." And that good work.
> When runnig another maven profile my ${wsdl.extraarg.keep} don't initialize 
> and in codegen in extraarg put emty  string " ".
> {code:java}
> <plugin>
>     <groupId>org.apache.cxf</groupId>
>     <artifactId>cxf-codegen-plugin</artifactId>
>     <version>3.1.6</version>
>     <executions>
>         <execution>
>             <id>generate-sources</id>
>             <phase>generate-sources</phase>
>             <configuration>
>                 <sourceRoot>src/main/java</sourceRoot>
>                 <wsdlOptions>
>                     <wsdlOption>
>                         <wsdl>
>                           ../wsdl//ReferenceDataService.wsdl
>                         </wsdl>
>                         <extraargs> 
>                             <extraarg>${wsdl.extraarg.keep}</extraarg>
>                         </extraargs>
>                     </wsdlOption>
>                 </wsdlOptions>
>                 <encoding>UTF-8</encoding>
>             </configuration>
>             <goals>
>                 <goal>wsdl2java</goal>
>             </goals>
>         </execution>
>     </executions>
> </plugin>
> {code}
> In result i have error.
> [ERROR] Failed to execute goal 
> org.apache.cxf:cxf-codegen-plugin:3.2.4:wsdl2java (generate-sources) on 
> project test-project: Execution generate-sources of goal 
> org.apache.cxf:cxf-codegen-plugin:3.2.4:wsdl2java failed: 
> org.apache.cxf.tools.common.toolspec.parser.BadUsageException: Unexpected 
> argument:
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to