How to display maven project version in your webapp

This article describes how to display the version of your maven project in your web application.

Tweet your builds with Maven Twitter Plugin

Maven Twitter Plugin lets you send Twitter status updates from Maven, without writing any Java code. It increases communication between Project owners and Project users by automatically tweeting build and release status via Twitter.

3 ways to run Java main from Maven

Maven exec plugin lets you run the main method of a Java class in your project, with the project dependencies automatically included in the classpath. This article show you 3 ways of using the maven exec plugin to run java, with code examples. This approach is useful in many scenarios including migration of existing tasks from ant to maven.

How to automate project versioning and release with Maven

This tutorial shows you how to tag your maven project in a source control system (like CVS, Subversion) and release the versioned “jar” or “war” to a remote repository, and all of this with a single maven command! You can even automate the entire release process by running the command in a cronjob or a Continuous Integration system.

JAXB code snippets for beginners

JAXB is a Java library used for reading and writing XML files. Unlike DOM or SAX, JAXB is a high level library that maps XML directly to Java Objects. You point JAXB to an XML file and it returns you a Java object representing the XML. While JAXB is easy to use, it may take some time to get started. I’ve documented everything that you need to know, with code snippets, to help you start using JAXB in a few minutes.

The plugin ‘org.codehaus.mojo:selenium-maven-plugin’ does not exist or no valid version could be found

The latest snapshot of selenium-maven-plugin does not work with the maven version < 2.0.9. If your maven seleinum plugin stops working and you get this error, you may have an older version of maven and you’ll need to upgrade you maven version to 2.0.9 or higher to fix this error.

Maven Cargo JBoss

This article shows how to deploy your war to JBoss using maven and cargo. It also shows how to integration test your JBoss applications using selenium by automatically deploying the war, running the tests and then automatically undeploying the war. All using maven, selenium and cargo!

It is a good practice to startup JBoss outside the scope of maven and use cargo to redeploy your app. Cargo uses the jmx-console over http to deploy and no file path configuration is needed! This only works with JBoss running locally as a file: reference to the war file is passed over http.

See articles for details and code snippets.

How to auto-generate Maven plugin documentation

This article assumes that you are familiar with writing maven plugins and describes how you can automatically generate your plugin documentation, and keep it in sync with the plugin code. It shows you how to automatically generate documentation on plugin goals, including documentation for command line or other optional parameters required by the plugin.

Get Adobe Flash playerPlugin by wpburn.com wordpress themes