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

Glen Mazza updated CXF-1539:
----------------------------

    Description: 
The Maven cxf-codegen-plugin is wrongfully deleting the generated source files, 
if (and only if) the package name is specified (see the <extraargs> section 
below).  This makes it very difficult to code against the stubs of course, 
because the developer has no idea what they look like--only their compiled 
forms remain.

Everything is fine if the package name is not specified, the files remain in 
target/generated as stated below, not to be removed until "mvn clean" is called.
{code}
                        <plugin>
                                <groupId>org.apache.cxf</groupId>
                                <artifactId>cxf-codegen-plugin</artifactId>
                                <version>${cxf-version}</version>
                                <executions>
                                        <execution>
                                                <phase>generate-sources</phase>
                                                <configuration>
                                                        <sourceRoot>
                                                                
${basedir}/target/generated
                                                        </sourceRoot>
                                                        <wsdlOptions>
                                                                <wsdlOption>
                                                                        <wsdl>
                                                                                
${basedir}/src/main/webapp/WEB-INF/wsdl/mywsdl.wsdl
                                                                        </wsdl>
                                                                         <!-- 
if the below extraargs element is commented out, task runs fine--generated 
source files are not erased.-->
                                                                        
<extraargs>
                                                                                
<extraarg>-p</extraarg>
                                                                                
<extraarg>com.mycompany.abc</extraarg>
                                                                        
</extraargs>
                                                                </wsdlOption>
                                                        </wsdlOptions>
                                                </configuration>
                                                <goals>
                                                        <goal>wsdl2java</goal>
                                                </goals>
                                        </execution>
                                </executions>
                                <dependencies>
                                        <dependency>
                                                <groupId>xerces</groupId>
                                                
<artifactId>xercesImpl</artifactId>
                                                <version>2.8.1</version>
                                        </dependency>
                                </dependencies>
                        </plugin>
{code}

  was:
The Maven cxf-codegen-plugin is wrongfully deleting the generated source files, 
if (and only if) the package name is specified (see the <extraargs> section 
below).  This makes it very difficult to code against the stubs of course, 
because the developer has no idea what they look like--only their compiled 
forms remain.

Everything is fine if the package name is not specified, the files remain in 
target/generated as stated below, not to be removed until "mvn clean" is called.

                        <plugin>
                                <groupId>org.apache.cxf</groupId>
                                <artifactId>cxf-codegen-plugin</artifactId>
                                <version>${cxf-version}</version>
                                <executions>
                                        <execution>
                                                <phase>generate-sources</phase>
                                                <configuration>
                                                        <sourceRoot>
                                                                
${basedir}/target/generated
                                                        </sourceRoot>
                                                        <wsdlOptions>
                                                                <wsdlOption>
                                                                        <wsdl>
                                                                                
${basedir}/src/main/webapp/WEB-INF/wsdl/mywsdl.wsdl
                                                                        </wsdl>
                                                                         <!-- 
if the below extraargs element is commented out, task runs fine--generated 
source files are not erased.-->
                                                                        
<extraargs>
                                                                                
<extraarg>-p</extraarg>
                                                                                
<extraarg>com.mycompany.abc</extraarg>
                                                                        
</extraargs>
                                                                </wsdlOption>
                                                        </wsdlOptions>
                                                </configuration>
                                                <goals>
                                                        <goal>wsdl2java</goal>
                                                </goals>
                                        </execution>
                                </executions>
                                <dependencies>
                                        <dependency>
                                                <groupId>xerces</groupId>
                                                
<artifactId>xercesImpl</artifactId>
                                                <version>2.8.1</version>
                                        </dependency>
                                </dependencies>
                        </plugin>



> Maven cxf-codegen-plugin wrongly deleting generated files if package name 
> specified.
> ------------------------------------------------------------------------------------
>
>                 Key: CXF-1539
>                 URL: https://issues.apache.org/jira/browse/CXF-1539
>             Project: CXF
>          Issue Type: Bug
>    Affects Versions: 2.0.5
>            Reporter: Glen Mazza
>            Priority: Minor
>
> The Maven cxf-codegen-plugin is wrongfully deleting the generated source 
> files, if (and only if) the package name is specified (see the <extraargs> 
> section below).  This makes it very difficult to code against the stubs of 
> course, because the developer has no idea what they look like--only their 
> compiled forms remain.
> Everything is fine if the package name is not specified, the files remain in 
> target/generated as stated below, not to be removed until "mvn clean" is 
> called.
> {code}
>                       <plugin>
>                               <groupId>org.apache.cxf</groupId>
>                               <artifactId>cxf-codegen-plugin</artifactId>
>                               <version>${cxf-version}</version>
>                               <executions>
>                                       <execution>
>                                               <phase>generate-sources</phase>
>                                               <configuration>
>                                                       <sourceRoot>
>                                                               
> ${basedir}/target/generated
>                                                       </sourceRoot>
>                                                       <wsdlOptions>
>                                                               <wsdlOption>
>                                                                       <wsdl>
>                                                                               
> ${basedir}/src/main/webapp/WEB-INF/wsdl/mywsdl.wsdl
>                                                                       </wsdl>
>                                                                          <!-- 
> if the below extraargs element is commented out, task runs fine--generated 
> source files are not erased.-->
>                                                                       
> <extraargs>
>                                                                               
> <extraarg>-p</extraarg>
>                                                                               
> <extraarg>com.mycompany.abc</extraarg>
>                                                                       
> </extraargs>
>                                                               </wsdlOption>
>                                                       </wsdlOptions>
>                                               </configuration>
>                                               <goals>
>                                                       <goal>wsdl2java</goal>
>                                               </goals>
>                                       </execution>
>                               </executions>
>                               <dependencies>
>                                       <dependency>
>                                               <groupId>xerces</groupId>
>                                               
> <artifactId>xercesImpl</artifactId>
>                                               <version>2.8.1</version>
>                                       </dependency>
>                               </dependencies>
>                       </plugin>
> {code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to