brite, a MVC Framework for jQuery

Maven: Maven Tips & Quick Start & Cheat Sheet

July 19th, 2010 by jeremychone

Skip Test

mvn -Dmaven.test.skip=true package

Official JBoss Repository for Hibernate and more

<repository>
 <id>jboss-repository-group</id>
 <name>jboss-repository-group</name>
 <url>https://repository.jboss.org/nexus/content/groups/public/</url>
 <layout>default</layout>
</repository>

Note: the “http://repository.jboss.org/maven2/” is deprecated. Use the above one (Announcement, Getting Started Doc ).

Generate Source

mvn source:jar

maven source doc

Generate Source

mvn javadoc:jar

maven javadoc doc

Publishing Artifacts to Central Repository

Maven Sonatype/Maven Central commands

Publish Snapshots

mvn clean deploy

Or better with source

mvn clean source:jar javadoc:jar deploy

Stage the release

# prepare it (will create the new tag in sonatype SVN, automatically checking in on your behalf).
mvn release:clean
mvn release:prepare
#stage the release
mvn release:perform

Maven will checkout the tag you just prepared, then build and deploy it into Nexus staging repository.

release it

Other Links

Comments are closed.