[
https://issues.apache.org/activemq/browse/SM-1675?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Martin Murphy updated SM-1675:
------------------------------
Attachment: build.err.log
That was the first thing I tried, before going with the prepare-package phase :)
Problem is that the generated code isn't compiled then since the
generate-test-sources is after the compile phase, so when the tests go to run,
the generated code is there, but hasn't been compiled. Maybe there is something
I could add to the test mojo, but I [can't
see|http://maven.apache.org/plugins/maven-surefire-plugin/test-mojo.html]
anything of use.
> 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.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.