You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Jane Young <ja...@oracle.com> on 2012/04/09 18:43:26 UTC

What is the use case of install-file in Maven 3?

Hi Maven Gurus,

I recently posted a question about a bug in Maven 3.  See: 
http://tinyurl.com/7r9jbls.
A colleague pointed out that this is not a bug.  Maven 3 has stricter 
repository searching as mentioned in [1].

Resolution from Local Repository

The local repository used by Maven 3.x has been enhanced to keep track 
from what remote repositories an artifact was resolved from. This 
information about an artifact's origin is used to ensure builds can only 
access locally cached artifacts if they have the proper repositories 
configured. Hence, projects that lack required remote repositories in 
their POM might fail when being built with Maven 3. This improves 
reproducibility of a build by eliminating the effects of unintended 
artifact sharing via the local repository.

[1] 
https://cwiki.apache.org/MAVEN/maven-3x-compatibility-notes.html#Maven3.xCompatibilityNotes-ResolutionfromLocalRepository 


In that case,  what is the use of "install-file" in Maven 3?

Thanks,
Jane


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org