Details
-
Bug
-
Status: Closed
-
Critical
-
Resolution: Not A Problem
-
3.0.4
-
None
-
None
-
Win7 Pro SP1 64 Bit, JDK 7u51, MVN-INSTALL-PLUGIN 2.3.1
Description
The Maven Install Plugin 2.3.1 confirms that it successfully installed a file which actually is not existing in neither the SOURCE nor the TARGET location... This is simply confusing people.
Steps to reproduce:
- Provide a non-existent SOURCE file to the build-helper-plugin and run mvn install.
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>1.8</version>
<executions>
<execution>
<id>attach-exe</id>
<phase>package</phase>
<goals>
<goal>attach-artifact</goal>
</goals>
<configuration>
<artifacts>
<artifact>
<file>FOO</file>
<type>BAR</type>
</artifact>
</artifacts>
</configuration>
</execution>
</executions>
</plugin>
The result is an info that the file got actually installed – which is obviously NOT the case:
[INFO] Installing C:\Users\me\workspace\Bug\FOO to C:\Users\me\.m2\repository\my\group\the-artifact\version-SNAPSHOT\the-artifact-version-SNAPSHOT.BAR