in DevOps by
Q:
Maven JAR File Creation

1 Answer

0 votes
by

Now, assuming you have finished coding your Java project and compiled the same, it is time to create a JAR file.

  • The first step for creating JAR file is to ensure cleansing any previous build artifacts before packaging them as a Maven project. This can be done using mvn clean which removes all the previously generated files from ./target folder.

  • mvn package would create a new package at ./target folder.

Alternately, we could combine cleaning and package creation as one step by typing mvn clean package. You would get a new JAR file created.

Click here to read more about DevOps
Click here to read more about Insurance

Related questions

0 votes
asked Feb 20, 2020 in DevOps by MBarbieri
0 votes
asked Oct 14, 2020 in Maven by rahuljain1
0 votes
asked Jul 23, 2020 in DevOps by Hodge
0 votes
asked Jul 23, 2020 in DevOps by Hodge
0 votes
0 votes
asked Feb 22, 2020 in DevOps by AdilsonLima
0 votes
0 votes
asked Feb 20, 2020 in DevOps by MBarbieri
0 votes
0 votes
asked Feb 20, 2020 in DevOps by MBarbieri
0 votes
asked Feb 20, 2020 in DevOps by MBarbieri
0 votes
asked Feb 20, 2020 in DevOps by MBarbieri
+1 vote
asked Feb 20, 2020 in DevOps by MBarbieri
...