Re: Problems building cayenne trunk

From: Aristedes Maniatis (ar..aniatis.org)
Date: Wed Mar 07 2007 - 21:17:10 EST

  • Next message: Andrus Adamchik: "Re: 3.0 Javadocs"

    Done.

    On 08/03/2007, at 12:43 PM, Lachlan Deck wrote:

    > Can someone update the following page with that instruction:
    > http://cayenne.apache.org/building-cayenne.html
    >
    > On 08/03/2007, at 12:39 PM, Mike Kienenberger wrote:
    >
    >> Try skipping the tests.
    >>
    >> mvn -Dmaven.test.skip=true install
    >>
    >>
    >> On 3/7/07, Lachlan Deck <lachlan.dec..mail.com> wrote:
    >>> Hi there,
    >>>
    >>> I'm following the instructions from the following url to build from
    >>> the latest source:
    >>> http://cayenne.apache.org/building-cayenne.html
    >>>
    >>> But it's failing as you can see below signature. So it seems that
    >>> the
    >>> "First Time Bootstrap" fails as attempting to move onto Building
    >>> Platform Specific Artifacts, etc also fail.
    >>>
    >>> Any ideas?
    >>>
    >>> Thanks.
    >>> --
    >>>
    >>> Lachlan Deck
    >>>
    >>> ##
    >>> ## Environment: Mac OS X 10.4.8
    >>> ## - assume MacPorts installed
    >>> ##
    >>> $ sudo port install maven2 (or sudo port upgrade maven2)
    >>> $ svn co https://svn.apache.org/repos/asf/cayenne/main/trunk/
    >>> cayenne
    >>> $ cd cayenne && mvn install
    >>> <...>
    >>> [INFO] Installing /Users/ldeck/Documents/Development/OpenSource/
    >>> Cayenne/itests/itest-common/target/itest-common-3.0-SNAPSHOT.jar
    >>> to /
    >>> Users/ldeck/.m2/repository/org/apache/cayenne/itests/itest-common/
    >>> 3.0-
    >>> SNAPSHOT/itest-common-3.0-SNAPSHOT.jar
    >>> [INFO] Installing /Users/ldeck/Documents/Development/OpenSource/
    >>> Cayenne/itests/itest-common/target/itest-common-3.0-SNAPSHOT-
    >>> sources.jar to /Users/ldeck/.m2/repository/org/apache/cayenne/
    >>> itests/
    >>> itest-common/3.0-SNAPSHOT/itest-common-3.0-SNAPSHOT-sources.jar
    >>> [INFO]
    >>> --------------------------------------------------------------------
    >>> ----
    >>> ----
    >>> [INFO] Building Integration Tests - POJO
    >>> [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: /Users/ldeck/Documents/
    >>> Development/
    >>> OpenSource/Cayenne/itests/pojo/target/surefire-reports
    >>> *** CayenneAgent starting...
    >>> org.apache.maven.surefire.booter.SurefireExecutionException:
    >>> org.apache.cayenne.itest.pojo.ExposedPkTest; nested exception is
    >>> java.lang.ExceptionInInitializerError: null; nested exception is
    >>> org.apache.maven.surefire.testset.TestSetFailedException:
    >>> org.apache.cayenne.itest.pojo.ExposedPkTest; nested exception is
    >>> java.lang.ExceptionInInitializerError: null
    >>> org.apache.maven.surefire.testset.TestSetFailedException:
    >>> org.apache.cayenne.itest.pojo.ExposedPkTest; nested exception is
    >>> java.lang.ExceptionInInitializerError: null
    >>> java.lang.ExceptionInInitializerError
    >>> at sun.reflect.NativeConstructorAccessorImpl.newInstance0
    >>> (Native Method)
    >>> at sun.reflect.NativeConstructorAccessorImpl.newInstance
    >>> (NativeConstructorAccessorImpl.java:39)
    >>> at
    >>> sun.reflect.DelegatingConstructorAccessorImpl.newInstance
    >>> (DelegatingConstructorAccessorImpl.java:27)
    >>> at java.lang.reflect.Constructor.newInstance
    >>> (Constructor.java:494)
    >>> at junit.framework.TestSuite.createTest(TestSuite.java:131)
    >>> at junit.framework.TestSuite.addTestMethod
    >>> (TestSuite.java:114)
    >>> at junit.framework.TestSuite.<init>(TestSuite.java:75)
    >>> at sun.reflect.NativeConstructorAccessorImpl.newInstance0
    >>> (Native Method)
    >>> at sun.reflect.NativeConstructorAccessorImpl.newInstance
    >>> (NativeConstructorAccessorImpl.java:39)
    >>> at
    >>> sun.reflect.DelegatingConstructorAccessorImpl.newInstance
    >>> (DelegatingConstructorAccessorImpl.java:27)
    >>> at java.lang.reflect.Constructor.newInstance
    >>> (Constructor.java:494)
    >>> at
    >>> org.apache.maven.surefire.junit.JUnitTestSet.constructTestObject
    >>> (JUnitTestSet.java:151)
    >>> at
    >>> org.apache.maven.surefire.junit.JUnitTestSet.getTestCount
    >>> (JUnitTestSet.java:247)
    >>> at
    >>> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.locateTes
    >>> tSet
    >>> s(AbstractDirectoryTestSuite.java:104)
    >>> at
    >>> org.apache.maven.surefire.Surefire.createSuiteFromDefinition
    >>> (Surefire.java:150)
    >>> at org.apache.maven.surefire.Surefire.run(Surefire.java:
    >>> 111)
    >>> 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:290)
    >>> at org.apache.maven.surefire.booter.SurefireBooter.main
    >>> (SurefireBooter.java:818)
    >>> Caused by: java.lang.NullPointerException
    >>> at org.apache.cayenne.itest.pojo.PojoTestCase.<clinit>
    >>> (PojoTestCase.java:35)
    >>> ... 22 more
    >>> [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: 5 minutes 28 seconds
    >>> [INFO] Finished at: Thu Mar 08 11:18:33 EST 2007
    >>> [INFO] Final Memory: 21M/45M
    >>> [INFO]
    >>> --------------------------------------------------------------------
    >>> ----
    >>>
    >>> ##
    >>> ## trying to build the generic assembly...
    >>> ##
    >>> $ cd assemebly && mvn clean package
    >>> [INFO] Scanning for projects...
    >>> [INFO]
    >>> --------------------------------------------------------------------
    >>> ----
    >>> ----
    >>> [INFO] Building Cayenne Release Assembly
    >>> [INFO] task-segment: [clean, package]
    >>> [INFO]
    >>> --------------------------------------------------------------------
    >>> ----
    >>> ----
    >>> [INFO]
    >>> --------------------------------------------------------------------
    >>> ----
    >>> [ERROR] BUILD ERROR
    >>> [INFO]
    >>> --------------------------------------------------------------------
    >>> ----
    >>> [INFO] The plugin 'org.apache.maven.plugins:maven-clean-plugin' does
    >>> not exist or no valid version could be found
    >>> [INFO]
    >>> --------------------------------------------------------------------
    >>> ----
    >>> [INFO] For more information, run Maven with the -e switch
    >>> [INFO]
    >>> --------------------------------------------------------------------
    >>> ----
    >>> [INFO] Total time: 1 second
    >>> [INFO] Finished at: Thu Mar 08 11:53:08 EST 2007
    >>> [INFO] Final Memory: 1M/3M
    >>> [INFO]
    >>> --------------------------------------------------------------------
    >>> ----
    >>>
    >>> ##
    >>> ## let's try without clean I thought...
    >>> ##
    >>> $ mvn package
    >>> [INFO] Scanning for projects...
    >>> [INFO]
    >>> --------------------------------------------------------------------
    >>> ----
    >>> ----
    >>> [INFO] Building Cayenne Release Assembly
    >>> [INFO] task-segment: [package]
    >>> [INFO]
    >>> --------------------------------------------------------------------
    >>> ----
    >>> ----
    >>> Downloading: http://people.apache.org/repo/m2-snapshot-repository//
    >>> org/apache/cayenne/docs/cayenne-doc/3.0-SNAPSHOT/cayenne-doc-3.0-
    >>> SNAPSHOT.pom
    >>> [WARNING] Unable to get resource 'org.apache.cayenne.docs:cayenne-
    >>> doc:pom:3.0-SNAPSHOT' from repository apache-snapshots (http://
    >>> people.apache.org/repo/m2-snapshot-repository/)
    >>> Downloading: http://people.apache.org/repo/m2-snapshot-repository//
    >>> org/apache/cayenne/docs/cayenne-doc/3.0-SNAPSHOT/cayenne-doc-3.0-
    >>> SNAPSHOT.jar
    >>> [WARNING] Unable to get resource 'org.apache.cayenne.docs:cayenne-
    >>> doc:jar:3.0-SNAPSHOT' from repository apache-snapshots (http://
    >>> people.apache.org/repo/m2-snapshot-repository/)
    >>> [INFO]
    >>> --------------------------------------------------------------------
    >>> ----
    >>> [ERROR] BUILD ERROR
    >>> [INFO]
    >>> --------------------------------------------------------------------
    >>> ----
    >>> [INFO] Failed to resolve artifact.
    >>>
    >>> Missing:
    >>> ----------
    >>> 1) org.apache.cayenne.docs:cayenne-doc:jar:3.0-SNAPSHOT
    >>>
    >>> Try downloading the file manually from the project website.
    >>>
    >>> Then, install it using the command:
    >>> mvn install:install-file -DgroupId=org.apache.cayenne.docs -
    >>> DartifactId=cayenne-doc \
    >>> -Dversion=3.0-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/
    >>> file
    >>>
    >>> Path to dependency:
    >>> 1) org.apache.cayenne.assembly:cayenne-assembly:pom:3.0-
    >>> SNAPSHOT
    >>> 2) org.apache.cayenne.docs:cayenne-doc:jar:3.0-SNAPSHOT
    >>>
    >>> ----------
    >>> 1 required artifact is missing.
    >>>
    >>> for artifact:
    >>> org.apache.cayenne.assembly:cayenne-assembly:pom:3.0-SNAPSHOT
    >>>
    >>> from the specified remote repositories:
    >>> central (http://repo1.maven.org/maven2),
    >>> apache-snapshots (http://people.apache.org/repo/m2-snapshot-
    >>> repository/)
    >>>
    >>>
    >>> [INFO]
    >>> --------------------------------------------------------------------
    >>> ----
    >>> [INFO] For more information, run Maven with the -e switch
    >>> [INFO]
    >>> --------------------------------------------------------------------
    >>> ----
    >>> [INFO] Total time: 6 seconds
    >>> [INFO] Finished at: Thu Mar 08 11:53:31 EST 2007
    >>> [INFO] Final Memory: 4M/8M
    >>> [INFO]
    >>> --------------------------------------------------------------------
    >>> ----
    >>>
    >>>
    >
    > with regards,
    > --
    >
    > Lachlan Deck
    >
    >
    >

    -------------------------->
    Aristedes Maniatis
    phone +61 2 9660 9700
    PGP fingerprint 08 57 20 4B 80 69 59 E2 A9 BF 2D 48 C2 20 0C C8



    This archive was generated by hypermail 2.0.0 : Thu Mar 08 2007 - 09:36:33 EST