Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
None
-
None
-
13452
Description
Note: we have several issues, that all handle the same thing. We have done some half-hearted fixes. This issue should include all of them!
In several places in the code, ~/.m2/* is hard-coded as the parent of the maven repository directory. Instead, all possible variations of specifying a custom local repository should be respected throughout all NPanday components.
Ways to override the default localRepository
- Commandline switch: -DlocalRepository=...
- setting.xml settings/localRepository
- Also make sure, when custom maven settings is provided, that it does check it up there
In general MAVEN should figure out, where the localRepo is; in the .NET-Addin, though, we'll have to find out ourselves.
Hints
Please list here, if you find places. But a Search in Files with ".m2" will find most cases, I guess.
It looks like a hard coded reference to the local repo in RepositoryConverterForArtifactMojo.java (Line 72) localRepository = new File( System.getProperty( "user.home" ), ".m2/repository" );
}
Attachments
Issue Links
- is duplicated by
-
NPANDAY-469 Error copying dependency if local repository is not default
- Resolved
-
NPANDAY-155 NPanday does not work with -Dmaven.repo.local on the command line
- Closed
-
NPANDAY-338 repository location ignored
- Closed
- relates to
-
NPANDAY-361 Configurable .M2 Folder and npanday-settings.xml lookup
- Resolved
-
NPANDAY-469 Error copying dependency if local repository is not default
- Resolved
-
NPANDAY-155 NPanday does not work with -Dmaven.repo.local on the command line
- Closed