Maven

Configure

Added this in maven-install-dir/conf/settings.xml:

<localRepository>${env.JAVAWORK}/dev/repos</localRepository>

Configure in IntelliJ: Set Settings => Path Variables ... MAVEN_REPOS to c:\work\dev\repos (or equivalent).

Also had to edit Maven Settings to override the local repository to this same path.

wget

In order to get a jar via wget, you need to pass in a user agent. For example:

$ wget --user-agent="Mozilla/5.0" http://repo1.maven.org/maven2/org/foo/foo.jar

Building locally with no tests:

$ mvn -o install -Dmaven.test.skip=true

To create a module:

mvn archetype:create -DgroupId=com.donohoedigital -DartifactId=pokerweb

To install a jar:

jdom

Donohoe Digital uses jdom, but 1.1 isn't in the public repository.

mvn install:install-file -Dfile=jdom.jar -DgroupId=jdom -DartifactId=jdom
             -Dversion=1.1 -Dpackaging=jar -DgeneratePom=true -DcreateChecksum=true

install4j

The install4j api library - used by the installer customizations.

mvn install:install-file -Dfile=i4jruntime.jar -DgroupId=install4j -DartifactId=i4jruntime -Dversion=4.1.5 -Dpackaging=jar -DgeneratePom=true -DcreateChecksum=true

explicit

The Explicit Layout classed from Zookitec are not in Maven.

mvn install:install-file -Dfile=explicit.jar -DgroupId=com.zookitec -DartifactId=layout
             -Dversion=3.0 -Dpackaging=jar -DgeneratePom=true -DcreateChecksum=true

apple

In order to compile on all platforms, I created a jar with the files from Apple used for application integration.

mvn install:install-file -Dfile=apple.jar -DgroupId=apple -DartifactId=ui 
             -Dversion=1.4.1 -Dpackaging=jar -DgeneratePom=true -DcreateChecksum=true

mvn install:install-file -Dfile=README -DgroupId=apple -DartifactId=ui 
             -Dversion=1.4.1 -Dclassifier=readme -Dpackaging=txt

jta

For some reason the JTA jar file is missing from the public maven 2 repository. You can get them from the JTA download site. The Hibernate maven pom says that 1.0.1B is required, but I'm betting 1.1 will work as well.

mvn install:install-file -Dfile=jta-1_1-classes.zip -DgroupId=javax.transaction 
            -DartifactId=jta -Dversion=1.1 -Dpackaging=jar -DgeneratePom=true  
            -DcreateChecksum=true

Apache Commons

Added 2.4 (released 3/18/2008) since not in maven repository yet.

mvn install:install-file -Dfile=commons-lang-2.4.jar -DgroupId=commons-lang 
            -DartifactId=commons-lang -Dversion=2.4 -Dpackaging=jar -DgeneratePom=true 
            -DcreateChecksum=true

mvn install:install-file -Dfile=commons-lang-2.4-sources.jar -DgroupId=commons-lang 
            -DartifactId=commons-lang -Dversion=2.4 -Dclassifier=sources -Dpackaging=jar 
            -DgeneratePom=true -DcreateChecksum=true

Wicket Scriptaculous

Added 1.3 4/19/2008 snapshot

mvn install:install-file -Dfile=wicketstuff-scriptaculous-1.3-20080419.040255-14.jar
        -DgroupId=org.wicketstuff -DartifactId=wicketstuff-scriptaculous 
        -Dversion=1.3 -Dpackaging=jar -DgeneratePom=true  -DcreateChecksum=true

Tomcat Jasper Compiler

Added 6.0.16 release of jasper.jar since not in maven repository yet. Also added several dependencies to the repository since jasper is dependent on it. These jar files are in tomcat/lib or tomcat/bin.

mvn install:install-file -Dfile=jasper.jar -DgroupId=tomcat 
            -DartifactId=jasper-compiler -Dversion=6.0.16 -Dpackaging=jar 
            -DgeneratePom=true -DcreateChecksum=true
            
mvn install:install-file -Dfile=tomcat-juli.jar -DgroupId=tomcat 
            -DartifactId=juli -Dversion=6.0.16 -Dpackaging=jar 
            -DgeneratePom=true -DcreateChecksum=true
            
mvn install:install-file -Dfile=jsp-api.jar -DgroupId=tomcat 
            -DartifactId=jsp-api -Dversion=6.0.16 -Dpackaging=jar 
            -DgeneratePom=true -DcreateChecksum=true
            
mvn install:install-file -Dfile=el-api.jar -DgroupId=tomcat 
            -DartifactId=el-api -Dversion=6.0.16 -Dpackaging=jar 
            -DgeneratePom=true -DcreateChecksum=true
            
mvn install:install-file -Dfile=jasper-el.jar -DgroupId=tomcat 
            -DartifactId=jasper-el -Dversion=6.0.16 -Dpackaging=jar 
            -DgeneratePom=true -DcreateChecksum=true
            
mvn install:install-file -Dfile=jasper-jdt.jar -DgroupId=tomcat 
            -DartifactId=jasper-jdt -Dversion=6.0.16 -Dpackaging=jar 
            -DgeneratePom=true -DcreateChecksum=true

Also had to add dependency in jasper pom to these other jars:


    <dependencies>
      <dependency>
        <groupId>tomcat</groupId>
        <artifactId>juli</artifactId>
        <version>6.0.16</version>
      </dependency>
      <dependency>
        <groupId>tomcat</groupId>
        <artifactId>jsp-api</artifactId>
        <version>6.0.16</version>
      </dependency>
      <dependency>
        <groupId>tomcat</groupId>
        <artifactId>el-api</artifactId>
        <version>6.0.16</version>
      </dependency>
      <dependency>
        <groupId>tomcat</groupId>
        <artifactId>jasper-el</artifactId>
        <version>6.0.16</version>
       </dependency>
       <dependency>
        <groupId>tomcat</groupId>
        <artifactId>jasper-jdt</artifactId>
        <version>6.0.16</version>
      </dependency>
    </dependencies>

Paypal NVP API

mvn install:install-file -Dfile=paypal_base.jar -DgroupId=paypal 
      -DartifactId=base -Dversion=5.2.4 -Dpackaging=jar -DgeneratePom=true  
      -DcreateChecksum=true

mvn install:install-file -Dfile=src.jar -Dclassifier=sources  -DgroupId=paypal 
      -DartifactId=base -Dversion=5.2.4 -Dpackaging=jar -DgeneratePom=true  
      -DcreateChecksum=true

Xerces 2.9.1 (needed by Paypal)

mvn install:install-file -Dfile=xercesImpl.jar -DgroupId=org.apache 
    -DartifactId=xerces -Dversion=2.9.1 -Dpackaging=jar -DgeneratePom=true 
    -DcreateChecksum=true

mvn install:install-file -Dfile=xerces-source.jar -Dclassifier=sources 
    -DgroupId=org.apache -DartifactId=xerces -Dversion=2.9.1 -Dpackaging=jar 
    -DgeneratePom=true -DcreateChecksum=true

Add new attachment

Only authorized users are allowed to upload new attachments.
« This page (revision-32) was last changed on 13-Jan-2009 17:15 by donohoe [RSS]