Re: Unresolved maven artifacts

From: Kevin Menard (nirvdru..mail.com)
Date: Wed Dec 10 2008 - 09:56:57 EST

  • Next message: Andrus Adamchik: "Re: Unresolved maven artifacts"

    The JPA tests do not run in Windows. This is a known issue. You need
    to run with -DskipTests=true in order to build/install those
    artifacts.

    When packaging up 3.0M5, I also had problems with the Windows profile.
     It is looking for a missing modeler-win directory. Renaming the
    modeler directory to modeler-win let me continue the build.

    -- 
    Kevin
    

    On Wed, Dec 10, 2008 at 9:53 AM, Andrus Adamchik <andru..bjectstyle.org> wrote: > Doh, we have instructions for this already (see "Windows Woes" down the > middle of that page) > > http://cayenne.apache.org/building-cayenne.html > > I totally forgot about this... although it says the issue is fixed in > surefire 2.4. Go figure :-/ > > Anyways does this approach work for you? > > Andrus > > > > On Dec 10, 2008, at 4:39 PM, Andrey Razumovsky wrote: > >> Seems that's because maven repo path contains spaces: >> >> http://mail-archives.apache.org/mod_mbox/tuscany-dev/200808.mbox/%3C000f01c8fd18$5b8a4590$281ea8c..u.ubiquity.net%3E >> >> 2008/12/10 Andrus Adamchik <andru..bjectstyle.org> >> >>> Got the same error on Windows. Sure enough everything works ok on Mac :-/ >>> Will need to investigate... >>> >>> Andrus >>> >>> >>> On Dec 10, 2008, at 3:10 PM, Andrey Razumovsky wrote: >>> >>> Sorry, I misprinted - i'm doing exactly "mvn clean install". BTW I had >>> the >>>> >>>> JAR in my repo in exact same path >>>> >>>> 2008/12/10 Andrus Adamchik <andru..bjectstyle.org> >>>> >>>> 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 - 09:57:22 EST