Discussion:
[castor-dev] Castor r8462 depends on castor-maven-plugin:2.0-SNAPSHOT
Stevo Slavić
2009-11-18 18:20:40 UTC
Permalink
Hello Castor developers,

I was able to build current Castor only after upgrading dependency to
castor-maven-plugin from 2.0-SNAPSHOT to 2.0. Additionaly I've removed
castor-maven-plugin dependency to codegen 1.3rc1 at one place as IMO it's no
longer needed. Attached is patch with these adjustments.

Regards,
Stevo.
Werner Guttmann
2009-11-27 10:24:53 UTC
Permalink
Hi Stevo,

given Ralf committed a patch a few days ago, can we assume that you can
now build things successfully.

Cheers
Werner
Post by Stevo Slavić
Hello Castor developers,
I was able to build current Castor only after upgrading dependency to
castor-maven-plugin from 2.0-SNAPSHOT to 2.0. Additionaly I've removed
castor-maven-plugin dependency to codegen 1.3rc1 at one place as IMO it's no
longer needed. Attached is patch with these adjustments.
Regards,
Stevo.
---------------------------------------------------------------------
To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email
Ralf Joachim
2009-11-27 14:54:09 UTC
Permalink
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Hi Stevo and Werner,<br>
<br>
if you just do 'mvn clean install' you will still see compile errors in
eclipse as generation of sources for cpactf and jdo-extension-it
modules will not be executed. To prevent this problems you have to
execute 'mvn -Pit clean install'.<br>
<br>
Werner: any chances to get generation of this sources triggered without
triggering execution of the tests?<br>
<br>
Regards<br>
Ralf<br>
<br>
Werner Guttmann schrieb:
<blockquote cite="mid:***@codehaus.org" type="cite">
<pre wrap="">Hi Stevo,

given Ralf committed a patch a few days ago, can we assume that you can
now build things successfully.

Cheers
Werner

Stevo Slavić wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Hello Castor developers,

I was able to build current Castor only after upgrading dependency to
castor-maven-plugin from 2.0-SNAPSHOT to 2.0. Additionaly I've removed
castor-maven-plugin dependency to codegen 1.3rc1 at one place as IMO it's no
longer needed. Attached is patch with these adjustments.

Regards,
Stevo.
</pre>
</blockquote>
<pre wrap=""><!---->

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

<a class="moz-txt-link-freetext" href="http://xircles.codehaus.org/manage_email">http://xircles.codehaus.org/manage_email</a>


</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--

Syscon Ingenieurbüro für Meß- und Datentechnik GmbH
Ralf Joachim
Raiffeisenstraße 11
72127 Kusterdingen
Germany

Tel. +49 7071 3690 52
Mobil: +49 173 9630135
Fax +49 7071 3690 98

Internet: <a class="moz-txt-link-abbreviated" href="http://www.syscon.eu">www.syscon.eu</a>
E-Mail: <a class="moz-txt-link-abbreviated" href="mailto:***@syscon.eu">***@syscon.eu</a>

Sitz der Gesellschaft: D-72127 Kusterdingen
Registereintrag: Amtsgericht Stuttgart, HRB 382295
Geschäftsleitung: Jens Joachim, Ralf Joachim
</pre>
</body>
</html>

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

http://xircles.codehaus.org/manage_email
Werner Guttmann
2009-11-28 11:34:34 UTC
Permalink
Ralf,

just to make sure, you are not doing a mvn eclipse:eclipse before
importing Castor into Eclipse, correct ? If that's the case, you are
(probably) right. But I will have to try this myself ....

Cheers
Werner

PS Have you ever tried
svn co ....
mvn eclipse:eclipse
followed by an import of the Castor modules into Eclipse ?
Hi Stevo and Werner,
if you just do 'mvn clean install' you will still see compile errors in
eclipse as generation of sources for cpactf and jdo-extension-it modules
will not be executed. To prevent this problems you have to execute 'mvn
-Pit clean install'.
Werner: any chances to get generation of this sources triggered without
triggering execution of the tests?
Regards
Ralf
Post by Werner Guttmann
Hi Stevo,
given Ralf committed a patch a few days ago, can we assume that you can
now build things successfully.
Cheers
Werner
Post by Stevo Slavić
Hello Castor developers,
I was able to build current Castor only after upgrading dependency to
castor-maven-plugin from 2.0-SNAPSHOT to 2.0. Additionaly I've removed
castor-maven-plugin dependency to codegen 1.3rc1 at one place as IMO it's no
longer needed. Attached is patch with these adjustments.
Regards,
Stevo.
---------------------------------------------------------------------
http://xircles.codehaus.org/manage_email
--
Syscon Ingenieurbüro für Meß- und Datentechnik GmbH
Ralf Joachim
Raiffeisenstraße 11
72127 Kusterdingen
Germany
Tel. +49 7071 3690 52
Mobil: +49 173 9630135
Fax +49 7071 3690 98
Internet: www.syscon.eu
Sitz der Gesellschaft: D-72127 Kusterdingen
Registereintrag: Amtsgericht Stuttgart, HRB 382295
Geschäftsleitung: Jens Joachim, Ralf Joachim
--------------------------------------------------------------------- To
http://xircles.codehaus.org/manage_email
---------------------------------------------------------------------
To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email
Ralf Joachim
2009-11-28 23:44:24 UTC
Permalink
Werner,

you are right, I'm not using mvn eclipse:eclipse.

Ralf
Post by Werner Guttmann
Ralf,
just to make sure, you are not doing a mvn eclipse:eclipse before
importing Castor into Eclipse, correct ? If that's the case, you are
(probably) right. But I will have to try this myself ....
Cheers
Werner
PS Have you ever tried
svn co ....
mvn eclipse:eclipse
followed by an import of the Castor modules into Eclipse ?
Hi Stevo and Werner,
if you just do 'mvn clean install' you will still see compile errors in
eclipse as generation of sources for cpactf and jdo-extension-it modules
will not be executed. To prevent this problems you have to execute 'mvn
-Pit clean install'.
Werner: any chances to get generation of this sources triggered without
triggering execution of the tests?
Regards
Ralf
Post by Werner Guttmann
Hi Stevo,
given Ralf committed a patch a few days ago, can we assume that you can
now build things successfully.
Cheers
Werner
Post by Stevo Slavić
Hello Castor developers,
I was able to build current Castor only after upgrading dependency to
castor-maven-plugin from 2.0-SNAPSHOT to 2.0. Additionaly I've removed
castor-maven-plugin dependency to codegen 1.3rc1 at one place as IMO it's no
longer needed. Attached is patch with these adjustments.
Regards,
Stevo.
---------------------------------------------------------------------
http://xircles.codehaus.org/manage_email
--
Syscon Ingenieurbüro für Meß- und Datentechnik GmbH
Ralf Joachim
Raiffeisenstraße 11
72127 Kusterdingen
Germany
Tel. +49 7071 3690 52
Mobil: +49 173 9630135
Fax +49 7071 3690 98
Internet: www.syscon.eu
Sitz der Gesellschaft: D-72127 Kusterdingen
Registereintrag: Amtsgericht Stuttgart, HRB 382295
Geschäftsleitung: Jens Joachim, Ralf Joachim
--------------------------------------------------------------------- To
http://xircles.codehaus.org/manage_email
---------------------------------------------------------------------
http://xircles.codehaus.org/manage_email
--
Syscon Ingenieurbüro für Meß- und Datentechnik GmbH
Ralf Joachim
Raiffeisenstraße 11
72127 Kusterdingen
Germany

Tel. +49 7071 3690 52
Mobil: +49 173 9630135
Fax +49 7071 3690 98

Internet: www.syscon.eu
E-Mail: ***@syscon.eu

Sitz der Gesellschaft: D-72127 Kusterdingen
Registereintrag: Amtsgericht Stuttgart, HRB 382295
Geschäftsleitung: Jens Joachim, Ralf Joachim




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

http://xircles.codehaus.org/manage_email
Stevo Slavić
2009-11-29 12:16:50 UTC
Permalink
Hello Werner and Ralf,

- My patch hasn't been applied completely. Even so, patch didn't remove
all references to 2.0-SNAPSHOT version of castor-maven-plugin (just ones
which prevented building castor), and there are some other snapshot
references too (default release plugin configuration would have prevented
this). All the modules seem to inherit org.codehaus.castor:castor aggregator
parent module which has pluginManagement section but it currently doesn't
specify castor-maven-plugin. IMO it would be best to add castor-maven-plugin
with latest released version there, and then remove all the version
references from other child modules - this would improve consistency and
maintainability.
- All the commented out stuff in poms should be cleaned up too - poms are
under version control after all, and all the commented out stuff just lowers
readability.
- There are also multiple build helper plugin configurations with
comments that they should be removed once new castor-maven-plugin is
released. IMO it is questionable whether build helper configuration should
be removed, .classpath files with hardcoded classpath entries to generated
sources should better be removed from version control (read on for more on
this) - maven executions will use build helper plugin while for eclipse
there are maven integration plugins like m2eclipse which can handle this
dynamically
- Why have IDE (eclipse) specific files been put under version control? I
prefer to put them under svn:ignore and this seems to be practice in many if
not all maven core and plugin projects.
- Eclipse specific files like .classpath committed to svn have
hardcoded stuff like M2_REPO classpath entries. I'm using
eclipse too, with
m2eclipse plugin and subversive with m2eclipse integration, so
project can
be easily checked-out as maven project, where m2eclipse
configures eclipse
classpath, not by adding classpath entry for every dependency,
but by adding
a single classpath entry to
org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER
which acts as m2eclipse managed dynamic library with all the dependencies
configured in pom; now, if I manage project with m2eclipse it will modify
these IDE specific files and eclipse projects will appear as if
they've been
modified, and IDE specific files will appear in listings when preparing
patch;
- .checkstyle configuration file is also under version control; with
checkstyle 5.0 out, and eclipse-cs plugin and its integration with
m2eclipse, it is enough just to configure latest maven
checkstyle plugin in
castor parent module pom, this configuration will be used by
maven and that
same configuration through eclipse-cs plugin m2eclipse
integration will be
used in eclipse as well; eclipse-cs m2eclipse generation in that
case will
configure eclipse-cs by generating .checkstyle file so it can possibly be
different to one under version control so this file and project
it belongs
will appear as with modifications, thus it would be best to put
this, again
IDE specific, file out of version control and into the svn:ignore list.

If you agree, I can create a patch with all these adjustments included for
you to verify.

Regards,
Stevo.
Post by Ralf Joachim
Werner,
you are right, I'm not using mvn eclipse:eclipse.
Ralf
Post by Werner Guttmann
Ralf,
just to make sure, you are not doing a mvn eclipse:eclipse before
importing Castor into Eclipse, correct ? If that's the case, you are
(probably) right. But I will have to try this myself ....
Cheers
Werner
PS Have you ever tried
svn co ....
mvn eclipse:eclipse
followed by an import of the Castor modules into Eclipse ?
Hi Stevo and Werner,
if you just do 'mvn clean install' you will still see compile errors in
eclipse as generation of sources for cpactf and jdo-extension-it modules
will not be executed. To prevent this problems you have to execute 'mvn
-Pit clean install'.
Werner: any chances to get generation of this sources triggered without
triggering execution of the tests?
Regards
Ralf
Post by Werner Guttmann
Hi Stevo,
given Ralf committed a patch a few days ago, can we assume that you can
now build things successfully.
Cheers
Werner
Post by Stevo Slavić
Hello Castor developers,
I was able to build current Castor only after upgrading dependency to
castor-maven-plugin from 2.0-SNAPSHOT to 2.0. Additionaly I've removed
castor-maven-plugin dependency to codegen 1.3rc1 at one place as IMO
it's no
Post by Werner Guttmann
Post by Werner Guttmann
Post by Stevo Slavić
longer needed. Attached is patch with these adjustments.
Regards,
Stevo.
---------------------------------------------------------------------
http://xircles.codehaus.org/manage_email
--
Syscon IngenieurbÃŒro fÃŒr Meß- und Datentechnik GmbH
Ralf Joachim
Raiffeisenstraße 11
72127 Kusterdingen
Germany
Tel. +49 7071 3690 52
Mobil: +49 173 9630135
Fax +49 7071 3690 98
Internet: www.syscon.eu
Sitz der Gesellschaft: D-72127 Kusterdingen
Registereintrag: Amtsgericht Stuttgart, HRB 382295
GeschÀftsleitung: Jens Joachim, Ralf Joachim
--------------------------------------------------------------------- To
http://xircles.codehaus.org/manage_email
---------------------------------------------------------------------
http://xircles.codehaus.org/manage_email
--
Syscon IngenieurbÃŒro fÃŒr Meß- und Datentechnik GmbH
Ralf Joachim
Raiffeisenstraße 11
72127 Kusterdingen
Germany
Tel. +49 7071 3690 52
Mobil: +49 173 9630135
Fax +49 7071 3690 98
Internet: www.syscon.eu
Sitz der Gesellschaft: D-72127 Kusterdingen
Registereintrag: Amtsgericht Stuttgart, HRB 382295
GeschÀftsleitung: Jens Joachim, Ralf Joachim
---------------------------------------------------------------------
http://xircles.codehaus.org/manage_email
Ralf Joachim
2009-11-29 16:30:31 UTC
Permalink
Hi Stevo,

see my comments inline.
Post by Stevo Slavić
Hello Werner and Ralf,
* My patch hasn't been applied completely. Even so, patch didn't
remove all references to 2.0-SNAPSHOT version of
castor-maven-plugin (just ones which prevented building castor),
and there are some other snapshot references too (default
release plugin configuration would have prevented this). All the
modules seem to inherit org.codehaus.castor:castor aggregator
parent module which has pluginManagement section but it
currently doesn't specify castor-maven-plugin. IMO it would be
best to add castor-maven-plugin with latest released version
there, and then remove all the version references from other
child modules - this would improve consistency and maintainability.
Using pluginManagement sounds like a good idea to me but I expect you
will hit some problems. E.g. there are dependencies to derby in 3
modules (cpactf, jdo-extension-it and jpa-extension-it). While we need
derby 10.5.3.0_1 for cpactf this version of derby does cause failing
tests in the other 2 modules which is the reason why the other modules
still depend on derby 10.4.xxx. Not sure if there are other dependecies
with similar problems.
Post by Stevo Slavić
* All the commented out stuff in poms should be cleaned up too -
poms are under version control after all, and all the commented
out stuff just lowers readability.
Fine by me in general with one exception. To my knowledge there is at
least one part, the clover configuration, that is commented out as we
didn't manage to get this new feature working yet. For this parts jira
issues should be created that allow to reproduce current state.
Post by Stevo Slavić
* There are also multiple build helper plugin configurations with
comments that they should be removed once new
castor-maven-plugin is released. IMO it is questionable whether
build helper configuration should be removed, .classpath files
with hardcoded classpath entries to generated sources should
better be removed from version control (read on for more on
this) - maven executions will use build helper plugin while for
eclipse there are maven integration plugins like m2eclipse which
can handle this dynamically
I'm fine with removing build helpers if everything works as expected
thereafter. See my comments on .classpath below.
Post by Stevo Slavić
*
* Why have IDE (eclipse) specific files been put under version
control? I prefer to put them under svn:ignore and this seems to
be practice in many if not all maven core and plugin projects.
o Eclipse specific files like .classpath committed to svn
have hardcoded stuff like M2_REPO classpath entries. I'm
using eclipse too, with m2eclipse plugin and subversive
with m2eclipse integration, so project can be easily
checked-out as maven project, where m2eclipse configures
eclipse classpath, not by adding classpath entry for every
dependency, but by adding a single classpath entry to
org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER which
acts as m2eclipse managed dynamic library with all the
dependencies configured in pom; now, if I manage project
with m2eclipse it will modify these IDE specific files and
eclipse projects will appear as if they've been modified,
and IDE specific files will appear in listings when
preparing patch;
o .checkstyle configuration file is also under version
control; with checkstyle 5.0 out, and eclipse-cs plugin
and its integration with m2eclipse, it is enough just to
configure latest maven checkstyle plugin in castor parent
module pom, this configuration will be used by maven and
that same configuration through eclipse-cs plugin
m2eclipse integration will be used in eclipse as well;
eclipse-cs m2eclipse generation in that case will
configure eclipse-cs by generating .checkstyle file so it
can possibly be different to one under version control so
this file and project it belongs will appear as with
modifications, thus it would be best to put this, again
IDE specific, file out of version control and into the
svn:ignore list.
I personally use maven from command line and do not like the eclipse
configuration 'mvn eclipse:eclipse' produces. It's up to you to use any
tool you like to produce your eclipse configurations but don't force
others to use them too. As long as maven isn't able to produce the
configurations as they currently are I like the eclipse configuration
files to be kept in SVN. If you like to tune pom with regard to those
that like to work with generated configurations I'm open to your additions.
Post by Stevo Slavić
If you agree, I can create a patch with all these adjustments included
for you to verify.
Regards,
Stevo.
Could you please create a issue in jira about improvements to maven
build. Maybe it would be a good idea to handle different improvements
with separate subtasks to this issue.

Regards
Ralf
Post by Stevo Slavić
Werner,
you are right, I'm not using mvn eclipse:eclipse.
Ralf
Post by Werner Guttmann
Ralf,
just to make sure, you are not doing a mvn eclipse:eclipse before
importing Castor into Eclipse, correct ? If that's the case, you are
(probably) right. But I will have to try this myself ....
Cheers
Werner
PS Have you ever tried
svn co ....
mvn eclipse:eclipse
followed by an import of the Castor modules into Eclipse ?
Hi Stevo and Werner,
if you just do 'mvn clean install' you will still see compile
errors in
Post by Werner Guttmann
eclipse as generation of sources for cpactf and
jdo-extension-it modules
Post by Werner Guttmann
will not be executed. To prevent this problems you have to
execute 'mvn
Post by Werner Guttmann
-Pit clean install'.
Werner: any chances to get generation of this sources triggered
without
Post by Werner Guttmann
triggering execution of the tests?
Regards
Ralf
Post by Werner Guttmann
Hi Stevo,
given Ralf committed a patch a few days ago, can we assume
that you can
Post by Werner Guttmann
Post by Werner Guttmann
now build things successfully.
Cheers
Werner
Post by Stevo Slavić
Hello Castor developers,
I was able to build current Castor only after upgrading
dependency to
Post by Werner Guttmann
Post by Werner Guttmann
Post by Stevo Slavić
castor-maven-plugin from 2.0-SNAPSHOT to 2.0. Additionaly
I've removed
Post by Werner Guttmann
Post by Werner Guttmann
Post by Stevo Slavić
castor-maven-plugin dependency to codegen 1.3rc1 at one place
as IMO it's no
Post by Werner Guttmann
Post by Werner Guttmann
Post by Stevo Slavić
longer needed. Attached is patch with these adjustments.
Regards,
Stevo.
---------------------------------------------------------------------
Post by Werner Guttmann
Post by Werner Guttmann
http://xircles.codehaus.org/manage_email
--
Syscon Ingenieurbüro für Meß- und Datentechnik GmbH
Ralf Joachim
Raiffeisenstraße 11
72127 Kusterdingen
Germany
Tel. +49 7071 3690 52
Mobil: +49 173 9630135
Fax +49 7071 3690 98
Internet: www.syscon.eu <http://www.syscon.eu>
Sitz der Gesellschaft: D-72127 Kusterdingen
Registereintrag: Amtsgericht Stuttgart, HRB 382295
Geschäftsleitung: Jens Joachim, Ralf Joachim
--------------------------------------------------------------------- To
Post by Werner Guttmann
http://xircles.codehaus.org/manage_email
---------------------------------------------------------------------
Post by Werner Guttmann
http://xircles.codehaus.org/manage_email
--
Syscon Ingenieurbüro für Meß- und Datentechnik GmbH
Ralf Joachim
Raiffeisenstraße 11
72127 Kusterdingen
Germany
Tel. +49 7071 3690 52
Mobil: +49 173 9630135
Fax +49 7071 3690 98
Internet: www.syscon.eu <http://www.syscon.eu>
Sitz der Gesellschaft: D-72127 Kusterdingen
Registereintrag: Amtsgericht Stuttgart, HRB 382295
Geschäftsleitung: Jens Joachim, Ralf Joachim
---------------------------------------------------------------------
http://xircles.codehaus.org/manage_email
--
Syscon Ingenieurbüro für Meß- und Datentechnik GmbH
Ralf Joachim
Raiffeisenstraße 11
72127 Kusterdingen
Germany

Tel. +49 7071 3690 52
Mobil: +49 173 9630135
Fax +49 7071 3690 98

Internet: www.syscon.eu
E-Mail: ***@syscon.eu

Sitz der Gesellschaft: D-72127 Kusterdingen
Registereintrag: Amtsgericht Stuttgart, HRB 382295
Geschäftsleitung: Jens Joachim, Ralf Joachim




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

http://xircles.codehaus.org/manage_email
Werner Guttmann
2009-11-30 10:16:01 UTC
Permalink
Just a gernal observation. I have got a TO-DO list in front of me that
includes the majority of the problems/issues as raised by Stevo. But I
agree with Ralf that (sub-)task would be nice to have, so that I cab
structure myself in the next coming days.

lG.
Werner
Post by Werner Guttmann
Hi Stevo,
see my comments inline.
Post by Stevo Slavić
Hello Werner and Ralf,
* My patch hasn't been applied completely. Even so, patch didn't
remove all references to 2.0-SNAPSHOT version of
castor-maven-plugin (just ones which prevented building castor),
and there are some other snapshot references too (default
release plugin configuration would have prevented this). All the
modules seem to inherit org.codehaus.castor:castor aggregator
parent module which has pluginManagement section but it
currently doesn't specify castor-maven-plugin. IMO it would be
best to add castor-maven-plugin with latest released version
there, and then remove all the version references from other
child modules - this would improve consistency and maintainability.
Using pluginManagement sounds like a good idea to me but I expect you
will hit some problems. E.g. there are dependencies to derby in 3
modules (cpactf, jdo-extension-it and jpa-extension-it). While we need
derby 10.5.3.0_1 for cpactf this version of derby does cause failing
tests in the other 2 modules which is the reason why the other modules
still depend on derby 10.4.xxx. Not sure if there are other dependecies
with similar problems.
Post by Stevo Slavić
* All the commented out stuff in poms should be cleaned up too -
poms are under version control after all, and all the commented
out stuff just lowers readability.
Fine by me in general with one exception. To my knowledge there is at
least one part, the clover configuration, that is commented out as we
didn't manage to get this new feature working yet. For this parts jira
issues should be created that allow to reproduce current state.
Post by Stevo Slavić
* There are also multiple build helper plugin configurations with
comments that they should be removed once new
castor-maven-plugin is released. IMO it is questionable whether
build helper configuration should be removed, .classpath files
with hardcoded classpath entries to generated sources should
better be removed from version control (read on for more on
this) - maven executions will use build helper plugin while for
eclipse there are maven integration plugins like m2eclipse which
can handle this dynamically
I'm fine with removing build helpers if everything works as expected
thereafter. See my comments on .classpath below.
Post by Stevo Slavić
*
* Why have IDE (eclipse) specific files been put under version
control? I prefer to put them under svn:ignore and this seems to
be practice in many if not all maven core and plugin projects.
o Eclipse specific files like .classpath committed to svn
have hardcoded stuff like M2_REPO classpath entries. I'm
using eclipse too, with m2eclipse plugin and subversive
with m2eclipse integration, so project can be easily
checked-out as maven project, where m2eclipse configures
eclipse classpath, not by adding classpath entry for every
dependency, but by adding a single classpath entry to
org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER which
acts as m2eclipse managed dynamic library with all the
dependencies configured in pom; now, if I manage project
with m2eclipse it will modify these IDE specific files and
eclipse projects will appear as if they've been modified,
and IDE specific files will appear in listings when
preparing patch;
o .checkstyle configuration file is also under version
control; with checkstyle 5.0 out, and eclipse-cs plugin
and its integration with m2eclipse, it is enough just to
configure latest maven checkstyle plugin in castor parent
module pom, this configuration will be used by maven and
that same configuration through eclipse-cs plugin
m2eclipse integration will be used in eclipse as well;
eclipse-cs m2eclipse generation in that case will
configure eclipse-cs by generating .checkstyle file so it
can possibly be different to one under version control so
this file and project it belongs will appear as with
modifications, thus it would be best to put this, again
IDE specific, file out of version control and into the
svn:ignore list.
I personally use maven from command line and do not like the eclipse
configuration 'mvn eclipse:eclipse' produces. It's up to you to use any
tool you like to produce your eclipse configurations but don't force
others to use them too. As long as maven isn't able to produce the
configurations as they currently are I like the eclipse configuration
files to be kept in SVN. If you like to tune pom with regard to those
that like to work with generated configurations I'm open to your additions.
Post by Stevo Slavić
If you agree, I can create a patch with all these adjustments included
for you to verify.
Regards,
Stevo.
Could you please create a issue in jira about improvements to maven
build. Maybe it would be a good idea to handle different improvements
with separate subtasks to this issue.
Regards
Ralf
Post by Stevo Slavić
Werner,
you are right, I'm not using mvn eclipse:eclipse.
Ralf
Post by Werner Guttmann
Ralf,
just to make sure, you are not doing a mvn eclipse:eclipse before
importing Castor into Eclipse, correct ? If that's the case, you are
(probably) right. But I will have to try this myself ....
Cheers
Werner
PS Have you ever tried
svn co ....
mvn eclipse:eclipse
followed by an import of the Castor modules into Eclipse ?
Hi Stevo and Werner,
if you just do 'mvn clean install' you will still see compile
errors in
Post by Werner Guttmann
eclipse as generation of sources for cpactf and
jdo-extension-it modules
Post by Werner Guttmann
will not be executed. To prevent this problems you have to
execute 'mvn
Post by Werner Guttmann
-Pit clean install'.
Werner: any chances to get generation of this sources triggered
without
Post by Werner Guttmann
triggering execution of the tests?
Regards
Ralf
Post by Werner Guttmann
Hi Stevo,
given Ralf committed a patch a few days ago, can we assume
that you can
Post by Werner Guttmann
Post by Werner Guttmann
now build things successfully.
Cheers
Werner
Post by Stevo Slavić
Hello Castor developers,
I was able to build current Castor only after upgrading
dependency to
Post by Werner Guttmann
Post by Werner Guttmann
Post by Stevo Slavić
castor-maven-plugin from 2.0-SNAPSHOT to 2.0. Additionaly
I've removed
Post by Werner Guttmann
Post by Werner Guttmann
Post by Stevo Slavić
castor-maven-plugin dependency to codegen 1.3rc1 at one place
as IMO it's no
Post by Werner Guttmann
Post by Werner Guttmann
Post by Stevo Slavić
longer needed. Attached is patch with these adjustments.
Regards,
Stevo.
---------------------------------------------------------------------
Post by Werner Guttmann
Post by Werner Guttmann
http://xircles.codehaus.org/manage_email
--
Syscon Ingenieurbüro für Meß- und Datentechnik GmbH
Ralf Joachim
Raiffeisenstraße 11
72127 Kusterdingen
Germany
Tel. +49 7071 3690 52
Mobil: +49 173 9630135
Fax +49 7071 3690 98
Internet: www.syscon.eu <http://www.syscon.eu>
Sitz der Gesellschaft: D-72127 Kusterdingen
Registereintrag: Amtsgericht Stuttgart, HRB 382295
Geschäftsleitung: Jens Joachim, Ralf Joachim
--------------------------------------------------------------------- To
Post by Werner Guttmann
http://xircles.codehaus.org/manage_email
---------------------------------------------------------------------
Post by Werner Guttmann
http://xircles.codehaus.org/manage_email
--
Syscon Ingenieurbüro für Meß- und Datentechnik GmbH
Ralf Joachim
Raiffeisenstraße 11
72127 Kusterdingen
Germany
Tel. +49 7071 3690 52
Mobil: +49 173 9630135
Fax +49 7071 3690 98
Internet: www.syscon.eu <http://www.syscon.eu>
Sitz der Gesellschaft: D-72127 Kusterdingen
Registereintrag: Amtsgericht Stuttgart, HRB 382295
Geschäftsleitung: Jens Joachim, Ralf Joachim
---------------------------------------------------------------------
http://xircles.codehaus.org/manage_email
---------------------------------------------------------------------
To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email
Werner Guttmann
2009-11-30 14:14:21 UTC
Permalink
Stevo,

where do I find your patch ?

Cheers
Werner
Post by Stevo Slavić
Hello Werner and Ralf,
- My patch hasn't been applied completely. Even so, patch didn't remove
all references to 2.0-SNAPSHOT version of castor-maven-plugin (just ones
which prevented building castor), and there are some other snapshot
references too (default release plugin configuration would have prevented
this).
Actually, not if they are transitive dependencies. Bear in mind that for
release 1.3.0.1 I have used the release plugin.
Post by Stevo Slavić
All the modules seem to inherit org.codehaus.castor:castor aggregator
parent module which has pluginManagement section but it currently doesn't
specify castor-maven-plugin. IMO it would be best to add castor-maven-plugin
with latest released version there,
and then remove all the version
references from other child modules - this would improve consistency and
maintainability.
+1. Yes, very much. I'd definitely like to have a JIRA issue for this task.

Let me please comment upon the remainder of these things later tonight ....

Werner
Post by Stevo Slavić
- All the commented out stuff in poms should be cleaned up too - poms are
under version control after all, and all the commented out stuff just lowers
readability.
- There are also multiple build helper plugin configurations with
comments that they should be removed once new castor-maven-plugin is
released. IMO it is questionable whether build helper configuration should
be removed, .classpath files with hardcoded classpath entries to generated
sources should better be removed from version control (read on for more on
this) - maven executions will use build helper plugin while for eclipse
there are maven integration plugins like m2eclipse which can handle this
dynamically
- Why have IDE (eclipse) specific files been put under version control? I
prefer to put them under svn:ignore and this seems to be practice in many if
not all maven core and plugin projects.
- Eclipse specific files like .classpath committed to svn have
hardcoded stuff like M2_REPO classpath entries. I'm using
eclipse too, with
m2eclipse plugin and subversive with m2eclipse integration, so
project can
be easily checked-out as maven project, where m2eclipse
configures eclipse
classpath, not by adding classpath entry for every dependency,
but by adding
a single classpath entry to
org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER
which acts as m2eclipse managed dynamic library with all the dependencies
configured in pom; now, if I manage project with m2eclipse it will modify
these IDE specific files and eclipse projects will appear as if
they've been
modified, and IDE specific files will appear in listings when preparing
patch;
- .checkstyle configuration file is also under version control; with
checkstyle 5.0 out, and eclipse-cs plugin and its integration with
m2eclipse, it is enough just to configure latest maven
checkstyle plugin in
castor parent module pom, this configuration will be used by
maven and that
same configuration through eclipse-cs plugin m2eclipse
integration will be
used in eclipse as well; eclipse-cs m2eclipse generation in that
case will
configure eclipse-cs by generating .checkstyle file so it can possibly be
different to one under version control so this file and project
it belongs
will appear as with modifications, thus it would be best to put
this, again
IDE specific, file out of version control and into the svn:ignore list.
If you agree, I can create a patch with all these adjustments included for
you to verify.
Regards,
Stevo.
Post by Ralf Joachim
Werner,
you are right, I'm not using mvn eclipse:eclipse.
Ralf
Post by Werner Guttmann
Ralf,
just to make sure, you are not doing a mvn eclipse:eclipse before
importing Castor into Eclipse, correct ? If that's the case, you are
(probably) right. But I will have to try this myself ....
Cheers
Werner
PS Have you ever tried
svn co ....
mvn eclipse:eclipse
followed by an import of the Castor modules into Eclipse ?
Hi Stevo and Werner,
if you just do 'mvn clean install' you will still see compile errors in
eclipse as generation of sources for cpactf and jdo-extension-it modules
will not be executed. To prevent this problems you have to execute 'mvn
-Pit clean install'.
Werner: any chances to get generation of this sources triggered without
triggering execution of the tests?
Regards
Ralf
Post by Werner Guttmann
Hi Stevo,
given Ralf committed a patch a few days ago, can we assume that you can
now build things successfully.
Cheers
Werner
Post by Stevo Slavić
Hello Castor developers,
I was able to build current Castor only after upgrading dependency to
castor-maven-plugin from 2.0-SNAPSHOT to 2.0. Additionaly I've removed
castor-maven-plugin dependency to codegen 1.3rc1 at one place as IMO
it's no
Post by Werner Guttmann
Post by Werner Guttmann
Post by Stevo Slavić
longer needed. Attached is patch with these adjustments.
Regards,
Stevo.
---------------------------------------------------------------------
http://xircles.codehaus.org/manage_email
--
Syscon Ingenieurbüro für Meß- und Datentechnik GmbH
Ralf Joachim
Raiffeisenstraße 11
72127 Kusterdingen
Germany
Tel. +49 7071 3690 52
Mobil: +49 173 9630135
Fax +49 7071 3690 98
Internet: www.syscon.eu
Sitz der Gesellschaft: D-72127 Kusterdingen
Registereintrag: Amtsgericht Stuttgart, HRB 382295
Geschäftsleitung: Jens Joachim, Ralf Joachim
--------------------------------------------------------------------- To
http://xircles.codehaus.org/manage_email
---------------------------------------------------------------------
http://xircles.codehaus.org/manage_email
--
Syscon Ingenieurbüro für Meß- und Datentechnik GmbH
Ralf Joachim
Raiffeisenstraße 11
72127 Kusterdingen
Germany
Tel. +49 7071 3690 52
Mobil: +49 173 9630135
Fax +49 7071 3690 98
Internet: www.syscon.eu
Sitz der Gesellschaft: D-72127 Kusterdingen
Registereintrag: Amtsgericht Stuttgart, HRB 382295
Geschäftsleitung: Jens Joachim, Ralf Joachim
---------------------------------------------------------------------
http://xircles.codehaus.org/manage_email
---------------------------------------------------------------------
To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email
Werner Guttmann
2009-11-30 23:00:02 UTC
Permalink
Hi Stevo,
Post by Stevo Slavić
Hello Werner and Ralf,
- My patch hasn't been applied completely. Even so, patch didn't remove
all references to 2.0-SNAPSHOT version of castor-maven-plugin (just ones
which prevented building castor), and there are some other snapshot
references too (default release plugin configuration would have prevented
this). All the modules seem to inherit org.codehaus.castor:castor aggregator
parent module which has pluginManagement section but it currently doesn't
specify castor-maven-plugin. IMO it would be best to add castor-maven-plugin
with latest released version there, and then remove all the version
references from other child modules - this would improve consistency and
maintainability.
I just added castor-maven-plugin:2.0 to the <pluginManagement> section
of the parent POM, and apparently raised the version number to 2.0. At
the same time I removed all <dependencies> overrides (those actually
active as well as those commented out) from the module POMs.

Planned steps:

- Remove the use of the build-helper-plugin as the plugin should handle
this itself as of release 2.0.
- Remove the use of the <resources> section to handle inclusion of the
generated .castoir.cdr files as the plugin should handle this itself as
of release 2.0.
- Move the phase binding of the plugin to the <pluginManagement> section
, if possible.

Regards
Werner

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

http://xircles.codehaus.org/manage_email
Werner Guttmann
2009-12-01 20:38:48 UTC
Permalink
All,
Post by Werner Guttmann
Hi Stevo,
Post by Stevo Slavić
Hello Werner and Ralf,
- My patch hasn't been applied completely. Even so, patch didn't remove
all references to 2.0-SNAPSHOT version of castor-maven-plugin (just ones
which prevented building castor), and there are some other snapshot
references too (default release plugin configuration would have prevented
this). All the modules seem to inherit org.codehaus.castor:castor aggregator
parent module which has pluginManagement section but it currently doesn't
specify castor-maven-plugin. IMO it would be best to add castor-maven-plugin
with latest released version there, and then remove all the version
references from other child modules - this would improve consistency and
maintainability.
I just added castor-maven-plugin:2.0 to the <pluginManagement> section
of the parent POM, and apparently raised the version number to 2.0. At
the same time I removed all <dependencies> overrides (those actually
active as well as those commented out) from the module POMs.
I just created

http://jira.codehaus.org/browse/CASTOR-2857

to allow monitoring of all activities related to the usage of the
castor-maven-plugin.
Post by Werner Guttmann
- Remove the use of the build-helper-plugin as the plugin should handle
this itself as of release 2.0.
- Remove the use of the <resources> section to handle inclusion of the
generated .castoir.cdr files as the plugin should handle this itself as
of release 2.0.
- Move the phase binding of the plugin to the <pluginManagement> section
, if possible.
Regards
Werner
---------------------------------------------------------------------
http://xircles.codehaus.org/manage_email
---------------------------------------------------------------------
To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email
Werner Guttmann
2009-12-10 09:02:40 UTC
Permalink
Hi Stevo,

me again, though a bit later than originally thought.

Cheers
Werner
Post by Stevo Slavić
Hello Werner and Ralf,
- My patch hasn't been applied completely. Even so, patch didn't remove
all references to 2.0-SNAPSHOT version of castor-maven-plugin (just ones
which prevented building castor), and there are some other snapshot
references too (default release plugin configuration would have prevented
this). All the modules seem to inherit org.codehaus.castor:castor aggregator
parent module which has pluginManagement section but it currently doesn't
specify castor-maven-plugin. IMO it would be best to add castor-maven-plugin
with latest released version there, and then remove all the version
references from other child modules - this would improve consistency and
maintainability.
- All the commented out stuff in poms should be cleaned up too - poms are
under version control after all, and all the commented out stuff just lowers
readability.
+1.
Post by Stevo Slavić
- There are also multiple build helper plugin configurations with
comments that they should be removed once new castor-maven-plugin is
released.
There's already a Jira issue that deals with this.
Post by Stevo Slavić
IMO it is questionable whether build helper configuration should
be removed,
I think they should, as most of the functionality provided by the
build-helper-plugin has been moved into the castor-maven-plugin, such as
the addition of generated resource files to the project, etc. Again, the
aforementioned patch should be dealing with this.
Post by Stevo Slavić
.classpath files with hardcoded classpath entries to generated
sources should better be removed from version control (read on for more on
this) - maven executions will use build helper plugin while for eclipse
there are maven integration plugins like m2eclipse which can handle this
dynamically
Please no m2eclipse .. ;-), but in general the use of mvn
eclipse:eclipse provides you - after a checkout - with everything
required to work on the Castor sources.
Post by Stevo Slavić
- Why have IDE (eclipse) specific files been put under version control? I
prefer to put them under svn:ignore and this seems to be practice in many if
not all maven core and plugin projects.
I personally agree with you here, but this is down to personal
preferences of committers. I can live with it, but for others
convenience is very important.
Post by Stevo Slavić
- Eclipse specific files like .classpath committed to svn have
hardcoded stuff like M2_REPO classpath entries. I'm using
eclipse too, with
m2eclipse plugin and subversive with m2eclipse integration, so
project can
be easily checked-out as maven project, where m2eclipse
configures eclipse
classpath, not by adding classpath entry for every dependency,
but by adding
a single classpath entry to
org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER
which acts as m2eclipse managed dynamic library with all the dependencies
configured in pom; now, if I manage project with m2eclipse it will modify
these IDE specific files and eclipse projects will appear as if
they've been
modified, and IDE specific files will appear in listings when preparing
patch;
- .checkstyle configuration file is also under version control; with
checkstyle 5.0 out, and eclipse-cs plugin and its integration with
m2eclipse, it is enough just to configure latest maven
checkstyle plugin in
castor parent module pom, this configuration will be used by
maven and that
same configuration through eclipse-cs plugin m2eclipse
integration will be
used in eclipse as well; eclipse-cs m2eclipse generation in that
case will
configure eclipse-cs by generating .checkstyle file so it can possibly be
different to one under version control so this file and project
it belongs
will appear as with modifications, thus it would be best to put
this, again
IDE specific, file out of version control and into the svn:ignore list.
Same as above. I am much in favour of Maven, and would think along the
same lines. But then gain, for others this is less importamt.
Post by Stevo Slavić
If you agree, I can create a patch with all these adjustments included for
you to verify.
Thank you very much for this offer, but one patch for all these
adjustments won't work (for the reasons stated above). But I'd
appreciate any help with verifying some of my own patches and providing
patches for isolated areas (where everybody agrees).
Post by Stevo Slavić
Regards,
Stevo.
Post by Ralf Joachim
Werner,
you are right, I'm not using mvn eclipse:eclipse.
Ralf
Post by Werner Guttmann
Ralf,
just to make sure, you are not doing a mvn eclipse:eclipse before
importing Castor into Eclipse, correct ? If that's the case, you are
(probably) right. But I will have to try this myself ....
Cheers
Werner
PS Have you ever tried
svn co ....
mvn eclipse:eclipse
followed by an import of the Castor modules into Eclipse ?
Hi Stevo and Werner,
if you just do 'mvn clean install' you will still see compile errors in
eclipse as generation of sources for cpactf and jdo-extension-it modules
will not be executed. To prevent this problems you have to execute 'mvn
-Pit clean install'.
Werner: any chances to get generation of this sources triggered without
triggering execution of the tests?
Regards
Ralf
Post by Werner Guttmann
Hi Stevo,
given Ralf committed a patch a few days ago, can we assume that you can
now build things successfully.
Cheers
Werner
Post by Stevo Slavić
Hello Castor developers,
I was able to build current Castor only after upgrading dependency to
castor-maven-plugin from 2.0-SNAPSHOT to 2.0. Additionaly I've removed
castor-maven-plugin dependency to codegen 1.3rc1 at one place as IMO
it's no
Post by Werner Guttmann
Post by Werner Guttmann
Post by Stevo Slavić
longer needed. Attached is patch with these adjustments.
Regards,
Stevo.
---------------------------------------------------------------------
http://xircles.codehaus.org/manage_email
--
Syscon Ingenieurbüro für Meß- und Datentechnik GmbH
Ralf Joachim
Raiffeisenstraße 11
72127 Kusterdingen
Germany
Tel. +49 7071 3690 52
Mobil: +49 173 9630135
Fax +49 7071 3690 98
Internet: www.syscon.eu
Sitz der Gesellschaft: D-72127 Kusterdingen
Registereintrag: Amtsgericht Stuttgart, HRB 382295
Geschäftsleitung: Jens Joachim, Ralf Joachim
--------------------------------------------------------------------- To
http://xircles.codehaus.org/manage_email
---------------------------------------------------------------------
http://xircles.codehaus.org/manage_email
--
Syscon Ingenieurbüro für Meß- und Datentechnik GmbH
Ralf Joachim
Raiffeisenstraße 11
72127 Kusterdingen
Germany
Tel. +49 7071 3690 52
Mobil: +49 173 9630135
Fax +49 7071 3690 98
Internet: www.syscon.eu
Sitz der Gesellschaft: D-72127 Kusterdingen
Registereintrag: Amtsgericht Stuttgart, HRB 382295
Geschäftsleitung: Jens Joachim, Ralf Joachim
---------------------------------------------------------------------
http://xircles.codehaus.org/manage_email
---------------------------------------------------------------------
To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

Loading...