Menu

#4 Defines a Maven2 POM for oslc

open
nobody
None
5
2008-08-19
2008-08-19
No

Defines a Maven2 POM for oslc (complementary to build.xml). Then deploy the resulting articfact on the public artifact repository (http://repo1.maven.org/maven2)

Discussion

  • Didier Donsez

    Didier Donsez - 2008-08-19

    Logged In: YES
    user_id=2186389
    Originator: YES

    A proposition of Maven2 POM is attached to this comment
    Just run "mvn clean package" to compile/package oslc with Maven2
    I comment the <testSourceDirectory> element since the test phase fails on 1 test.
    Enjoy Maven2 ;-)
    File Added: pom.xml

     
  • Didier Donsez

    Didier Donsez - 2008-08-21

    updated version of the Maven2 POM

     
  • Didier Donsez

    Didier Donsez - 2008-08-21

    Logged In: YES
    user_id=2186389
    Originator: YES

    File Added: pom.xml

     
  • Didier Donsez

    Didier Donsez - 2008-08-21

    Logged In: YES
    user_id=2186389
    Originator: YES

    To use the new pom.xml, you have to refactor the project as following

    mkdir src
    mkdir src\main
    mkdir src\main\java
    mkdir src\main\resources
    mkdir src\test
    mkdir src\test\java

    copy checker src\main\java
    copy resources src\main\resources
    copy documentation src\main\resources
    copy unittests src\test\java

    mvn -X install:install-file -Dfile=easyprint.jar -DgroupId=net.java.dev.easyprint -DartifactId=easyprint -Dversion=1.0 -Dpackaging=jar -DgeneratePom=true

    mvn clean package install

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.