You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Rodrigo Ruiz (JIRA)" <ji...@codehaus.org> on 2008/02/05 13:32:28 UTC

[jira] Commented: (MJAR-66) Maven fails to include generated resources

    [ http://jira.codehaus.org/browse/MJAR-66?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_122392 ] 

Rodrigo Ruiz commented on MJAR-66:
----------------------------------

I am experiencing the same problem.

AxisTools does add the resources. Its execute() method ends with:

projectHelper.addResource( project, outputDirectory.getAbsolutePath(), Collections.singletonList( "**/*.wsdl" ),
                                   Collections.EMPTY_LIST );

I have added some logs in a local modification of AxisTools. The plugin is executed, and after the above line, project.getResources() includes this new set.

However, the jar plugin seems to not include any resource outside of target/classes.

Maybe the following is a clue: if I execute:

mvn clean compile axistools:java2wsdl package

the resulting jar includes the wsdl file. If I just do:

mvn package

the jar does not have any wsdl file.

> Maven fails to include generated resources
> ------------------------------------------
>
>                 Key: MJAR-66
>                 URL: http://jira.codehaus.org/browse/MJAR-66
>             Project: Maven 2.x Jar Plugin
>          Issue Type: Bug
>    Affects Versions: 2.1
>         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