Log4j is a logging mechanism that is in Apache foundation project. Log4j is for Java project. Here, to add logging feature to your Java project, you can use one as following ways: Manually Visit http://logging.apache.org/log4j/ Download the Log4j jar library Manually include it into your project dependency All manage by yourself, you need to do…
Tag: Maven
Struts 2 Maven Dependencies
What are the required dependencies to develop struts 2 application with Maven 2?
Install Maven 2 build tool on Windows
If you just start to develop some application, you need some built tools to help to package, compile or make your development structure look right. Maven is a right tool for that. It’s simple and easy to use, it works with many of programming languages, especially with Java. Here is simple steps to install maven…
To create jar packaging of Java project with maven 2 based, we used a plugin called: maven-jar with simply paste the code below in pom.xml of plugins section: <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-jar-plugin</artifactId> <version>2.4</version> <configuration> <archive> <manifest> <addClasspath>true</addClasspath> </manifest> </archive> </configuration> </plugin> And if you want to add in your jar’s MANIFEST info, you can directly modify…
Some case, you need to generate source code from your project which is maven 2 based. Please have a look to maven-source plugin by adding a short code below into your pom.xml <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-source-plugin</artifactId> <executions> <execution> <id>attach-sources</id> <goals> <goal>jar</goal> </goals> </execution> </executions> </plugin> By default it will generate jar named as: ${project.artifactId}-${project.version}-source.jar