Menu

#1110 Maven release depends on junit

1.0.x
closed
None
3
2014-07-25
2013-05-14
No

Since 1.0.14 the maven release has dependencies to

com.lowagie itext 2.1.5
javax.servlet servlet-api 2.5
junit junit 3.8.2
xml-apis xml-apis 1.3.04

to get it integrated into a war/ear one has to exclude these dependencies.
The maven release should only depend on libraries needed to use jfreechart.

Discussion

  • simon04

    simon04 - 2014-07-24

    Is this still an issue? IMO, the dependencies are listed with their correct scope:

        <dependency>
            <groupId>javax.servlet</groupId>
            <artifactId>servlet-api</artifactId>
            <version>2.5</version>
            <scope>provided</scope>
        </dependency>
    
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <version>4.11</version>
            <scope>test</scope>
        </dependency>
    
     
  • David Gilbert

    David Gilbert - 2014-07-24

    Yes, the dependencies look correct to me. I'll close this one.

     
  • David Gilbert

    David Gilbert - 2014-07-24
    • status: open --> closed
    • assigned_to: David Gilbert
     
  • simon04

    simon04 - 2014-07-24

    I checked again and it seems that

        <dependency>
            <groupId>xml-apis</groupId>
            <artifactId>xml-apis</artifactId>
            <version>1.3.04</version>
        </dependency>
    

    as well as

        <dependency>
            <groupId>org.hamcrest</groupId>
            <artifactId>hamcrest-core</artifactId>
            <version>1.3</version>
            <scope>test</scope>
        </dependency>
    

    are unneeded.

    After removing this dependency from pom.xml, mvn clean compile test runs nicely.

    Sorry for missing this in the first run …

     
  • Simon Walter

    Simon Walter - 2014-07-25

    Thanks!

     

Log in to post a comment.