You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Maciej &#321;ozi&#324;ski (JIRA)" <ji...@codehaus.org> on 2011/11/02 14:04:51 UTC

[jira] Created: (MWAR-265) Resources is not hadled accordingly to documentation

Resources <targetPath> is not hadled accordingly to documentation
-----------------------------------------------------------------

                 Key: MWAR-265
                 URL: https://jira.codehaus.org/browse/MWAR-265
             Project: Maven 2.x WAR Plugin
          Issue Type: Bug
    Affects Versions: 2.1-alpha-2
         Environment: Windows XP, java version "1.6.0_26", maven 2.2.1
            Reporter: Maciej &#321;ozi&#324;ski


My pom.xml works differently from thw way documentent in section "Overriding the default destination directory" of document http://maven.apache.org/plugins/maven-war-plugin/examples/adding-filtering-webresources.html . I try this configuration:

<resources>
	<resource> <!-- select by "-DdeployTarget=local" or "-DdeployTarget=test" or "-DdeployTarget=production"  -->
		<directory>src/main/resources/${deployTarget}</directory>
		<targetPath>WEB-INF</targetPath>
	</resource>
</resources>

But it copies files to "/WEB-INF/classes/WEB-INF/" instead of just "WEB-INF/", as stated in documentation.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Closed: (MWAR-265) Resources is not hadled accordingly to documentation

Posted by "Dennis Lundberg (JIRA)" <ji...@codehaus.org>.
     [ https://jira.codehaus.org/browse/MWAR-265?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dennis Lundberg closed MWAR-265.
--------------------------------

    Resolution: Not A Bug

You should be using <webResources> instead of <resources>.

> Resources <targetPath> is not hadled accordingly to documentation
> -----------------------------------------------------------------
>
>                 Key: MWAR-265
>                 URL: https://jira.codehaus.org/browse/MWAR-265
>             Project: Maven 2.x WAR Plugin
>          Issue Type: Bug
>    Affects Versions: 2.1-alpha-2
>         Environment: Windows XP, java version "1.6.0_26", maven 2.2.1
>            Reporter: Maciej &#321;ozi&#324;ski
>
> My pom.xml works differently from thw way documentent in section "Overriding the default destination directory" of document http://maven.apache.org/plugins/maven-war-plugin/examples/adding-filtering-webresources.html . I try this configuration:
> <resources>
> 	<resource> <!-- select by "-DdeployTarget=local" or "-DdeployTarget=test" or "-DdeployTarget=production"  -->
> 		<directory>src/main/resources/${deployTarget}</directory>
> 		<targetPath>WEB-INF</targetPath>
> 	</resource>
> </resources>
> But it copies files to "/WEB-INF/classes/WEB-INF/" instead of just "WEB-INF/", as stated in documentation.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira