You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by Claus Ibsen <cl...@gmail.com> on 2013/08/15 13:26:42 UTC
[IDEA] - Having a parent maven pom.xml for only the dependency versions
Hi
Today we have the parent/pom.xml file which has both all the versions
of the 3rd party JARs we have as dependencies. And also a list of all
the camel components and some other stuff.
I wonder if we could have all the dependency versions in a single
file, without all the other stuff.
This would make it easier for ppl to see what are the version changes
between any two Camel versions, but just diff the 2 files?
And also we could just have such a link in the release notes so we
dont have to manually keep all the versions upgrades in the release
notes up to date as well.
--
Claus Ibsen
-----------------
Red Hat, Inc.
Email: cibsen@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
Re: [IDEA] - Having a parent maven pom.xml for only the dependency versions
Posted by Christian Müller <ch...@gmail.com>.
Is there a plugin you are aware of which supports this? If yes, +1
Best,
Christian
-----------------
Software Integration Specialist
Apache Camel committer: https://camel.apache.org/team
V.P. Apache Camel: https://www.apache.org/foundation/
Apache Member: https://www.apache.org/foundation/members.html
https://www.linkedin.com/pub/christian-mueller/11/551/642
On Sat, Aug 17, 2013 at 10:00 AM, Claus Ibsen <cl...@gmail.com> wrote:
> On Sat, Aug 17, 2013 at 9:30 AM, Jan Matèrne (jhm) <ap...@materne.de>
> wrote:
> >> > What do you propose the "list of all the camel components and some
> >> > other stuff" should go?
> >> >
> >>
> >> They should stay where they are. Its just all the versions that gets
> >> moved into its own file, so the file ONLY has the versions. And that
> >> makes the diff much easier.
> >
> > Do you mean to externalize the complete dependency (groupid, artefactid,
> > version) or just the version (and using properties in the pom)?
> >
> > Jan
> >
> > <pom>
> > <dependencies>
> > <includeDependencies/>
> > </dependencies>
> > </pom>
> >
> > <pom>
> > <loadVersionProperties/>
> > <dependencies>
> > <dependency>
> > <groupdId>junit</groupId>
> > <artefactId>junit</artefactId>
> > <version>${dependency.junit.version}</version>
> > ...
> >
>
> Yeah only the versions (we already have today in the parent/pom.xml)
> in the <properties> should be externalized in its own file. So we have
> both the parent/pom.xml and another file with the versions.
>
> (Though not sure how to do that in Maven. But would assume its possible)
>
> eg in parent/pom.xml we have 200+ versions and a bunch of other stuff.
>
> <properties>
>
> <!-- dependency versions -->
> <abdera-version>1.1.3</abdera-version>
> <!-- Note that activemq dependency is only used for testing! -->
> <activemq-version>5.8.0</activemq-version>
> <ahc-version>1.7.19</ahc-version>
> <ant-bundle-version>1.7.0_6</ant-bundle-version>
>
>
> --
> Claus Ibsen
> -----------------
> Red Hat, Inc.
> Email: cibsen@redhat.com
> Twitter: davsclaus
> Blog: http://davsclaus.com
> Author of Camel in Action: http://www.manning.com/ibsen
>
Re: [IDEA] - Having a parent maven pom.xml for only the dependency versions
Posted by Claus Ibsen <cl...@gmail.com>.
On Sat, Aug 17, 2013 at 9:30 AM, Jan Matèrne (jhm) <ap...@materne.de> wrote:
>> > What do you propose the "list of all the camel components and some
>> > other stuff" should go?
>> >
>>
>> They should stay where they are. Its just all the versions that gets
>> moved into its own file, so the file ONLY has the versions. And that
>> makes the diff much easier.
>
> Do you mean to externalize the complete dependency (groupid, artefactid,
> version) or just the version (and using properties in the pom)?
>
> Jan
>
> <pom>
> <dependencies>
> <includeDependencies/>
> </dependencies>
> </pom>
>
> <pom>
> <loadVersionProperties/>
> <dependencies>
> <dependency>
> <groupdId>junit</groupId>
> <artefactId>junit</artefactId>
> <version>${dependency.junit.version}</version>
> ...
>
Yeah only the versions (we already have today in the parent/pom.xml)
in the <properties> should be externalized in its own file. So we have
both the parent/pom.xml and another file with the versions.
(Though not sure how to do that in Maven. But would assume its possible)
eg in parent/pom.xml we have 200+ versions and a bunch of other stuff.
<properties>
<!-- dependency versions -->
<abdera-version>1.1.3</abdera-version>
<!-- Note that activemq dependency is only used for testing! -->
<activemq-version>5.8.0</activemq-version>
<ahc-version>1.7.19</ahc-version>
<ant-bundle-version>1.7.0_6</ant-bundle-version>
--
Claus Ibsen
-----------------
Red Hat, Inc.
Email: cibsen@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
AW: [IDEA] - Having a parent maven pom.xml for only the dependency versions
Posted by "Jan Matèrne (jhm)" <ap...@materne.de>.
> > What do you propose the "list of all the camel components and some
> > other stuff" should go?
> >
>
> They should stay where they are. Its just all the versions that gets
> moved into its own file, so the file ONLY has the versions. And that
> makes the diff much easier.
Do you mean to externalize the complete dependency (groupid, artefactid,
version) or just the version (and using properties in the pom)?
Jan
<pom>
<dependencies>
<includeDependencies/>
</dependencies>
</pom>
<pom>
<loadVersionProperties/>
<dependencies>
<dependency>
<groupdId>junit</groupId>
<artefactId>junit</artefactId>
<version>${dependency.junit.version}</version>
...
Re: [IDEA] - Having a parent maven pom.xml for only the dependency versions
Posted by Claus Ibsen <cl...@gmail.com>.
Yes
We have many Camel components so it would be great for ppl if they can
see more easily which versions has changed, when they upgrade from
Camel 2.12.0 to 2.13.1
Camel 2.12.1 to 2.13.5
Camel 2.12.1 to 2.14.2
PS: Dont mind the version 2.13 and 2.14, just for demo purpose, to say
that you can take any 2 Camel releases in the future and compare the
dependency versions much more easily.
And we dont have to maintain that manually at some release notes,
which is tedious, error prone, and the data is based on eg the
previous .0 release, eg for the current 2.12 in progress release
notes, the versions on the wiki is after the 2.11.0 release.
Instead ppl can just pick their Camel versions and compare using some
git diff tool or whatnot.
On Sat, Aug 17, 2013 at 1:08 PM, James Carman
<ja...@carmanconsulting.com> wrote:
> So, the goal here is to be able to provide a list of version numbers
> that change much easier for any release?
>
> On Sat, Aug 17, 2013 at 3:09 AM, Claus Ibsen <cl...@gmail.com> wrote:
>> On Sat, Aug 17, 2013 at 12:01 AM, Christian Müller
>> <ch...@gmail.com> wrote:
>>> What do you propose the "list of all the camel components and some other
>>> stuff" should go?
>>>
>>
>> They should stay where they are. Its just all the versions that gets
>> moved into its own file, so the file ONLY has the versions. And that
>> makes the diff much easier.
>>
>>> Best,
>>> Christian
>>> -----------------
>>>
>>> Software Integration Specialist
>>>
>>> Apache Camel committer: https://camel.apache.org/team
>>> V.P. Apache Camel: https://www.apache.org/foundation/
>>> Apache Member: https://www.apache.org/foundation/members.html
>>>
>>> https://www.linkedin.com/pub/christian-mueller/11/551/642
>>>
>>>
>>> On Thu, Aug 15, 2013 at 1:26 PM, Claus Ibsen <cl...@gmail.com> wrote:
>>>
>>>> Hi
>>>>
>>>> Today we have the parent/pom.xml file which has both all the versions
>>>> of the 3rd party JARs we have as dependencies. And also a list of all
>>>> the camel components and some other stuff.
>>>>
>>>> I wonder if we could have all the dependency versions in a single
>>>> file, without all the other stuff.
>>>>
>>>> This would make it easier for ppl to see what are the version changes
>>>> between any two Camel versions, but just diff the 2 files?
>>>>
>>>> And also we could just have such a link in the release notes so we
>>>> dont have to manually keep all the versions upgrades in the release
>>>> notes up to date as well.
>>>>
>>>> --
>>>> Claus Ibsen
>>>> -----------------
>>>> Red Hat, Inc.
>>>> Email: cibsen@redhat.com
>>>> Twitter: davsclaus
>>>> Blog: http://davsclaus.com
>>>> Author of Camel in Action: http://www.manning.com/ibsen
>>>>
>>
>>
>>
>> --
>> Claus Ibsen
>> -----------------
>> Red Hat, Inc.
>> Email: cibsen@redhat.com
>> Twitter: davsclaus
>> Blog: http://davsclaus.com
>> Author of Camel in Action: http://www.manning.com/ibsen
--
Claus Ibsen
-----------------
Red Hat, Inc.
Email: cibsen@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
Re: [IDEA] - Having a parent maven pom.xml for only the dependency versions
Posted by James Carman <ja...@carmanconsulting.com>.
So, the goal here is to be able to provide a list of version numbers
that change much easier for any release?
On Sat, Aug 17, 2013 at 3:09 AM, Claus Ibsen <cl...@gmail.com> wrote:
> On Sat, Aug 17, 2013 at 12:01 AM, Christian Müller
> <ch...@gmail.com> wrote:
>> What do you propose the "list of all the camel components and some other
>> stuff" should go?
>>
>
> They should stay where they are. Its just all the versions that gets
> moved into its own file, so the file ONLY has the versions. And that
> makes the diff much easier.
>
>> Best,
>> Christian
>> -----------------
>>
>> Software Integration Specialist
>>
>> Apache Camel committer: https://camel.apache.org/team
>> V.P. Apache Camel: https://www.apache.org/foundation/
>> Apache Member: https://www.apache.org/foundation/members.html
>>
>> https://www.linkedin.com/pub/christian-mueller/11/551/642
>>
>>
>> On Thu, Aug 15, 2013 at 1:26 PM, Claus Ibsen <cl...@gmail.com> wrote:
>>
>>> Hi
>>>
>>> Today we have the parent/pom.xml file which has both all the versions
>>> of the 3rd party JARs we have as dependencies. And also a list of all
>>> the camel components and some other stuff.
>>>
>>> I wonder if we could have all the dependency versions in a single
>>> file, without all the other stuff.
>>>
>>> This would make it easier for ppl to see what are the version changes
>>> between any two Camel versions, but just diff the 2 files?
>>>
>>> And also we could just have such a link in the release notes so we
>>> dont have to manually keep all the versions upgrades in the release
>>> notes up to date as well.
>>>
>>> --
>>> Claus Ibsen
>>> -----------------
>>> Red Hat, Inc.
>>> Email: cibsen@redhat.com
>>> Twitter: davsclaus
>>> Blog: http://davsclaus.com
>>> Author of Camel in Action: http://www.manning.com/ibsen
>>>
>
>
>
> --
> Claus Ibsen
> -----------------
> Red Hat, Inc.
> Email: cibsen@redhat.com
> Twitter: davsclaus
> Blog: http://davsclaus.com
> Author of Camel in Action: http://www.manning.com/ibsen
Re: [IDEA] - Having a parent maven pom.xml for only the dependency versions
Posted by Claus Ibsen <cl...@gmail.com>.
On Sat, Aug 17, 2013 at 12:01 AM, Christian Müller
<ch...@gmail.com> wrote:
> What do you propose the "list of all the camel components and some other
> stuff" should go?
>
They should stay where they are. Its just all the versions that gets
moved into its own file, so the file ONLY has the versions. And that
makes the diff much easier.
> Best,
> Christian
> -----------------
>
> Software Integration Specialist
>
> Apache Camel committer: https://camel.apache.org/team
> V.P. Apache Camel: https://www.apache.org/foundation/
> Apache Member: https://www.apache.org/foundation/members.html
>
> https://www.linkedin.com/pub/christian-mueller/11/551/642
>
>
> On Thu, Aug 15, 2013 at 1:26 PM, Claus Ibsen <cl...@gmail.com> wrote:
>
>> Hi
>>
>> Today we have the parent/pom.xml file which has both all the versions
>> of the 3rd party JARs we have as dependencies. And also a list of all
>> the camel components and some other stuff.
>>
>> I wonder if we could have all the dependency versions in a single
>> file, without all the other stuff.
>>
>> This would make it easier for ppl to see what are the version changes
>> between any two Camel versions, but just diff the 2 files?
>>
>> And also we could just have such a link in the release notes so we
>> dont have to manually keep all the versions upgrades in the release
>> notes up to date as well.
>>
>> --
>> Claus Ibsen
>> -----------------
>> Red Hat, Inc.
>> Email: cibsen@redhat.com
>> Twitter: davsclaus
>> Blog: http://davsclaus.com
>> Author of Camel in Action: http://www.manning.com/ibsen
>>
--
Claus Ibsen
-----------------
Red Hat, Inc.
Email: cibsen@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
Re: [IDEA] - Having a parent maven pom.xml for only the dependency versions
Posted by Christian Müller <ch...@gmail.com>.
What do you propose the "list of all the camel components and some other
stuff" should go?
Best,
Christian
-----------------
Software Integration Specialist
Apache Camel committer: https://camel.apache.org/team
V.P. Apache Camel: https://www.apache.org/foundation/
Apache Member: https://www.apache.org/foundation/members.html
https://www.linkedin.com/pub/christian-mueller/11/551/642
On Thu, Aug 15, 2013 at 1:26 PM, Claus Ibsen <cl...@gmail.com> wrote:
> Hi
>
> Today we have the parent/pom.xml file which has both all the versions
> of the 3rd party JARs we have as dependencies. And also a list of all
> the camel components and some other stuff.
>
> I wonder if we could have all the dependency versions in a single
> file, without all the other stuff.
>
> This would make it easier for ppl to see what are the version changes
> between any two Camel versions, but just diff the 2 files?
>
> And also we could just have such a link in the release notes so we
> dont have to manually keep all the versions upgrades in the release
> notes up to date as well.
>
> --
> Claus Ibsen
> -----------------
> Red Hat, Inc.
> Email: cibsen@redhat.com
> Twitter: davsclaus
> Blog: http://davsclaus.com
> Author of Camel in Action: http://www.manning.com/ibsen
>
Re: [IDEA] - Having a parent maven pom.xml for only the dependency versions
Posted by Tracy Snell <tj...@snagdata.com>.
Note you can pass in the 2 versions to compare also:
http://vdiff.notsoclever.cc/?v1=2.12.0&v2=2.12.1
On Oct 18, 2013, at 3:58 AM, Claus Ibsen <cl...@gmail.com> wrote:
> Tracy this is a really nice tool, thanks for creating this.
>
> I added a link to it to our release notes so people is able to use
> this tool as its much more useful as you can pick 2 versions for
> compare.
>
> Then they can pick their old version and the new version to see the diff.
>
>
>
> On Sun, Sep 15, 2013 at 7:44 AM, Tracy Snell <ts...@gmail.com> wrote:
>> Just put up a solution at
>>
>> http://vdiff.notsoclever.cc
>> http://code.notsoclever.cc/camel-release-package-version-differences/
>>
>> You can choose any two Camel releases and see all the version differences between the two. Not exactly what you were looking for but it works decently I think.
>>
>>
>> On Aug 15, 2013, at 7:26 AM, Claus Ibsen <cl...@gmail.com> wrote:
>>
>>> This would make it easier for ppl to see what are the version changes
>>> between any two Camel versions, but just diff the 2 files?
>>
>
>
>
> --
> Claus Ibsen
> -----------------
> Red Hat, Inc.
> Email: cibsen@redhat.com
> Twitter: davsclaus
> Blog: http://davsclaus.com
> Author of Camel in Action: http://www.manning.com/ibsen
Re: [IDEA] - Having a parent maven pom.xml for only the dependency versions
Posted by Claus Ibsen <cl...@gmail.com>.
Tracy this is a really nice tool, thanks for creating this.
I added a link to it to our release notes so people is able to use
this tool as its much more useful as you can pick 2 versions for
compare.
Then they can pick their old version and the new version to see the diff.
On Sun, Sep 15, 2013 at 7:44 AM, Tracy Snell <ts...@gmail.com> wrote:
> Just put up a solution at
>
> http://vdiff.notsoclever.cc
> http://code.notsoclever.cc/camel-release-package-version-differences/
>
> You can choose any two Camel releases and see all the version differences between the two. Not exactly what you were looking for but it works decently I think.
>
>
> On Aug 15, 2013, at 7:26 AM, Claus Ibsen <cl...@gmail.com> wrote:
>
>> This would make it easier for ppl to see what are the version changes
>> between any two Camel versions, but just diff the 2 files?
>
--
Claus Ibsen
-----------------
Red Hat, Inc.
Email: cibsen@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
Re: [IDEA] - Having a parent maven pom.xml for only the dependency versions
Posted by Tracy Snell <ts...@gmail.com>.
Just put up a solution at
http://vdiff.notsoclever.cc
http://code.notsoclever.cc/camel-release-package-version-differences/
You can choose any two Camel releases and see all the version differences between the two. Not exactly what you were looking for but it works decently I think.
On Aug 15, 2013, at 7:26 AM, Claus Ibsen <cl...@gmail.com> wrote:
> This would make it easier for ppl to see what are the version changes
> between any two Camel versions, but just diff the 2 files?
AW: [IDEA] - Having a parent maven pom.xml for only the dependency versions
Posted by "Jan Matèrne (jhm)" <ap...@materne.de>.
> >>intention here in this thread is the other way around, that's extract
> >>them out!
I dont think so.
Reading Claus post again:
http://camel.465427.n5.nabble.com/IDEA-Having-a-parent-maven-pom-xml-for-onl
y-the-dependency-versions-td5737322.html
"This would make it easier for ppl to see what are the version changes
between any two Camel versions, but just diff the 2 files?
And also we could just have such a link in the release notes so we
dont have to manually keep all the versions upgrades in the release
notes up to date as well."
That means (to me):
- simple text file containing the version numbers and their names
- that text file must not be manually maintained; it must be part of the
build(system)
That does not mean (to me) that this file has to be the source for the build
system.
Generating that file from the existing poms would also be possible - and
after my failing tests with Maven - the better solution.
Generation could be done
- Maven properties plugin
- XSLT and the like (pom --> txt)
- Maven Dependency plugin
http://maven.apache.org/plugins/maven-dependency-plugin/list-mojo.html
- ...
Jan
Re: [IDEA] - Having a parent maven pom.xml for only the dependency versions
Posted by James Carman <ja...@carmanconsulting.com>.
Is all of this really solving some big problem? I really don't see a
huge benefit here.
On Wed, Aug 21, 2013 at 9:27 AM, Jon Anstey <ja...@gmail.com> wrote:
> I like the idea of having a pom just for versions. We could use Babak's
> proposal but instead of introducing another level of inheritance, just make
> one of the current top level poms mostly properties and push everything
> else into the other pom. So, either org.apache.camel:camel or
> org.apache.camel:camel-parent would become the "dependencies pom". Yes,
> still non-standard from a Maven POV, but at least no less standard than we
> already are :-)
>
>
> On Mon, Aug 19, 2013 at 3:31 PM, Daniel Kulp <dk...@apache.org> wrote:
>
>>
>> On Aug 19, 2013, at 1:25 PM, Babak Vahdat <ba...@swissonline.ch>
>> wrote:
>>
>> > Hi Dan,
>> >
>> > how exactly does your proposal look like? If I'm getting you right you
>> > suggest to push all these properties up into the top most level POM we
>> have,
>> > that is org.apache.camel:camel:2.12-SNAPSHOT right? But then again we've
>> got
>> > the same problem as already today because these Maven properties would be
>> > mixed up with a lot of other stuff. And the intention here in this
>> thread is
>> > the other way around, that's extract them out!
>>
>> I just don't see any value in pulling them out. It doesn't solve any
>> problem that isn't "trivial", but then creates an even greater confusion by
>> having a more complicated and more non-standard build system.
>>
>> Seriously, if you do:
>>
>> git diff a1acd3454e91e7388f4165715b823fa4749502ea parent/pom.xml
>>
>> (which is the diff between master and 2.11.0)
>>
>> There is very little that would not be part of the "diff" that would be
>> provided from your proposal, but there is additional information in there
>> that is important that your proposal would miss. (like the dropping of the
>> spring3 profile and the changing of the groupId/artifactId on the ehcache
>> things, different Saxon artifact ID)
>>
>> I would suggest just removing all the camel components from the
>> parent/pom.xml and adding <version>${project.version}</version> in the
>> places that actually depend on them. Defining dependencies on stuff you
>> are building like this in the parent depmngt section is again one of those
>> 'kind of non-standard' type things. Most of the components are only
>> imported into the assembly and the tests so it's not a "huge" deal.
>>
>>
>>
>> Dan
>>
>>
>>
>>
>> >
>> > Babak
>> >
>> >
>> > dkulp@apache.org wrote
>> >> Personally, I was going to suggest going the other direction and
>> >> completely get rid of the "parent" pom and move everything into the top
>> >> level pom. We already have a non-standard maven layout due to the
>> parent
>> >> pom which can be confusing for people (and tools). I'd much rather try
>> >> and find a way to go back to a more standard layout than introduce yet
>> >> another layer in there to make it even more non-standard.
>> >>
>> >> That's my opinion.
>> >>
>> >> Dan
>> >>
>> >>
>> >>
>> >> On Aug 18, 2013, at 8:35 AM, Claus Ibsen <
>> >
>> >> claus.ibsen@
>> >
>> >> > wrote:
>> >>
>> >>> Hi
>> >>>
>> >>> Yeah Babak's idea sounds good. Having that 2-level of parents.
>> >>>
>> >>> On Sun, Aug 18, 2013 at 1:55 PM, Babak Vahdat
>> >>> <
>> >
>> >> babak.vahdat@
>> >
>> >> > wrote:
>> >>>> I just tried out a different approach which:
>> >>>>
>> >>>> - doesn't require any Maven plugin usage.
>> >>>> - doesn't require to convert the Maven properties from the XML format
>> to
>> >>>> the
>> >>>> Java properties file format etc.
>> >>>> - is really simple.
>> >>>>
>> >>>> So the idea is to simply bump one more level of parent-child
>> dependency
>> >>>> into
>> >>>> our POM hierarchy (org.apache.camel:camel-dependencies:2.12-SNAPSHOT)
>> >>>> which
>> >>>> contains all the Maven properties of our 3rd party dependencies. And
>> >>>> this is
>> >>>> the diff for it dependencies.diff
>> >>>> <
>> http://camel.465427.n5.nabble.com/file/n5737472/dependencies.diff>
>> >>>> .
>> >>>>
>> >>>> Then for the release notes of the upcomming 2.12.0 release we could
>> just
>> >>>> add
>> >>>> the following link about our 3rd party dependencies, of course right
>> now
>> >>>> this resource doesn't exist on the central repo :-)
>> >>>>
>> http://search.maven.org/remotecontent?filepath=org/apache/camel/camel-dependencies/2.12.0/camel-dependencies-2.12.0.pom
>> >>>>
>> >>>>
>> >>>> For example in case of our Camel Parent POM of the 2.11.1 release the
>> >>>> link
>> >>>> is:
>> >>>>
>> http://search.maven.org/remotecontent?filepath=org/apache/camel/camel-parent/2.11.1/camel-parent-2.11.1.pom
>> >>>>
>> >>>> Babak
>> >>>>
>> >>>>
>> >>>> R. Sirchia wrote
>> >>>>> Hi,
>> >>>>>
>> >>>>> Why don't you do it the other way around?
>> >>>>>
>> >>>>> I understand from Claus that his desire is not so much to manage the
>> >>>>> dependencies and their versions in a different file, but just to
>> >>>>> provide a
>> >>>>> file where the version properties can be easily read from and diffed
>> >>>>> between releases.
>> >>>>>
>> >>>>> In that case, you could simply leave everything as it is and use the
>> >>>>> properties maven plugin to write the existing properties to a
>> >>>>> properties
>> >>>>> file:
>> >>>>>
>> http://mojo.codehaus.org/properties-maven-plugin/write-project-properties-mojo.html
>> >>>>>
>> >>>>> Optionally, the end result can be filtered using for example a
>> >>>>> maven-antrun-plugin goal to leave out any non-version properties,
>> which
>> >>>>> should be easy as the version definitions (can easilly be made to)
>> >>>>> follow
>> >>>>> a
>> >>>>> certain naming convention.
>> >>>>>
>> >>>>> The end result (a clean *.properties file) can then be attached using
>> >>>>> the
>> >>>>> build-helper plugin. It is then available in Maven Central to be
>> >>>>> referenced
>> >>>>> from the release notes, diffed or imported by any user, etc.
>> >>>>>
>> >>>>> Riccardo
>> >>>>>
>> >>>>>
>> >>>>>
>> >>>>> On Sat, Aug 17, 2013 at 10:23 PM, Jan Matèrne (jhm) <
>> >>>>
>> >>>>> apache@
>> >>>>
>> >>>>> >wrote:
>> >>>>>
>> >>>>>> I just played with that maven plugin.
>> >>>>>> The problem is that it loads the properties after the validation
>> >>>>>> phase.
>> >>>>>>
>> >>>>>> That wont work:
>> >>>>>>
>> >>>>>>
>> >>>>
>> >>>>>>
>> >>>>>
>> >> <project>
>> >>>>>>
>> >>>>>
>> >> <modelVersion>
>> >>>>> 4.0.0
>> >>>>>
>> >> </modelVersion>
>> >>>>>>
>> >>>>>>
>> >>>>>
>> >> <groupId>
>> >>>>> just-test
>> >>>>>
>> >> </groupId>
>> >>>>>>
>> >>>>>
>> >> <artifactId>
>> >>>>> version-test
>> >>>>>
>> >> </artifactId>
>> >>>>>>
>> >>>>>
>> >> <version>
>> >>>>> 1.0
>> >>>>>
>> >> </version>
>> >>>>>>
>> >>>>>>
>> >>>>>
>> >> <build>
>> >>>>>>
>> >>>>>
>> >> <plugins>
>> >>>>>>
>> >>>>>
>> >> <plugin>
>> >>>>>>
>> >>>>>
>> >> <groupId>
>> >>>>> org.codehaus.mojo
>> >>>>>
>> >> </groupId>
>> >>>>>>
>> >>>>>
>> >> <artifactId>
>> >>>>> properties-maven-plugin
>> >>>>>
>> >> </artifactId>
>> >>>>>>
>> >>>>>
>> >> <version>
>> >>>>> 1.0-alpha-2
>> >>>>>
>> >> </version>
>> >>>>>>
>> >>>>>
>> >> <executions>
>> >>>>>>
>> >>>>>
>> >> <execution>
>> >>>>>>
>> >>>>>
>> >> <phase>
>> >>>>> initialize
>> >>>>>
>> >> </phase>
>> >>>>>>
>> >>>>>
>> >> <goals>
>> >>>>>>
>> >>>>>
>> >> <goal>
>> >>>>> read-project-properties
>> >>>>>
>> >> </goal>
>> >>>>>>
>> >>>>>
>> >> </goals>
>> >>>>>>
>> >>>>>
>> >> <configuration>
>> >>>>>>
>> >>>>>
>> >> <files>
>> >>>>>>
>> >>>>>
>> >> <file>
>> >>>>> versions.properties
>> >>>>>
>> >> </file>
>> >>>>>>
>> >>>>>
>> >> </files>
>> >>>>>>
>> >>>>>
>> >> </configuration>
>> >>>>>>
>> >>>>>
>> >> </execution>
>> >>>>>>
>> >>>>>
>> >> </executions>
>> >>>>>>
>> >>>>>
>> >> </plugin>
>> >>>>>>
>> >>>>>
>> >> </plugins>
>> >>>>>>
>> >>>>>
>> >> </build>
>> >>>>>>
>> >>>>>>
>> >>>>>
>> >> <dependencies>
>> >>>>>>
>> >>>>>
>> >> <dependency>
>> >>>>>>
>> >>>>>
>> >> <groupId>
>> >>>>> junit
>> >>>>>
>> >> </groupId>
>> >>>>>>
>> >>>>>
>> >> <artifactId>
>> >>>>> junit
>> >>>>>
>> >> </artifactId>
>> >>>>>>
>> >>>>>
>> >> <version>
>> >>>>> ${junit}
>> >>>>>
>> >> </version>
>> >>>>>>
>> >>>>>
>> >> </dependency>
>> >>>>>>
>> >>>>>
>> >> </dependencies>
>> >>>>>>
>> >>>>>
>> >> </project>
>> >>>>>>
>> >>>>>>
>> >>>>>> I also tried putting a
>> >>>>>>
>> >>>>>
>> >> <properties>
>> >>>>>>
>> >>>>>
>> >> <junit>
>> >>>>> 1
>> >>>>>
>> >> </junit>
>> >>>>>>
>> >>>>>
>> >> </properties>
>> >>>>>> as placeholder for the validation doesnt work.
>> >>>>>> The property is not changed to the stored junit=4.9 in my file.
>> >>>>>>
>> >>>>>>
>> >>>>>> Current ideas:
>> >>>>>> - building our own mvn plugin (enhancing that plugin) for loading
>> the
>> >>>>>> props
>> >>>>>> and overwrite existing properties
>> >>>>>> - generate a valid pom from the version-list
>> >>>>>>
>> >>>>>>
>> >>>>>> Jan
>> >>>>>>
>> >>>>>>
>> >>>>>>> -----Ursprüngliche Nachricht-----
>> >>>>>>> Von: Babak Vahdat [mailto:
>> >>>>
>> >>>>> babak.vahdat@
>> >>>>
>> >>>>> ]
>> >>>>>>> Gesendet: Samstag, 17. August 2013 21:48
>> >>>>>>> An:
>> >>>>
>> >>>>> dev@.apache
>> >>>>
>> >>>>>>> Betreff: Re: [IDEA] - Having a parent maven pom.xml for only the
>> >>>>>>> dependency versions
>> >>>>>>>
>> >>>>>>> Hi
>> >>>>>>>
>> >>>>>>> what I'm aware of for this purpose is the following plugin:
>> >>>>>>>
>> >>>>>>> http://mojo.codehaus.org/properties-maven-plugin/usage.html
>> >>>>>>>
>> >>>>>>> However it's not maintained anymore since 2009!
>> >>>>>>>
>> >>>>>>> The other option would be to use the Kuali's plugin but I'm not
>> sure
>> >>>>>>> about it's licence (it's already available in central repo):
>> >>>>>>>
>> >>>>>>>
>> http://site.kuali.org/maven/plugins/properties-maven-plugin/1.1.9/read-
>> >>>>>>> project-properties-mojo.html
>> >>>>>>>
>> >>>>>>> No matter which one we would want to make use of, the tough part of
>> >>>>>>> this would be to convert the lines like:
>> >>>>>>>
>> >>>>>>>
>> >>>>>
>> >> <ahc-version>
>> >>>>> 1.7.19
>> >>>>>
>> >> </ahc-version>
>> >>>>>>>
>> >>>>>>> into:
>> >>>>>>>
>> >>>>>>> ahc-version=1.7.19
>> >>>>>>>
>> >>>>>>> But it should be possible to automate this conversion with couple
>> of
>> >>>>>>> lines of code, or maybe even a new Camel date format for this
>> purpose
>> >>>>>>> :-)
>> >>>>>>>
>> >>>>>>> Babak
>> >>>>>>>
>> >>>>>>>
>> >>>>>>> Claus Ibsen-2 wrote
>> >>>>>>>> Hi
>> >>>>>>>>
>> >>>>>>>> Today we have the parent/pom.xml file which has both all the
>> >>>>>>>> versions
>> >>>>>>>> of the 3rd party JARs we have as dependencies. And also a list of
>> >>>>>>>> all
>> >>>>>>>> the camel components and some other stuff.
>> >>>>>>>>
>> >>>>>>>> I wonder if we could have all the dependency versions in a single
>> >>>>>>>> file, without all the other stuff.
>> >>>>>>>>
>> >>>>>>>> This would make it easier for ppl to see what are the version
>> >>>>>>>> changes
>> >>>>>>>> between any two Camel versions, but just diff the 2 files?
>> >>>>>>>>
>> >>>>>>>> And also we could just have such a link in the release notes so we
>> >>>>>>>> dont have to manually keep all the versions upgrades in the
>> release
>> >>>>>>>> notes up to date as well.
>> >>>>>>>>
>> >>>>>>>> --
>> >>>>>>>> Claus Ibsen
>> >>>>>>>> -----------------
>> >>>>>>>> Red Hat, Inc.
>> >>>>>>>> Email:
>> >>>>>>>
>> >>>>>>>> cibsen@
>> >>>>>>>
>> >>>>>>>> Twitter: davsclaus
>> >>>>>>>> Blog: http://davsclaus.com
>> >>>>>>>> Author of Camel in Action: http://www.manning.com/ibsen
>> >>>>>>>
>> >>>>>>>
>> >>>>>>>
>> >>>>>>>
>> >>>>>>>
>> >>>>>>> --
>> >>>>>>> View this message in context:
>> http://camel.465427.n5.nabble.com/IDEA-
>> >>>>>>> Having-a-parent-maven-pom-xml-for-only-the-dependency-versions-
>> >>>>>>> tp5737322p5737460.html
>> >>>>>>> Sent from the Camel Development mailing list archive at Nabble.com.
>> >>>>>>
>> >>>>>>
>> >>>>
>> >>>>
>> >>>>
>> >>>>
>> >>>>
>> >>>> --
>> >>>> View this message in context:
>> >>>>
>> http://camel.465427.n5.nabble.com/IDEA-Having-a-parent-maven-pom-xml-for-only-the-dependency-versions-tp5737322p5737472.html
>> >>>> Sent from the Camel Development mailing list archive at Nabble.com.
>> >>>
>> >>>
>> >>>
>> >>> --
>> >>> Claus Ibsen
>> >>> -----------------
>> >>> Red Hat, Inc.
>> >>> Email:
>> >
>> >> cibsen@
>> >
>> >>> Twitter: davsclaus
>> >>> Blog: http://davsclaus.com
>> >>> Author of Camel in Action: http://www.manning.com/ibsen
>> >>
>> >> --
>> >> Daniel Kulp
>> >
>> >> dkulp@
>> >
>> >> - http://dankulp.com/blog
>> >> Talend Community Coder - http://coders.talend.com
>> >
>> >
>> >
>> >
>> >
>> > --
>> > View this message in context:
>> http://camel.465427.n5.nabble.com/IDEA-Having-a-parent-maven-pom-xml-for-only-the-dependency-versions-tp5737322p5737525.html
>> > Sent from the Camel Development mailing list archive at Nabble.com.
>>
>> --
>> Daniel Kulp
>> dkulp@apache.org - http://dankulp.com/blog
>> Talend Community Coder - http://coders.talend.com
>>
>>
>
>
> --
> Cheers,
> Jon
> ---------------
> Red Hat, Inc.
> Email: janstey@redhat.com
> Web: http://redhat.com
> Twitter: jon_anstey
> Blog: http://janstey.blogspot.com
> Author of Camel in Action: http://manning.com/ibsen
Re: [IDEA] - Having a parent maven pom.xml for only the dependency versions
Posted by Łukasz Dywicki <lu...@code-house.org>.
I missed begining of this discussion, however can't you simply use import scope in Maven dependency?
Cheers,
Łukasz Dywicki
--
luke@code-house.org
Twitter: ldywicki
Blog: http://dywicki.pl
Code-House - http://code-house.org
Wiadomość napisana przez Jon Anstey <ja...@gmail.com> w dniu 21 sie 2013, o godz. 15:27:
> I like the idea of having a pom just for versions. We could use Babak's
> proposal but instead of introducing another level of inheritance, just make
> one of the current top level poms mostly properties and push everything
> else into the other pom. So, either org.apache.camel:camel or
> org.apache.camel:camel-parent would become the "dependencies pom". Yes,
> still non-standard from a Maven POV, but at least no less standard than we
> already are :-)
>
>
> On Mon, Aug 19, 2013 at 3:31 PM, Daniel Kulp <dk...@apache.org> wrote:
>
>>
>> On Aug 19, 2013, at 1:25 PM, Babak Vahdat <ba...@swissonline.ch>
>> wrote:
>>
>>> Hi Dan,
>>>
>>> how exactly does your proposal look like? If I'm getting you right you
>>> suggest to push all these properties up into the top most level POM we
>> have,
>>> that is org.apache.camel:camel:2.12-SNAPSHOT right? But then again we've
>> got
>>> the same problem as already today because these Maven properties would be
>>> mixed up with a lot of other stuff. And the intention here in this
>> thread is
>>> the other way around, that's extract them out!
>>
>> I just don't see any value in pulling them out. It doesn't solve any
>> problem that isn't "trivial", but then creates an even greater confusion by
>> having a more complicated and more non-standard build system.
>>
>> Seriously, if you do:
>>
>> git diff a1acd3454e91e7388f4165715b823fa4749502ea parent/pom.xml
>>
>> (which is the diff between master and 2.11.0)
>>
>> There is very little that would not be part of the "diff" that would be
>> provided from your proposal, but there is additional information in there
>> that is important that your proposal would miss. (like the dropping of the
>> spring3 profile and the changing of the groupId/artifactId on the ehcache
>> things, different Saxon artifact ID)
>>
>> I would suggest just removing all the camel components from the
>> parent/pom.xml and adding <version>${project.version}</version> in the
>> places that actually depend on them. Defining dependencies on stuff you
>> are building like this in the parent depmngt section is again one of those
>> 'kind of non-standard' type things. Most of the components are only
>> imported into the assembly and the tests so it's not a "huge" deal.
>>
>>
>>
>> Dan
>>
>>
>>
>>
>>>
>>> Babak
>>>
>>>
>>> dkulp@apache.org wrote
>>>> Personally, I was going to suggest going the other direction and
>>>> completely get rid of the "parent" pom and move everything into the top
>>>> level pom. We already have a non-standard maven layout due to the
>> parent
>>>> pom which can be confusing for people (and tools). I'd much rather try
>>>> and find a way to go back to a more standard layout than introduce yet
>>>> another layer in there to make it even more non-standard.
>>>>
>>>> That's my opinion.
>>>>
>>>> Dan
>>>>
>>>>
>>>>
>>>> On Aug 18, 2013, at 8:35 AM, Claus Ibsen <
>>>
>>>> claus.ibsen@
>>>
>>>> > wrote:
>>>>
>>>>> Hi
>>>>>
>>>>> Yeah Babak's idea sounds good. Having that 2-level of parents.
>>>>>
>>>>> On Sun, Aug 18, 2013 at 1:55 PM, Babak Vahdat
>>>>> <
>>>
>>>> babak.vahdat@
>>>
>>>> > wrote:
>>>>>> I just tried out a different approach which:
>>>>>>
>>>>>> - doesn't require any Maven plugin usage.
>>>>>> - doesn't require to convert the Maven properties from the XML format
>> to
>>>>>> the
>>>>>> Java properties file format etc.
>>>>>> - is really simple.
>>>>>>
>>>>>> So the idea is to simply bump one more level of parent-child
>> dependency
>>>>>> into
>>>>>> our POM hierarchy (org.apache.camel:camel-dependencies:2.12-SNAPSHOT)
>>>>>> which
>>>>>> contains all the Maven properties of our 3rd party dependencies. And
>>>>>> this is
>>>>>> the diff for it dependencies.diff
>>>>>> <
>> http://camel.465427.n5.nabble.com/file/n5737472/dependencies.diff>
>>>>>> .
>>>>>>
>>>>>> Then for the release notes of the upcomming 2.12.0 release we could
>> just
>>>>>> add
>>>>>> the following link about our 3rd party dependencies, of course right
>> now
>>>>>> this resource doesn't exist on the central repo :-)
>>>>>>
>> http://search.maven.org/remotecontent?filepath=org/apache/camel/camel-dependencies/2.12.0/camel-dependencies-2.12.0.pom
>>>>>>
>>>>>>
>>>>>> For example in case of our Camel Parent POM of the 2.11.1 release the
>>>>>> link
>>>>>> is:
>>>>>>
>> http://search.maven.org/remotecontent?filepath=org/apache/camel/camel-parent/2.11.1/camel-parent-2.11.1.pom
>>>>>>
>>>>>> Babak
>>>>>>
>>>>>>
>>>>>> R. Sirchia wrote
>>>>>>> Hi,
>>>>>>>
>>>>>>> Why don't you do it the other way around?
>>>>>>>
>>>>>>> I understand from Claus that his desire is not so much to manage the
>>>>>>> dependencies and their versions in a different file, but just to
>>>>>>> provide a
>>>>>>> file where the version properties can be easily read from and diffed
>>>>>>> between releases.
>>>>>>>
>>>>>>> In that case, you could simply leave everything as it is and use the
>>>>>>> properties maven plugin to write the existing properties to a
>>>>>>> properties
>>>>>>> file:
>>>>>>>
>> http://mojo.codehaus.org/properties-maven-plugin/write-project-properties-mojo.html
>>>>>>>
>>>>>>> Optionally, the end result can be filtered using for example a
>>>>>>> maven-antrun-plugin goal to leave out any non-version properties,
>> which
>>>>>>> should be easy as the version definitions (can easilly be made to)
>>>>>>> follow
>>>>>>> a
>>>>>>> certain naming convention.
>>>>>>>
>>>>>>> The end result (a clean *.properties file) can then be attached using
>>>>>>> the
>>>>>>> build-helper plugin. It is then available in Maven Central to be
>>>>>>> referenced
>>>>>>> from the release notes, diffed or imported by any user, etc.
>>>>>>>
>>>>>>> Riccardo
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> On Sat, Aug 17, 2013 at 10:23 PM, Jan Matèrne (jhm) <
>>>>>>
>>>>>>> apache@
>>>>>>
>>>>>>> >wrote:
>>>>>>>
>>>>>>>> I just played with that maven plugin.
>>>>>>>> The problem is that it loads the properties after the validation
>>>>>>>> phase.
>>>>>>>>
>>>>>>>> That wont work:
>>>>>>>>
>>>>>>>>
>>>>>>
>>>>>>>>
>>>>>>>
>>>> <project>
>>>>>>>>
>>>>>>>
>>>> <modelVersion>
>>>>>>> 4.0.0
>>>>>>>
>>>> </modelVersion>
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>> <groupId>
>>>>>>> just-test
>>>>>>>
>>>> </groupId>
>>>>>>>>
>>>>>>>
>>>> <artifactId>
>>>>>>> version-test
>>>>>>>
>>>> </artifactId>
>>>>>>>>
>>>>>>>
>>>> <version>
>>>>>>> 1.0
>>>>>>>
>>>> </version>
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>> <build>
>>>>>>>>
>>>>>>>
>>>> <plugins>
>>>>>>>>
>>>>>>>
>>>> <plugin>
>>>>>>>>
>>>>>>>
>>>> <groupId>
>>>>>>> org.codehaus.mojo
>>>>>>>
>>>> </groupId>
>>>>>>>>
>>>>>>>
>>>> <artifactId>
>>>>>>> properties-maven-plugin
>>>>>>>
>>>> </artifactId>
>>>>>>>>
>>>>>>>
>>>> <version>
>>>>>>> 1.0-alpha-2
>>>>>>>
>>>> </version>
>>>>>>>>
>>>>>>>
>>>> <executions>
>>>>>>>>
>>>>>>>
>>>> <execution>
>>>>>>>>
>>>>>>>
>>>> <phase>
>>>>>>> initialize
>>>>>>>
>>>> </phase>
>>>>>>>>
>>>>>>>
>>>> <goals>
>>>>>>>>
>>>>>>>
>>>> <goal>
>>>>>>> read-project-properties
>>>>>>>
>>>> </goal>
>>>>>>>>
>>>>>>>
>>>> </goals>
>>>>>>>>
>>>>>>>
>>>> <configuration>
>>>>>>>>
>>>>>>>
>>>> <files>
>>>>>>>>
>>>>>>>
>>>> <file>
>>>>>>> versions.properties
>>>>>>>
>>>> </file>
>>>>>>>>
>>>>>>>
>>>> </files>
>>>>>>>>
>>>>>>>
>>>> </configuration>
>>>>>>>>
>>>>>>>
>>>> </execution>
>>>>>>>>
>>>>>>>
>>>> </executions>
>>>>>>>>
>>>>>>>
>>>> </plugin>
>>>>>>>>
>>>>>>>
>>>> </plugins>
>>>>>>>>
>>>>>>>
>>>> </build>
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>> <dependencies>
>>>>>>>>
>>>>>>>
>>>> <dependency>
>>>>>>>>
>>>>>>>
>>>> <groupId>
>>>>>>> junit
>>>>>>>
>>>> </groupId>
>>>>>>>>
>>>>>>>
>>>> <artifactId>
>>>>>>> junit
>>>>>>>
>>>> </artifactId>
>>>>>>>>
>>>>>>>
>>>> <version>
>>>>>>> ${junit}
>>>>>>>
>>>> </version>
>>>>>>>>
>>>>>>>
>>>> </dependency>
>>>>>>>>
>>>>>>>
>>>> </dependencies>
>>>>>>>>
>>>>>>>
>>>> </project>
>>>>>>>>
>>>>>>>>
>>>>>>>> I also tried putting a
>>>>>>>>
>>>>>>>
>>>> <properties>
>>>>>>>>
>>>>>>>
>>>> <junit>
>>>>>>> 1
>>>>>>>
>>>> </junit>
>>>>>>>>
>>>>>>>
>>>> </properties>
>>>>>>>> as placeholder for the validation doesnt work.
>>>>>>>> The property is not changed to the stored junit=4.9 in my file.
>>>>>>>>
>>>>>>>>
>>>>>>>> Current ideas:
>>>>>>>> - building our own mvn plugin (enhancing that plugin) for loading
>> the
>>>>>>>> props
>>>>>>>> and overwrite existing properties
>>>>>>>> - generate a valid pom from the version-list
>>>>>>>>
>>>>>>>>
>>>>>>>> Jan
>>>>>>>>
>>>>>>>>
>>>>>>>>> -----Ursprüngliche Nachricht-----
>>>>>>>>> Von: Babak Vahdat [mailto:
>>>>>>
>>>>>>> babak.vahdat@
>>>>>>
>>>>>>> ]
>>>>>>>>> Gesendet: Samstag, 17. August 2013 21:48
>>>>>>>>> An:
>>>>>>
>>>>>>> dev@.apache
>>>>>>
>>>>>>>>> Betreff: Re: [IDEA] - Having a parent maven pom.xml for only the
>>>>>>>>> dependency versions
>>>>>>>>>
>>>>>>>>> Hi
>>>>>>>>>
>>>>>>>>> what I'm aware of for this purpose is the following plugin:
>>>>>>>>>
>>>>>>>>> http://mojo.codehaus.org/properties-maven-plugin/usage.html
>>>>>>>>>
>>>>>>>>> However it's not maintained anymore since 2009!
>>>>>>>>>
>>>>>>>>> The other option would be to use the Kuali's plugin but I'm not
>> sure
>>>>>>>>> about it's licence (it's already available in central repo):
>>>>>>>>>
>>>>>>>>>
>> http://site.kuali.org/maven/plugins/properties-maven-plugin/1.1.9/read-
>>>>>>>>> project-properties-mojo.html
>>>>>>>>>
>>>>>>>>> No matter which one we would want to make use of, the tough part of
>>>>>>>>> this would be to convert the lines like:
>>>>>>>>>
>>>>>>>>>
>>>>>>>
>>>> <ahc-version>
>>>>>>> 1.7.19
>>>>>>>
>>>> </ahc-version>
>>>>>>>>>
>>>>>>>>> into:
>>>>>>>>>
>>>>>>>>> ahc-version=1.7.19
>>>>>>>>>
>>>>>>>>> But it should be possible to automate this conversion with couple
>> of
>>>>>>>>> lines of code, or maybe even a new Camel date format for this
>> purpose
>>>>>>>>> :-)
>>>>>>>>>
>>>>>>>>> Babak
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Claus Ibsen-2 wrote
>>>>>>>>>> Hi
>>>>>>>>>>
>>>>>>>>>> Today we have the parent/pom.xml file which has both all the
>>>>>>>>>> versions
>>>>>>>>>> of the 3rd party JARs we have as dependencies. And also a list of
>>>>>>>>>> all
>>>>>>>>>> the camel components and some other stuff.
>>>>>>>>>>
>>>>>>>>>> I wonder if we could have all the dependency versions in a single
>>>>>>>>>> file, without all the other stuff.
>>>>>>>>>>
>>>>>>>>>> This would make it easier for ppl to see what are the version
>>>>>>>>>> changes
>>>>>>>>>> between any two Camel versions, but just diff the 2 files?
>>>>>>>>>>
>>>>>>>>>> And also we could just have such a link in the release notes so we
>>>>>>>>>> dont have to manually keep all the versions upgrades in the
>> release
>>>>>>>>>> notes up to date as well.
>>>>>>>>>>
>>>>>>>>>> --
>>>>>>>>>> Claus Ibsen
>>>>>>>>>> -----------------
>>>>>>>>>> Red Hat, Inc.
>>>>>>>>>> Email:
>>>>>>>>>
>>>>>>>>>> cibsen@
>>>>>>>>>
>>>>>>>>>> Twitter: davsclaus
>>>>>>>>>> Blog: http://davsclaus.com
>>>>>>>>>> Author of Camel in Action: http://www.manning.com/ibsen
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> --
>>>>>>>>> View this message in context:
>> http://camel.465427.n5.nabble.com/IDEA-
>>>>>>>>> Having-a-parent-maven-pom-xml-for-only-the-dependency-versions-
>>>>>>>>> tp5737322p5737460.html
>>>>>>>>> Sent from the Camel Development mailing list archive at Nabble.com.
>>>>>>>>
>>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> View this message in context:
>>>>>>
>> http://camel.465427.n5.nabble.com/IDEA-Having-a-parent-maven-pom-xml-for-only-the-dependency-versions-tp5737322p5737472.html
>>>>>> Sent from the Camel Development mailing list archive at Nabble.com.
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Claus Ibsen
>>>>> -----------------
>>>>> Red Hat, Inc.
>>>>> Email:
>>>
>>>> cibsen@
>>>
>>>>> Twitter: davsclaus
>>>>> Blog: http://davsclaus.com
>>>>> Author of Camel in Action: http://www.manning.com/ibsen
>>>>
>>>> --
>>>> Daniel Kulp
>>>
>>>> dkulp@
>>>
>>>> - http://dankulp.com/blog
>>>> Talend Community Coder - http://coders.talend.com
>>>
>>>
>>>
>>>
>>>
>>> --
>>> View this message in context:
>> http://camel.465427.n5.nabble.com/IDEA-Having-a-parent-maven-pom-xml-for-only-the-dependency-versions-tp5737322p5737525.html
>>> Sent from the Camel Development mailing list archive at Nabble.com.
>>
>> --
>> Daniel Kulp
>> dkulp@apache.org - http://dankulp.com/blog
>> Talend Community Coder - http://coders.talend.com
>>
>>
>
>
> --
> Cheers,
> Jon
> ---------------
> Red Hat, Inc.
> Email: janstey@redhat.com
> Web: http://redhat.com
> Twitter: jon_anstey
> Blog: http://janstey.blogspot.com
> Author of Camel in Action: http://manning.com/ibsen
Re: [IDEA] - Having a parent maven pom.xml for only the dependency versions
Posted by Jon Anstey <ja...@gmail.com>.
I like the idea of having a pom just for versions. We could use Babak's
proposal but instead of introducing another level of inheritance, just make
one of the current top level poms mostly properties and push everything
else into the other pom. So, either org.apache.camel:camel or
org.apache.camel:camel-parent would become the "dependencies pom". Yes,
still non-standard from a Maven POV, but at least no less standard than we
already are :-)
On Mon, Aug 19, 2013 at 3:31 PM, Daniel Kulp <dk...@apache.org> wrote:
>
> On Aug 19, 2013, at 1:25 PM, Babak Vahdat <ba...@swissonline.ch>
> wrote:
>
> > Hi Dan,
> >
> > how exactly does your proposal look like? If I'm getting you right you
> > suggest to push all these properties up into the top most level POM we
> have,
> > that is org.apache.camel:camel:2.12-SNAPSHOT right? But then again we've
> got
> > the same problem as already today because these Maven properties would be
> > mixed up with a lot of other stuff. And the intention here in this
> thread is
> > the other way around, that's extract them out!
>
> I just don't see any value in pulling them out. It doesn't solve any
> problem that isn't "trivial", but then creates an even greater confusion by
> having a more complicated and more non-standard build system.
>
> Seriously, if you do:
>
> git diff a1acd3454e91e7388f4165715b823fa4749502ea parent/pom.xml
>
> (which is the diff between master and 2.11.0)
>
> There is very little that would not be part of the "diff" that would be
> provided from your proposal, but there is additional information in there
> that is important that your proposal would miss. (like the dropping of the
> spring3 profile and the changing of the groupId/artifactId on the ehcache
> things, different Saxon artifact ID)
>
> I would suggest just removing all the camel components from the
> parent/pom.xml and adding <version>${project.version}</version> in the
> places that actually depend on them. Defining dependencies on stuff you
> are building like this in the parent depmngt section is again one of those
> 'kind of non-standard' type things. Most of the components are only
> imported into the assembly and the tests so it's not a "huge" deal.
>
>
>
> Dan
>
>
>
>
> >
> > Babak
> >
> >
> > dkulp@apache.org wrote
> >> Personally, I was going to suggest going the other direction and
> >> completely get rid of the "parent" pom and move everything into the top
> >> level pom. We already have a non-standard maven layout due to the
> parent
> >> pom which can be confusing for people (and tools). I'd much rather try
> >> and find a way to go back to a more standard layout than introduce yet
> >> another layer in there to make it even more non-standard.
> >>
> >> That's my opinion.
> >>
> >> Dan
> >>
> >>
> >>
> >> On Aug 18, 2013, at 8:35 AM, Claus Ibsen <
> >
> >> claus.ibsen@
> >
> >> > wrote:
> >>
> >>> Hi
> >>>
> >>> Yeah Babak's idea sounds good. Having that 2-level of parents.
> >>>
> >>> On Sun, Aug 18, 2013 at 1:55 PM, Babak Vahdat
> >>> <
> >
> >> babak.vahdat@
> >
> >> > wrote:
> >>>> I just tried out a different approach which:
> >>>>
> >>>> - doesn't require any Maven plugin usage.
> >>>> - doesn't require to convert the Maven properties from the XML format
> to
> >>>> the
> >>>> Java properties file format etc.
> >>>> - is really simple.
> >>>>
> >>>> So the idea is to simply bump one more level of parent-child
> dependency
> >>>> into
> >>>> our POM hierarchy (org.apache.camel:camel-dependencies:2.12-SNAPSHOT)
> >>>> which
> >>>> contains all the Maven properties of our 3rd party dependencies. And
> >>>> this is
> >>>> the diff for it dependencies.diff
> >>>> <
> http://camel.465427.n5.nabble.com/file/n5737472/dependencies.diff>
> >>>> .
> >>>>
> >>>> Then for the release notes of the upcomming 2.12.0 release we could
> just
> >>>> add
> >>>> the following link about our 3rd party dependencies, of course right
> now
> >>>> this resource doesn't exist on the central repo :-)
> >>>>
> http://search.maven.org/remotecontent?filepath=org/apache/camel/camel-dependencies/2.12.0/camel-dependencies-2.12.0.pom
> >>>>
> >>>>
> >>>> For example in case of our Camel Parent POM of the 2.11.1 release the
> >>>> link
> >>>> is:
> >>>>
> http://search.maven.org/remotecontent?filepath=org/apache/camel/camel-parent/2.11.1/camel-parent-2.11.1.pom
> >>>>
> >>>> Babak
> >>>>
> >>>>
> >>>> R. Sirchia wrote
> >>>>> Hi,
> >>>>>
> >>>>> Why don't you do it the other way around?
> >>>>>
> >>>>> I understand from Claus that his desire is not so much to manage the
> >>>>> dependencies and their versions in a different file, but just to
> >>>>> provide a
> >>>>> file where the version properties can be easily read from and diffed
> >>>>> between releases.
> >>>>>
> >>>>> In that case, you could simply leave everything as it is and use the
> >>>>> properties maven plugin to write the existing properties to a
> >>>>> properties
> >>>>> file:
> >>>>>
> http://mojo.codehaus.org/properties-maven-plugin/write-project-properties-mojo.html
> >>>>>
> >>>>> Optionally, the end result can be filtered using for example a
> >>>>> maven-antrun-plugin goal to leave out any non-version properties,
> which
> >>>>> should be easy as the version definitions (can easilly be made to)
> >>>>> follow
> >>>>> a
> >>>>> certain naming convention.
> >>>>>
> >>>>> The end result (a clean *.properties file) can then be attached using
> >>>>> the
> >>>>> build-helper plugin. It is then available in Maven Central to be
> >>>>> referenced
> >>>>> from the release notes, diffed or imported by any user, etc.
> >>>>>
> >>>>> Riccardo
> >>>>>
> >>>>>
> >>>>>
> >>>>> On Sat, Aug 17, 2013 at 10:23 PM, Jan Matèrne (jhm) <
> >>>>
> >>>>> apache@
> >>>>
> >>>>> >wrote:
> >>>>>
> >>>>>> I just played with that maven plugin.
> >>>>>> The problem is that it loads the properties after the validation
> >>>>>> phase.
> >>>>>>
> >>>>>> That wont work:
> >>>>>>
> >>>>>>
> >>>>
> >>>>>>
> >>>>>
> >> <project>
> >>>>>>
> >>>>>
> >> <modelVersion>
> >>>>> 4.0.0
> >>>>>
> >> </modelVersion>
> >>>>>>
> >>>>>>
> >>>>>
> >> <groupId>
> >>>>> just-test
> >>>>>
> >> </groupId>
> >>>>>>
> >>>>>
> >> <artifactId>
> >>>>> version-test
> >>>>>
> >> </artifactId>
> >>>>>>
> >>>>>
> >> <version>
> >>>>> 1.0
> >>>>>
> >> </version>
> >>>>>>
> >>>>>>
> >>>>>
> >> <build>
> >>>>>>
> >>>>>
> >> <plugins>
> >>>>>>
> >>>>>
> >> <plugin>
> >>>>>>
> >>>>>
> >> <groupId>
> >>>>> org.codehaus.mojo
> >>>>>
> >> </groupId>
> >>>>>>
> >>>>>
> >> <artifactId>
> >>>>> properties-maven-plugin
> >>>>>
> >> </artifactId>
> >>>>>>
> >>>>>
> >> <version>
> >>>>> 1.0-alpha-2
> >>>>>
> >> </version>
> >>>>>>
> >>>>>
> >> <executions>
> >>>>>>
> >>>>>
> >> <execution>
> >>>>>>
> >>>>>
> >> <phase>
> >>>>> initialize
> >>>>>
> >> </phase>
> >>>>>>
> >>>>>
> >> <goals>
> >>>>>>
> >>>>>
> >> <goal>
> >>>>> read-project-properties
> >>>>>
> >> </goal>
> >>>>>>
> >>>>>
> >> </goals>
> >>>>>>
> >>>>>
> >> <configuration>
> >>>>>>
> >>>>>
> >> <files>
> >>>>>>
> >>>>>
> >> <file>
> >>>>> versions.properties
> >>>>>
> >> </file>
> >>>>>>
> >>>>>
> >> </files>
> >>>>>>
> >>>>>
> >> </configuration>
> >>>>>>
> >>>>>
> >> </execution>
> >>>>>>
> >>>>>
> >> </executions>
> >>>>>>
> >>>>>
> >> </plugin>
> >>>>>>
> >>>>>
> >> </plugins>
> >>>>>>
> >>>>>
> >> </build>
> >>>>>>
> >>>>>>
> >>>>>
> >> <dependencies>
> >>>>>>
> >>>>>
> >> <dependency>
> >>>>>>
> >>>>>
> >> <groupId>
> >>>>> junit
> >>>>>
> >> </groupId>
> >>>>>>
> >>>>>
> >> <artifactId>
> >>>>> junit
> >>>>>
> >> </artifactId>
> >>>>>>
> >>>>>
> >> <version>
> >>>>> ${junit}
> >>>>>
> >> </version>
> >>>>>>
> >>>>>
> >> </dependency>
> >>>>>>
> >>>>>
> >> </dependencies>
> >>>>>>
> >>>>>
> >> </project>
> >>>>>>
> >>>>>>
> >>>>>> I also tried putting a
> >>>>>>
> >>>>>
> >> <properties>
> >>>>>>
> >>>>>
> >> <junit>
> >>>>> 1
> >>>>>
> >> </junit>
> >>>>>>
> >>>>>
> >> </properties>
> >>>>>> as placeholder for the validation doesnt work.
> >>>>>> The property is not changed to the stored junit=4.9 in my file.
> >>>>>>
> >>>>>>
> >>>>>> Current ideas:
> >>>>>> - building our own mvn plugin (enhancing that plugin) for loading
> the
> >>>>>> props
> >>>>>> and overwrite existing properties
> >>>>>> - generate a valid pom from the version-list
> >>>>>>
> >>>>>>
> >>>>>> Jan
> >>>>>>
> >>>>>>
> >>>>>>> -----Ursprüngliche Nachricht-----
> >>>>>>> Von: Babak Vahdat [mailto:
> >>>>
> >>>>> babak.vahdat@
> >>>>
> >>>>> ]
> >>>>>>> Gesendet: Samstag, 17. August 2013 21:48
> >>>>>>> An:
> >>>>
> >>>>> dev@.apache
> >>>>
> >>>>>>> Betreff: Re: [IDEA] - Having a parent maven pom.xml for only the
> >>>>>>> dependency versions
> >>>>>>>
> >>>>>>> Hi
> >>>>>>>
> >>>>>>> what I'm aware of for this purpose is the following plugin:
> >>>>>>>
> >>>>>>> http://mojo.codehaus.org/properties-maven-plugin/usage.html
> >>>>>>>
> >>>>>>> However it's not maintained anymore since 2009!
> >>>>>>>
> >>>>>>> The other option would be to use the Kuali's plugin but I'm not
> sure
> >>>>>>> about it's licence (it's already available in central repo):
> >>>>>>>
> >>>>>>>
> http://site.kuali.org/maven/plugins/properties-maven-plugin/1.1.9/read-
> >>>>>>> project-properties-mojo.html
> >>>>>>>
> >>>>>>> No matter which one we would want to make use of, the tough part of
> >>>>>>> this would be to convert the lines like:
> >>>>>>>
> >>>>>>>
> >>>>>
> >> <ahc-version>
> >>>>> 1.7.19
> >>>>>
> >> </ahc-version>
> >>>>>>>
> >>>>>>> into:
> >>>>>>>
> >>>>>>> ahc-version=1.7.19
> >>>>>>>
> >>>>>>> But it should be possible to automate this conversion with couple
> of
> >>>>>>> lines of code, or maybe even a new Camel date format for this
> purpose
> >>>>>>> :-)
> >>>>>>>
> >>>>>>> Babak
> >>>>>>>
> >>>>>>>
> >>>>>>> Claus Ibsen-2 wrote
> >>>>>>>> Hi
> >>>>>>>>
> >>>>>>>> Today we have the parent/pom.xml file which has both all the
> >>>>>>>> versions
> >>>>>>>> of the 3rd party JARs we have as dependencies. And also a list of
> >>>>>>>> all
> >>>>>>>> the camel components and some other stuff.
> >>>>>>>>
> >>>>>>>> I wonder if we could have all the dependency versions in a single
> >>>>>>>> file, without all the other stuff.
> >>>>>>>>
> >>>>>>>> This would make it easier for ppl to see what are the version
> >>>>>>>> changes
> >>>>>>>> between any two Camel versions, but just diff the 2 files?
> >>>>>>>>
> >>>>>>>> And also we could just have such a link in the release notes so we
> >>>>>>>> dont have to manually keep all the versions upgrades in the
> release
> >>>>>>>> notes up to date as well.
> >>>>>>>>
> >>>>>>>> --
> >>>>>>>> Claus Ibsen
> >>>>>>>> -----------------
> >>>>>>>> Red Hat, Inc.
> >>>>>>>> Email:
> >>>>>>>
> >>>>>>>> cibsen@
> >>>>>>>
> >>>>>>>> Twitter: davsclaus
> >>>>>>>> Blog: http://davsclaus.com
> >>>>>>>> Author of Camel in Action: http://www.manning.com/ibsen
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>> --
> >>>>>>> View this message in context:
> http://camel.465427.n5.nabble.com/IDEA-
> >>>>>>> Having-a-parent-maven-pom-xml-for-only-the-dependency-versions-
> >>>>>>> tp5737322p5737460.html
> >>>>>>> Sent from the Camel Development mailing list archive at Nabble.com.
> >>>>>>
> >>>>>>
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>
> >>>> --
> >>>> View this message in context:
> >>>>
> http://camel.465427.n5.nabble.com/IDEA-Having-a-parent-maven-pom-xml-for-only-the-dependency-versions-tp5737322p5737472.html
> >>>> Sent from the Camel Development mailing list archive at Nabble.com.
> >>>
> >>>
> >>>
> >>> --
> >>> Claus Ibsen
> >>> -----------------
> >>> Red Hat, Inc.
> >>> Email:
> >
> >> cibsen@
> >
> >>> Twitter: davsclaus
> >>> Blog: http://davsclaus.com
> >>> Author of Camel in Action: http://www.manning.com/ibsen
> >>
> >> --
> >> Daniel Kulp
> >
> >> dkulp@
> >
> >> - http://dankulp.com/blog
> >> Talend Community Coder - http://coders.talend.com
> >
> >
> >
> >
> >
> > --
> > View this message in context:
> http://camel.465427.n5.nabble.com/IDEA-Having-a-parent-maven-pom-xml-for-only-the-dependency-versions-tp5737322p5737525.html
> > Sent from the Camel Development mailing list archive at Nabble.com.
>
> --
> Daniel Kulp
> dkulp@apache.org - http://dankulp.com/blog
> Talend Community Coder - http://coders.talend.com
>
>
--
Cheers,
Jon
---------------
Red Hat, Inc.
Email: janstey@redhat.com
Web: http://redhat.com
Twitter: jon_anstey
Blog: http://janstey.blogspot.com
Author of Camel in Action: http://manning.com/ibsen
Re: [IDEA] - Having a parent maven pom.xml for only the dependency
versions
Posted by Babak Vahdat <ba...@swissonline.ch>.
Am 19.08.13 20:01 schrieb "Daniel Kulp" unter <dk...@apache.org>:
>
>On Aug 19, 2013, at 1:25 PM, Babak Vahdat <ba...@swissonline.ch>
>wrote:
>
>> Hi Dan,
>>
>> how exactly does your proposal look like? If I'm getting you right you
>> suggest to push all these properties up into the top most level POM we
>>have,
>> that is org.apache.camel:camel:2.12-SNAPSHOT right? But then again
>>we've got
>> the same problem as already today because these Maven properties would
>>be
>> mixed up with a lot of other stuff. And the intention here in this
>>thread is
>> the other way around, that's extract them out!
>
>I just don't see any value in pulling them out. It doesn't solve any
>problem that isn't "trivial", but then creates an even greater confusion
>by having a more complicated and more non-standard build system.
Yeah indeed everybody is free to have his own opinion, especially when it
comes to the open source community :)
Babak
>
>Seriously, if you do:
>
>git diff a1acd3454e91e7388f4165715b823fa4749502ea parent/pom.xml
>
>(which is the diff between master and 2.11.0)
>
>There is very little that would not be part of the "diff" that would be
>provided from your proposal, but there is additional information in there
>that is important that your proposal would miss. (like the dropping of
>the spring3 profile and the changing of the groupId/artifactId on the
>ehcache things, different Saxon artifact ID)
>
>I would suggest just removing all the camel components from the
>parent/pom.xml and adding <version>${project.version}</version> in the
>places that actually depend on them. Defining dependencies on stuff you
>are building like this in the parent depmngt section is again one of
>those 'kind of non-standard' type things. Most of the components are
>only imported into the assembly and the tests so it's not a "huge" deal.
>
>
>
>
>Dan
>
>
>
>
>>
>> Babak
>>
>>
>> dkulp@apache.org wrote
>>> Personally, I was going to suggest going the other direction and
>>> completely get rid of the "parent" pom and move everything into the top
>>> level pom. We already have a non-standard maven layout due to the
>>>parent
>>> pom which can be confusing for people (and tools). I'd much rather
>>>try
>>> and find a way to go back to a more standard layout than introduce yet
>>> another layer in there to make it even more non-standard.
>>>
>>> That's my opinion.
>>>
>>> Dan
>>>
>>>
>>>
>>> On Aug 18, 2013, at 8:35 AM, Claus Ibsen <
>>
>>> claus.ibsen@
>>
>>> > wrote:
>>>
>>>> Hi
>>>>
>>>> Yeah Babak's idea sounds good. Having that 2-level of parents.
>>>>
>>>> On Sun, Aug 18, 2013 at 1:55 PM, Babak Vahdat
>>>> <
>>
>>> babak.vahdat@
>>
>>> > wrote:
>>>>> I just tried out a different approach which:
>>>>>
>>>>> - doesn't require any Maven plugin usage.
>>>>> - doesn't require to convert the Maven properties from the XML
>>>>>format to
>>>>> the
>>>>> Java properties file format etc.
>>>>> - is really simple.
>>>>>
>>>>> So the idea is to simply bump one more level of parent-child
>>>>>dependency
>>>>> into
>>>>> our POM hierarchy (org.apache.camel:camel-dependencies:2.12-SNAPSHOT)
>>>>> which
>>>>> contains all the Maven properties of our 3rd party dependencies. And
>>>>> this is
>>>>> the diff for it dependencies.diff
>>>>>
>>>>><http://camel.465427.n5.nabble.com/file/n5737472/dependencies.diff&
>>>>>gt;
>>>>> .
>>>>>
>>>>> Then for the release notes of the upcomming 2.12.0 release we could
>>>>>just
>>>>> add
>>>>> the following link about our 3rd party dependencies, of course right
>>>>>now
>>>>> this resource doesn't exist on the central repo :-)
>>>>>
>>>>>http://search.maven.org/remotecontent?filepath=org/apache/camel/camel-
>>>>>dependencies/2.12.0/camel-dependencies-2.12.0.pom
>>>>>
>>>>>
>>>>> For example in case of our Camel Parent POM of the 2.11.1 release the
>>>>> link
>>>>> is:
>>>>>
>>>>>http://search.maven.org/remotecontent?filepath=org/apache/camel/camel-
>>>>>parent/2.11.1/camel-parent-2.11.1.pom
>>>>>
>>>>> Babak
>>>>>
>>>>>
>>>>> R. Sirchia wrote
>>>>>> Hi,
>>>>>>
>>>>>> Why don't you do it the other way around?
>>>>>>
>>>>>> I understand from Claus that his desire is not so much to manage the
>>>>>> dependencies and their versions in a different file, but just to
>>>>>> provide a
>>>>>> file where the version properties can be easily read from and diffed
>>>>>> between releases.
>>>>>>
>>>>>> In that case, you could simply leave everything as it is and use the
>>>>>> properties maven plugin to write the existing properties to a
>>>>>> properties
>>>>>> file:
>>>>>>
>>>>>>http://mojo.codehaus.org/properties-maven-plugin/write-project-proper
>>>>>>ties-mojo.html
>>>>>>
>>>>>> Optionally, the end result can be filtered using for example a
>>>>>> maven-antrun-plugin goal to leave out any non-version properties,
>>>>>>which
>>>>>> should be easy as the version definitions (can easilly be made to)
>>>>>> follow
>>>>>> a
>>>>>> certain naming convention.
>>>>>>
>>>>>> The end result (a clean *.properties file) can then be attached
>>>>>>using
>>>>>> the
>>>>>> build-helper plugin. It is then available in Maven Central to be
>>>>>> referenced
>>>>>> from the release notes, diffed or imported by any user, etc.
>>>>>>
>>>>>> Riccardo
>>>>>>
>>>>>>
>>>>>>
>>>>>> On Sat, Aug 17, 2013 at 10:23 PM, Jan Matèrne (jhm) <
>>>>>
>>>>>> apache@
>>>>>
>>>>>> >wrote:
>>>>>>
>>>>>>> I just played with that maven plugin.
>>>>>>> The problem is that it loads the properties after the validation
>>>>>>> phase.
>>>>>>>
>>>>>>> That wont work:
>>>>>>>
>>>>>>>
>>>>>
>>>>>>>
>>>>>>
>>> <project>
>>>>>>>
>>>>>>
>>> <modelVersion>
>>>>>> 4.0.0
>>>>>>
>>> </modelVersion>
>>>>>>>
>>>>>>>
>>>>>>
>>> <groupId>
>>>>>> just-test
>>>>>>
>>> </groupId>
>>>>>>>
>>>>>>
>>> <artifactId>
>>>>>> version-test
>>>>>>
>>> </artifactId>
>>>>>>>
>>>>>>
>>> <version>
>>>>>> 1.0
>>>>>>
>>> </version>
>>>>>>>
>>>>>>>
>>>>>>
>>> <build>
>>>>>>>
>>>>>>
>>> <plugins>
>>>>>>>
>>>>>>
>>> <plugin>
>>>>>>>
>>>>>>
>>> <groupId>
>>>>>> org.codehaus.mojo
>>>>>>
>>> </groupId>
>>>>>>>
>>>>>>
>>> <artifactId>
>>>>>> properties-maven-plugin
>>>>>>
>>> </artifactId>
>>>>>>>
>>>>>>
>>> <version>
>>>>>> 1.0-alpha-2
>>>>>>
>>> </version>
>>>>>>>
>>>>>>
>>> <executions>
>>>>>>>
>>>>>>
>>> <execution>
>>>>>>>
>>>>>>
>>> <phase>
>>>>>> initialize
>>>>>>
>>> </phase>
>>>>>>>
>>>>>>
>>> <goals>
>>>>>>>
>>>>>>
>>> <goal>
>>>>>> read-project-properties
>>>>>>
>>> </goal>
>>>>>>>
>>>>>>
>>> </goals>
>>>>>>>
>>>>>>
>>> <configuration>
>>>>>>>
>>>>>>
>>> <files>
>>>>>>>
>>>>>>
>>> <file>
>>>>>> versions.properties
>>>>>>
>>> </file>
>>>>>>>
>>>>>>
>>> </files>
>>>>>>>
>>>>>>
>>> </configuration>
>>>>>>>
>>>>>>
>>> </execution>
>>>>>>>
>>>>>>
>>> </executions>
>>>>>>>
>>>>>>
>>> </plugin>
>>>>>>>
>>>>>>
>>> </plugins>
>>>>>>>
>>>>>>
>>> </build>
>>>>>>>
>>>>>>>
>>>>>>
>>> <dependencies>
>>>>>>>
>>>>>>
>>> <dependency>
>>>>>>>
>>>>>>
>>> <groupId>
>>>>>> junit
>>>>>>
>>> </groupId>
>>>>>>>
>>>>>>
>>> <artifactId>
>>>>>> junit
>>>>>>
>>> </artifactId>
>>>>>>>
>>>>>>
>>> <version>
>>>>>> ${junit}
>>>>>>
>>> </version>
>>>>>>>
>>>>>>
>>> </dependency>
>>>>>>>
>>>>>>
>>> </dependencies>
>>>>>>>
>>>>>>
>>> </project>
>>>>>>>
>>>>>>>
>>>>>>> I also tried putting a
>>>>>>>
>>>>>>
>>> <properties>
>>>>>>>
>>>>>>
>>> <junit>
>>>>>> 1
>>>>>>
>>> </junit>
>>>>>>>
>>>>>>
>>> </properties>
>>>>>>> as placeholder for the validation doesnt work.
>>>>>>> The property is not changed to the stored junit=4.9 in my file.
>>>>>>>
>>>>>>>
>>>>>>> Current ideas:
>>>>>>> - building our own mvn plugin (enhancing that plugin) for loading
>>>>>>>the
>>>>>>> props
>>>>>>> and overwrite existing properties
>>>>>>> - generate a valid pom from the version-list
>>>>>>>
>>>>>>>
>>>>>>> Jan
>>>>>>>
>>>>>>>
>>>>>>>> -----Ursprüngliche Nachricht-----
>>>>>>>> Von: Babak Vahdat [mailto:
>>>>>
>>>>>> babak.vahdat@
>>>>>
>>>>>> ]
>>>>>>>> Gesendet: Samstag, 17. August 2013 21:48
>>>>>>>> An:
>>>>>
>>>>>> dev@.apache
>>>>>
>>>>>>>> Betreff: Re: [IDEA] - Having a parent maven pom.xml for only the
>>>>>>>> dependency versions
>>>>>>>>
>>>>>>>> Hi
>>>>>>>>
>>>>>>>> what I'm aware of for this purpose is the following plugin:
>>>>>>>>
>>>>>>>> http://mojo.codehaus.org/properties-maven-plugin/usage.html
>>>>>>>>
>>>>>>>> However it's not maintained anymore since 2009!
>>>>>>>>
>>>>>>>> The other option would be to use the Kuali's plugin but I'm not
>>>>>>>>sure
>>>>>>>> about it's licence (it's already available in central repo):
>>>>>>>>
>>>>>>>>
>>>>>>>>http://site.kuali.org/maven/plugins/properties-maven-plugin/1.1.9/r
>>>>>>>>ead-
>>>>>>>> project-properties-mojo.html
>>>>>>>>
>>>>>>>> No matter which one we would want to make use of, the tough part
>>>>>>>>of
>>>>>>>> this would be to convert the lines like:
>>>>>>>>
>>>>>>>>
>>>>>>
>>> <ahc-version>
>>>>>> 1.7.19
>>>>>>
>>> </ahc-version>
>>>>>>>>
>>>>>>>> into:
>>>>>>>>
>>>>>>>> ahc-version=1.7.19
>>>>>>>>
>>>>>>>> But it should be possible to automate this conversion with couple
>>>>>>>>of
>>>>>>>> lines of code, or maybe even a new Camel date format for this
>>>>>>>>purpose
>>>>>>>> :-)
>>>>>>>>
>>>>>>>> Babak
>>>>>>>>
>>>>>>>>
>>>>>>>> Claus Ibsen-2 wrote
>>>>>>>>> Hi
>>>>>>>>>
>>>>>>>>> Today we have the parent/pom.xml file which has both all the
>>>>>>>>> versions
>>>>>>>>> of the 3rd party JARs we have as dependencies. And also a list of
>>>>>>>>> all
>>>>>>>>> the camel components and some other stuff.
>>>>>>>>>
>>>>>>>>> I wonder if we could have all the dependency versions in a single
>>>>>>>>> file, without all the other stuff.
>>>>>>>>>
>>>>>>>>> This would make it easier for ppl to see what are the version
>>>>>>>>> changes
>>>>>>>>> between any two Camel versions, but just diff the 2 files?
>>>>>>>>>
>>>>>>>>> And also we could just have such a link in the release notes so
>>>>>>>>>we
>>>>>>>>> dont have to manually keep all the versions upgrades in the
>>>>>>>>>release
>>>>>>>>> notes up to date as well.
>>>>>>>>>
>>>>>>>>> --
>>>>>>>>> Claus Ibsen
>>>>>>>>> -----------------
>>>>>>>>> Red Hat, Inc.
>>>>>>>>> Email:
>>>>>>>>
>>>>>>>>> cibsen@
>>>>>>>>
>>>>>>>>> Twitter: davsclaus
>>>>>>>>> Blog: http://davsclaus.com
>>>>>>>>> Author of Camel in Action: http://www.manning.com/ibsen
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> --
>>>>>>>> View this message in context:
>>>>>>>>http://camel.465427.n5.nabble.com/IDEA-
>>>>>>>> Having-a-parent-maven-pom-xml-for-only-the-dependency-versions-
>>>>>>>> tp5737322p5737460.html
>>>>>>>> Sent from the Camel Development mailing list archive at
>>>>>>>>Nabble.com.
>>>>>>>
>>>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> View this message in context:
>>>>>
>>>>>http://camel.465427.n5.nabble.com/IDEA-Having-a-parent-maven-pom-xml-f
>>>>>or-only-the-dependency-versions-tp5737322p5737472.html
>>>>> Sent from the Camel Development mailing list archive at Nabble.com.
>>>>
>>>>
>>>>
>>>> --
>>>> Claus Ibsen
>>>> -----------------
>>>> Red Hat, Inc.
>>>> Email:
>>
>>> cibsen@
>>
>>>> Twitter: davsclaus
>>>> Blog: http://davsclaus.com
>>>> Author of Camel in Action: http://www.manning.com/ibsen
>>>
>>> --
>>> Daniel Kulp
>>
>>> dkulp@
>>
>>> - http://dankulp.com/blog
>>> Talend Community Coder - http://coders.talend.com
>>
>>
>>
>>
>>
>> --
>> View this message in context:
>>http://camel.465427.n5.nabble.com/IDEA-Having-a-parent-maven-pom-xml-for-
>>only-the-dependency-versions-tp5737322p5737525.html
>> Sent from the Camel Development mailing list archive at Nabble.com.
>
>--
>Daniel Kulp
>dkulp@apache.org - http://dankulp.com/blog
>Talend Community Coder - http://coders.talend.com
>
Re: [IDEA] - Having a parent maven pom.xml for only the dependency versions
Posted by Daniel Kulp <dk...@apache.org>.
On Aug 19, 2013, at 1:25 PM, Babak Vahdat <ba...@swissonline.ch> wrote:
> Hi Dan,
>
> how exactly does your proposal look like? If I'm getting you right you
> suggest to push all these properties up into the top most level POM we have,
> that is org.apache.camel:camel:2.12-SNAPSHOT right? But then again we've got
> the same problem as already today because these Maven properties would be
> mixed up with a lot of other stuff. And the intention here in this thread is
> the other way around, that's extract them out!
I just don't see any value in pulling them out. It doesn't solve any problem that isn't "trivial", but then creates an even greater confusion by having a more complicated and more non-standard build system.
Seriously, if you do:
git diff a1acd3454e91e7388f4165715b823fa4749502ea parent/pom.xml
(which is the diff between master and 2.11.0)
There is very little that would not be part of the "diff" that would be provided from your proposal, but there is additional information in there that is important that your proposal would miss. (like the dropping of the spring3 profile and the changing of the groupId/artifactId on the ehcache things, different Saxon artifact ID)
I would suggest just removing all the camel components from the parent/pom.xml and adding <version>${project.version}</version> in the places that actually depend on them. Defining dependencies on stuff you are building like this in the parent depmngt section is again one of those 'kind of non-standard' type things. Most of the components are only imported into the assembly and the tests so it's not a "huge" deal.
Dan
>
> Babak
>
>
> dkulp@apache.org wrote
>> Personally, I was going to suggest going the other direction and
>> completely get rid of the "parent" pom and move everything into the top
>> level pom. We already have a non-standard maven layout due to the parent
>> pom which can be confusing for people (and tools). I'd much rather try
>> and find a way to go back to a more standard layout than introduce yet
>> another layer in there to make it even more non-standard.
>>
>> That's my opinion.
>>
>> Dan
>>
>>
>>
>> On Aug 18, 2013, at 8:35 AM, Claus Ibsen <
>
>> claus.ibsen@
>
>> > wrote:
>>
>>> Hi
>>>
>>> Yeah Babak's idea sounds good. Having that 2-level of parents.
>>>
>>> On Sun, Aug 18, 2013 at 1:55 PM, Babak Vahdat
>>> <
>
>> babak.vahdat@
>
>> > wrote:
>>>> I just tried out a different approach which:
>>>>
>>>> - doesn't require any Maven plugin usage.
>>>> - doesn't require to convert the Maven properties from the XML format to
>>>> the
>>>> Java properties file format etc.
>>>> - is really simple.
>>>>
>>>> So the idea is to simply bump one more level of parent-child dependency
>>>> into
>>>> our POM hierarchy (org.apache.camel:camel-dependencies:2.12-SNAPSHOT)
>>>> which
>>>> contains all the Maven properties of our 3rd party dependencies. And
>>>> this is
>>>> the diff for it dependencies.diff
>>>> <http://camel.465427.n5.nabble.com/file/n5737472/dependencies.diff>
>>>> .
>>>>
>>>> Then for the release notes of the upcomming 2.12.0 release we could just
>>>> add
>>>> the following link about our 3rd party dependencies, of course right now
>>>> this resource doesn't exist on the central repo :-)
>>>> http://search.maven.org/remotecontent?filepath=org/apache/camel/camel-dependencies/2.12.0/camel-dependencies-2.12.0.pom
>>>>
>>>>
>>>> For example in case of our Camel Parent POM of the 2.11.1 release the
>>>> link
>>>> is:
>>>> http://search.maven.org/remotecontent?filepath=org/apache/camel/camel-parent/2.11.1/camel-parent-2.11.1.pom
>>>>
>>>> Babak
>>>>
>>>>
>>>> R. Sirchia wrote
>>>>> Hi,
>>>>>
>>>>> Why don't you do it the other way around?
>>>>>
>>>>> I understand from Claus that his desire is not so much to manage the
>>>>> dependencies and their versions in a different file, but just to
>>>>> provide a
>>>>> file where the version properties can be easily read from and diffed
>>>>> between releases.
>>>>>
>>>>> In that case, you could simply leave everything as it is and use the
>>>>> properties maven plugin to write the existing properties to a
>>>>> properties
>>>>> file:
>>>>> http://mojo.codehaus.org/properties-maven-plugin/write-project-properties-mojo.html
>>>>>
>>>>> Optionally, the end result can be filtered using for example a
>>>>> maven-antrun-plugin goal to leave out any non-version properties, which
>>>>> should be easy as the version definitions (can easilly be made to)
>>>>> follow
>>>>> a
>>>>> certain naming convention.
>>>>>
>>>>> The end result (a clean *.properties file) can then be attached using
>>>>> the
>>>>> build-helper plugin. It is then available in Maven Central to be
>>>>> referenced
>>>>> from the release notes, diffed or imported by any user, etc.
>>>>>
>>>>> Riccardo
>>>>>
>>>>>
>>>>>
>>>>> On Sat, Aug 17, 2013 at 10:23 PM, Jan Matèrne (jhm) <
>>>>
>>>>> apache@
>>>>
>>>>> >wrote:
>>>>>
>>>>>> I just played with that maven plugin.
>>>>>> The problem is that it loads the properties after the validation
>>>>>> phase.
>>>>>>
>>>>>> That wont work:
>>>>>>
>>>>>>
>>>>
>>>>>>
>>>>>
>> <project>
>>>>>>
>>>>>
>> <modelVersion>
>>>>> 4.0.0
>>>>>
>> </modelVersion>
>>>>>>
>>>>>>
>>>>>
>> <groupId>
>>>>> just-test
>>>>>
>> </groupId>
>>>>>>
>>>>>
>> <artifactId>
>>>>> version-test
>>>>>
>> </artifactId>
>>>>>>
>>>>>
>> <version>
>>>>> 1.0
>>>>>
>> </version>
>>>>>>
>>>>>>
>>>>>
>> <build>
>>>>>>
>>>>>
>> <plugins>
>>>>>>
>>>>>
>> <plugin>
>>>>>>
>>>>>
>> <groupId>
>>>>> org.codehaus.mojo
>>>>>
>> </groupId>
>>>>>>
>>>>>
>> <artifactId>
>>>>> properties-maven-plugin
>>>>>
>> </artifactId>
>>>>>>
>>>>>
>> <version>
>>>>> 1.0-alpha-2
>>>>>
>> </version>
>>>>>>
>>>>>
>> <executions>
>>>>>>
>>>>>
>> <execution>
>>>>>>
>>>>>
>> <phase>
>>>>> initialize
>>>>>
>> </phase>
>>>>>>
>>>>>
>> <goals>
>>>>>>
>>>>>
>> <goal>
>>>>> read-project-properties
>>>>>
>> </goal>
>>>>>>
>>>>>
>> </goals>
>>>>>>
>>>>>
>> <configuration>
>>>>>>
>>>>>
>> <files>
>>>>>>
>>>>>
>> <file>
>>>>> versions.properties
>>>>>
>> </file>
>>>>>>
>>>>>
>> </files>
>>>>>>
>>>>>
>> </configuration>
>>>>>>
>>>>>
>> </execution>
>>>>>>
>>>>>
>> </executions>
>>>>>>
>>>>>
>> </plugin>
>>>>>>
>>>>>
>> </plugins>
>>>>>>
>>>>>
>> </build>
>>>>>>
>>>>>>
>>>>>
>> <dependencies>
>>>>>>
>>>>>
>> <dependency>
>>>>>>
>>>>>
>> <groupId>
>>>>> junit
>>>>>
>> </groupId>
>>>>>>
>>>>>
>> <artifactId>
>>>>> junit
>>>>>
>> </artifactId>
>>>>>>
>>>>>
>> <version>
>>>>> ${junit}
>>>>>
>> </version>
>>>>>>
>>>>>
>> </dependency>
>>>>>>
>>>>>
>> </dependencies>
>>>>>>
>>>>>
>> </project>
>>>>>>
>>>>>>
>>>>>> I also tried putting a
>>>>>>
>>>>>
>> <properties>
>>>>>>
>>>>>
>> <junit>
>>>>> 1
>>>>>
>> </junit>
>>>>>>
>>>>>
>> </properties>
>>>>>> as placeholder for the validation doesnt work.
>>>>>> The property is not changed to the stored junit=4.9 in my file.
>>>>>>
>>>>>>
>>>>>> Current ideas:
>>>>>> - building our own mvn plugin (enhancing that plugin) for loading the
>>>>>> props
>>>>>> and overwrite existing properties
>>>>>> - generate a valid pom from the version-list
>>>>>>
>>>>>>
>>>>>> Jan
>>>>>>
>>>>>>
>>>>>>> -----Ursprüngliche Nachricht-----
>>>>>>> Von: Babak Vahdat [mailto:
>>>>
>>>>> babak.vahdat@
>>>>
>>>>> ]
>>>>>>> Gesendet: Samstag, 17. August 2013 21:48
>>>>>>> An:
>>>>
>>>>> dev@.apache
>>>>
>>>>>>> Betreff: Re: [IDEA] - Having a parent maven pom.xml for only the
>>>>>>> dependency versions
>>>>>>>
>>>>>>> Hi
>>>>>>>
>>>>>>> what I'm aware of for this purpose is the following plugin:
>>>>>>>
>>>>>>> http://mojo.codehaus.org/properties-maven-plugin/usage.html
>>>>>>>
>>>>>>> However it's not maintained anymore since 2009!
>>>>>>>
>>>>>>> The other option would be to use the Kuali's plugin but I'm not sure
>>>>>>> about it's licence (it's already available in central repo):
>>>>>>>
>>>>>>> http://site.kuali.org/maven/plugins/properties-maven-plugin/1.1.9/read-
>>>>>>> project-properties-mojo.html
>>>>>>>
>>>>>>> No matter which one we would want to make use of, the tough part of
>>>>>>> this would be to convert the lines like:
>>>>>>>
>>>>>>>
>>>>>
>> <ahc-version>
>>>>> 1.7.19
>>>>>
>> </ahc-version>
>>>>>>>
>>>>>>> into:
>>>>>>>
>>>>>>> ahc-version=1.7.19
>>>>>>>
>>>>>>> But it should be possible to automate this conversion with couple of
>>>>>>> lines of code, or maybe even a new Camel date format for this purpose
>>>>>>> :-)
>>>>>>>
>>>>>>> Babak
>>>>>>>
>>>>>>>
>>>>>>> Claus Ibsen-2 wrote
>>>>>>>> Hi
>>>>>>>>
>>>>>>>> Today we have the parent/pom.xml file which has both all the
>>>>>>>> versions
>>>>>>>> of the 3rd party JARs we have as dependencies. And also a list of
>>>>>>>> all
>>>>>>>> the camel components and some other stuff.
>>>>>>>>
>>>>>>>> I wonder if we could have all the dependency versions in a single
>>>>>>>> file, without all the other stuff.
>>>>>>>>
>>>>>>>> This would make it easier for ppl to see what are the version
>>>>>>>> changes
>>>>>>>> between any two Camel versions, but just diff the 2 files?
>>>>>>>>
>>>>>>>> And also we could just have such a link in the release notes so we
>>>>>>>> dont have to manually keep all the versions upgrades in the release
>>>>>>>> notes up to date as well.
>>>>>>>>
>>>>>>>> --
>>>>>>>> Claus Ibsen
>>>>>>>> -----------------
>>>>>>>> Red Hat, Inc.
>>>>>>>> Email:
>>>>>>>
>>>>>>>> cibsen@
>>>>>>>
>>>>>>>> Twitter: davsclaus
>>>>>>>> Blog: http://davsclaus.com
>>>>>>>> Author of Camel in Action: http://www.manning.com/ibsen
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> View this message in context: http://camel.465427.n5.nabble.com/IDEA-
>>>>>>> Having-a-parent-maven-pom-xml-for-only-the-dependency-versions-
>>>>>>> tp5737322p5737460.html
>>>>>>> Sent from the Camel Development mailing list archive at Nabble.com.
>>>>>>
>>>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> View this message in context:
>>>> http://camel.465427.n5.nabble.com/IDEA-Having-a-parent-maven-pom-xml-for-only-the-dependency-versions-tp5737322p5737472.html
>>>> Sent from the Camel Development mailing list archive at Nabble.com.
>>>
>>>
>>>
>>> --
>>> Claus Ibsen
>>> -----------------
>>> Red Hat, Inc.
>>> Email:
>
>> cibsen@
>
>>> Twitter: davsclaus
>>> Blog: http://davsclaus.com
>>> Author of Camel in Action: http://www.manning.com/ibsen
>>
>> --
>> Daniel Kulp
>
>> dkulp@
>
>> - http://dankulp.com/blog
>> Talend Community Coder - http://coders.talend.com
>
>
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/IDEA-Having-a-parent-maven-pom-xml-for-only-the-dependency-versions-tp5737322p5737525.html
> Sent from the Camel Development mailing list archive at Nabble.com.
--
Daniel Kulp
dkulp@apache.org - http://dankulp.com/blog
Talend Community Coder - http://coders.talend.com
Re: [IDEA] - Having a parent maven pom.xml for only the dependency
versions
Posted by Babak Vahdat <ba...@swissonline.ch>.
Hi Dan,
how exactly does your proposal look like? If I'm getting you right you
suggest to push all these properties up into the top most level POM we have,
that is org.apache.camel:camel:2.12-SNAPSHOT right? But then again we've got
the same problem as already today because these Maven properties would be
mixed up with a lot of other stuff. And the intention here in this thread is
the other way around, that's extract them out!
Babak
dkulp@apache.org wrote
> Personally, I was going to suggest going the other direction and
> completely get rid of the "parent" pom and move everything into the top
> level pom. We already have a non-standard maven layout due to the parent
> pom which can be confusing for people (and tools). I'd much rather try
> and find a way to go back to a more standard layout than introduce yet
> another layer in there to make it even more non-standard.
>
> That's my opinion.
>
> Dan
>
>
>
> On Aug 18, 2013, at 8:35 AM, Claus Ibsen <
> claus.ibsen@
> > wrote:
>
>> Hi
>>
>> Yeah Babak's idea sounds good. Having that 2-level of parents.
>>
>> On Sun, Aug 18, 2013 at 1:55 PM, Babak Vahdat
>> <
> babak.vahdat@
> > wrote:
>>> I just tried out a different approach which:
>>>
>>> - doesn't require any Maven plugin usage.
>>> - doesn't require to convert the Maven properties from the XML format to
>>> the
>>> Java properties file format etc.
>>> - is really simple.
>>>
>>> So the idea is to simply bump one more level of parent-child dependency
>>> into
>>> our POM hierarchy (org.apache.camel:camel-dependencies:2.12-SNAPSHOT)
>>> which
>>> contains all the Maven properties of our 3rd party dependencies. And
>>> this is
>>> the diff for it dependencies.diff
>>> <http://camel.465427.n5.nabble.com/file/n5737472/dependencies.diff>
>>> .
>>>
>>> Then for the release notes of the upcomming 2.12.0 release we could just
>>> add
>>> the following link about our 3rd party dependencies, of course right now
>>> this resource doesn't exist on the central repo :-)
>>> http://search.maven.org/remotecontent?filepath=org/apache/camel/camel-dependencies/2.12.0/camel-dependencies-2.12.0.pom
>>>
>>>
>>> For example in case of our Camel Parent POM of the 2.11.1 release the
>>> link
>>> is:
>>> http://search.maven.org/remotecontent?filepath=org/apache/camel/camel-parent/2.11.1/camel-parent-2.11.1.pom
>>>
>>> Babak
>>>
>>>
>>> R. Sirchia wrote
>>>> Hi,
>>>>
>>>> Why don't you do it the other way around?
>>>>
>>>> I understand from Claus that his desire is not so much to manage the
>>>> dependencies and their versions in a different file, but just to
>>>> provide a
>>>> file where the version properties can be easily read from and diffed
>>>> between releases.
>>>>
>>>> In that case, you could simply leave everything as it is and use the
>>>> properties maven plugin to write the existing properties to a
>>>> properties
>>>> file:
>>>> http://mojo.codehaus.org/properties-maven-plugin/write-project-properties-mojo.html
>>>>
>>>> Optionally, the end result can be filtered using for example a
>>>> maven-antrun-plugin goal to leave out any non-version properties, which
>>>> should be easy as the version definitions (can easilly be made to)
>>>> follow
>>>> a
>>>> certain naming convention.
>>>>
>>>> The end result (a clean *.properties file) can then be attached using
>>>> the
>>>> build-helper plugin. It is then available in Maven Central to be
>>>> referenced
>>>> from the release notes, diffed or imported by any user, etc.
>>>>
>>>> Riccardo
>>>>
>>>>
>>>>
>>>> On Sat, Aug 17, 2013 at 10:23 PM, Jan Matèrne (jhm) <
>>>
>>>> apache@
>>>
>>>> >wrote:
>>>>
>>>>> I just played with that maven plugin.
>>>>> The problem is that it loads the properties after the validation
>>>>> phase.
>>>>>
>>>>> That wont work:
>>>>>
>>>>>
>>>
>>>>>
>>>>
> <project>
>>>>>
>>>>
> <modelVersion>
>>>> 4.0.0
>>>>
> </modelVersion>
>>>>>
>>>>>
>>>>
> <groupId>
>>>> just-test
>>>>
> </groupId>
>>>>>
>>>>
> <artifactId>
>>>> version-test
>>>>
> </artifactId>
>>>>>
>>>>
> <version>
>>>> 1.0
>>>>
> </version>
>>>>>
>>>>>
>>>>
> <build>
>>>>>
>>>>
> <plugins>
>>>>>
>>>>
> <plugin>
>>>>>
>>>>
> <groupId>
>>>> org.codehaus.mojo
>>>>
> </groupId>
>>>>>
>>>>
> <artifactId>
>>>> properties-maven-plugin
>>>>
> </artifactId>
>>>>>
>>>>
> <version>
>>>> 1.0-alpha-2
>>>>
> </version>
>>>>>
>>>>
> <executions>
>>>>>
>>>>
> <execution>
>>>>>
>>>>
> <phase>
>>>> initialize
>>>>
> </phase>
>>>>>
>>>>
> <goals>
>>>>>
>>>>
> <goal>
>>>> read-project-properties
>>>>
> </goal>
>>>>>
>>>>
> </goals>
>>>>>
>>>>
> <configuration>
>>>>>
>>>>
> <files>
>>>>>
>>>>
> <file>
>>>> versions.properties
>>>>
> </file>
>>>>>
>>>>
> </files>
>>>>>
>>>>
> </configuration>
>>>>>
>>>>
> </execution>
>>>>>
>>>>
> </executions>
>>>>>
>>>>
> </plugin>
>>>>>
>>>>
> </plugins>
>>>>>
>>>>
> </build>
>>>>>
>>>>>
>>>>
> <dependencies>
>>>>>
>>>>
> <dependency>
>>>>>
>>>>
> <groupId>
>>>> junit
>>>>
> </groupId>
>>>>>
>>>>
> <artifactId>
>>>> junit
>>>>
> </artifactId>
>>>>>
>>>>
> <version>
>>>> ${junit}
>>>>
> </version>
>>>>>
>>>>
> </dependency>
>>>>>
>>>>
> </dependencies>
>>>>>
>>>>
> </project>
>>>>>
>>>>>
>>>>> I also tried putting a
>>>>>
>>>>
> <properties>
>>>>>
>>>>
> <junit>
>>>> 1
>>>>
> </junit>
>>>>>
>>>>
> </properties>
>>>>> as placeholder for the validation doesnt work.
>>>>> The property is not changed to the stored junit=4.9 in my file.
>>>>>
>>>>>
>>>>> Current ideas:
>>>>> - building our own mvn plugin (enhancing that plugin) for loading the
>>>>> props
>>>>> and overwrite existing properties
>>>>> - generate a valid pom from the version-list
>>>>>
>>>>>
>>>>> Jan
>>>>>
>>>>>
>>>>>> -----Ursprüngliche Nachricht-----
>>>>>> Von: Babak Vahdat [mailto:
>>>
>>>> babak.vahdat@
>>>
>>>> ]
>>>>>> Gesendet: Samstag, 17. August 2013 21:48
>>>>>> An:
>>>
>>>> dev@.apache
>>>
>>>>>> Betreff: Re: [IDEA] - Having a parent maven pom.xml for only the
>>>>>> dependency versions
>>>>>>
>>>>>> Hi
>>>>>>
>>>>>> what I'm aware of for this purpose is the following plugin:
>>>>>>
>>>>>> http://mojo.codehaus.org/properties-maven-plugin/usage.html
>>>>>>
>>>>>> However it's not maintained anymore since 2009!
>>>>>>
>>>>>> The other option would be to use the Kuali's plugin but I'm not sure
>>>>>> about it's licence (it's already available in central repo):
>>>>>>
>>>>>> http://site.kuali.org/maven/plugins/properties-maven-plugin/1.1.9/read-
>>>>>> project-properties-mojo.html
>>>>>>
>>>>>> No matter which one we would want to make use of, the tough part of
>>>>>> this would be to convert the lines like:
>>>>>>
>>>>>>
>>>>
> <ahc-version>
>>>> 1.7.19
>>>>
> </ahc-version>
>>>>>>
>>>>>> into:
>>>>>>
>>>>>> ahc-version=1.7.19
>>>>>>
>>>>>> But it should be possible to automate this conversion with couple of
>>>>>> lines of code, or maybe even a new Camel date format for this purpose
>>>>>> :-)
>>>>>>
>>>>>> Babak
>>>>>>
>>>>>>
>>>>>> Claus Ibsen-2 wrote
>>>>>>> Hi
>>>>>>>
>>>>>>> Today we have the parent/pom.xml file which has both all the
>>>>>>> versions
>>>>>>> of the 3rd party JARs we have as dependencies. And also a list of
>>>>>>> all
>>>>>>> the camel components and some other stuff.
>>>>>>>
>>>>>>> I wonder if we could have all the dependency versions in a single
>>>>>>> file, without all the other stuff.
>>>>>>>
>>>>>>> This would make it easier for ppl to see what are the version
>>>>>>> changes
>>>>>>> between any two Camel versions, but just diff the 2 files?
>>>>>>>
>>>>>>> And also we could just have such a link in the release notes so we
>>>>>>> dont have to manually keep all the versions upgrades in the release
>>>>>>> notes up to date as well.
>>>>>>>
>>>>>>> --
>>>>>>> Claus Ibsen
>>>>>>> -----------------
>>>>>>> Red Hat, Inc.
>>>>>>> Email:
>>>>>>
>>>>>>> cibsen@
>>>>>>
>>>>>>> Twitter: davsclaus
>>>>>>> Blog: http://davsclaus.com
>>>>>>> Author of Camel in Action: http://www.manning.com/ibsen
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> View this message in context: http://camel.465427.n5.nabble.com/IDEA-
>>>>>> Having-a-parent-maven-pom-xml-for-only-the-dependency-versions-
>>>>>> tp5737322p5737460.html
>>>>>> Sent from the Camel Development mailing list archive at Nabble.com.
>>>>>
>>>>>
>>>
>>>
>>>
>>>
>>>
>>> --
>>> View this message in context:
>>> http://camel.465427.n5.nabble.com/IDEA-Having-a-parent-maven-pom-xml-for-only-the-dependency-versions-tp5737322p5737472.html
>>> Sent from the Camel Development mailing list archive at Nabble.com.
>>
>>
>>
>> --
>> Claus Ibsen
>> -----------------
>> Red Hat, Inc.
>> Email:
> cibsen@
>> Twitter: davsclaus
>> Blog: http://davsclaus.com
>> Author of Camel in Action: http://www.manning.com/ibsen
>
> --
> Daniel Kulp
> dkulp@
> - http://dankulp.com/blog
> Talend Community Coder - http://coders.talend.com
--
View this message in context: http://camel.465427.n5.nabble.com/IDEA-Having-a-parent-maven-pom-xml-for-only-the-dependency-versions-tp5737322p5737525.html
Sent from the Camel Development mailing list archive at Nabble.com.
Re: [IDEA] - Having a parent maven pom.xml for only the dependency versions
Posted by Daniel Kulp <dk...@apache.org>.
Personally, I was going to suggest going the other direction and completely get rid of the "parent" pom and move everything into the top level pom. We already have a non-standard maven layout due to the parent pom which can be confusing for people (and tools). I'd much rather try and find a way to go back to a more standard layout than introduce yet another layer in there to make it even more non-standard.
That's my opinion.
Dan
On Aug 18, 2013, at 8:35 AM, Claus Ibsen <cl...@gmail.com> wrote:
> Hi
>
> Yeah Babak's idea sounds good. Having that 2-level of parents.
>
> On Sun, Aug 18, 2013 at 1:55 PM, Babak Vahdat
> <ba...@swissonline.ch> wrote:
>> I just tried out a different approach which:
>>
>> - doesn't require any Maven plugin usage.
>> - doesn't require to convert the Maven properties from the XML format to the
>> Java properties file format etc.
>> - is really simple.
>>
>> So the idea is to simply bump one more level of parent-child dependency into
>> our POM hierarchy (org.apache.camel:camel-dependencies:2.12-SNAPSHOT) which
>> contains all the Maven properties of our 3rd party dependencies. And this is
>> the diff for it dependencies.diff
>> <http://camel.465427.n5.nabble.com/file/n5737472/dependencies.diff> .
>>
>> Then for the release notes of the upcomming 2.12.0 release we could just add
>> the following link about our 3rd party dependencies, of course right now
>> this resource doesn't exist on the central repo :-)
>> http://search.maven.org/remotecontent?filepath=org/apache/camel/camel-dependencies/2.12.0/camel-dependencies-2.12.0.pom
>>
>>
>> For example in case of our Camel Parent POM of the 2.11.1 release the link
>> is:
>> http://search.maven.org/remotecontent?filepath=org/apache/camel/camel-parent/2.11.1/camel-parent-2.11.1.pom
>>
>> Babak
>>
>>
>> R. Sirchia wrote
>>> Hi,
>>>
>>> Why don't you do it the other way around?
>>>
>>> I understand from Claus that his desire is not so much to manage the
>>> dependencies and their versions in a different file, but just to provide a
>>> file where the version properties can be easily read from and diffed
>>> between releases.
>>>
>>> In that case, you could simply leave everything as it is and use the
>>> properties maven plugin to write the existing properties to a properties
>>> file:
>>> http://mojo.codehaus.org/properties-maven-plugin/write-project-properties-mojo.html
>>>
>>> Optionally, the end result can be filtered using for example a
>>> maven-antrun-plugin goal to leave out any non-version properties, which
>>> should be easy as the version definitions (can easilly be made to) follow
>>> a
>>> certain naming convention.
>>>
>>> The end result (a clean *.properties file) can then be attached using the
>>> build-helper plugin. It is then available in Maven Central to be
>>> referenced
>>> from the release notes, diffed or imported by any user, etc.
>>>
>>> Riccardo
>>>
>>>
>>>
>>> On Sat, Aug 17, 2013 at 10:23 PM, Jan Matèrne (jhm) <
>>
>>> apache@
>>
>>> >wrote:
>>>
>>>> I just played with that maven plugin.
>>>> The problem is that it loads the properties after the validation phase.
>>>>
>>>> That wont work:
>>>>
>>>>
>>
>>>>
>>> <project>
>>>>
>>> <modelVersion>
>>> 4.0.0
>>> </modelVersion>
>>>>
>>>>
>>> <groupId>
>>> just-test
>>> </groupId>
>>>>
>>> <artifactId>
>>> version-test
>>> </artifactId>
>>>>
>>> <version>
>>> 1.0
>>> </version>
>>>>
>>>>
>>> <build>
>>>>
>>> <plugins>
>>>>
>>> <plugin>
>>>>
>>> <groupId>
>>> org.codehaus.mojo
>>> </groupId>
>>>>
>>> <artifactId>
>>> properties-maven-plugin
>>> </artifactId>
>>>>
>>> <version>
>>> 1.0-alpha-2
>>> </version>
>>>>
>>> <executions>
>>>>
>>> <execution>
>>>>
>>> <phase>
>>> initialize
>>> </phase>
>>>>
>>> <goals>
>>>>
>>> <goal>
>>> read-project-properties
>>> </goal>
>>>>
>>> </goals>
>>>>
>>> <configuration>
>>>>
>>> <files>
>>>>
>>> <file>
>>> versions.properties
>>> </file>
>>>>
>>> </files>
>>>>
>>> </configuration>
>>>>
>>> </execution>
>>>>
>>> </executions>
>>>>
>>> </plugin>
>>>>
>>> </plugins>
>>>>
>>> </build>
>>>>
>>>>
>>> <dependencies>
>>>>
>>> <dependency>
>>>>
>>> <groupId>
>>> junit
>>> </groupId>
>>>>
>>> <artifactId>
>>> junit
>>> </artifactId>
>>>>
>>> <version>
>>> ${junit}
>>> </version>
>>>>
>>> </dependency>
>>>>
>>> </dependencies>
>>>>
>>> </project>
>>>>
>>>>
>>>> I also tried putting a
>>>>
>>> <properties>
>>>>
>>> <junit>
>>> 1
>>> </junit>
>>>>
>>> </properties>
>>>> as placeholder for the validation doesnt work.
>>>> The property is not changed to the stored junit=4.9 in my file.
>>>>
>>>>
>>>> Current ideas:
>>>> - building our own mvn plugin (enhancing that plugin) for loading the
>>>> props
>>>> and overwrite existing properties
>>>> - generate a valid pom from the version-list
>>>>
>>>>
>>>> Jan
>>>>
>>>>
>>>>> -----Ursprüngliche Nachricht-----
>>>>> Von: Babak Vahdat [mailto:
>>
>>> babak.vahdat@
>>
>>> ]
>>>>> Gesendet: Samstag, 17. August 2013 21:48
>>>>> An:
>>
>>> dev@.apache
>>
>>>>> Betreff: Re: [IDEA] - Having a parent maven pom.xml for only the
>>>>> dependency versions
>>>>>
>>>>> Hi
>>>>>
>>>>> what I'm aware of for this purpose is the following plugin:
>>>>>
>>>>> http://mojo.codehaus.org/properties-maven-plugin/usage.html
>>>>>
>>>>> However it's not maintained anymore since 2009!
>>>>>
>>>>> The other option would be to use the Kuali's plugin but I'm not sure
>>>>> about it's licence (it's already available in central repo):
>>>>>
>>>>> http://site.kuali.org/maven/plugins/properties-maven-plugin/1.1.9/read-
>>>>> project-properties-mojo.html
>>>>>
>>>>> No matter which one we would want to make use of, the tough part of
>>>>> this would be to convert the lines like:
>>>>>
>>>>>
>>> <ahc-version>
>>> 1.7.19
>>> </ahc-version>
>>>>>
>>>>> into:
>>>>>
>>>>> ahc-version=1.7.19
>>>>>
>>>>> But it should be possible to automate this conversion with couple of
>>>>> lines of code, or maybe even a new Camel date format for this purpose
>>>>> :-)
>>>>>
>>>>> Babak
>>>>>
>>>>>
>>>>> Claus Ibsen-2 wrote
>>>>>> Hi
>>>>>>
>>>>>> Today we have the parent/pom.xml file which has both all the versions
>>>>>> of the 3rd party JARs we have as dependencies. And also a list of all
>>>>>> the camel components and some other stuff.
>>>>>>
>>>>>> I wonder if we could have all the dependency versions in a single
>>>>>> file, without all the other stuff.
>>>>>>
>>>>>> This would make it easier for ppl to see what are the version changes
>>>>>> between any two Camel versions, but just diff the 2 files?
>>>>>>
>>>>>> And also we could just have such a link in the release notes so we
>>>>>> dont have to manually keep all the versions upgrades in the release
>>>>>> notes up to date as well.
>>>>>>
>>>>>> --
>>>>>> Claus Ibsen
>>>>>> -----------------
>>>>>> Red Hat, Inc.
>>>>>> Email:
>>>>>
>>>>>> cibsen@
>>>>>
>>>>>> Twitter: davsclaus
>>>>>> Blog: http://davsclaus.com
>>>>>> Author of Camel in Action: http://www.manning.com/ibsen
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> View this message in context: http://camel.465427.n5.nabble.com/IDEA-
>>>>> Having-a-parent-maven-pom-xml-for-only-the-dependency-versions-
>>>>> tp5737322p5737460.html
>>>>> Sent from the Camel Development mailing list archive at Nabble.com.
>>>>
>>>>
>>
>>
>>
>>
>>
>> --
>> View this message in context: http://camel.465427.n5.nabble.com/IDEA-Having-a-parent-maven-pom-xml-for-only-the-dependency-versions-tp5737322p5737472.html
>> Sent from the Camel Development mailing list archive at Nabble.com.
>
>
>
> --
> Claus Ibsen
> -----------------
> Red Hat, Inc.
> Email: cibsen@redhat.com
> Twitter: davsclaus
> Blog: http://davsclaus.com
> Author of Camel in Action: http://www.manning.com/ibsen
--
Daniel Kulp
dkulp@apache.org - http://dankulp.com/blog
Talend Community Coder - http://coders.talend.com
Re: [IDEA] - Having a parent maven pom.xml for only the dependency versions
Posted by Claus Ibsen <cl...@gmail.com>.
Hi
Yeah Babak's idea sounds good. Having that 2-level of parents.
On Sun, Aug 18, 2013 at 1:55 PM, Babak Vahdat
<ba...@swissonline.ch> wrote:
> I just tried out a different approach which:
>
> - doesn't require any Maven plugin usage.
> - doesn't require to convert the Maven properties from the XML format to the
> Java properties file format etc.
> - is really simple.
>
> So the idea is to simply bump one more level of parent-child dependency into
> our POM hierarchy (org.apache.camel:camel-dependencies:2.12-SNAPSHOT) which
> contains all the Maven properties of our 3rd party dependencies. And this is
> the diff for it dependencies.diff
> <http://camel.465427.n5.nabble.com/file/n5737472/dependencies.diff> .
>
> Then for the release notes of the upcomming 2.12.0 release we could just add
> the following link about our 3rd party dependencies, of course right now
> this resource doesn't exist on the central repo :-)
> http://search.maven.org/remotecontent?filepath=org/apache/camel/camel-dependencies/2.12.0/camel-dependencies-2.12.0.pom
>
>
> For example in case of our Camel Parent POM of the 2.11.1 release the link
> is:
> http://search.maven.org/remotecontent?filepath=org/apache/camel/camel-parent/2.11.1/camel-parent-2.11.1.pom
>
> Babak
>
>
> R. Sirchia wrote
>> Hi,
>>
>> Why don't you do it the other way around?
>>
>> I understand from Claus that his desire is not so much to manage the
>> dependencies and their versions in a different file, but just to provide a
>> file where the version properties can be easily read from and diffed
>> between releases.
>>
>> In that case, you could simply leave everything as it is and use the
>> properties maven plugin to write the existing properties to a properties
>> file:
>> http://mojo.codehaus.org/properties-maven-plugin/write-project-properties-mojo.html
>>
>> Optionally, the end result can be filtered using for example a
>> maven-antrun-plugin goal to leave out any non-version properties, which
>> should be easy as the version definitions (can easilly be made to) follow
>> a
>> certain naming convention.
>>
>> The end result (a clean *.properties file) can then be attached using the
>> build-helper plugin. It is then available in Maven Central to be
>> referenced
>> from the release notes, diffed or imported by any user, etc.
>>
>> Riccardo
>>
>>
>>
>> On Sat, Aug 17, 2013 at 10:23 PM, Jan Matèrne (jhm) <
>
>> apache@
>
>> >wrote:
>>
>>> I just played with that maven plugin.
>>> The problem is that it loads the properties after the validation phase.
>>>
>>> That wont work:
>>>
>>>
>
>>>
>> <project>
>>>
>> <modelVersion>
>> 4.0.0
>> </modelVersion>
>>>
>>>
>> <groupId>
>> just-test
>> </groupId>
>>>
>> <artifactId>
>> version-test
>> </artifactId>
>>>
>> <version>
>> 1.0
>> </version>
>>>
>>>
>> <build>
>>>
>> <plugins>
>>>
>> <plugin>
>>>
>> <groupId>
>> org.codehaus.mojo
>> </groupId>
>>>
>> <artifactId>
>> properties-maven-plugin
>> </artifactId>
>>>
>> <version>
>> 1.0-alpha-2
>> </version>
>>>
>> <executions>
>>>
>> <execution>
>>>
>> <phase>
>> initialize
>> </phase>
>>>
>> <goals>
>>>
>> <goal>
>> read-project-properties
>> </goal>
>>>
>> </goals>
>>>
>> <configuration>
>>>
>> <files>
>>>
>> <file>
>> versions.properties
>> </file>
>>>
>> </files>
>>>
>> </configuration>
>>>
>> </execution>
>>>
>> </executions>
>>>
>> </plugin>
>>>
>> </plugins>
>>>
>> </build>
>>>
>>>
>> <dependencies>
>>>
>> <dependency>
>>>
>> <groupId>
>> junit
>> </groupId>
>>>
>> <artifactId>
>> junit
>> </artifactId>
>>>
>> <version>
>> ${junit}
>> </version>
>>>
>> </dependency>
>>>
>> </dependencies>
>>>
>> </project>
>>>
>>>
>>> I also tried putting a
>>>
>> <properties>
>>>
>> <junit>
>> 1
>> </junit>
>>>
>> </properties>
>>> as placeholder for the validation doesnt work.
>>> The property is not changed to the stored junit=4.9 in my file.
>>>
>>>
>>> Current ideas:
>>> - building our own mvn plugin (enhancing that plugin) for loading the
>>> props
>>> and overwrite existing properties
>>> - generate a valid pom from the version-list
>>>
>>>
>>> Jan
>>>
>>>
>>> > -----Ursprüngliche Nachricht-----
>>> > Von: Babak Vahdat [mailto:
>
>> babak.vahdat@
>
>> ]
>>> > Gesendet: Samstag, 17. August 2013 21:48
>>> > An:
>
>> dev@.apache
>
>>> > Betreff: Re: [IDEA] - Having a parent maven pom.xml for only the
>>> > dependency versions
>>> >
>>> > Hi
>>> >
>>> > what I'm aware of for this purpose is the following plugin:
>>> >
>>> > http://mojo.codehaus.org/properties-maven-plugin/usage.html
>>> >
>>> > However it's not maintained anymore since 2009!
>>> >
>>> > The other option would be to use the Kuali's plugin but I'm not sure
>>> > about it's licence (it's already available in central repo):
>>> >
>>> > http://site.kuali.org/maven/plugins/properties-maven-plugin/1.1.9/read-
>>> > project-properties-mojo.html
>>> >
>>> > No matter which one we would want to make use of, the tough part of
>>> > this would be to convert the lines like:
>>> >
>>> >
>> <ahc-version>
>> 1.7.19
>> </ahc-version>
>>> >
>>> > into:
>>> >
>>> > ahc-version=1.7.19
>>> >
>>> > But it should be possible to automate this conversion with couple of
>>> > lines of code, or maybe even a new Camel date format for this purpose
>>> > :-)
>>> >
>>> > Babak
>>> >
>>> >
>>> > Claus Ibsen-2 wrote
>>> > > Hi
>>> > >
>>> > > Today we have the parent/pom.xml file which has both all the versions
>>> > > of the 3rd party JARs we have as dependencies. And also a list of all
>>> > > the camel components and some other stuff.
>>> > >
>>> > > I wonder if we could have all the dependency versions in a single
>>> > > file, without all the other stuff.
>>> > >
>>> > > This would make it easier for ppl to see what are the version changes
>>> > > between any two Camel versions, but just diff the 2 files?
>>> > >
>>> > > And also we could just have such a link in the release notes so we
>>> > > dont have to manually keep all the versions upgrades in the release
>>> > > notes up to date as well.
>>> > >
>>> > > --
>>> > > Claus Ibsen
>>> > > -----------------
>>> > > Red Hat, Inc.
>>> > > Email:
>>> >
>>> > > cibsen@
>>> >
>>> > > Twitter: davsclaus
>>> > > Blog: http://davsclaus.com
>>> > > Author of Camel in Action: http://www.manning.com/ibsen
>>> >
>>> >
>>> >
>>> >
>>> >
>>> > --
>>> > View this message in context: http://camel.465427.n5.nabble.com/IDEA-
>>> > Having-a-parent-maven-pom-xml-for-only-the-dependency-versions-
>>> > tp5737322p5737460.html
>>> > Sent from the Camel Development mailing list archive at Nabble.com.
>>>
>>>
>
>
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/IDEA-Having-a-parent-maven-pom-xml-for-only-the-dependency-versions-tp5737322p5737472.html
> Sent from the Camel Development mailing list archive at Nabble.com.
--
Claus Ibsen
-----------------
Red Hat, Inc.
Email: cibsen@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
Re: [IDEA] - Having a parent maven pom.xml for only the dependency
versions
Posted by Babak Vahdat <ba...@swissonline.ch>.
I just tried out a different approach which:
- doesn't require any Maven plugin usage.
- doesn't require to convert the Maven properties from the XML format to the
Java properties file format etc.
- is really simple.
So the idea is to simply bump one more level of parent-child dependency into
our POM hierarchy (org.apache.camel:camel-dependencies:2.12-SNAPSHOT) which
contains all the Maven properties of our 3rd party dependencies. And this is
the diff for it dependencies.diff
<http://camel.465427.n5.nabble.com/file/n5737472/dependencies.diff> .
Then for the release notes of the upcomming 2.12.0 release we could just add
the following link about our 3rd party dependencies, of course right now
this resource doesn't exist on the central repo :-)
http://search.maven.org/remotecontent?filepath=org/apache/camel/camel-dependencies/2.12.0/camel-dependencies-2.12.0.pom
For example in case of our Camel Parent POM of the 2.11.1 release the link
is:
http://search.maven.org/remotecontent?filepath=org/apache/camel/camel-parent/2.11.1/camel-parent-2.11.1.pom
Babak
R. Sirchia wrote
> Hi,
>
> Why don't you do it the other way around?
>
> I understand from Claus that his desire is not so much to manage the
> dependencies and their versions in a different file, but just to provide a
> file where the version properties can be easily read from and diffed
> between releases.
>
> In that case, you could simply leave everything as it is and use the
> properties maven plugin to write the existing properties to a properties
> file:
> http://mojo.codehaus.org/properties-maven-plugin/write-project-properties-mojo.html
>
> Optionally, the end result can be filtered using for example a
> maven-antrun-plugin goal to leave out any non-version properties, which
> should be easy as the version definitions (can easilly be made to) follow
> a
> certain naming convention.
>
> The end result (a clean *.properties file) can then be attached using the
> build-helper plugin. It is then available in Maven Central to be
> referenced
> from the release notes, diffed or imported by any user, etc.
>
> Riccardo
>
>
>
> On Sat, Aug 17, 2013 at 10:23 PM, Jan Matèrne (jhm) <
> apache@
> >wrote:
>
>> I just played with that maven plugin.
>> The problem is that it loads the properties after the validation phase.
>>
>> That wont work:
>>
>>
>>
> <project>
>>
> <modelVersion>
> 4.0.0
> </modelVersion>
>>
>>
> <groupId>
> just-test
> </groupId>
>>
> <artifactId>
> version-test
> </artifactId>
>>
> <version>
> 1.0
> </version>
>>
>>
> <build>
>>
> <plugins>
>>
> <plugin>
>>
> <groupId>
> org.codehaus.mojo
> </groupId>
>>
> <artifactId>
> properties-maven-plugin
> </artifactId>
>>
> <version>
> 1.0-alpha-2
> </version>
>>
> <executions>
>>
> <execution>
>>
> <phase>
> initialize
> </phase>
>>
> <goals>
>>
> <goal>
> read-project-properties
> </goal>
>>
> </goals>
>>
> <configuration>
>>
> <files>
>>
> <file>
> versions.properties
> </file>
>>
> </files>
>>
> </configuration>
>>
> </execution>
>>
> </executions>
>>
> </plugin>
>>
> </plugins>
>>
> </build>
>>
>>
> <dependencies>
>>
> <dependency>
>>
> <groupId>
> junit
> </groupId>
>>
> <artifactId>
> junit
> </artifactId>
>>
> <version>
> ${junit}
> </version>
>>
> </dependency>
>>
> </dependencies>
>>
> </project>
>>
>>
>> I also tried putting a
>>
> <properties>
>>
> <junit>
> 1
> </junit>
>>
> </properties>
>> as placeholder for the validation doesnt work.
>> The property is not changed to the stored junit=4.9 in my file.
>>
>>
>> Current ideas:
>> - building our own mvn plugin (enhancing that plugin) for loading the
>> props
>> and overwrite existing properties
>> - generate a valid pom from the version-list
>>
>>
>> Jan
>>
>>
>> > -----Ursprüngliche Nachricht-----
>> > Von: Babak Vahdat [mailto:
> babak.vahdat@
> ]
>> > Gesendet: Samstag, 17. August 2013 21:48
>> > An:
> dev@.apache
>> > Betreff: Re: [IDEA] - Having a parent maven pom.xml for only the
>> > dependency versions
>> >
>> > Hi
>> >
>> > what I'm aware of for this purpose is the following plugin:
>> >
>> > http://mojo.codehaus.org/properties-maven-plugin/usage.html
>> >
>> > However it's not maintained anymore since 2009!
>> >
>> > The other option would be to use the Kuali's plugin but I'm not sure
>> > about it's licence (it's already available in central repo):
>> >
>> > http://site.kuali.org/maven/plugins/properties-maven-plugin/1.1.9/read-
>> > project-properties-mojo.html
>> >
>> > No matter which one we would want to make use of, the tough part of
>> > this would be to convert the lines like:
>> >
>> >
> <ahc-version>
> 1.7.19
> </ahc-version>
>> >
>> > into:
>> >
>> > ahc-version=1.7.19
>> >
>> > But it should be possible to automate this conversion with couple of
>> > lines of code, or maybe even a new Camel date format for this purpose
>> > :-)
>> >
>> > Babak
>> >
>> >
>> > Claus Ibsen-2 wrote
>> > > Hi
>> > >
>> > > Today we have the parent/pom.xml file which has both all the versions
>> > > of the 3rd party JARs we have as dependencies. And also a list of all
>> > > the camel components and some other stuff.
>> > >
>> > > I wonder if we could have all the dependency versions in a single
>> > > file, without all the other stuff.
>> > >
>> > > This would make it easier for ppl to see what are the version changes
>> > > between any two Camel versions, but just diff the 2 files?
>> > >
>> > > And also we could just have such a link in the release notes so we
>> > > dont have to manually keep all the versions upgrades in the release
>> > > notes up to date as well.
>> > >
>> > > --
>> > > Claus Ibsen
>> > > -----------------
>> > > Red Hat, Inc.
>> > > Email:
>> >
>> > > cibsen@
>> >
>> > > Twitter: davsclaus
>> > > Blog: http://davsclaus.com
>> > > Author of Camel in Action: http://www.manning.com/ibsen
>> >
>> >
>> >
>> >
>> >
>> > --
>> > View this message in context: http://camel.465427.n5.nabble.com/IDEA-
>> > Having-a-parent-maven-pom-xml-for-only-the-dependency-versions-
>> > tp5737322p5737460.html
>> > Sent from the Camel Development mailing list archive at Nabble.com.
>>
>>
--
View this message in context: http://camel.465427.n5.nabble.com/IDEA-Having-a-parent-maven-pom-xml-for-only-the-dependency-versions-tp5737322p5737472.html
Sent from the Camel Development mailing list archive at Nabble.com.
Re: [IDEA] - Having a parent maven pom.xml for only the dependency versions
Posted by "R. Sirchia" <si...@gmail.com>.
Hi,
Why don't you do it the other way around?
I understand from Claus that his desire is not so much to manage the
dependencies and their versions in a different file, but just to provide a
file where the version properties can be easily read from and diffed
between releases.
In that case, you could simply leave everything as it is and use the
properties maven plugin to write the existing properties to a properties
file:
http://mojo.codehaus.org/properties-maven-plugin/write-project-properties-mojo.html
Optionally, the end result can be filtered using for example a
maven-antrun-plugin goal to leave out any non-version properties, which
should be easy as the version definitions (can easilly be made to) follow a
certain naming convention.
The end result (a clean *.properties file) can then be attached using the
build-helper plugin. It is then available in Maven Central to be referenced
from the release notes, diffed or imported by any user, etc.
Riccardo
On Sat, Aug 17, 2013 at 10:23 PM, Jan Matèrne (jhm) <ap...@materne.de>wrote:
> I just played with that maven plugin.
> The problem is that it loads the properties after the validation phase.
>
> That wont work:
>
> <!-- http://mojo.codehaus.org/properties-maven-plugin/usage.html -->
> <project>
> <modelVersion>4.0.0</modelVersion>
>
> <groupId>just-test</groupId>
> <artifactId>version-test</artifactId>
> <version>1.0</version>
>
> <build>
> <plugins>
> <plugin>
> <groupId>org.codehaus.mojo</groupId>
> <artifactId>properties-maven-plugin</artifactId>
> <version>1.0-alpha-2</version>
> <executions>
> <execution>
> <phase>initialize</phase>
> <goals>
> <goal>read-project-properties</goal>
> </goals>
> <configuration>
> <files>
> <file>versions.properties</file>
> </files>
> </configuration>
> </execution>
> </executions>
> </plugin>
> </plugins>
> </build>
>
> <dependencies>
> <dependency>
> <groupId>junit</groupId>
> <artifactId>junit</artifactId>
> <version>${junit}</version>
> </dependency>
> </dependencies>
> </project>
>
>
> I also tried putting a
> <properties>
> <junit>1</junit>
> </properties>
> as placeholder for the validation doesnt work.
> The property is not changed to the stored junit=4.9 in my file.
>
>
> Current ideas:
> - building our own mvn plugin (enhancing that plugin) for loading the props
> and overwrite existing properties
> - generate a valid pom from the version-list
>
>
> Jan
>
>
> > -----Ursprüngliche Nachricht-----
> > Von: Babak Vahdat [mailto:babak.vahdat@swissonline.ch]
> > Gesendet: Samstag, 17. August 2013 21:48
> > An: dev@camel.apache.org
> > Betreff: Re: [IDEA] - Having a parent maven pom.xml for only the
> > dependency versions
> >
> > Hi
> >
> > what I'm aware of for this purpose is the following plugin:
> >
> > http://mojo.codehaus.org/properties-maven-plugin/usage.html
> >
> > However it's not maintained anymore since 2009!
> >
> > The other option would be to use the Kuali's plugin but I'm not sure
> > about it's licence (it's already available in central repo):
> >
> > http://site.kuali.org/maven/plugins/properties-maven-plugin/1.1.9/read-
> > project-properties-mojo.html
> >
> > No matter which one we would want to make use of, the tough part of
> > this would be to convert the lines like:
> >
> > <ahc-version>1.7.19</ahc-version>
> >
> > into:
> >
> > ahc-version=1.7.19
> >
> > But it should be possible to automate this conversion with couple of
> > lines of code, or maybe even a new Camel date format for this purpose
> > :-)
> >
> > Babak
> >
> >
> > Claus Ibsen-2 wrote
> > > Hi
> > >
> > > Today we have the parent/pom.xml file which has both all the versions
> > > of the 3rd party JARs we have as dependencies. And also a list of all
> > > the camel components and some other stuff.
> > >
> > > I wonder if we could have all the dependency versions in a single
> > > file, without all the other stuff.
> > >
> > > This would make it easier for ppl to see what are the version changes
> > > between any two Camel versions, but just diff the 2 files?
> > >
> > > And also we could just have such a link in the release notes so we
> > > dont have to manually keep all the versions upgrades in the release
> > > notes up to date as well.
> > >
> > > --
> > > Claus Ibsen
> > > -----------------
> > > Red Hat, Inc.
> > > Email:
> >
> > > cibsen@
> >
> > > Twitter: davsclaus
> > > Blog: http://davsclaus.com
> > > Author of Camel in Action: http://www.manning.com/ibsen
> >
> >
> >
> >
> >
> > --
> > View this message in context: http://camel.465427.n5.nabble.com/IDEA-
> > Having-a-parent-maven-pom-xml-for-only-the-dependency-versions-
> > tp5737322p5737460.html
> > Sent from the Camel Development mailing list archive at Nabble.com.
>
>
AW: [IDEA] - Having a parent maven pom.xml for only the dependency versions
Posted by "Jan Matèrne (jhm)" <ap...@materne.de>.
I just played with that maven plugin.
The problem is that it loads the properties after the validation phase.
That wont work:
<!-- http://mojo.codehaus.org/properties-maven-plugin/usage.html -->
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>just-test</groupId>
<artifactId>version-test</artifactId>
<version>1.0</version>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>properties-maven-plugin</artifactId>
<version>1.0-alpha-2</version>
<executions>
<execution>
<phase>initialize</phase>
<goals>
<goal>read-project-properties</goal>
</goals>
<configuration>
<files>
<file>versions.properties</file>
</files>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>${junit}</version>
</dependency>
</dependencies>
</project>
I also tried putting a
<properties>
<junit>1</junit>
</properties>
as placeholder for the validation doesnt work.
The property is not changed to the stored junit=4.9 in my file.
Current ideas:
- building our own mvn plugin (enhancing that plugin) for loading the props
and overwrite existing properties
- generate a valid pom from the version-list
Jan
> -----Ursprüngliche Nachricht-----
> Von: Babak Vahdat [mailto:babak.vahdat@swissonline.ch]
> Gesendet: Samstag, 17. August 2013 21:48
> An: dev@camel.apache.org
> Betreff: Re: [IDEA] - Having a parent maven pom.xml for only the
> dependency versions
>
> Hi
>
> what I'm aware of for this purpose is the following plugin:
>
> http://mojo.codehaus.org/properties-maven-plugin/usage.html
>
> However it's not maintained anymore since 2009!
>
> The other option would be to use the Kuali's plugin but I'm not sure
> about it's licence (it's already available in central repo):
>
> http://site.kuali.org/maven/plugins/properties-maven-plugin/1.1.9/read-
> project-properties-mojo.html
>
> No matter which one we would want to make use of, the tough part of
> this would be to convert the lines like:
>
> <ahc-version>1.7.19</ahc-version>
>
> into:
>
> ahc-version=1.7.19
>
> But it should be possible to automate this conversion with couple of
> lines of code, or maybe even a new Camel date format for this purpose
> :-)
>
> Babak
>
>
> Claus Ibsen-2 wrote
> > Hi
> >
> > Today we have the parent/pom.xml file which has both all the versions
> > of the 3rd party JARs we have as dependencies. And also a list of all
> > the camel components and some other stuff.
> >
> > I wonder if we could have all the dependency versions in a single
> > file, without all the other stuff.
> >
> > This would make it easier for ppl to see what are the version changes
> > between any two Camel versions, but just diff the 2 files?
> >
> > And also we could just have such a link in the release notes so we
> > dont have to manually keep all the versions upgrades in the release
> > notes up to date as well.
> >
> > --
> > Claus Ibsen
> > -----------------
> > Red Hat, Inc.
> > Email:
>
> > cibsen@
>
> > Twitter: davsclaus
> > Blog: http://davsclaus.com
> > Author of Camel in Action: http://www.manning.com/ibsen
>
>
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/IDEA-
> Having-a-parent-maven-pom-xml-for-only-the-dependency-versions-
> tp5737322p5737460.html
> Sent from the Camel Development mailing list archive at Nabble.com.
Re: [IDEA] - Having a parent maven pom.xml for only the dependency
versions
Posted by Babak Vahdat <ba...@swissonline.ch>.
Hi
what I'm aware of for this purpose is the following plugin:
http://mojo.codehaus.org/properties-maven-plugin/usage.html
However it's not maintained anymore since 2009!
The other option would be to use the Kuali's plugin but I'm not sure about
it's licence (it's already available in central repo):
http://site.kuali.org/maven/plugins/properties-maven-plugin/1.1.9/read-project-properties-mojo.html
No matter which one we would want to make use of, the tough part of this
would be to convert the lines like:
<ahc-version>1.7.19</ahc-version>
into:
ahc-version=1.7.19
But it should be possible to automate this conversion with couple of lines
of code, or maybe even a new Camel date format for this purpose :-)
Babak
Claus Ibsen-2 wrote
> Hi
>
> Today we have the parent/pom.xml file which has both all the versions
> of the 3rd party JARs we have as dependencies. And also a list of all
> the camel components and some other stuff.
>
> I wonder if we could have all the dependency versions in a single
> file, without all the other stuff.
>
> This would make it easier for ppl to see what are the version changes
> between any two Camel versions, but just diff the 2 files?
>
> And also we could just have such a link in the release notes so we
> dont have to manually keep all the versions upgrades in the release
> notes up to date as well.
>
> --
> Claus Ibsen
> -----------------
> Red Hat, Inc.
> Email:
> cibsen@
> Twitter: davsclaus
> Blog: http://davsclaus.com
> Author of Camel in Action: http://www.manning.com/ibsen
--
View this message in context: http://camel.465427.n5.nabble.com/IDEA-Having-a-parent-maven-pom-xml-for-only-the-dependency-versions-tp5737322p5737460.html
Sent from the Camel Development mailing list archive at Nabble.com.
Re: [IDEA] - Having a parent maven pom.xml for only the dependency versions
Posted by Tracy Snell <ts...@gmail.com>.
As a temporary work around I wrote some code that'll show this information. I need to add some real formatting, as well as JSON and XML return types, to it but the version diff part works fine. I'll try to post it somewhere this weekend.
Here's the current output:
http://dl.dropbox.com/u/173510/screenshots/2013-08-23__07-49-11.jpg
On Aug 21, 2013, at 5:41 PM, R. Sirchia <si...@gmail.com> wrote:
> In a project I worked on, we had a similar structure. Translated to Camel
> artifacts, it would result in the following:
> - camel pom: Defines generic properties, deployment profiles, plugin
> management, etc
> - new camel-oss pom i.e. oss BoM: has top-level 'camel' artifact as parent,
> defines properties and dependency management of all cots dependency
> artifacts. Optionally generate and attach a properties configuration
> containing only the oss versions using maven properties plugin, as I
> described in my previous mail.
> - camel-parent: import camel-oss in dependency management, thereby
> providing all dependency versions to children. Optionally read the
> properties file attached to the camel-oss pom to also provide the
> properties to children for whatever reason (limitation: only available
> after initialize phase).
>
> Cheers,
> Riccardo
>
>
> On Wed, Aug 21, 2013 at 9:28 PM, James Carman <ja...@carmanconsulting.com>wrote:
>
>> With the "bom" approach, you don't use properties to define the
>> versions (you can but it seems unnecessary IMHO). All of the
>> dependency versions are defined in the parent pom in the
>> <dependencyManagement> section, as normal dependencies.
>>
>> On Wed, Aug 21, 2013 at 9:55 AM, Jon Anstey <ja...@gmail.com> wrote:
>>> When using import scope though you only get managed dependencies - no
>>> properties. Need to inherit a parent pom to get properties.
>>>
>>>
>>> On Wed, Aug 21, 2013 at 11:15 AM, James Strachan
>>> <ja...@gmail.com>wrote:
>>>
>>>> I wonder if we should experiment with a BOM file?
>>>> http://stackoverflow.com/questions/14874966/how-to-use-bom-iwith-maven
>>>>
>>>> then the camel project could import the BOM file and other projects
>>>> could share it too (without having to go the parent pom.xml route).
>>>>
>>>>
>>>> On 15 August 2013 12:26, Claus Ibsen <cl...@gmail.com> wrote:
>>>>> Hi
>>>>>
>>>>> Today we have the parent/pom.xml file which has both all the versions
>>>>> of the 3rd party JARs we have as dependencies. And also a list of all
>>>>> the camel components and some other stuff.
>>>>>
>>>>> I wonder if we could have all the dependency versions in a single
>>>>> file, without all the other stuff.
>>>>>
>>>>> This would make it easier for ppl to see what are the version changes
>>>>> between any two Camel versions, but just diff the 2 files?
>>>>>
>>>>> And also we could just have such a link in the release notes so we
>>>>> dont have to manually keep all the versions upgrades in the release
>>>>> notes up to date as well.
>>>>>
>>>>> --
>>>>> Claus Ibsen
>>>>> -----------------
>>>>> Red Hat, Inc.
>>>>> Email: cibsen@redhat.com
>>>>> Twitter: davsclaus
>>>>> Blog: http://davsclaus.com
>>>>> Author of Camel in Action: http://www.manning.com/ibsen
>>>>
>>>>
>>>>
>>>> --
>>>> James
>>>> -------
>>>> Red Hat
>>>>
>>>> Email: jstracha@redhat.com
>>>> Web: http://fusesource.com
>>>> Twitter: jstrachan, fusenews
>>>> Blog: http://macstrac.blogspot.com/
>>>>
>>>> Open Source Integration
>>>>
>>>
>>>
>>>
>>> --
>>> Cheers,
>>> Jon
>>> ---------------
>>> Red Hat, Inc.
>>> Email: janstey@redhat.com
>>> Web: http://redhat.com
>>> Twitter: jon_anstey
>>> Blog: http://janstey.blogspot.com
>>> Author of Camel in Action: http://manning.com/ibsen
>>
Re: [IDEA] - Having a parent maven pom.xml for only the dependency versions
Posted by "R. Sirchia" <si...@gmail.com>.
In a project I worked on, we had a similar structure. Translated to Camel
artifacts, it would result in the following:
- camel pom: Defines generic properties, deployment profiles, plugin
management, etc
- new camel-oss pom i.e. oss BoM: has top-level 'camel' artifact as parent,
defines properties and dependency management of all cots dependency
artifacts. Optionally generate and attach a properties configuration
containing only the oss versions using maven properties plugin, as I
described in my previous mail.
- camel-parent: import camel-oss in dependency management, thereby
providing all dependency versions to children. Optionally read the
properties file attached to the camel-oss pom to also provide the
properties to children for whatever reason (limitation: only available
after initialize phase).
Cheers,
Riccardo
On Wed, Aug 21, 2013 at 9:28 PM, James Carman <ja...@carmanconsulting.com>wrote:
> With the "bom" approach, you don't use properties to define the
> versions (you can but it seems unnecessary IMHO). All of the
> dependency versions are defined in the parent pom in the
> <dependencyManagement> section, as normal dependencies.
>
> On Wed, Aug 21, 2013 at 9:55 AM, Jon Anstey <ja...@gmail.com> wrote:
> > When using import scope though you only get managed dependencies - no
> > properties. Need to inherit a parent pom to get properties.
> >
> >
> > On Wed, Aug 21, 2013 at 11:15 AM, James Strachan
> > <ja...@gmail.com>wrote:
> >
> >> I wonder if we should experiment with a BOM file?
> >> http://stackoverflow.com/questions/14874966/how-to-use-bom-iwith-maven
> >>
> >> then the camel project could import the BOM file and other projects
> >> could share it too (without having to go the parent pom.xml route).
> >>
> >>
> >> On 15 August 2013 12:26, Claus Ibsen <cl...@gmail.com> wrote:
> >> > Hi
> >> >
> >> > Today we have the parent/pom.xml file which has both all the versions
> >> > of the 3rd party JARs we have as dependencies. And also a list of all
> >> > the camel components and some other stuff.
> >> >
> >> > I wonder if we could have all the dependency versions in a single
> >> > file, without all the other stuff.
> >> >
> >> > This would make it easier for ppl to see what are the version changes
> >> > between any two Camel versions, but just diff the 2 files?
> >> >
> >> > And also we could just have such a link in the release notes so we
> >> > dont have to manually keep all the versions upgrades in the release
> >> > notes up to date as well.
> >> >
> >> > --
> >> > Claus Ibsen
> >> > -----------------
> >> > Red Hat, Inc.
> >> > Email: cibsen@redhat.com
> >> > Twitter: davsclaus
> >> > Blog: http://davsclaus.com
> >> > Author of Camel in Action: http://www.manning.com/ibsen
> >>
> >>
> >>
> >> --
> >> James
> >> -------
> >> Red Hat
> >>
> >> Email: jstracha@redhat.com
> >> Web: http://fusesource.com
> >> Twitter: jstrachan, fusenews
> >> Blog: http://macstrac.blogspot.com/
> >>
> >> Open Source Integration
> >>
> >
> >
> >
> > --
> > Cheers,
> > Jon
> > ---------------
> > Red Hat, Inc.
> > Email: janstey@redhat.com
> > Web: http://redhat.com
> > Twitter: jon_anstey
> > Blog: http://janstey.blogspot.com
> > Author of Camel in Action: http://manning.com/ibsen
>
Re: [IDEA] - Having a parent maven pom.xml for only the dependency versions
Posted by James Carman <ja...@carmanconsulting.com>.
With the "bom" approach, you don't use properties to define the
versions (you can but it seems unnecessary IMHO). All of the
dependency versions are defined in the parent pom in the
<dependencyManagement> section, as normal dependencies.
On Wed, Aug 21, 2013 at 9:55 AM, Jon Anstey <ja...@gmail.com> wrote:
> When using import scope though you only get managed dependencies - no
> properties. Need to inherit a parent pom to get properties.
>
>
> On Wed, Aug 21, 2013 at 11:15 AM, James Strachan
> <ja...@gmail.com>wrote:
>
>> I wonder if we should experiment with a BOM file?
>> http://stackoverflow.com/questions/14874966/how-to-use-bom-iwith-maven
>>
>> then the camel project could import the BOM file and other projects
>> could share it too (without having to go the parent pom.xml route).
>>
>>
>> On 15 August 2013 12:26, Claus Ibsen <cl...@gmail.com> wrote:
>> > Hi
>> >
>> > Today we have the parent/pom.xml file which has both all the versions
>> > of the 3rd party JARs we have as dependencies. And also a list of all
>> > the camel components and some other stuff.
>> >
>> > I wonder if we could have all the dependency versions in a single
>> > file, without all the other stuff.
>> >
>> > This would make it easier for ppl to see what are the version changes
>> > between any two Camel versions, but just diff the 2 files?
>> >
>> > And also we could just have such a link in the release notes so we
>> > dont have to manually keep all the versions upgrades in the release
>> > notes up to date as well.
>> >
>> > --
>> > Claus Ibsen
>> > -----------------
>> > Red Hat, Inc.
>> > Email: cibsen@redhat.com
>> > Twitter: davsclaus
>> > Blog: http://davsclaus.com
>> > Author of Camel in Action: http://www.manning.com/ibsen
>>
>>
>>
>> --
>> James
>> -------
>> Red Hat
>>
>> Email: jstracha@redhat.com
>> Web: http://fusesource.com
>> Twitter: jstrachan, fusenews
>> Blog: http://macstrac.blogspot.com/
>>
>> Open Source Integration
>>
>
>
>
> --
> Cheers,
> Jon
> ---------------
> Red Hat, Inc.
> Email: janstey@redhat.com
> Web: http://redhat.com
> Twitter: jon_anstey
> Blog: http://janstey.blogspot.com
> Author of Camel in Action: http://manning.com/ibsen
Re: [IDEA] - Having a parent maven pom.xml for only the dependency versions
Posted by Jon Anstey <ja...@gmail.com>.
When using import scope though you only get managed dependencies - no
properties. Need to inherit a parent pom to get properties.
On Wed, Aug 21, 2013 at 11:15 AM, James Strachan
<ja...@gmail.com>wrote:
> I wonder if we should experiment with a BOM file?
> http://stackoverflow.com/questions/14874966/how-to-use-bom-iwith-maven
>
> then the camel project could import the BOM file and other projects
> could share it too (without having to go the parent pom.xml route).
>
>
> On 15 August 2013 12:26, Claus Ibsen <cl...@gmail.com> wrote:
> > Hi
> >
> > Today we have the parent/pom.xml file which has both all the versions
> > of the 3rd party JARs we have as dependencies. And also a list of all
> > the camel components and some other stuff.
> >
> > I wonder if we could have all the dependency versions in a single
> > file, without all the other stuff.
> >
> > This would make it easier for ppl to see what are the version changes
> > between any two Camel versions, but just diff the 2 files?
> >
> > And also we could just have such a link in the release notes so we
> > dont have to manually keep all the versions upgrades in the release
> > notes up to date as well.
> >
> > --
> > Claus Ibsen
> > -----------------
> > Red Hat, Inc.
> > Email: cibsen@redhat.com
> > Twitter: davsclaus
> > Blog: http://davsclaus.com
> > Author of Camel in Action: http://www.manning.com/ibsen
>
>
>
> --
> James
> -------
> Red Hat
>
> Email: jstracha@redhat.com
> Web: http://fusesource.com
> Twitter: jstrachan, fusenews
> Blog: http://macstrac.blogspot.com/
>
> Open Source Integration
>
--
Cheers,
Jon
---------------
Red Hat, Inc.
Email: janstey@redhat.com
Web: http://redhat.com
Twitter: jon_anstey
Blog: http://janstey.blogspot.com
Author of Camel in Action: http://manning.com/ibsen
Re: [IDEA] - Having a parent maven pom.xml for only the dependency versions
Posted by James Strachan <ja...@gmail.com>.
I wonder if we should experiment with a BOM file?
http://stackoverflow.com/questions/14874966/how-to-use-bom-iwith-maven
then the camel project could import the BOM file and other projects
could share it too (without having to go the parent pom.xml route).
On 15 August 2013 12:26, Claus Ibsen <cl...@gmail.com> wrote:
> Hi
>
> Today we have the parent/pom.xml file which has both all the versions
> of the 3rd party JARs we have as dependencies. And also a list of all
> the camel components and some other stuff.
>
> I wonder if we could have all the dependency versions in a single
> file, without all the other stuff.
>
> This would make it easier for ppl to see what are the version changes
> between any two Camel versions, but just diff the 2 files?
>
> And also we could just have such a link in the release notes so we
> dont have to manually keep all the versions upgrades in the release
> notes up to date as well.
>
> --
> Claus Ibsen
> -----------------
> Red Hat, Inc.
> Email: cibsen@redhat.com
> Twitter: davsclaus
> Blog: http://davsclaus.com
> Author of Camel in Action: http://www.manning.com/ibsen
--
James
-------
Red Hat
Email: jstracha@redhat.com
Web: http://fusesource.com
Twitter: jstrachan, fusenews
Blog: http://macstrac.blogspot.com/
Open Source Integration