Discussion:
[castor-dev] 'mvn compile' leads to a build error
Philipp Erlacher
2010-04-04 11:39:56 UTC
Permalink
Hello everyone,

I am trying to write my first patch to start learning about Castor.
First, I want to reproduce the unexpected behavior but I am
experiencing some troubles
while building Castor:

I checked out the latest version via svn.
Building Castor using Maven by 'mvn compile' as in [1] described,
results in a build error:
[INFO] Error extracting plugin descriptor: 'No mojo definitions were
found for plugin: org.codehaus.castor:cpa-testcase.'
It is the same as in [2] but this information do not help me.

I also tried 'mvn clean install' but I still get the same build error.

Did I do something wrong? Have I missed something to do in order to
get Castor built?
Do you need any further information?

Cheers,
Philipp Erlacher


[1] http://www.castor.org/contributing.html#Using-Maven-2
[2] http://bamboo.ci.codehaus.org/browse/CASTOR-JDK5CPATESTCASE-10

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email
Lukas Lang
2010-04-05 08:31:23 UTC
Permalink
Hey Philipp,

David reported a divergence in version numbers of some modules in [1]. May I ask you to give another try with all versions set to 1.3.2-SNAPSHOT? We will fix this asap.

Best,
Lukas

[1] http://jira.codehaus.org/browse/CASTOR-2892
Post by Philipp Erlacher
Hello everyone,
I am trying to write my first patch to start learning about Castor.
First, I want to reproduce the unexpected behavior but I am
experiencing some troubles
I checked out the latest version via svn.
Building Castor using Maven by 'mvn compile' as in [1] described,
[INFO] Error extracting plugin descriptor: 'No mojo definitions were
found for plugin: org.codehaus.castor:cpa-testcase.'
It is the same as in [2] but this information do not help me.
I also tried 'mvn clean install' but I still get the same build error.
Did I do something wrong? Have I missed something to do in order to
get Castor built?
Do you need any further information?
Cheers,
Philipp Erlacher
[1] http://www.castor.org/contributing.html#Using-Maven-2
[2] http://bamboo.ci.codehaus.org/browse/CASTOR-JDK5CPATESTCASE-10
---------------------------------------------------------------------
http://xircles.codehaus.org/manage_email
---------------------------------------------------------------------
To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email
Philipp Erlacher
2010-04-05 10:52:10 UTC
Permalink
Hi Lukas,

Thanks for the hint.

I changed the parent artefact version in cpaptf, examples,
jdo-extensions-it, jpa-extensions-it and the global pom.xml to
"1.3.2-SNAPSHOT".

This doesn't help me, I get same error.

Cheers,
Philipp

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email
Werner Guttmann
2010-04-05 17:51:25 UTC
Permalink
Hi,

I just committed new version numbers for those modules (1.3.2-SNAPSHOT),
so manual patches should not be the issue anymore.

Having said that, it seems like you are having a problem I (we) are not
able to reproduce .. :-(. So let's ask the obvious questions:

a) What Java version are you using ?
b) What Maven version are you using ?

Cheers
Werner
Post by Philipp Erlacher
Hi Lukas,
Thanks for the hint.
I changed the parent artefact version in cpaptf, examples,
jdo-extensions-it, jpa-extensions-it and the global pom.xml to
"1.3.2-SNAPSHOT".
This doesn't help me, I get same error.
Cheers,
Philipp
---------------------------------------------------------------------
http://xircles.codehaus.org/manage_email
---------------------------------------------------------------------
To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email
Lukas Lang
2010-04-05 18:07:19 UTC
Permalink
Hey all,

I did a fresh checkout, cleaned my local Maven repository and was able to build Castor from scratch. Running the integration tests using profile "it" at least did not work for me. It seems like there is still a problem due to the dependency cycle in Castor Spring ORM ;-(

I'll try to find some time and fix it on the weekend.

Lukas
Hi,
I just committed new version numbers for those modules (1.3.2-SNAPSHOT), so manual patches should not be the issue anymore.
a) What Java version are you using ?
b) What Maven version are you using ?
Cheers
Werner
Post by Philipp Erlacher
Hi Lukas,
Thanks for the hint.
I changed the parent artefact version in cpaptf, examples,
jdo-extensions-it, jpa-extensions-it and the global pom.xml to
"1.3.2-SNAPSHOT".
This doesn't help me, I get same error.
Cheers,
Philipp
---------------------------------------------------------------------
http://xircles.codehaus.org/manage_email
---------------------------------------------------------------------
http://xircles.codehaus.org/manage_email
---------------------------------------------------------------------
To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email
Werner Guttmann
2010-04-05 18:31:31 UTC
Permalink
Hi Lukas,

I am getting the same problems. What I can see so far is that the
classes generated within the jdo/jpa-extensions-it modules are generated
using not the current released version, as they still have statements
such as ...

mapping.setAccess(ClassMappingAccessType.valueOf("shared"));

in the constructor code, which should really read ....

mapping.setAccess(ClassMappingAccessType.fromValue("shared"));

instead. The code at JDOClassDescriptorFactory seems to be doing the
correct thing, so it looks like classes are not generated against
version 1.3.1 of Castor. Actually, they are not, as the generated
classes refer to version 1.3.0.1 .. :(.

Thanks for your help ....

Werner
Post by Lukas Lang
Hey all,
I did a fresh checkout, cleaned my local Maven repository and was able to build Castor from scratch. Running the integration tests using profile "it" at least did not work for me. It seems like there is still a problem due to the dependency cycle in Castor Spring ORM ;-(
I'll try to find some time and fix it on the weekend.
Lukas
Hi,
I just committed new version numbers for those modules (1.3.2-SNAPSHOT), so manual patches should not be the issue anymore.
a) What Java version are you using ?
b) What Maven version are you using ?
Cheers
Werner
Post by Philipp Erlacher
Hi Lukas,
Thanks for the hint.
I changed the parent artefact version in cpaptf, examples,
jdo-extensions-it, jpa-extensions-it and the global pom.xml to
"1.3.2-SNAPSHOT".
This doesn't help me, I get same error.
Cheers,
Philipp
---------------------------------------------------------------------
http://xircles.codehaus.org/manage_email
---------------------------------------------------------------------
http://xircles.codehaus.org/manage_email
---------------------------------------------------------------------
http://xircles.codehaus.org/manage_email
---------------------------------------------------------------------
To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email
Werner Guttmann
2010-04-05 19:15:56 UTC
Permalink
Actually, found and fixed the problem. Had to upgrade to
castor-maven-plugin:2.1-SNAPSHOT (temporarily), and now those classes
get generated with Castor 1.3.1 (instead of 1.3.0.1). Had to bring a
small fix to InfoToDescriptorConverter (actually, the very same fix as
for JDOClassDescriptorFactory), and
mvn clean test
now just runs fine.

As a result of this confusion, I have reverted the creation of the IT
Maven profile, and (re-)included the following modules into the
<modules> section of the root POM.

- cpactf
- jdo-extenskions-it
- jpa-extensions-it

And there's some follow-ups to do:

- Start using the maven-failsafe-plugin so that we can distinguish (at
the level of Maven builds) between genuine unit tests and integration tests.

Cheers
Werner
Hi Lukas,
I am getting the same problems. What I can see so far is that the
classes generated within the jdo/jpa-extensions-it modules are generated
using not the current released version, as they still have statements
such as ...
mapping.setAccess(ClassMappingAccessType.valueOf("shared"));
in the constructor code, which should really read ....
mapping.setAccess(ClassMappingAccessType.fromValue("shared"));
instead. The code at JDOClassDescriptorFactory seems to be doing the
correct thing, so it looks like classes are not generated against
version 1.3.1 of Castor. Actually, they are not, as the generated
classes refer to version 1.3.0.1 .. :(.
Thanks for your help ....
Werner
Post by Lukas Lang
Hey all,
I did a fresh checkout, cleaned my local Maven repository and was able
to build Castor from scratch. Running the integration tests using
profile "it" at least did not work for me. It seems like there is
still a problem due to the dependency cycle in Castor Spring ORM ;-(
I'll try to find some time and fix it on the weekend.
Lukas
Post by Werner Guttmann
Hi,
I just committed new version numbers for those modules
(1.3.2-SNAPSHOT), so manual patches should not be the issue anymore.
Having said that, it seems like you are having a problem I (we) are
a) What Java version are you using ?
b) What Maven version are you using ?
Cheers
Werner
Post by Philipp Erlacher
Hi Lukas,
Thanks for the hint.
I changed the parent artefact version in cpaptf, examples,
jdo-extensions-it, jpa-extensions-it and the global pom.xml to
"1.3.2-SNAPSHOT".
This doesn't help me, I get same error.
Cheers,
Philipp
---------------------------------------------------------------------
http://xircles.codehaus.org/manage_email
---------------------------------------------------------------------
http://xircles.codehaus.org/manage_email
---------------------------------------------------------------------
http://xircles.codehaus.org/manage_email
---------------------------------------------------------------------
http://xircles.codehaus.org/manage_email
---------------------------------------------------------------------
To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email
Philipp Erlacher
2010-04-06 18:36:09 UTC
Permalink
Hi Werner, hi Lukas,

thanks for your help. It now just runs fine for me.

Cheers
Philipp

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

Werner Guttmann
2010-04-05 17:52:59 UTC
Permalink
Hi,
mvn <whatever> -P it
and see whether this makes a difference ?

Cheers
Werner
Hello everyone,
I am trying to write my first patch to start learning about Castor.
First, I want to reproduce the unexpected behavior but I am
experiencing some troubles
I checked out the latest version via svn.
Building Castor using Maven by 'mvn compile' as in [1] described,
[INFO] Error extracting plugin descriptor: 'No mojo definitions were
found for plugin: org.codehaus.castor:cpa-testcase.'
It is the same as in [2] but this information do not help me.
I also tried 'mvn clean install' but I still get the same build error.
Did I do something wrong? Have I missed something to do in order to
get Castor built?
Do you need any further information?
Cheers,
Philipp Erlacher
[1] http://www.castor.org/contributing.html#Using-Maven-2
[2] http://bamboo.ci.codehaus.org/browse/CASTOR-JDK5CPATESTCASE-10
---------------------------------------------------------------------
http://xircles.codehaus.org/manage_email
---------------------------------------------------------------------
To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email
Loading...