Minimize an Uber Jar correctly, Using Shade-Plugin

This functionality has been added to version 1.6 of the maven-shade-plugin (just released). minimizeJar will now not remove classes that have been specifically included with filters. Note that including some of an artifact’s classes in a filter will exclude non-specified classes for that artifact, so be sure to include all the classes that you need. … Read more

How to use OpenAPI “oneOf” property with openapi-generator-maven-plugin when generating Spring code

Currently, openapi-generator doesn’t support oneOf. This is a capability that had been newly introduced with OpenAPI v3 (FYI, only v2 and below are called “Swagger”, it has then been renamed to OpenAPI). There are various generators (Java, Spring, lots of other languages). I have seen that contributions have been made during this year to enable … Read more

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

How do I download a Maven artifact at the command line without using dependency:get or maven-download-plugin?

The copy goal is more appropriate here and it lets you specify an output directory as well (which is deprecated in the get goal): mvn org.apache.maven.plugins:maven-dependency-plugin:2.8:copy -Dartifact=groupId:artifactId:version[:packaging][:classifier] -DoutputDirectory=[target] -Dmdep.useBaseVersion=true mdep.useBaseVersion=true will remove timestamps from snapshot builds.

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

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