You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Leszek Ciesielski (JIRA)" <ji...@codehaus.org> on 2007/01/10 19:14:21 UTC

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

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

        

[jira] Issue Comment Edited: (MJAR-66) Maven fails to include generated resources

Posted by "Rodrigo Ruiz (JIRA)" <ji...@codehaus.org>.
    [ 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

        

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

Posted by "Baerrach bonDierne (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MJAR-66?page=comments#action_84698 ] 
            
Baerrach bonDierne commented on MJAR-66:
----------------------------------------

I haven't spent any time looking into it but I would suspect that because on a clean the resource directory 
{noformat}
			<resource>
				<directory>target/generated-sources/axistools/java2wsdl</directory>
			</resource>
{noformat}
does not exist that it is not included in the project model.

The second run works as expected because the directory was created on the first run.

Why isn't the axistools-maven-plugin programatically adding in additional resources so the user doesn't need to modify their pom?


> 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

        

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

Posted by "Rodrigo Ruiz (JIRA)" <ji...@codehaus.org>.
    [ 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