Best way to create a maven artifact from existing jar

If you’re not using a remote repository (which is a common situation for personal development), simply install these artifacts in your local repository using the install:install-file mojo: mvn install:install-file -Dfile=<path-to-file> -DgroupId=<group-id> -DartifactId=<artifact-id> -Dversion=<version> -Dpackaging=<packaging> -DgeneratePom=true Where: <path-to-file> the path to the file to load <group-id> the group that the file should be registered under <artifact-id> … Read more

How do I add default JVM arguments with Gradle

From the top of my head I can think of 2 options: Option1: Do what @Ethan said, it’ll likely work: package placeholder; //your imports public class Application{ static { System.getProperties().set(“javafx.embed.singleThread”, “true”); } // your code public static void main(String… args){ //your code } } Option 2: Use the application plugin + default jvm values build.gradle: … Read more

Why spring boot generates jar or war file with .original extension?

The answer is that you are using repackage goal in your spring-boot-maven-plugin. So, What it does? Maven first builds your project and packages your classes and resources into a WAR (${artifactId}.war) file. Then, repackaging happens. In this goal, all the dependencies mentioned in the pom.xml are packaged inside a new WAR (${artifactId}.war) and the previously … Read more

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