-
Maven Exclude log4j.properties in Jar file
This example shows you how to use Maven to exclude the log4j.properties file from your Jar file.
阅读更多2019-08-17【[Java]】
-
Create a fat Jar file Maven Assembly Plugin
In this tutorial, we will show you how to create a fat/uber jar with Maven Assembly Plugin. Which means create a Jar together with its dependency Jars into a single executable Jar file.
阅读更多2019-08-17【[Java]】
-
Maven Get source code for Jar
In Maven, you can get source code for project dependencies in most IDEs like this :
阅读更多2019-08-17【[Java]】
-
Maven Display project dependency
In Maven, you can use mvn dependency:tree to display the project dependencies in tree format.
阅读更多2019-08-17【[Java]】
-
Spring 3 MVC hello world example Annotation
In this tutorial, we will take the previous Maven + Spring MVC XML example, rewrite it to support @JavaConfig configuration, no more XML files, and deploy it into a Servlet 3.0+ container, like Tomcat 7 or Jetty 9.
阅读更多2019-08-17【[Java]】
-
Maven Jetty Plugin Examples
Few Maven Jetty 8.x and 9.x plugin examples, just for quick reference.
阅读更多2019-08-17【[Java]】
-
Maven webxml attribute is required
Maven package a web application and hits the following error message :
阅读更多2019-08-17【[Java]】
-
Maven Deploy web application to WildFly
In Maven, we can use the official JBoss WildFly Maven Plugin to deploy a web application (war file) to the WildFly application server.
阅读更多2019-08-17【[Java]】
-
Maven and JUnit example
In Maven, you can declare the JUnit dependency like this:
阅读更多2019-08-17【[Java]】
-
How to tell Maven to use Java 8
In pom.xml, defined this maven.compiler.source properties to tell Maven to use Java 8 to compile the project.
阅读更多2019-08-11【[Java]】
-
Maven List all the projects plugins
In Maven, you can use mvn help:effective-pom to list all the current project’s plugins and its version.
阅读更多2019-08-11【[Java]】
-
mvn site : java.lang.ClassNotFoundException: org.apache.maven.doxia.siterenderer.DocumentContent
Generating a Maven report with mvn site, but hits the following errors
阅读更多2019-08-11【[Java]】
-
Maven SpotBugs example
In this article, we will show you how to use SpotBugs Maven Plugin to find bugs in Java code.
阅读更多2019-08-11【[Java]】
-
Maven PMD example
In this article, we will show you how to use Maven PMD Plugin to analyze the Java code.
阅读更多2019-08-11【[Java]】
-
Maven How to force re-download project dependencies?
In Maven, you can use Apache Maven Dependency Plugin, goal dependency:purge-local-repository to remove the project dependencies from the local repository, and re-download it again.
阅读更多2019-08-11【[Java]】