Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-470

Cannot activate profiles for initially parsing POMs

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • maven-plugin
    • None
    • Platform: All, OS: All

      Due to the use of the Maven 2.0.x embedder in MavenModuleSetBuild.PomParser, it
      is not possible to activate profiles when initially parsing POMs in the
      top-level job for a Maven project. This can cause parsing to fail if additional
      repositories are activated as part of a profile.

      The current workaround is to have hudson run under a new user with its own .m2
      directory and have whichever profiles are necessary activated by default. That
      way, the profiles are picked up as part of the alignWithUserInstallation
      mechanism in the embedder.

      Solutions discussed include:
      -Use the Maven 2.1 embedder
      -Fork a new Maven instance to parse the poms

            Unassigned Unassigned
            gk5885 gk5885
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: