History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: APF-783
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Minor Minor
Assignee: Matt Raible
Reporter: Tobias Vogel
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
AppFuse

Adding core classes breaks "mvn site"

Created: 30/May/07 06:37 AM   Updated: 24/Nov/07 12:58 PM
Component/s: Build, Test, or Deploy Process
Affects Version/s: 2.0-M5
Fix Version/s: 2.0 Final

Environment: Windows XP SP2, JDK 1.6.0_01-b06, Maven 2.0.6


 Description  « Hide
I started with a "vanilla" AppFuse 2.0-M5 (Spring-MVC modular), where "mvn site" works as expected. I then checked out the core classes as described in the Wiki (http://appfuse.org/display/APF/AppFuse+Core+Classes) and left them unchanged.

After that I ran the following commands on the root pom in this order:
mvn clean
mvn install
mvn site
mvn site -Dmaven.test.skip=true

Both of the site tasks failed with the same error message quoted below:

--- SNIP ---

[INFO] ------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Unable to load class declared as <mapping class="org.appfuse.model.User"/> in the configuration:
[INFO] ------------------------------------------------------------------------
[INFO] Trace
org.hibernate.MappingException: Unable to load class declared as <mapping class="org.appfuse.model.User"/> in the configuration:
        at org.hibernate.cfg.AnnotationConfiguration.parseMappingElement(AnnotationConfiguration.java:545)
[...]
Caused by: java.lang.ClassNotFoundException: org.appfuse.model.User
        at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
[...]
--- SNAP ---

Seems like there's something missing in the maven.test.classpath.

-------------------------------------------------------------
Workaround by Matt:
Adding <skip>${maven.test.skip}</skip> to the "componentProperties" section of the hibernate3 plugin, allows the 2nd command to work.


 All   Comments   Change History   FishEye      Sort Order:
Matt Raible - 30/May/07 11:01 AM
I've added <skip>${maven.test.skip}</skip> to the core pom.xml, but I don't know if that's a satisfactory solution to this problem - so I'll leave this issue open for now.

Matt Raible - 24/Nov/07 12:58 PM
This appears to have been fixed in 2.0 Final - I can't reproduce it with a 2.0 archetype following the provided instructions.