Re: Build Failures?

From: Andrus Adamchik (andru..bjectstyle.org)
Date: Wed Feb 07 2007 - 09:14:12 EST

  • Next message: Michael Gentry: "Re: Build Failures?"

    Hmm, looks like a problem due to a recent refactoring. I suggest to
    start with a clean local repo:

    rm -rf ~/.m2/repository/org/apache/cayenne
    cd cayenne/ && mvn clean install

    Andrus

    On Feb 7, 2007, at 3:57 PM, Michael Gentry wrote:

    > Does a "mvn install" currently build for others? Whenever I try it
    > (or to build the Mac DMG), I get:
    >
    > [INFO]
    > ----------------------------------------------------------------------
    > ------
    > [INFO] Building Cayenne JPA Unpublished
    > [INFO] task-segment: [install]
    > [INFO]
    > ----------------------------------------------------------------------
    > ------
    > [INFO] [resources:resources]
    > [INFO] Using default encoding to copy filtered resources.
    > [INFO] [compiler:compile]
    > [INFO] Nothing to compile - all classes are up to date
    > [INFO] [resources:testResources]
    > [INFO] Using default encoding to copy filtered resources.
    > [INFO] [compiler:testCompile]
    > [INFO] Nothing to compile - all classes are up to date
    > [INFO] [surefire:test]
    > [INFO] Surefire report directory:
    > /usr/local/mrg/Projects/eclipse/workspace/Cayenne30/framework/
    > cayenne-jpa-unpublished/target/surefire-reports
    > org.apache.maven.surefire.booter.SurefireExecutionException:
    > org/apache/cayenne/jpa/JpaEntityManagerFactory; nested exception is
    > java.lang.NoClassDefFoundError:
    > org/apache/cayenne/jpa/JpaEntityManagerFactory
    > java.lang.NoClassDefFoundError: org/apache/cayenne/jpa/
    > JpaEntityManagerFactory
    > at java.lang.Class.getDeclaredMethods0(Native Method)
    > at java.lang.Class.privateGetDeclaredMethods(Class.java:2365)
    > at java.lang.Class.getMethod0(Class.java:2611)
    > at java.lang.Class.getMethod(Class.java:1579)
    > at
    > org.apache.maven.surefire.junit.JUnitTestSet.createInstanceFromSuiteMe
    > thod(JUnitTestSet.java:173)
    > at
    > org.apache.maven.surefire.junit.JUnitTestSet.constructTestObject
    > (JUnitTestSet.java:137)
    > at org.apache.maven.surefire.junit.JUnitTestSet.getTestCount
    > (JUnitTestSet.java:244)
    > at
    > org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.locateTestS
    > ets(AbstractDirectoryTestSuite.java:101)
    > at
    > org.apache.maven.surefire.Surefire.createSuiteFromDefinition
    > (Surefire.java:147)
    > at org.apache.maven.surefire.Surefire.run(Surefire.java:108)
    > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    > at sun.reflect.NativeMethodAccessorImpl.invoke
    > (NativeMethodAccessorImpl.java:39)
    > at sun.reflect.DelegatingMethodAccessorImpl.invoke
    > (DelegatingMethodAccessorImpl.java:25)
    > at java.lang.reflect.Method.invoke(Method.java:585)
    > at
    > org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess
    > (SurefireBooter.java:225)
    > at org.apache.maven.surefire.booter.SurefireBooter.main
    > (SurefireBooter.java:747)
    > [INFO]
    > ----------------------------------------------------------------------
    > --
    > [ERROR] BUILD FAILURE
    > [INFO]
    > ----------------------------------------------------------------------
    > --
    >
    >
    >
    >
    >
    > Just curious if it is isolated to me or something. Thanks!
    >
    > /dev/mrg
    >



    This archive was generated by hypermail 2.0.0 : Wed Feb 07 2007 - 09:14:42 EST