Re: Unresolved maven artifacts

From: Andrus Adamchik (andru..bjectstyle.org)
Date: Wed Dec 10 2008 - 08:07:31 EST

  • Next message: Andrey Razumovsky: "Re: Unresolved maven artifacts"

    Hi Andrey,

    Could you try "mvn clean install" instead of "mvn clean build"? I
    think cayenne-agent is bootstrapped from the Maven repo during the
    build.

    Andrus

    On Dec 10, 2008, at 2:55 PM, Andrey Razumovsky wrote:

    > I finally found the problem - I had to put proxy's connection
    > settings in
    > Maven's settings.xml.
    >
    > But now I get the following problem when I try to do 'maven clean
    > build'. I
    > tried with Java 5 and 6, Maven 2.0.9. I searched for similiar
    > problems, it
    > seems many projects got them, but I didn't find the solution. Anyone
    > knows
    > about that?
    >
    > ----stacktrace follows
    >
    > [INFO] Surefire report directory:
    > E:\project2\Cayenne\itests\pojo\target\surefire-reports
    > Error occurred during initialization of VM
    > agent library failed to init: instrument
    > Error opening zip file:
    > ${settings.localRepository}/org/apache/cayenne/cayenne-agent/3.0-
    > SNAPSHOT/cayenne-agent-3.0-SNAPSHOT.jar
    > [INFO]
    > [INFO]
    > [INFO]
    > ------------------------------------------------------------------------
    > [INFO] Reactor Summary:
    > [INFO]
    > ------------------------------------------------------------------------
    > [INFO] Cayenne ............................................... SUCCESS
    > [2.422s]
    > [INFO] Cayenne Internal Build Plugin ......................... SUCCESS
    > [4.985s]
    > [INFO] Cayenne Internal Documentation Build Plugin ........... SUCCESS
    > [8.047s]
    > [INFO] Cayenne Build Tools Parent ............................ SUCCESS
    > [0.390s]
    > [INFO] Cayenne License and Notice Bundle ..................... SUCCESS
    > [1.688s]
    > [INFO] Cayenne Java 1.5 Unpublished .......................... SUCCESS
    > [3:50.718s]
    > [INFO] Cayenne JPA Unpublished ............................... SUCCESS
    > [30.313s]
    > [INFO] Cayenne Enhancer Bootstrap Agent ...................... SUCCESS
    > [5.141s]
    > [INFO] Cayenne Aggregated Server Jar ......................... SUCCESS
    > [49.453s]
    > [INFO] Cayenne Aggregated Client Jar ......................... SUCCESS
    > [50.172s]
    > [INFO] Cayenne Modeler ....................................... SUCCESS
    > [55.484s]
    > [INFO] Cayenne Maven Plugin .................................. SUCCESS
    > [5.516s]
    > [INFO] Cayenne Modeler Maven Plugin .......................... SUCCESS
    > [3.078s]
    > [INFO] Cayenne Framework Aggregator Project .................. SUCCESS
    > [0.390s]
    > [INFO] Cayenne Integration Tests Parent ...................... SUCCESS
    > [0.328s]
    > [INFO] Integration Tests Commons ............................. SUCCESS
    > [14.438s]
    > [INFO] Integration Tests - Cayenne API ....................... SUCCESS
    > [8.000s]
    > [INFO] Integration Tests - POJO .............................. FAILED
    > [6.594s]
    > [INFO] Integration Tests - JPA Chapter 2 ..................... NOT
    > BUILT
    > [INFO] Integration Tests - JPA Chapter 3 ..................... NOT
    > BUILT
    > [INFO] Integration Tests - JPA Chapter 5 ..................... NOT
    > BUILT
    > [INFO] Integration Tests - JPA Chapter 6 ..................... NOT
    > BUILT
    > [INFO] Integration Tests - JPA Chapter 9 ..................... NOT
    > BUILT
    > [INFO] Cayenne Modeler Java .................................. NOT
    > BUILT
    > [INFO] Cayenne Modeler Parent ................................ NOT
    > BUILT
    > [INFO] Cayenne Documentation ................................. NOT
    > BUILT
    > [INFO] Cayenne Documenation Parent ........................... NOT
    > BUILT
    > [INFO]
    > ------------------------------------------------------------------------
    > [ERROR]
    >
    > Mojo:
    >
    > org.apache.maven.plugins:maven-surefire-plugin:2.4.2:test
    >
    > FAILED for project:
    >
    > org.apache.cayenne.itests:pojo:jar:3.0-SNAPSHOT
    >
    > Reason:
    >
    > There are test failures.
    >
    > Please refer to E:\project2\Cayenne\itests\pojo\target\surefire-
    > reports for
    > the individual test results.



    This archive was generated by hypermail 2.0.0 : Wed Dec 10 2008 - 08:08:04 EST