You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@isis.apache.org by Kevin Meyer - KMZ <ke...@kmz.co.za> on 2011/07/17 21:08:50 UTC

Move over to Maven3?

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.


Re: Move over to Maven3?

Posted by Mohammad Nour El-Din <no...@gmail.com>.
I started from a clean Maven local repository and all built successfully.

On Thu, Jul 21, 2011 at 10:58 PM, Benson Margulies
<bi...@gmail.com> wrote:
> This sure looks like you've changed compiler versions. Compare
> help:effective-pom from the two maven runs and see what you see?
>
> On Thu, Jul 21, 2011 at 4:53 PM, Robert Matthews
> <rm...@nakedobjects.org> wrote:
>> 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.
>>>
>>
>



-- 
Thanks
- Mohammad Nour
  Author of (WebSphere Application Server Community Edition 2.0 User Guide)
  http://www.redbooks.ibm.com/abstracts/sg247585.html
- LinkedIn: http://www.linkedin.com/in/mnour
- Blog: http://tadabborat.blogspot.com
----
"Life is like riding a bicycle. To keep your balance you must keep moving"
- Albert Einstein

"Writing clean code is what you must do in order to call yourself a
professional. There is no reasonable excuse for doing anything less
than your best."
- Clean Code: A Handbook of Agile Software Craftsmanship

"Stay hungry, stay foolish."
- Steve Jobs

Re: Move over to Maven3?

Posted by Benson Margulies <bi...@gmail.com>.
This sure looks like you've changed compiler versions. Compare
help:effective-pom from the two maven runs and see what you see?

On Thu, Jul 21, 2011 at 4:53 PM, Robert Matthews
<rm...@nakedobjects.org> wrote:
> 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.
>>
>

Re: Move over to Maven3?

Posted by Robert Matthews <rm...@nakedobjects.org>.
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.
>