jira-importer commented on issue #204:
URL: 
https://github.com/apache/maven-install-plugin/issues/204#issuecomment-2771849125

   **[mork](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=mork)** 
commented
   
   I've tried to comment the classifier in the second (jar) sample, and it 
installs with no problem (also without a target/classes directory).
   And it says:
   [INFO] Installing C:\Temp\MINSTALL-40-2\target\foo-jar-1.0.jar to 
C:\Documents and Settings\xxx\.m2\repository\foo\bar\foo-jar\1.0\foo-jar-1.0.jar
   
   If I restore the classifier, the install goal fails with this:
   
   [INFO] Installing C:\Temp\MINSTALL-40-2\target\classes to C:\Documents and 
Settings\xxx\.m2\repository\foo\bar\foo-jar\1.0\foo-jar-1.0.jar
   [INFO] 
------------------------------------------------------------------------
   [ERROR] BUILD ERROR
   [INFO] 
------------------------------------------------------------------------
   [INFO] Error installing artifact: File C:\Temp\MINSTALL-40-2\target\classes 
does not exist
   
   This trace is done in the DefaultArtifactInstaller, when the InstallMojo 
calls:
   installer.install( file, artifact, localRepository );
   
   The DefaultArtifactInstaller tries here to copy "file" on the destination 
(repository) with:
   FileUtils.copyFile( source, destination );
   
   thats the line that raises the Exception, if I'm right, because there is no 
C:\Temp\MINSTALL-40-2\target\classes directory.
   
   So the question is: why the artifact metadata, in the case of a "classified" 
artifact, gives "C:\Temp\MINSTALL-40-2\target\classes"
   as the file path, and not "C:\Temp\MINSTALL-40-2\target\foo-jar-1.0-xxx.jar" 
as it should be?
   Hope it helps
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to