#935 Maven POM

1.0.x
closed-accepted
General (896)
5
2011-10-13
2009-06-01
Ben Tilford
No

I attached an updated pom.xml (#115494) which fixes some of the dependency issues and also allows building the project using maven (only source files under $project/source are compiled so swt and experimental stuff is not built) test phase is not picking up the tests.

May duplicate http://sourceforge.net/tracker/?func=detail&aid=2699880&group_id=15494&atid=115494#

Discussion

  • Ben Tilford

    Ben Tilford - 2009-06-01

    Maven POM

     
  • Martin Höller

    Martin Höller - 2010-06-22

    The pom.xm file seems to be ok and works for me. The only thing I'd change is the artifactid: artifacts usually have lower case names, which is also the case for all existing versions of JFreeChart in the maven central repository. I'd change it from "JFreeChart" to "jfreechart".

    I was able to produce a valid bundle for an upload request with the following command:
    mvn -Dmaven.test.skip=true source:jar javadoc:jar repository:bundle-create

     
  • Martin Höller

    Martin Höller - 2010-06-25

    As I noticed later, I had to modify the pom.xml a bit, to really produce a output. This patch makes sure, all properties files get copied correctly and uses Java 1.3 for compilation:

    --- pom.xml.orig 2010-06-25 13:56:50.000000000 +0200
    +++ pom.xml 2010-06-25 13:58:59.000000000 +0200
    @@ -3,7 +3,7 @@
    <modelVersion>4.0.0</modelVersion>

    <name>JFreechart</name>
    - <artifactId>JFreechart</artifactId>
    + <artifactId>jfreechart</artifactId>
    <groupId>jfree</groupId>
    <version>1.0.13</version>
    <organization>
    @@ -94,6 +94,15 @@
    <sourceDirectory>source</sourceDirectory>
    <testSourceDirectory>tests</testSourceDirectory>

    + <resources>
    + <resource>
    + <directory>source</directory>
    + <includes>
    + <include>**/*.properties</include>
    + </includes>
    + </resource>
    + </resources>
    +
    <plugins>
    <plugin>
    <inherited>true</inherited>
    @@ -113,8 +122,8 @@
    <artifactId>maven-compiler-plugin</artifactId>
    <version>2.0.2</version>
    <configuration>
    - <source>1.6</source>
    - <target>1.6</target>
    + <source>1.3</source>
    + <target>1.3</target>
    <encoding>${project.build.sourceEncoding}</encoding>
    </configuration>
    </plugin>
    @@ -137,6 +146,3 @@
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    </properties>
    </project>

    Unfortunately I'm not allowed to attach the new pom.xml :-(

    hth,
    - martin

     
  • Ben Tilford

    Ben Tilford - 2010-06-25

    matinh's changes

     
  • Ben Tilford

    Ben Tilford - 2010-06-25

    Added your changes to the pom & uploaded. I did make the source & target levels properties.

     
  • Martin Höller

    Martin Höller - 2011-10-12
    • assigned_to: nobody --> matinh
     
  • Martin Höller

    Martin Höller - 2011-10-13

    The provided pom.xml was added with some modifications in r2317.

     
  • Martin Höller

    Martin Höller - 2011-10-13
    • status: open --> closed-accepted
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks