Uploaded image for project: 'NPanday'
  1. NPanday
  2. NPANDAY-284

NPanday should respect custom localRepository (provided by maven!)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 1.5.0-incubating
    • Maven Plugins
    • 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" );
      {[NPanday.Utils.RepositoryUtility:41}

      }

      Attachments

        Issue Links

          Activity

            People

              brett Brett Porter
              supkichen supkichen
              Votes:
              5 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: