Apache Maven

Maven is a software project management and comprehension tool. Based on the concept of a Project Object Model (POM), Maven can manage a project's build, reporting and documentation from a central piece of information.

Requires Java.

Slackbuild

Package: apache-maven-3.0.4-noarch-1_SBo.tgz

User settings

You can specify your user configuration in ${user.home}/.m2/settings.xml. The default location of your local repository is ${user.home}/.m2/repository/.

Sample web app

web app creation

mvn archetype:generate -DgroupId=org.allowed.bitarus -DartifactId=WebApp -DarchetypeArtifactId=maven-archetype-webapp -DinteractiveMode=false cd WebApp mvn clean mvn compile mvn package

Deploy web app on jboss AS 7.1.1

/opt/jboss-as-7.1.1.Final/bin/standalone.sh http://localhost:9990 admin 12345678 Manage deployments Add content choose file ~/WebApp/target/WebApp.war next, save enable , confirm http://localhost:8080/WebApp/

Java/ApacheMaven (last edited 2013-12-24 19:20:10 by 188)