Results 1 to 3 of 3

Thread: "perform package" fails on simple JAR project with no persistence

Hybrid View

  1. #1
    Join Date
    Nov 2009
    Location
    Montreal, Quebec
    Posts
    398

    Default "perform package" fails on simple JAR project with no persistence

    I'm creating a simple project which will be just a JAR archive that will be shared by a few web applications. I merely did the project setup and created a few classes, no persistence setup needed. If I "perform clean" followed by "perform package" I get weaving errors in the Roo shell. Something like "can't determine annotations of missing type javax.persistence.Entity when weaving type org.mypackage.MyClass" and I get the same thing on all the classes in the project. None of them have any annotations on them.

    If I "perform clean" followed by "perform command --mavenCommand compile" followed by "perform command --mavenCommand compile" followed by "perform package" only then does it successfully package my JAR. I intentionally have to perform the maven compile twice because the first compile gives me the same errors as if I just "perform clean" then "perform package." The second compile seems to successfully complete, after which I can successfully package.

  2. #2
    Join Date
    Mar 2008
    Location
    Sydney, AU
    Posts
    974

    Default

    That is because Roo includes AspectJ into the project pom.xml. AspectJ is an integral part to almost all functionalities Roo offers. However, currenty AspectJ has a direct dependency for the JPA API so that API needs to be included in the Roo pom.xml as well. See more details here http://forum.springsource.org/showth...070#post293070.

    Which Roo version are you using?
    Stefan Schmidt
    Software Engineer, Spring Roo
    SpringSource - a division of VMware
    twitter @schmidtstefan

  3. #3
    Join Date
    Nov 2009
    Location
    Montreal, Quebec
    Posts
    398

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •