DevOps / Maven Interview questions
How do I specify packaging/distributable format in Maven?
The packaging for your project can be specified via the POM element <packaging>.
Some of the valid packaging values are jar, war, ear and pom. If no packaging value has been specified, it will default to jar.
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> ... <packaging>war</packaging> ... </project>
More Related questions...