On 31-Mar-09, at 10:54 AM, Kalle Korhonen wrote:
On Tue, Mar 31, 2009 at 6:56 AM, Jason van Zyl
<[email protected]> wrote:
Give your projects different names.
We're not going to support duplicate artifactIds in the reactor.
You can't
have two artifacts with the same coordinate and expect it to work.
Name your projects properly.
That's a very narrow-minded view.
You need a unique coordinate. The system breakdowns pretty fast if you
don't have that.
Should we adjust the internals of Maven to deal with something that is
easily rectified in an individual project.
While best practice suggests to have some
project identifier as part of the artifact id (e.g. tapestry-ioc,
maven-compiler-plugin) it's quite possible that two completely
separate
projects would arrive at the same artifact id.
It appeared from his example it was in the same reactor, and therefore
I assumed the same coordinate.
As long as there is a unique coordinate Maven is fine. Aside from that
having the exact same artifactId also just leads to problems. Try
putting them in the same assembly, try to visually identify which one
is which in different directories. For the possible aggravation I opt
for what will cause the least amount of hassle.
The point of group id and
version together with the artifactid is to uniquely identify the
artifact,
is it not? So using just the artifact id in Eclipse to differentiate
between
the project is a limitation. It's not just a problem with just
weakly named
artifacts - for example try working on multiple branches at the same
time
and importing them to the same workspace (I often rename the
projects in
Eclipse first; you could try that Andrew). If m2eclipse would just use
<groupId>:<artifactId>:<version> as the Eclipse project name what
difference
would it make? I mean, Jason what's the reason to oppose it so
strongly?
Hopefully nestable projects in Eclipse would solve this properly
somewhere
around 4.x.
Kalle
Thanks,
Jason
----------------------------------------------------------
Jason van Zyl
Founder, Apache Maven
http://twitter.com/jvanzyl
----------------------------------------------------------
Three may keep a secret if two of them are dead.
-- Benjamin Franklin
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]