Build Automation

Create a Maven Web Project using Intellij IDEA

Open Intellij File -> New Project Maven next GroupId: com.skills421.training.web ArtifactId: WebProject Right click in pom.xml Generate -> Dependency Template in artifactId start typing servlet-api and select from the drop down to get: javax.servlet servlet-api LATEST File -> Project Structure Modules + Web Create Artifact now in our project we have web/WEB-INF etc right click …

Create a Maven Web Project using Intellij IDEA Read More »

Create a Simple Maven Plugin

In this post we are going to create a simple maven plugin that prints out the message “Hello World” during the build process of a project. Create a Maven Project create a Maven project for our plugin development.  The details are as follows: Group Id: com.skills421.maven.plugin Artifact Id: HelloWorld-maven-plugin Version: 1.0-SNAPSHOT Project name: HelloWorld Project location: /Development/Skills421/Training/MavenPlugins/HelloWorld Edit the …

Create a Simple Maven Plugin Read More »

Create a Maven Project

In this example we will create an empty Maven Java Project. Install Dependencies Install Java Install Maven Install IDE Eclipse Netbeans Intellij IDEA Create Maven Project Intellij IDE Step 1 Open Intellij IDE Step 2 Create New Project Maven leave Create from archetype unchecked Next Step 3 GroupId: -e.g. com.skills421.training ArtifactId: – e.g. MyProject Version: 1.0-SNAPSHOT …

Create a Maven Project Read More »

Intellij IDEA: maven clean install

Video Quick Steps View -> Tool Windows -> Maven Project Opens your projects in a sub-window Click on the arrow next to your project Click on Lifecycle Click on clean Click on the green (play) button Click on install Click on the green (play) button Source Code https://github.com/skills421/HelloWorld Latest Updates For latest updates check out …

Intellij IDEA: maven clean install Read More »

Maven pom.xml error – org.codehaus.plexus.archiver.jar.Manifest.write(java.io.PrintWriter)

Python multi-track We’re really excited to tell you about our upcoming Python multi-track training course – a revolution in training, reference, documentation, and code Register Now This is a known bug in eclipse and as such has replicated into Spring STS. It is caused by the maven-jar plugin. This can be resolved by downloading and …

Maven pom.xml error – org.codehaus.plexus.archiver.jar.Manifest.write(java.io.PrintWriter) Read More »

Assemble Executable Jar using Maven

This entry in your Maven pom.xml will build a single executable jar file and assemble all your other jar dependencies within it. [code language=”xml”] <project> …. <build> <plugins> <!– Plugins for Assembly –> <plugin> <artifactId>maven-assembly-plugin</artifactId> <version>2.4</version> <configuration> <finalName>ExecutableJarExample</finalName> <appendAssemblyId>false</appendAssemblyId> <descriptorRefs> <descriptorRef>jar-with-dependencies</descriptorRef> </descriptorRefs> <archive> <manifest> <mainClass>com.skills421.training.ExecutableJarExample</mainClass> </manifest> </archive> </configuration> <executions> <execution> <id>make-assembly</id> <!– this is used …

Assemble Executable Jar using Maven Read More »