In this post we are going to create a simple Hello World in Java11 using maven and Intellij IDEA. We are also going to deal with the compilation error "Error: java: error: release version 5 not supported" and the compilation warning "File encoding has not been set, using platform encoding UTF-8" Video https://youtu.be/H3valiUGQck Create the... Continue Reading →
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... Continue Reading →
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.pluginArtifact Id: HelloWorld-maven-pluginVersion: 1.0-SNAPSHOT Project name: HelloWorldProject location: /Development/Skills421/Training/MavenPlugins/HelloWorld Edit the pom as follows... Continue Reading →
Create a Maven Project
In this example we will create an empty Maven Java Project. Install Dependencies Install JavaInstall MavenInstall IDE Eclipse Netbeans Intellij IDEA Create Maven Project Intellij IDE Step 1 Open Intellij IDE Step 2 Create New ProjectMavenleave Create from archetype uncheckedNext Step 3 GroupId: -e.g. com.skills421.trainingArtifactId: - e.g. MyProjectVersion: 1.0-SNAPSHOTNext Step 4 Project Name: - e.g. MyProjectProject... Continue Reading →
Intellij IDEA: maven clean install
Video https://youtu.be/salVwXHpIFQ Quick Steps View -> Tool Windows -> Maven ProjectOpens your projects in a sub-windowClick on the arrow next to your projectClick on LifecycleClick on cleanClick on the green (play) buttonClick on installClick on the green (play) button Source Code https://github.com/skills421/HelloWorld Latest Updates For latest updates check out Simple Java 11 Maven Project with... Continue Reading →
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 https://www.youtube.com/watch?v=dg1KbpV2UNA&feature=youtu.be 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... Continue Reading →
Maven: Unsupported IClasspathEntry kind=4
Maven: Unsupported IClasspathEntry kind=4, generated by Eclipse or JBoss: Disable the maven nature for the project: Right-click -> Maven -> Disable Maven Naturerun mvn eclipse:clean (while your project is open in STS/eclipse)Re-enable the maven nature: Right-click -> Configure -> Convert to Maven Project
Maven Pom Transfer Artifact Error
One nice little problem that has given us a bit of trouble recently is pom errors where non were expected. A typical error message would be: This is cause by failed repository downloads, where Maven thinks they have already downloaded and so Maven cannot build the project. The solution to this is to remove all... Continue Reading →
Maven Resources
The following list is a list of resources for Apache Maven: Maven Repository Maven Repository by API JUnit
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.