openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kevin Sutter (JIRA)" <j...@apache.org>
Subject [jira] Commented: (OPENJPA-186) Build failure of OpenJPA sources from trunk
Date Wed, 28 Mar 2007 13:54:25 GMT

    [ https://issues.apache.org/jira/browse/OPENJPA-186?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12484873
] 

Kevin Sutter commented on OPENJPA-186:
--------------------------------------

Jacek,
I just reproduced your problem.  It looks to be related to the surefire 2.3 plugin for maven.
 I first tried my current maven setup and that had surefire 2.0.  Everything worked just fine.
 I then attempted to remove just the surefire 2.0 plugin, but maven just downloaded the same
2.0 version.  So, I removed maven completely from my .m2 repository and surefire 2.3 was downloaded
and my build failed in the same way as yours (same exception anyway):

[INFO] Surefire report directory: C:\eclipse.workspaces\3.2.2\openjpa\openjpa-lib\target\surefire-reports
[INFO] Building jar: C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\surefirebooter27730.jar
java.net.MalformedURLException: unknown protocol: c
        at java.net.URL.<init>(URL.java:608)
        at java.net.URL.<init>(URL.java:498)
        at sun.misc.URLClassPath$JarLoader.parseClassPath(URLClassPath.java:1118)
        at sun.misc.URLClassPath$JarLoader.getClassPath(URLClassPath.java:1091)
        at sun.misc.URLClassPath.getLoader(URLClassPath.java:476)
        at sun.misc.URLClassPath.getResource(URLClassPath.java:322)
        at java.net.URLClassLoader$ClassFinder.run(URLClassLoader.java:959)
        at java.security.AccessController.doPrivileged(AccessController.java:275)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:487)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:602)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:327)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:568)
The java class is not found:  org.apache.maven.surefire.booter.SurefireBooter

If I modify my pom.xml to use surefire 2.2, everything builds again...

                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-surefire-plugin</artifactId>
                    <version>2.2</version>
                  :

Not sure what is wrong with surefire 2.3, but we have experienced a few problems with it.
 Maybe we should update our pom.xml to use version 2.2 until it gets more stable.

Kevin

> Build failure of OpenJPA sources from trunk
> -------------------------------------------
>
>                 Key: OPENJPA-186
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-186
>             Project: OpenJPA
>          Issue Type: Bug
>          Components: build / infrastructure
>    Affects Versions: 0.9.7
>            Reporter: Jacek Laskowski
>         Attachments: OPENJPA-186.buildfailure.txt
>
>
> (I have sent it to the mailing list on March 26th, but it didn't get through)
> As I'm not alone with the build failure, see http://www.nabble.com/error-building-openjpa-tf3478705.html,
here goes the issue report.
> I've been trying to build OpenJPA source from trunk for a couple of days and no joy so
far. Anything missing?
> jlaskowski@dev /cygdrive/c/oss/openjpa
> $ svn up
> At revision 522565.
> jlaskowski@dev /cygdrive/c/oss/openjpa
> $ svn status
> jlaskowski@dev /cygdrive/c/oss/openjpa
> $ mvn clean install
> [INFO] Executing tasks
>     [echo] Revision: 406193:522097
> [INFO] Executed tasks
> [INFO] [antrun:run {execution: delete sun.misc.Perf}]
> [INFO] Executing tasks
> [INFO] Executed tasks
> [INFO] [resources:testResources]
> [INFO] Using default encoding to copy filtered resources.
> [INFO] [compiler:testCompile]
> [INFO] Compiling 33 source files to
> c:\oss\openjpa\openjpa-lib\target\test-classes
> [INFO] [surefire:test]
> [INFO] Surefire report directory:
> c:\oss\openjpa\openjpa-lib\target\surefire-reports
> [INFO] Building jar: c:\DOCUME~1\JLASKO~1\LOCALS~1\Temp\surefirebooter30238.jar
> java.lang.NoClassDefFoundError: org/apache/maven/surefire/booter/SurefireBooter
> Exception in thread "main"
> [INFO] ------------------------------------------------------------------------
> [ERROR] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] There are test failures.
> [INFO] ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 16 seconds
> [INFO] Finished at: Mon Mar 26 19:16:09 CEST 2007
> [INFO] Final Memory: 21M/254M
> [INFO] ------------------------------------------------------------------------
> jlaskowski@dev /cygdrive/c/oss/openjpa
> $ mvn -v
> Maven version: 2.0.5
> jlaskowski@dev /cygdrive/c/oss/openjpa
> $ java -version
> java version "1.5.0_11"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_11-b03)
> Java HotSpot(TM) Client VM (build 1.5.0_11-b03, mixed mode)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message