Maven
-
How to build war safely for Dynamic Web Project using maven goals ?
Include following into pom.xml <build> <sourceDirectory>src</sourceDirectory> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <configuration> <source>1.6</source> <target>1.6</target> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-eclipse-plugin</artifactId> <configuration> <projectNameTemplate>[artifactId]-[version]</projectNameTemplate>… Read More
-
How to Create a maven dependency via shell script ?
sudo vi dependencygen.sh LIB_PATH=”/…/…/WebContent/WEB-INF/lib” # Absolute path to this script, e.g. /home/user/bin/foo.sh SCRIPT=$(readlink -f “$0”) # Absolute path this… Read More
-
Exception in thread “main” java.lang.UnsupportedClassVersionError: org/apache/maven/cli/MavenCli : Unsupported major.minor version 51.0
Lets try to understand the Error: As the error show the code is built for Java 7. If you try… Read More
-
How to generate access token in Spring ?
URL to generate access_token: Type 1: Generation of token using Username & password: http://localhost:8080/<app_name>/oauth/token?grant_type=password&client_id=restapp&client_secret=restapp&username=techie&password=techie@rest Type 2: Generation of token without… Read More
-
What is difference between mvn package & install ?
Its very interesting topic to discuss, those who are working with building tools they will find very helpful. Basically package… Read More
