Maven3 support for build and runtime

Description

Fixes are required to build and run under maven3 (beta1 4/10). Additional maven dependencies have not yet been released in order to finish this (maven-project-plugin, maven-compiler-plugin). See http://docs.codehaus.org/display/MAVEN/Maven+3.0.x

  • Classloader has been changed, see https://cwiki.apache.org/MAVEN/maven-3x-class-loading.html. This means that .getClass().getClassLoader() and Thread.currentThread().getContextClassLoader() no longer return the maven dependencies when running a maven plugin. Most likely org.andromda.core.common.ClassUtils and ResourceUtils will need to be fixed, or at least thoroughly tested.

  • maven3 profile turns off all other activeByDefault profiles, which builds no project modules, they must be explicitly activated.

  • Maven subprojects: maven-plugin-plugin fails when building under maven3, after updating properties maven.version:

org.apache.maven.plugins:maven-compiler-plugin:2.3.1:compile
maven\andromdapp\src\main\java\org\andromda\maven\plugin\andromdapp\BuildMojo.java:[481,26] cannot find symbol : method setUsingPOMsFromFilesystem(boolean)
location: class org.apache.maven.execution.MavenSession

maven\andromdapp\src\main\java\org\andromda\maven\plugin\andromdapp\MavenExecuteMojo.java:[183,50] execute(org.apache.maven.execution.MavenSession) in org.apache.maven.lifecycle.LifecycleExecutor cannot be applied to (org.apache.maven.execution.MavenSession,org.apache.maven.execution.ReactorManager,org.apache.maven.monitor.event.EventDispatcher)

Environment

Maven 3.0-beta1

Assignee

Former user

Reporter

Bob Fields

Labels

None

Components

Fix versions

Affects versions

Priority

Minor
Configure