Well, there's maven-runtime in shared, but that stack dumps on M3 (not
sure if that's a regression or known incompat.)
Code like this:
try {
System.out.println( runtime.getProject( Mojo.class ).getVersion
() );
} catch ( MavenRuntimeException e ) {
throw new MojoExecutionException( e.getMessage(), e );
}
Error:
[ERROR] : A required class was missing while executing test:easy-mojo-
plugin:1.0-SNAPSHOT:touch: org/apache/maven/project/
DuplicateProjectException
I think this is because maven-runtime uses maven-project-2.0.8 as a
dependency, the exceptions thrown by the project sorter API seem to
change over time.
- Brett
On 22/10/2009, at 10:08 AM, Benjamin Bentmann wrote:
Brian Fox wrote:
What was wrong with the RuntimeInformation that was present in M2?
It was put in maven-compat and deprecated in M3 so we were looking
for alternatives.
Benjamin
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]