Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-5602

Installs non-existent file into local repository

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Not A Problem
    • 3.0.4
    • None
    • Plugins and Lifecycle
    • 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

      Attachments

        Activity

          People

            Unassigned Unassigned
            mkarg Markus Karg
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: