Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » Maven Test Fails with Custom Logger(Testing EclipseLink in Maven)
Maven Test Fails with Custom Logger [message #890737] Fri, 22 June 2012 23:52
Rick O\\\'Shea is currently offline Rick O\\\'SheaFriend
Messages: 1
Registered: May 2012
Junior Member
This may be a maven:surefire issue but under no circumstances will tests succeed with EclipseLink when using a custom logger. Adding a custom logger is simple:

(excuse the x, but you cannot post links until you have 25 messages)

httpx://whileitcompiles.com/programming/java/enabling-slf4j-logging-in-eclipselink/

Unfortunately, maven tests will always fail claiming they cannot find the class. The class is part of the library under test, so it's included in the classpath of a test.

Adding the jar as an "additional classpath" entry fails, too:

httpx://maven.apache.org/plugins/maven-surefire-plugin/examples/configuring-classpath.html

Finally, even creating a maven repository and including that in your pom.xml fails.

httpx://blog.dub.podval.org/2010/01/maven-in-project-repository.html

I would really like to have one logger for JPA and the application itself.
Previous Topic:Problem with select case from Criteria API
Next Topic:The collection of metamodel types is empty.
Goto Forum:
  


Current Time: Tue Apr 23 13:43:06 GMT 2024

Powered by FUDForum. Page generated in 0.03270 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top