Details
-
Type:
Bug
-
Status: Resolved
-
Priority:
Critical
-
Resolution: Complete
-
Affects Version/s: 1.2.1.RELEASE
-
Fix Version/s: 1.2.2.RELEASE
-
Component/s: @ CORE
-
Labels:None
-
Environment:Mac OS X 10.7.3, JDK 7
Description
As a developer and Spring evangelist, I would like Spring Roo to build using Java 7.
Given the following Project creation: project --topLevelPackage com.gordondickens.rootest --java 7 --projectName rootest
~.web roo> perform package
The command 'mvn -DskipTests=true package' did not complete successfully
[Thread-9] [INFO] Scanning for projects...
[Thread-9] [INFO]
[Thread-9] [INFO] ------------------------------------------------------------------------
[Thread-9] [INFO] Building rootest 0.1.0.BUILD-SNAPSHOT
[Thread-9] [INFO] ------------------------------------------------------------------------
[Thread-9] [INFO]
[Thread-9] [INFO] — aspectj-maven-plugin:1.2:compile (default) @ rootest —
[Thread-9] [ERROR] declare @type is only supported at Java 5 compliance level or above
[Thread-9] [ERROR] declare @type is only supported at Java 5 compliance level or above
[Thread-9] [ERROR] declare @type is only supported at Java 5 compliance level or above
[Thread-9] [ERROR] declare @type is only supported at Java 5 compliance level or above
[Thread-9] [ERROR] declare @type is only supported at Java 5 compliance level or above
[Thread-9] [INFO] ------------------------------------------------------------------------
[Thread-9] [INFO] BUILD FAILURE
[Thread-9] [INFO] ------------------------------------------------------------------------
[Thread-9] [INFO] Total time: 7.436s
[Thread-9] [INFO] Finished at: Thu Apr 05 10:39:08 EDT 2012
[Thread-9] [INFO] Final Memory: 17M/490M
[Thread-9] [INFO] ------------------------------------------------------------------------
[Thread-9] [ERROR] Failed to execute goal org.codehaus.mojo:aspectj-maven-plugin:1.2:compile (default) on project rootest: Compiler errors :
[Thread-9] [ERROR] error at declare @type: ItemRepository: @Repository;
[Thread-9] [ERROR] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[Thread-9] [ERROR] /code/A-Gordons-Git/rootest121/src/main/java/com/gordondickens/rootest/repository/ItemRepository_Roo_Jpa_Repository.aj:18:0::0 declare @type is only supported at Java 5 compliance level or above
[Thread-9] [ERROR] error at declare @type: ItemServiceImpl: @Service;
[Thread-9] [ERROR] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[Thread-9] [ERROR] /code/A-Gordons-Git/rootest121/src/main/java/com/gordondickens/rootest/service/ItemServiceImpl_Roo_Service.aj:16:0::0 declare @type is only supported at Java 5 compliance level or above
[Thread-9] [ERROR] error at declare @type: ItemServiceImpl: @Transactional;
[Thread-9] [ERROR] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[Thread-9] [ERROR] /code/A-Gordons-Git/rootest121/src/main/java/com/gordondickens/rootest/service/ItemServiceImpl_Roo_Service.aj:18:0::0 declare @type is only supported at Java 5 compliance level or above
[Thread-9] [ERROR] error at declare @type: ApplicationConversionServiceFactoryBean: @Configurable;
[Thread-9] [ERROR] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[Thread-9] [ERROR] /code/A-Gordons-Git/rootest121/src/main/java/com/gordondickens/rootest/web/ApplicationConversionServiceFactoryBean_Roo_ConversionService.aj:16:0::0 declare @type is only supported at Java 5 compliance level or above
[Thread-9] [ERROR] error at declare @type: Item: @Entity;
[Thread-9] [ERROR] ^^^^^^^^^^^^^^^^^^^^^^^^
[Thread-9] [ERROR] /code/A-Gordons-Git/rootest121/src/main/java/com/gordondickens/rootest/domain/Item_Roo_Jpa_Entity.aj:16:0::0 declare @type is only supported at Java 5 compliance level or above
[Thread-9] [ERROR] -> [Help 1]
[Thread-9] [ERROR]
[Thread-9] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[Thread-9] [ERROR] Re-run Maven using the -X switch to enable full debug logging.
[Thread-9] [ERROR]
[Thread-9] [ERROR] For more information about the errors and possible solutions, please read the following articles:
[Thread-9] [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException