You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Markus KARG (JIRA)" <ji...@codehaus.org> on 2014/03/18 15:22:59 UTC
[jira] (MNG-5602) Installs non-existent file into local repository
Markus KARG created MNG-5602:
--------------------------------
Summary: Installs non-existent file into local repository
Key: MNG-5602
URL: https://jira.codehaus.org/browse/MNG-5602
Project: Maven 2 & 3
Issue Type: Bug
Components: Plugins and Lifecycle
Affects Versions: 3.0.4
Environment: Win7 Pro SP1 64 Bit, JDK 7u51, MVN-INSTALL-PLUGIN 2.3.1
Reporter: Markus KARG
Priority: Critical
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
--
This message was sent by Atlassian JIRA
(v6.1.6#6162)