[rules-dev] [Maven feedback] knowledge-api5 and knowledge-api both use same GAV
Geoffrey De Smet
ge0ffrey.spam at gmail.com
Mon Nov 19 06:57:56 EST 2012
Hi Edson,
Some of your recent pom.xml changes might introduce a new issue.
[Ignore this mail if it's still work in progress]
What changes are an issue?
=================
Both
droolsjbpm-knowledge/knowledge-api5/pom.xml
droolsjbpm-knowledge/knowledge-api/pom.xml
use the same GAV (groupId-artifactId).
Why is that an issue?
=============
The jar artifact created by each pom can't live in the same maven repo:
* Local maven repo: last one wins
* Jenkins's local maven repo: last one wins (=> weird red builds)
o Not yet relevant because knowledge-api5 isn't hooked into the
build yet
* Nexus deployment during release
o Nexus will refuse the deployment of the second one being deployed.
How can you fix it?
============
Not sure...
One way that does not work well:
1. Give knowledge-api5 it's own artifactId knowledge-api5
* Issue: knowledge-api5 shares classes with knowledge-api
o Can't exist in the same classpath
* Issue: knowledge-api5 does not maven conflict with knowledge-api
dependency, not even with older versions
o They end up in the same classpath anyway
* http://ge0ffrey.github.com/maven-dependency-puzzlers/maven-dependency-puzzlers-presentation/src/main/presentation/index.html#8.0
* Click right to see the effect.
o Note: relocation trick probably doesn't work
===
Can you take a look at fixing it?
(Let me know if you can't fix it in a timely manner.)
With kind regards,
Geoffrey
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-dev/attachments/20121119/81ba2848/attachment.html
More information about the rules-dev
mailing list