Apache

Docs Plugins

RAR Plugin 3.1.0 · Other versions

Builds a Resource Adapter Archive (RAR) from the project output for deployment to a J2EE server.

Source
Edit this page
Wrong?
Report a problem

Exclude the project jar in the RAR

By default, the generated JAR file is included in the RAR file. This behavior is controlled by the includeJar property. For instance, to exclude the generated JAR file from the RAR, set the includeJar property to false.

[...]
  <build>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-rar-plugin</artifactId>
        <version>3.1.0</version>
        <configuration>
           <includeJar>false</includeJar>
        </configuration>
      </plugin>
    </plugins>
  </build>
[...]

Then execute the plugin by invoking the rar:rar goal.

mvn rar:rar