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 14:27:28 UTC

[jira] Issue Comment Edited: (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 ] 

nodens2k edited comment on MJAR-66 at 2/5/08 7:26 AM:
----------------------------------------------------------

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 will be of help

if I execute:

mvn clean compile axistools:java2wsdl package

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

mvn clean package

no wsdl is included into the jar.

I have found two workarounds:

1. The one described above. Only useful if you have control over the command line
2. Set the axis-tools output directory to "target/classes"

      was (Author: nodens2k):
    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