problem with wsgen ant task from maven-antrun-plugin
----------------------------------------------------
Key: MANTRUN-76
URL: http://jira.codehaus.org/browse/MANTRUN-76
Project: Maven 2.x Antrun Plugin
Issue Type: Bug
Reporter: Kevin
I am using maven 2.0.4 and am trying to generate all of the portable artifacts
for a JAX-WS web service from a JAX-WS service endpoint implementation class.
I can generate them and specify the directory where the generated sources or
classes should come.
However, when I use:
sourcedestdir="${project.build.directory}/generated-sources/main/java"
destdir="${project.build.directory}/generated-classes/main/java"
and try to add this source directory as source directory in maven with:
<configuration>
<sourceRoot>${project.build.directory}/generated-sources/main/java</sourceRoot>
<tasks>
....
It still doesn't add it as source directory.
There is a plugin to add source directories: build-helper-maven-plugin
This solves the problem for eclipse, but the generated-classes are not added to
the jar that is created.
How can I add these generated-classes to the jar?
I already used wsimport several times and there I don't have any problems. The
generated-sources directory is added as source directory and the
generated-classes are in the jar that is created.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira