How to create a Web application from the command line

One of the simplest choices to create a Java Web application with Maven is the maven-archetype-webapp. This archetype provides a minimal skeleton for creating a Web application. To create an application using this archetype in batch mode, you can use the following command: Here is the resulting project: Within the webapp folder, you can add … Read more

How to use the Maven wrapper in your projects

What is the shell script mvnw in your project directory?The Maven Wrapper is a simple way to run Maven on your machine, without manual installation of Maven. Why should we use that? Maven has been avery stable for users, and it is quite simple to install: however, due to many of the recent changes in … Read more

How to invoke a Maven plugin from the Command Line?

In this short tech tip, we will learn how to call a Maven plugin from the Command Line (i.e. a Plugin which is not included in your pom.xml file) With maven, you normally invoke plugin’s goals in this way: mvn myplugin:myGoal  so, for example, if you have declared the WildFly Maven plugin in your configuration: … Read more

How to deploy applications to WildFly using Cargo

Cargo is a thin wrapper that allows you to manipulate various type of application containers (Java EE and others) in a standard way. In this tutorial we will learn how to use it to deploy applications on WildFly from your pom file. Cargo provides the following APIs and tools: A Java API to start/stop/configure any … Read more

Creating a Maven archetype for WildFly – Part 1

In this two-part tutorial we will learn how to create a Maven archetype for WildFly that you can use to speed up your project creation either from the command line or using an IDE The first part of this tutorial will demonstrate how to create a basic archetype for a Web application which contains the … Read more

Configure a local Nexus repository Manager for your JBoss/WildFly artifacts

In this tutorial we will learn how to configure a dedicated Nexus repository Manager to be as proxy server for JBoss’Maven public repository. A Repository Manager is a dedicated server application which can be used to manage repositories of binary components. Using a repository Manager is commonly referred as a best practice providing the following … Read more

Solving the @Resource lookup compilation issue

One common issue that Java EE 6 developers meet is the use of the @Resource annotation which conflicts with the JDK built-in  @javax.annotation.Resource. Here we will show how to solve the compilation issue in Eclipse and Maven. If you have a look at the @Resource annotation included in Java EE 6, it includes  the lookup … Read more

Maven for Eclipse Users Tutorials

In this article we will try to provide a kickstart guide for Maven newbies, using the familiar concepts inherited from the Eclipse IDE such as Build Path, Deployment Assembly and so on. Kind of Rosetta Stone for Eclipse users ! How to create a new Project ? For Eclipse users creating a new project is … Read more

Maven JBoss AS 7 plugin tutorial

The Maven JBoss plugin can be used to perform some common tasks like deploy/undeploy or add resources as part of your Maven goal. In the latest release of this plugin there is even the ability to perform the execution of Command Line Interface commands using it. This tutorial shows how to do all these things. … Read more