Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Duplicate
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
-
Environment:Windows
Description
This was originally reported as MRESOURCES-17, and I understood from the comments
there it was fixed in version 2.2 of the plugin. But I have tried using that version of the
resources plugin, and I am still seeing the same problem.
My source property file contains:
org.apache.ws.security.crypto.merlin.file=${basedir}/keys/x509.PFX.MSFT
After filtering it looks like this:
org.apache.ws.security.crypto.merlin.file=D:\cygwin\home\dbc\cvs\omii-packaging\source\ws-wss4j/keys/x509.PFX.MSFT
and when the this is read in by `Properties.load()' the value ends up as:
d:cygwinhomedbccvsomii-packagingsourcews-wss4j/keys/x509.PFX.MSFT
Are you sure you are using version 2.2 of Maven resources plugin?
Look at your local Maven repository in the path org/apache/maven/plugins/maven-resources-plugin. If there's a directory with name "2.1" you are using the old 2.1 version of the plugin.
I had the same effect as the one you described.
But when I specified in the pom.xml the version 2.2 it worked:
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<version>2.2</version>
</plugin>
Alternatively you may delete your local repository. Maven should then get the latest version of the resources plugin.