Pass command line Params in mvn exec:exec

Two ways to pass command line arguments into mvn:exec: Method 1, on the command line: mvn exec:java -Dexec.mainClass=”com.myPackage.myClass” -Dexec.args=”command line arguments” Method 2, in the maven POM file: <build> <plugins> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>exec-maven-plugin</artifactId> <configuration> <mainClass>com.myPackage.myClass</mainClass> <commandlineArgs>command line arguments</commandlineArgs> </configuration> </plugin> </plugins> </build> Then on the command line all you have to do is run: mvn … Read more

Developing Maven 3.0 Plugin

There is now a work-in-progress implementation of annotations for Maven plugins developments! Read the following links: https://cwiki.apache.org/confluence/display/MAVEN/Java+5+Annotations+for+Plugins http://olamy.blogspot.fr/2012/05/java5-annotations-support-for-maven.html

Maven Cobertura plugin not generating coverage.xml

Add below lines to your application Goals:(configure section of the application in jenkins) cobertura:cobertura -Dcobertura.report.format=xml pom.xml changes: <reporting> <plugins> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>cobertura-maven-plugin</artifactId> <version>2.6</version> <configuration> <formats> <format>html</format> <format>xml</format> </formats> </configuration> </plugin> </plugins>

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)