You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@aries.apache.org by Alexandros Karypidis <ak...@yahoo.gr> on 2010/08/13 20:35:45 UTC

Trunk build fails when running jpa-container-testbundle tests

Hi,

The reference to the "maven.compile.classpath" value should be moved 
outside. It causes a ClassNotFoundException during the build:

Index: jpa/jpa-container-testbundle/pom.xml
===================================================================
--- jpa/jpa-container-testbundle/pom.xml    (revision 985279)
+++ jpa/jpa-container-testbundle/pom.xml    (working copy)
@@ -70,8 +70,8 @@
<tasks>
<taskdef name="openjpac" 
classname="org.apache.openjpa.ant.PCEnhancerTask" 
classpathref="maven.compile.classpath"/>
<openjpac>
+ <classpath refid="maven.compile.classpath"/>
<classpath>
- <pathelement path="${maven.compile.classpath}"/>
<pathelement location="target/classes"/>
<pathelement location="src/main/resources"/>
</classpath>



Re: Trunk build fails when running jpa-container-testbundle tests

Posted by Joe Bohn <jo...@gmail.com>.
Hi Alexandros,

Thank you for digging into this deeper.  You are correct that this 
scenario (and basically any scenario that results in a subsequent test 
run after an initial build) will produce the failure.  As you noted 
setting the maven.compile.classpath outside of the pathelement 
statements resolves the issue.  I just checked in the change under 986966.

Thanks,
Joe

On 8/18/10 5:36 PM, Alexandros Karypidis wrote:
> Hi,
>
> I've found a way to reliably reproduce this. I'm using the trunk and do
> the following:
>
> 1) Go into jpa\jpa-container-testbundle
> 2) Run "mvn test"
>
> You should get the CFNE. To fix, while still inside
> jpa\jpa-container-testbundle:
>
> 3) run "mvn clean"
> 4) Run "mvn install"
>
> In short, "mvn test" reliably fails with the CFNE. Changing the pom.xml
> as I indicated below will result in both maven goals (install and test)
> running properly.
>
> On 17/8/2010 23:45, Alexandros Karypidis wrote:
>> Hi,
>>
>> I just finished a fresh build (of the trunk) after cleaning my local
>> repository and the problem has gone away.
>>
>> On 17/8/2010 18:39, Joe Bohn wrote:
>>> Is this still an issue?
>>>
>>> I hit this same failure attempting to build the 0.2-incubating tags
>>> earlier today. However, after I cleaned up the aries artifacts from
>>> my local repository and rebuilt all of the modules again the error
>>> went away without making this change. I also have not hit this
>>> failure on trunk.
>>>
>>> Joe
>>>
>>>
>>> On 8/13/10 2:35 PM, Alexandros Karypidis wrote:
>>>>
>>>> Hi,
>>>>
>>>> The reference to the "maven.compile.classpath" value should be moved
>>>> outside. It causes a ClassNotFoundException during the build:
>>>>
>>>> Index: jpa/jpa-container-testbundle/pom.xml
>>>> ===================================================================
>>>> --- jpa/jpa-container-testbundle/pom.xml (revision 985279)
>>>> +++ jpa/jpa-container-testbundle/pom.xml (working copy)
>>>> @@ -70,8 +70,8 @@
>>>> <tasks>
>>>> <taskdef name="openjpac"
>>>> classname="org.apache.openjpa.ant.PCEnhancerTask"
>>>> classpathref="maven.compile.classpath"/>
>>>> <openjpac>
>>>> + <classpath refid="maven.compile.classpath"/>
>>>> <classpath>
>>>> - <pathelement path="${maven.compile.classpath}"/>
>>>> <pathelement location="target/classes"/>
>>>> <pathelement location="src/main/resources"/>
>>>> </classpath>
>>>>
>>>>
>>>>
>>>
>>>
>
>


-- 
Joe

Re: Trunk build fails when running jpa-container-testbundle tests

Posted by Alexandros Karypidis <ak...@yahoo.gr>.
  Hi,

I've found a way to reliably reproduce this. I'm using the trunk and do 
the following:

1) Go into jpa\jpa-container-testbundle
2) Run "mvn test"

You should get the CFNE. To fix, while still inside 
jpa\jpa-container-testbundle:

3) run "mvn clean"
4) Run "mvn install"

In short, "mvn test" reliably fails with the CFNE. Changing the pom.xml 
as I indicated below will result in both maven goals (install and test) 
running properly.

On 17/8/2010 23:45, Alexandros Karypidis wrote:
> Hi,
>
> I just finished a fresh build (of the trunk) after cleaning my local 
> repository and the problem has gone away.
>
> On 17/8/2010 18:39, Joe Bohn wrote:
>> Is this still an issue?
>>
>> I hit this same failure attempting to build the 0.2-incubating tags 
>> earlier today.  However, after I cleaned up the aries artifacts from 
>> my local repository and rebuilt all of the modules again the error 
>> went away without making this change.  I also have not hit this 
>> failure on trunk.
>>
>> Joe
>>
>>
>> On 8/13/10 2:35 PM, Alexandros Karypidis wrote:
>>>
>>> Hi,
>>>
>>> The reference to the "maven.compile.classpath" value should be moved
>>> outside. It causes a ClassNotFoundException during the build:
>>>
>>> Index: jpa/jpa-container-testbundle/pom.xml
>>> ===================================================================
>>> --- jpa/jpa-container-testbundle/pom.xml (revision 985279)
>>> +++ jpa/jpa-container-testbundle/pom.xml (working copy)
>>> @@ -70,8 +70,8 @@
>>> <tasks>
>>> <taskdef name="openjpac"
>>> classname="org.apache.openjpa.ant.PCEnhancerTask"
>>> classpathref="maven.compile.classpath"/>
>>> <openjpac>
>>> + <classpath refid="maven.compile.classpath"/>
>>> <classpath>
>>> - <pathelement path="${maven.compile.classpath}"/>
>>> <pathelement location="target/classes"/>
>>> <pathelement location="src/main/resources"/>
>>> </classpath>
>>>
>>>
>>>
>>
>>


Re: Trunk build fails when running jpa-container-testbundle tests

Posted by Alexandros Karypidis <ak...@yahoo.gr>.
Hi,

I just finished a fresh build (of the trunk) after cleaning my local 
repository and the problem has gone away.

On 17/8/2010 18:39, Joe Bohn wrote:
> Is this still an issue?
>
> I hit this same failure attempting to build the 0.2-incubating tags 
> earlier today.  However, after I cleaned up the aries artifacts from 
> my local repository and rebuilt all of the modules again the error 
> went away without making this change.  I also have not hit this 
> failure on trunk.
>
> Joe
>
>
> On 8/13/10 2:35 PM, Alexandros Karypidis wrote:
>>
>> Hi,
>>
>> The reference to the "maven.compile.classpath" value should be moved
>> outside. It causes a ClassNotFoundException during the build:
>>
>> Index: jpa/jpa-container-testbundle/pom.xml
>> ===================================================================
>> --- jpa/jpa-container-testbundle/pom.xml (revision 985279)
>> +++ jpa/jpa-container-testbundle/pom.xml (working copy)
>> @@ -70,8 +70,8 @@
>> <tasks>
>> <taskdef name="openjpac"
>> classname="org.apache.openjpa.ant.PCEnhancerTask"
>> classpathref="maven.compile.classpath"/>
>> <openjpac>
>> + <classpath refid="maven.compile.classpath"/>
>> <classpath>
>> - <pathelement path="${maven.compile.classpath}"/>
>> <pathelement location="target/classes"/>
>> <pathelement location="src/main/resources"/>
>> </classpath>
>>
>>
>>
>
>


Re: Trunk build fails when running jpa-container-testbundle tests

Posted by Joe Bohn <jo...@gmail.com>.
Is this still an issue?

I hit this same failure attempting to build the 0.2-incubating tags 
earlier today.  However, after I cleaned up the aries artifacts from my 
local repository and rebuilt all of the modules again the error went 
away without making this change.  I also have not hit this failure on trunk.

Joe


On 8/13/10 2:35 PM, Alexandros Karypidis wrote:
>
> Hi,
>
> The reference to the "maven.compile.classpath" value should be moved
> outside. It causes a ClassNotFoundException during the build:
>
> Index: jpa/jpa-container-testbundle/pom.xml
> ===================================================================
> --- jpa/jpa-container-testbundle/pom.xml (revision 985279)
> +++ jpa/jpa-container-testbundle/pom.xml (working copy)
> @@ -70,8 +70,8 @@
> <tasks>
> <taskdef name="openjpac"
> classname="org.apache.openjpa.ant.PCEnhancerTask"
> classpathref="maven.compile.classpath"/>
> <openjpac>
> + <classpath refid="maven.compile.classpath"/>
> <classpath>
> - <pathelement path="${maven.compile.classpath}"/>
> <pathelement location="target/classes"/>
> <pathelement location="src/main/resources"/>
> </classpath>
>
>
>


-- 
Joe