incubator-isis-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robert Matthews <rmatth...@nakedobjects.org>
Subject Re: Move over to Maven3?
Date Thu, 21 Jul 2011 20:53:07 GMT
Kevin

I've just got around to trying this out for you.  However I have 
immediately run into problems.

I've got

Apache Maven 3.0.3 (r1075438; 2011-02-28 17:31:09+0000)
Maven home: /home/rcm/usr/apache-maven-3.0.3
Java version: 1.6.0_22, vendor: Sun Microsystems Inc.
Java home: /usr/lib/jvm/java-6-openjdk/jre
Default locale: en_GB, platform encoding: UTF-8
OS name: "linux", version: "2.6.39-arch", arch: "amd64", family: "unix"

and having done

$ svn up
$ ~/usr/apache-maven-3.0.3/bin/mvn clean
$ ~/usr/apache-maven-3.0.3/bin/mvn install

it gives me this:-

[ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-compiler-plugin:2.3.1:compile 
(default-compile) on project commons: Compilation failure
[ERROR] 
/home/rcm/isis/trunk/core/commons/src/main/java/org/apache/isis/core/commons/factory/InstanceUtil.java:[67,35]

invalid inferred types for T; inferred type does not conform to declared 
bound(s)
[ERROR] inferred: T
[ERROR] bound(s): R
[ERROR] -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to 
execute goal 
org.apache.maven.plugins:maven-compiler-plugin:2.3.1:compile 
(default-compile) on project commons: Compilation failure
/home/rcm/isis/trunk/core/commons/src/main/java/org/apache/isis/core/commons/factory/InstanceUtil.java:[67,35]

invalid inferred types for T; inferred type does not conform to declared 
bound(s)
inferred: T
bound(s): R


     at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:213)
     at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
     at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
     at 
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
     at 
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
     at 
org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
     at 
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
     at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
     at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
     at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
     at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
     at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
     at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
     at java.lang.reflect.Method.invoke(Method.java:616)
     at 
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
     at 
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
     at 
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
     at 
org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: org.apache.maven.plugin.CompilationFailureException: 
Compilation failure
/home/rcm/isis/trunk/core/commons/src/main/java/org/apache/isis/core/commons/factory/InstanceUtil.java:[67,35]

invalid inferred types for T; inferred type does not conform to declared 
bound(s)
inferred: T
bound(s): R


     at 
org.apache.maven.plugin.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:656)
     at org.apache.maven.plugin.CompilerMojo.execute(CompilerMojo.java:128)
     at 
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
     at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
     ... 19 more
[ERROR]


How does this compare with your results.  What are you running on?

Rob


On 17/07/11 20:08, Kevin Meyer - KMZ wrote:
> Hi all,
>
> I think I've proved to myself that the previous issue with Maven3
> seems to have been fixed - if I remember correctly, the doc build did
> not complete properly - and this no longer seems to be the case (or
> has otherwise been addressed).
>
> Dan? Rob? Would you care to confirm this?
>
> Everyone else? Is there any reason not to up the maven version from
> 2.2 to 3?
>
> The changes to framework pom are:
>
> Remove the 3.0.0 version restriction:
>
> 	<requireMavenVersion>
> -<version>[2.2.1,3.0.0)</version>
> +<version>[2.2.1,)</version>
>
> Increase the maven-site-plugin version:
>
>                   <plugin>
>                       <groupId>org.apache.maven.plugins</groupId>
>                       <artifactId>maven-site-plugin</artifactId>
> -<version>2.2</version>
> +<version>3.0-beta-3</version>
>
> Regards,
> Kevin
>
> PS: I'll preserve the latest full build site from /tmp/m2-sites/isis, if
> anyone needs me to check output, etc, first.
>

Mime
View raw message