-
Bug
-
Resolution: Fixed
-
Major
-
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
- is blocking
-
JENKINS-906 Maven 2 build failure
- Reopened