[ 
http://jira.codehaus.org/browse/MAXISTOOLS-44?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=183998#action_183998
 ] 

Benjamin Bentmann commented on MAXISTOOLS-44:
---------------------------------------------

This a bug of the Axis Tools Plugin, not the Jar Plugin. The Jar Plugin is by 
design not responsible for resources, it takes the stuff from 
{{target/classes}} and produces an archive. It's the Resources Plugin that 
copies the resources to the build's output directory. Now, the Resources Plugin 
is run in the lifecycle phase "process-resources", which happens before 
"process-classes", which is the default phase for "java2wsdl". So whatever new 
resoureces the Axis Tools Plugin adds, they won't be seen by the Resources 
Plugin, and hence don't show up in the output directory.

In general, plugins that run after the Resources Plugin need to directly output 
their files to the project's build directory, just like one cannot add 
additional source directories once the Compiler Plugin has been run.

Adding an additonal execution of {{resources:resources}} could be a workaround, 
though I haven't though much about possible side effects.

> Maven fails to include generated resources
> ------------------------------------------
>
>                 Key: MAXISTOOLS-44
>                 URL: http://jira.codehaus.org/browse/MAXISTOOLS-44
>             Project: Maven 2.x Axis Tools Plugin
>          Issue Type: Bug
>    Affects Versions: 1.3
>         Environment: Linux (not tested on windows)
>            Reporter: Leszek Ciesielski
>         Attachments: ConfigurationServerAPI.tar.gz
>
>
> My project is generating a wsdl with axistools plugin. When maven is run with 
> mvn clean install (or after a checkout), the wsdl is not packaged into the 
> jar, although it is present when the jar is generated and included in 
> resources. On second run (mvn install) the wsdl file, is, as expected, 
> included.
> A test project showing this behaviour is attached.

-- 
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

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to