Skip to content
George Gastaldi edited this page Dec 17, 2021 · 7 revisions

Welcome to the jboss-parent-pom wiki!

These pages provide some basic information about what the jboss parent POM is, and how you can use it.

What is it?

The JBoss parent POM provides default configuration for JBoss Maven builds.

  • Default versions for the most commonly used Maven plugins
  • Manifest configuration for the jar and assembly plugins
  • Profiles for generating source jars, and enforcing a minimum Maven version
  • Distribution Management and other required configuration for deploying to the JBoss.org Maven repositories

How to use it?

Start out by adding the parent configuration to your pom.

<parent>
    <groupId>org.jboss</groupId>
    <artifactId>jboss-parent</artifactId>
    <version>39</version>
</parent>

Depending on the needs of your build, you can customize the plugins and other settings using properties. For example, to use a specific version of the maven-compiler-plugin, just set a property.

<properties>
    <version.compiler.plugin>2.3</version.compiler.plugin>
</properties>

Or set the JDK source and target level used in the build.

<properties>
    <maven.compiler.target>1.6</maven.compiler.target>
    <maven.compiler.source>1.6</maven.compiler.source>
</properties>

For the full list of properties, refer to the POM itself.

Clone this wiki locally