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: 1
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: 08/Dec/08 12:22 PM   Resolved: 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.


2751 by  Matt Raible (1 file)
30/May/07 10:55 AM (38 months, 13 days ago)
Matt Raible added a comment - 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 made changes - 08/Oct/07 01:51 PM
Field Original Value New Value
Fix Version/s 2.0.1 [ 10092 ]
Matt Raible added a comment - 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.

Matt Raible made changes - 24/Nov/07 12:58 PM
Status Open [ 1 ] Resolved [ 5 ]
Fix Version/s 2.0 Final [ 10113 ]
Fix Version/s 2.0.1 [ 10092 ]
Resolution Fixed [ 1 ]
Christian Decker added a comment - 04/Dec/08 07:41 PM
I'm having the same problem with version 2.0.2 (at least that's the appfuse.version in the pom.xml after appfuse:fullsource). Any idea on how to fix this?

Matt Raible added a comment - 08/Dec/08 12:22 PM
I created a Spring MVC modular project with 2.0.2, ran "mvn install site" and everything worked for me! ;-)

[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] ------------------------------------------------------------------------
[INFO] AppFuse Modular Application ........................... SUCCESS [26.500s]
[INFO] AppFuse Modular Application - Core .................... SUCCESS [54.467s]
[INFO] AppFuse Modular Application - Web (Spring MVC) ........ SUCCESS [1:32.195s]
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2 minutes 53 seconds
[INFO] Finished at: Mon Dec 08 11:22:32 MST 2008
[INFO] Final Memory: 90M/508M