Maven ist ein Build-System für komplexe Projekte.

!Anweisungen

Artifact manuell installieren:

{{{
mvn install:install-file -DgroupId=com.intersult -DartifactId=com.intersult.skin -Dversion=1.0-SNAPSHOT -DgeneratePom=true -Dfile=com.intersult.skin-1.0-SNAPSHOT.jar -Dpackaging=jar
}}}

Artifact deployen:

{{{
mvn deploy:deploy-file -DgroupId=com.intersult -DartifactId=com.intersult.skin -Dversion=1.0 -Dpackaging=jar -Dfile=com.intersult.skin-1.0.jar -Durl=file://C:\Java\JBoss-4.2.1\server\default\deploy\repository.war -DrepositoryId=intersult-repository
}}}

Glassfish deployen:
{{{
        <plugin>
            <groupId>org.glassfish.maven.plugin</groupId>
            <artifactId>maven-glassfish-plugin</artifactId>
            <version>2.1</version>
        </plugin>
        ...
        <pluginRepository>
            <id>maven.java.net</id>
            <name>Java.net Maven2 Repository</name>
            <url>http://download.java.net/maven/2</url>
        </pluginRepository>
        
mvn glassfish:deploy
}}}