You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cayenne.apache.org by Andrey Razumovsky <ra...@gmail.com> on 2008/12/10 13:55:02 UTC

Re: Unresolved maven artifacts

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.

Re: Unresolved maven artifacts

Posted by Kevin Menard <ni...@gmail.com>.
I'm pretty sure the JPA tests fail because of line ending issues.  I
think the test suite was written on a *nix system and won't load
properly on Windows.  I'd have to double-check this.  There was a
thread about this around 3.0M3 or 3.0M4.

-- 
Kevin



On Wed, Dec 10, 2008 at 10:02 AM, Andrus Adamchik
<an...@objectstyle.org> wrote:
>
> On Dec 10, 2008, at 4:56 PM, Kevin Menard wrote:
>
>> 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.
>
> Or one can investigate why it fails :-)
>
>> 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.
>
> Hmm.. I don't see it in the POM right away, but I need to test it to comment
> intelligently. You didn't mention that when you posted the artifacts. Same
> thing as above tho, we'll need to fix it.
>
> Andrus
>
>

Re: Unresolved maven artifacts

Posted by Andrey Razumovsky <ra...@gmail.com>.
>
> 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.
>

Great, I see it now! Personally I don't need those artifacts, I just wanted
to set up everything to avoid in future yesterday situation, when I built
only cayenne-1.5-unpublished, and didn't check cayenne-jpa-unpublished.
For now I'll comment those modules in POM.

Re: Unresolved maven artifacts

Posted by Andrus Adamchik <an...@objectstyle.org>.
On Dec 10, 2008, at 4:56 PM, Kevin Menard wrote:

> 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.

Or one can investigate why it fails :-)

> 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.

Hmm.. I don't see it in the POM right away, but I need to test it to  
comment intelligently. You didn't mention that when you posted the  
artifacts. Same thing as above tho, we'll need to fix it.

Andrus


Re: Unresolved maven artifacts

Posted by Kevin Menard <ni...@gmail.com>.
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 <an...@objectstyle.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$281ea8c0@eu.ubiquity.net%3E
>>
>> 2008/12/10 Andrus Adamchik <an...@objectstyle.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 <an...@objectstyle.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.
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>
>
>

Re: Unresolved maven artifacts

Posted by Andrus Adamchik <an...@objectstyle.org>.
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$281ea8c0@eu.ubiquity.net%3E
>
> 2008/12/10 Andrus Adamchik <an...@objectstyle.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 <an...@objectstyle.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.
>>>>>
>>>>>
>>>>
>>>>
>>


Re: Unresolved maven artifacts

Posted by Andrey Razumovsky <ra...@gmail.com>.
Seems that's because maven repo path contains spaces:
http://mail-archives.apache.org/mod_mbox/tuscany-dev/200808.mbox/%3C000f01c8fd18$5b8a4590$281ea8c0@eu.ubiquity.net%3E

2008/12/10 Andrus Adamchik <an...@objectstyle.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 <an...@objectstyle.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.
>>>>
>>>>
>>>
>>>
>

Re: Unresolved maven artifacts

Posted by Andrus Adamchik <an...@objectstyle.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 <an...@objectstyle.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.
>>>
>>
>>


Re: Unresolved maven artifacts

Posted by Andrey Razumovsky <ra...@gmail.com>.
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 <an...@objectstyle.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.
>>
>
>

Re: Unresolved maven artifacts

Posted by Andrus Adamchik <an...@objectstyle.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.