Read and respond to this message at: 
https://sourceforge.net/forum/message.php?msg_id=4232717
By: craiger316

The Maven dependency for iText listed in the Maven 2 repository for displaytag
(ftp://ibiblio.org/pub/packages/maven2/displaytag/displaytag/1.1/displaytag-1.1.pom)
is:

<dependency>
<groupId>itext</groupId>
<artifactId>itext</artifactId>
</dependency>

This causes a problem for projects which use displaytag, but also depend on
a higher version of iText (eg. v1.4.8).  I believe what Maven does when it comes
across a dependency without a version qualifier is that it chooses the highest
possible version of the library and uses that.  Which would all be well and
good, except that displaytag references the old groupId for iText, which only
goes up to v1.3.  The new groupId is com.lowagie.

What this is causing is a problem with my project which has the following
dependency:

<dependency>
<groupId>com.lowagie</groupId>
<artifactId>itext</artifactId>
<version>1.4.8</version>
</dependency>

What happens is, displaytag's pom forces v1.3 of iText to be bundled in to the
build, while my dependency forces v1.4.8.  As luck may have it, the classloader
finds the v1.3 itext classes before the v1.4.8 version.  Since v1.3 is  not
forward-compatible with v1.4.8 you get a lot of runtime errors for methods you
are accessing which don't exist in v1.3.

Would it be possible to get displaytag's dependency list updated in the Maven
2 repository to use the groupId <i>com.lowagie</i> for it's iText dependency?
I've had to hack the pom file for display tag in my local-repo to force it,
and I don't want to use that as the long term solution.

Thanks,

Craig.

______________________________________________________________________
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit: 
https://sourceforge.net/forum/unmonitor.php?forum_id=249317

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
displaytag-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/displaytag-user

Reply via email to