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

Martin Murphy updated SM-1675:
------------------------------

    Attachment: SM-1675-2nd.patch.txt

Here is an improved version of the patch that will work with Maven today. This 
is based on Dan's suggestions. Thanks Dan!

> CXF Binding Component ships with the generated code from the hello_world.wsdl
> -----------------------------------------------------------------------------
>
>                 Key: SM-1675
>                 URL: https://issues.apache.org/activemq/browse/SM-1675
>             Project: ServiceMix
>          Issue Type: Improvement
>          Components: servicemix-cxf-bc
>    Affects Versions: servicemix-cxf-bc-2008.01
>            Reporter: Martin Murphy
>         Attachments: build.err.log, SM-1675-2nd.patch.txt, SM-1675.patch.txt
>
>
> During the generate-sources phase the WSDL is compiled for the tests, the 
> problem is that this generated code and classes are never removed before the 
> packaging. If you check the CXF BC you will see these are all included in the 
> JAR.
> Unfortunately there is no obvious Maven phase that can be used to clean this 
> up in Maven 2.0.9, although there is an 
> [improvement|http://jira.codehaus.org/browse/MNG-3566] which will allow a 
> prepare-package phase to run, we could remove the generated code here. We 
> could clean this up when Maven 2.0.11 is released. We would need to add 
> something like this:
> {code:xml}
>       <plugin>
>         <groupId>org.apache.maven.plugins</groupId>
>         <artifactId>maven-antrun-plugin</artifactId>
>         <version>1.2</version>
>         <executions>
>           <execution>
>             <phase>prepare-package</phase>
>             <configuration>
>               <tasks>
>                 <echo message="Cleaning up generated code before package"/>
>                 <delete dir="${basedir}/target/generated"/>
>                 <delete 
> dir="${basedir}/target/classes/org/apache/hello_world_soap_http"/>
>                 <delete 
> dir="${basedir}/target/classes/org/apache/hello_world_soap_http_provider"/>
>                 <delete 
> dir="${basedir}/target/classes/org/apache/servicemix/samples"/>
>                 <delete dir="${basedir}/target/classes/uri"/>
>               </tasks>
>             </configuration>
>             <goals>
>               <goal>run</goal>
>             </goals>
>           </execution>
>         </executions>
>       </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