Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 773067
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T18:54:20+00:00 2026-05-14T18:54:20+00:00

seam iText integration seems to use older version of iText jars, would it be

  • 0

seam iText integration seems to use older version of iText jars, would it be possible to use the latest iText 5.0.2 specific jars as part of the maven dependencies. Has anyone done this before?

http://repository.jboss.org/maven2/org/jboss/seam/jboss-seam-pdf/2.2.0.GA/jboss-seam-pdf-2.2.0.GA.pom http://repository.jboss.org/maven2/com/lowagie/itext/2.1.2/itext-2.1.2.pom

The following dependency uses 2.1.2 version of iText, not sure how to make it use the latest version 5.0.2 of iText.

        <dependency>
            <groupId>org.jboss.seam</groupId>
            <artifactId>jboss-seam-pdf</artifactId>
            <version>${jboss-seam.version}</version>
            <exclusions>
                <exclusion>
                    <groupId>org.jboss.seam</groupId>
                    <artifactId>jboss-seam</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>org.jboss.seam</groupId>
                    <artifactId>jboss-seam-ui</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T18:54:22+00:00Added an answer on May 14, 2026 at 6:54 pm

    The following dependency uses 2.1.2 version of iText, not sure how to make it use the latest version 5.0.2 of iText.

    First, jboss-seam-pdf-2.2.0.GA.jar has the following dependencies (skipping exclusions, refer to the root POM org.jboss.seam:root:2.2.0.GA.pom for full details):

    <dependency>
      <groupId>com.lowagie</groupId>
      <artifactId>itext</artifactId>
      <version>2.1.2</version>
      ...
    </dependency>
    <dependency>
      <groupId>com.lowagie</groupId>
      <artifactId>itext-rtf</artifactId>
      <version>2.1.2</version>
      ...
    </dependency>
    

    Second, the only itext 5.0.2 artifact I could find is the one mentioned in this thread (and available in the repository http://maven.itextpdf.com/):

    <dependency>
      <groupId>com.itextpdf</groupId>
      <artifactId>itextpdf</artifactId>
      <version>5.0.2</version>
    </dependency>
    

    As we can see it has different groupId and artifactId than the previous itext dependencies so we can’t use Maven’sdependencyManagement here to force the use of this version (assuming this artifact replaces the previous one, I have no idea about this). So this leaves us with exclusions. Something like this:

    <project>
      ...
      <properties>
        <jboss-seam.version>2.2.0.GA</jboss-seam.version>
      </properties>
      <repositories>
        <repository>
          <id>itext</id>
          <url>http://maven.itextpdf.com</url>
        </repository>
        <repository>
          <id>jboss</id>
          <url>http://repository.jboss.org/maven2</url>
        </repository>
      </repositories>
      <dependencies>
        ...
        <dependency>
          <groupId>org.jboss.seam</groupId>
          <artifactId>jboss-seam-pdf</artifactId>
          <version>${jboss-seam.version}</version>
          <exclusions>
            <exclusion>
              <groupId>org.jboss.seam</groupId>
              <artifactId>jboss-seam</artifactId>
            </exclusion>
            <exclusion>
              <groupId>org.jboss.seam</groupId>
              <artifactId>jboss-seam-ui</artifactId>
            </exclusion>
            <exclusion>
              <groupId>com.lowagie</groupId>
              <artifactId>itext</artifactId>
            </exclusion>
            <exclusion>
              <groupId>com.lowagie</groupId>
              <artifactId>itext-rtf</artifactId>
            </exclusion>
          </exclusions>
        </dependency>
        <dependency>
          <groupId>com.itextpdf</groupId>
          <artifactId>itextpdf</artifactId>
          <version>5.0.2</version>
        </dependency>
      </dependencies>
    </project>
    

    With this POM, the dependency tree becomes:

    $ mvn dependency:tree
    ...
    [INFO] [dependency:tree {execution: default-cli}]
    [INFO] com.statckoverflow:Q2793234:jar:1.0-SNAPSHOT
    [INFO] +- junit:junit:jar:3.8.1:test
    [INFO] +- org.jboss.seam:jboss-seam-pdf:jar:2.2.0.GA:compile
    [INFO] |  \- com.sun.facelets:jsf-facelets:jar:1.1.15.B1:compile
    [INFO] \- com.itextpdf:itextpdf:jar:5.0.2:compile
    ...
    

    I’m not saying this will work at runtime, I’m just giving you a way to replace a dependency with Maven.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a seam app and would like to use the MultiPowUploader ( http://www.element-it.com/multiple-file-upload/flash-uploader.aspx
I'm writing a Seam-based application, making use of JPA/Hibernate and Hibernate Search (Lucene). I
Does Seam support multiple persistence units in its configuration? Also, when would you want
i use seam framework to develop a web site. I want to share one
I'm using JBoss Seam Framework, but it's seems to me isn't very popular among
As part of a dataTable in a seam JSF page, one column requires the
I use the Seam framework. If I do Session sess = (Session)em.getDelegate(); Connection conn
I use an ant script for my seam application to explode or deploy the
I am using seam with EJB3 + JSF and I would like to add
How can Seam be configured to use different security-constraints for different web-resource-collections? In web.xml

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.