Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

mvn package fails. #2

Open
boomkap opened this issue Jan 30, 2013 · 0 comments
Open

mvn package fails. #2

boomkap opened this issue Jan 30, 2013 · 0 comments

Comments

@boomkap
Copy link

boomkap commented Jan 30, 2013

My Environment: Spring Tool Suite Version: 3.1.0.RELEASE.

I followed the instructions up to the point after DB definition.

I skipped the Jetty plugin as I decided to use the Tomcat server configured to run inside the STS.

After I run mvn package it errors out unable to resolve an import. This is the error message

The import org.springframework.roo.addon.entity cannot be resolved

I have attached the entire log for review.

$ mvn package
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building petclinic 0.1.0.BUILD-SNAPSHOT
[INFO] ------------------------------------------------------------------------
Downloading: http://maven.springframework.org/release/cglib/cglib/2.2/cglib-2.2.pom
Downloading: http://maven.springframework.org/milestone/cglib/cglib/2.2/cglib-2.2.pom
Downloading: http://spring-roo-repository.springsource.org/release/cglib/cglib/2.2/cglib-2.2.pom
Downloading: https://repository.jboss.org/nexus/content/repositories/releases/cglib/cglib/2.2/cglib-2.2.pom
Downloading: http://repo1.maven.org/maven2/cglib/cglib/2.2/cglib-2.2.pom
Downloaded: http://repo1.maven.org/maven2/cglib/cglib/2.2/cglib-2.2.pom (1013 B at 1.7 KB/sec)
Downloading: http://maven.springframework.org/release/asm/asm/3.1/asm-3.1.pom
Downloading: http://maven.springframework.org/milestone/asm/asm/3.1/asm-3.1.pom
Downloading: http://spring-roo-repository.springsource.org/release/asm/asm/3.1/asm-3.1.pom
Downloading: https://repository.jboss.org/nexus/content/repositories/releases/asm/asm/3.1/asm-3.1.pom
Downloading: http://repo1.maven.org/maven2/asm/asm/3.1/asm-3.1.pom
Downloaded: http://repo1.maven.org/maven2/asm/asm/3.1/asm-3.1.pom (278 B at 4.6 KB/sec)
Downloading: http://maven.springframework.org/release/asm/asm-parent/3.1/asm-parent-3.1.pom
Downloading: http://maven.springframework.org/milestone/asm/asm-parent/3.1/asm-parent-3.1.pom
Downloading: http://spring-roo-repository.springsource.org/release/asm/asm-parent/3.1/asm-parent-3.1.pom
Downloading: https://repository.jboss.org/nexus/content/repositories/releases/asm/asm-parent/3.1/asm-parent-3.1.pom
Downloading: http://repo1.maven.org/maven2/asm/asm-parent/3.1/asm-parent-3.1.pom
Downloaded: http://repo1.maven.org/maven2/asm/asm-parent/3.1/asm-parent-3.1.pom (5 KB at 47.2 KB/sec)
Downloading: http://maven.springframework.org/release/cglib/cglib/2.2/cglib-2.2.jar
Downloading: http://maven.springframework.org/release/asm/asm/3.1/asm-3.1.jar
Downloading: http://maven.springframework.org/milestone/cglib/cglib/2.2/cglib-2.2.jar
Downloading: http://maven.springframework.org/milestone/asm/asm/3.1/asm-3.1.jar
Downloading: http://spring-roo-repository.springsource.org/release/cglib/cglib/2.2/cglib-2.2.jar
Downloading: http://spring-roo-repository.springsource.org/release/asm/asm/3.1/asm-3.1.jar
Downloading: https://repository.jboss.org/nexus/content/repositories/releases/asm/asm/3.1/asm-3.1.jar
Downloading: https://repository.jboss.org/nexus/content/repositories/releases/cglib/cglib/2.2/cglib-2.2.jar
Downloading: http://repo1.maven.org/maven2/cglib/cglib/2.2/cglib-2.2.jar
Downloading: http://repo1.maven.org/maven2/asm/asm/3.1/asm-3.1.jar
Downloaded: http://repo1.maven.org/maven2/asm/asm/3.1/asm-3.1.jar (43 KB at 223.5 KB/sec)
Downloaded: http://repo1.maven.org/maven2/cglib/cglib/2.2/cglib-2.2.jar (273 KB at 842.6 KB/sec)
[INFO]
[INFO] --- aspectj-maven-plugin:1.2:compile (default) @ petclinic ---
[ERROR] The import org.springframework.roo.addon.entity cannot be resolved
[ERROR] RooEntity cannot be resolved to a type
[ERROR] The import org.springframework.roo.addon.entity cannot be resolved
[ERROR] RooEntity cannot be resolved to a type
[ERROR] The import org.springframework.roo.addon.web.mvc.controller.RooWebScaffold cannot be resolved
[ERROR] RooWebScaffold cannot be resolved to a type
[ERROR] The import org.springframework.roo.addon.web.mvc.controller.RooWebScaffold cannot be resolved
[ERROR] RooWebScaffold cannot be resolved to a type
[ERROR] The import org.springframework.roo.addon.entity cannot be resolved
[ERROR] RooEntity cannot be resolved to a type
[ERROR] The import org.springframework.roo.addon.web.mvc.controller.RooWebScaffold cannot be resolved
[ERROR] RooWebScaffold cannot be resolved to a type
[ERROR] The import org.springframework.roo.addon.web.mvc.controller.RooWebScaffold cannot be resolved
[ERROR] RooWebScaffold cannot be resolved to a type
[ERROR] The import org.springframework.roo.addon.entity cannot be resolved
[ERROR] RooEntity cannot be resolved to a type
[ERROR] The import org.springframework.roo.addon.entity cannot be resolved
[ERROR] RooEntity cannot be resolved to a type
[ERROR] The import org.springframework.roo.addon.web.mvc.controller.RooConversionService cannot be resolved
[ERROR] RooConversionService cannot be resolved to a type
[WARNING] advice defined in org.springframework.orm.jpa.aspectj.JpaExceptionTranslatorAspect has not been applied [Xlint:adviceDidNotMatch]
[WARNING] advice defined in org.springframework.mock.staticmock.AnnotationDrivenStaticEntityMockingControl has not been applied [Xlint:adviceDidNotMatch]
[WARNING] advice defined in org.springframework.mock.staticmock.AbstractMethodMockingControl has not been applied [Xlint:adviceDidNotMatch]
[WARNING] advice defined in org.springframework.mock.staticmock.AbstractMethodMockingControl has not been applied [Xlint:adviceDidNotMatch]
[WARNING] advice defined in org.springframework.scheduling.aspectj.AbstractAsyncExecutionAspect has not been applied [Xlint:adviceDidNotMatch]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 13.062s
[INFO] Finished at: Tue Jan 29 20:32:42 CST 2013
[INFO] Final Memory: 8M/81M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:aspectj-maven-plugin:1.2:compile (default) on project petclinic: Compiler errors :
[ERROR] error at import org.springframework.roo.addon.entity.RooEntity;
[ERROR] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[ERROR] /Users/kapilkhanna/git/devcenter-spring-mvc-hibernate/src/main/java/com/springsource/petclinic/domain/Pet.java:3:0::0 The import org.springframework.roo.addon.entity cannot be resolved
[ERROR] error at @RooEntity(finders = { "findPetsByNameAndWeight", "findPetsByOwner", "findPetsBySendRemindersAndWeightLessThan", "findPetsByTypeAndNameLike" })
[ERROR] ^^^^^^^^
[ERROR] /Users/kapilkhanna/git/devcenter-spring-mvc-hibernate/src/main/java/com/springsource/petclinic/domain/Pet.java:16:0::0 RooEntity cannot be resolved to a type
[ERROR] error at import org.springframework.roo.addon.entity.RooEntity;
[ERROR] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[ERROR] /Users/kapilkhanna/git/devcenter-spring-mvc-hibernate/src/main/java/com/springsource/petclinic/domain/AbstractPerson.java:3:0::0 The import org.springframework.roo.addon.entity cannot be resolved
[ERROR] error at @RooEntity
[ERROR] ^^^^^^^^
[ERROR] /Users/kapilkhanna/git/devcenter-spring-mvc-hibernate/src/main/java/com/springsource/petclinic/domain/AbstractPerson.java:15:0::0 RooEntity cannot be resolved to a type
[ERROR] error at import org.springframework.roo.addon.web.mvc.controller.RooWebScaffold;
[ERROR] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[ERROR] /Users/kapilkhanna/git/devcenter-spring-mvc-hibernate/src/main/java/com/springsource/petclinic/web/PetController.java:4:0::0 The import org.springframework.roo.addon.web.mvc.controller.RooWebScaffold cannot be resolved
[ERROR] error at @RooWebScaffold(path = "pets", formBackingObject = Pet.class)
[ERROR] ^^^^^^^^^^^^^
[ERROR] /Users/kapilkhanna/git/devcenter-spring-mvc-hibernate/src/main/java/com/springsource/petclinic/web/PetController.java:8:0::0 RooWebScaffold cannot be resolved to a type
[ERROR] error at import org.springframework.roo.addon.web.mvc.controller.RooWebScaffold;
[ERROR] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[ERROR] /Users/kapilkhanna/git/devcenter-spring-mvc-hibernate/src/main/java/com/springsource/petclinic/web/VetController.java:4:0::0 The import org.springframework.roo.addon.web.mvc.controller.RooWebScaffold cannot be resolved
[ERROR] error at @RooWebScaffold(path = "vets", formBackingObject = Vet.class)
[ERROR] ^^^^^^^^^^^^^
[ERROR] /Users/kapilkhanna/git/devcenter-spring-mvc-hibernate/src/main/java/com/springsource/petclinic/web/VetController.java:8:0::0 RooWebScaffold cannot be resolved to a type
[ERROR] error at import org.springframework.roo.addon.entity.RooEntity;
[ERROR] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[ERROR] /Users/kapilkhanna/git/devcenter-spring-mvc-hibernate/src/main/java/com/springsource/petclinic/domain/Visit.java:3:0::0 The import org.springframework.roo.addon.entity cannot be resolved
[ERROR] error at @RooEntity(finders = { "findVisitsByDescriptionAndVisitDate", "findVisitsByVisitDateBetween", "findVisitsByDescriptionLike" })
[ERROR] ^^^^^^^^
[ERROR] /Users/kapilkhanna/git/devcenter-spring-mvc-hibernate/src/main/java/com/springsource/petclinic/domain/Visit.java:19:0::0 RooEntity cannot be resolved to a type
[ERROR] error at import org.springframework.roo.addon.web.mvc.controller.RooWebScaffold;
[ERROR] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[ERROR] /Users/kapilkhanna/git/devcenter-spring-mvc-hibernate/src/main/java/com/springsource/petclinic/web/OwnerController.java:4:0::0 The import org.springframework.roo.addon.web.mvc.controller.RooWebScaffold cannot be resolved
[ERROR] error at @RooWebScaffold(path = "owners", formBackingObject = Owner.class)
[ERROR] ^^^^^^^^^^^^^
[ERROR] /Users/kapilkhanna/git/devcenter-spring-mvc-hibernate/src/main/java/com/springsource/petclinic/web/OwnerController.java:8:0::0 RooWebScaffold cannot be resolved to a type
[ERROR] error at import org.springframework.roo.addon.web.mvc.controller.RooWebScaffold;
[ERROR] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[ERROR] /Users/kapilkhanna/git/devcenter-spring-mvc-hibernate/src/main/java/com/springsource/petclinic/web/VisitController.java:4:0::0 The import org.springframework.roo.addon.web.mvc.controller.RooWebScaffold cannot be resolved
[ERROR] error at @RooWebScaffold(path = "visits", formBackingObject = Visit.class)
[ERROR] ^^^^^^^^^^^^^
[ERROR] /Users/kapilkhanna/git/devcenter-spring-mvc-hibernate/src/main/java/com/springsource/petclinic/web/VisitController.java:8:0::0 RooWebScaffold cannot be resolved to a type
[ERROR] error at import org.springframework.roo.addon.entity.RooEntity;
[ERROR] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[ERROR] /Users/kapilkhanna/git/devcenter-spring-mvc-hibernate/src/main/java/com/springsource/petclinic/domain/Owner.java:3:0::0 The import org.springframework.roo.addon.entity cannot be resolved
[ERROR] error at @RooEntity
[ERROR] ^^^^^^^^
[ERROR] /Users/kapilkhanna/git/devcenter-spring-mvc-hibernate/src/main/java/com/springsource/petclinic/domain/Owner.java:14:0::0 RooEntity cannot be resolved to a type
[ERROR] error at import org.springframework.roo.addon.entity.RooEntity;
[ERROR] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[ERROR] /Users/kapilkhanna/git/devcenter-spring-mvc-hibernate/src/main/java/com/springsource/petclinic/domain/Vet.java:3:0::0 The import org.springframework.roo.addon.entity cannot be resolved
[ERROR] error at @RooEntity
[ERROR] ^^^^^^^^
[ERROR] /Users/kapilkhanna/git/devcenter-spring-mvc-hibernate/src/main/java/com/springsource/petclinic/domain/Vet.java:17:0::0 RooEntity cannot be resolved to a type
[ERROR] error at import org.springframework.roo.addon.web.mvc.controller.RooConversionService;
[ERROR] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[ERROR] /Users/kapilkhanna/git/devcenter-spring-mvc-hibernate/src/main/java/com/springsource/petclinic/web/ApplicationConversionServiceFactoryBean.java:5:0::0 The import org.springframework.roo.addon.web.mvc.controller.RooConversionService cannot be resolved
[ERROR] error at @RooConversionService
[ERROR] ^^^^^^^^^^^^^^^^^^^
[ERROR] /Users/kapilkhanna/git/devcenter-spring-mvc-hibernate/src/main/java/com/springsource/petclinic/web/ApplicationConversionServiceFactoryBean.java:10:0::0 RooConversionService cannot be resolved to a type
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant