Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [m2e-users] m2e version-less parent element support

* I believe all released versions of maven will reject to build projects
with "version-less parents". For example, something like this

  <parent>
    <groupId>com.ifedorenko.maven</groupId>
    <artifactId>sample-maven-extension</artifactId>
  </parent>

is not a correct <parent> element and results in "'parent.version' is
missing" error, both during command line build and in m2e.

* It is now possible to use version ranges in <parent> element, and this
may work in latest m2e 1.6. Personally, I don't see this feature useful
(and think it may be harmful), but if this is what you are looking, give
m2e 1.6 a try.

* I do understand the reasons to want true version-less parent pom and
this is something I'd like to support in the future. There are some
technical challenges we'll need to overcome before this will be possible
and we are working on some advanced prototypes in this area.

* I did not understand what you meant by "In M2Eclipse, you will then be
able to de-select a certain contribution and select others". Are you
talking about project configurators or something else? Can you provide
more details one this?

* Likewise, I didn't understand what maven plugin extension points you
meant.

--
Regards,
Igor

On 2014-09-04, 16:14, Jason W. King wrote:
Other improvments

Developers working in multi-module or multi-pom projects won't have
to specify the parent version in every sub-module in Maven 3.
Instead, you can add version-less parent elements.  Maven 3 will also
be able to see which POMs supplied which artifacts.  In M2Eclipse,
you will then be able to de-select a certain contribution and select
others.  This is made possible through Maven 3's decoupling of
execution plans and execution.  Maven 3 also includes extention
points (mentioned above), which allow developers to hook up to
different extension points, instead of sub-classing a plugin, to
alter the plugin behavior.  You might, for example, have an extension
point to alter the way web.xml is processed through the WAR plugin.

Essentially, I don't want to have to list the version everywhere if
it's the same for everything.

Jason King Software Engineer Open Roads Consulting, Inc. (757)
546-3401 | jason.king@xxxxxxxxxxxxxxxxxxxxxxx >

-----Original Message-----
From: m2e-users-bounces@xxxxxxxxxxx [mailto:m2e-users-bounces@xxxxxxxxxxx] On Behalf Of Igor Fedorenko
Sent: Thursday, September 04, 2014 3:21 PM
To: m2e-users@xxxxxxxxxxx
Subject: Re: [m2e-users] m2e version-less parent element support

Can you provide pointers to documentation that explains how such "version-less" parents are supposed to work? What happens when artifacts that have such parents are resolved from artifact repositories, for example.

It may also be helpful if you explain what you are trying to achieve with such version-less parents. There are probably better/cleaner ways to do the same or at least we can decide what changes to Maven and m2e are necessary to enable better/cleaner solutions in the future.

--
Regards,
Igor

On 2014-09-04, 13:55, Jason W. King wrote:
Maven 3.x supports version-less parent elements in the pom files.
When I try this within Eclipse, it complains that the parent.version
is missing.  It's showing up as a Project build error.

Does m2e not support version-less parent elements?

Jason King

Software Engineer

Open Roads Consulting, Inc.

(757) 546-3401 | jason.king@xxxxxxxxxxxxxxxxxxxxxxx
<mailto:jason.king@xxxxxxxxxxxxxxxxxxxxxxx>



----------------------------------------------------------------------
-- This email communication (including any attachments) may contain
confidential and/or privileged material intended solely for the individual or entity to which it is addressed.
If you are not the intended recipient, please delete this email immediately.


_______________________________________________
m2e-users mailing list
m2e-users@xxxxxxxxxxx
To change your delivery options, retrieve your password, or
unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/m2e-users

_______________________________________________
m2e-users mailing list
m2e-users@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://dev.eclipse.org/mailman/listinfo/m2e-users


This email communication (including any attachments) may contain confidential and/or privileged material intended solely for the individual or entity to which it is addressed.
If you are not the intended recipient, please delete this email immediately.

_______________________________________________
m2e-users mailing list
m2e-users@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/m2e-users



Back to the top