Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What are all the default maven packing types?

I couldn't seem to find this online or in the Maven documentation; I was wondering what packaging types are supported out of the box with Maven 3. Is there a test package?

Please and thank you.

like image 691
myusuf3 Avatar asked Apr 04 '11 20:04

myusuf3


People also ask

What is the default packaging type for Maven project build artifacts?

Some of the artifact packaging types that are available are jar, war, ear and pom. You configure the type of packaging you want for your project in pom. xml element <packaging>. If packaging element is not defined, default packaging in maven is jar.

What is the default value of packaging in Maven?

Every Maven project has a packaging type. If it is not specified in the POM, then the default value "jar" would be used.

What is the default packaging in pom xml?

1 Answer. Show activity on this post. The current core packaging values are: pom, jar, maven-plugin, ejb, war, ear, rar, par.

What is Maven packaging?

https://maven.apache.org/pom.html. The packaging type required to be pom for parent and aggregation (multi-module) projects. These types define the goals bound to a set of lifecycle stages. For example, if packaging is jar, then the package phase will execute the jar:jar goal.


1 Answers

The current core packaging values are: pom, jar, maven-plugin, ejb, war, ear, rar, par.

https://maven.apache.org/pom.html#packaging

like image 60
Tomasz Nurkiewicz Avatar answered Sep 23 '22 05:09

Tomasz Nurkiewicz