ep:package-java-fragment

Full name:

com.tibco.ep:ep-maven-plugin:2.2.1:package-java-fragment

Description:

Build a java fragment zip archive.

The packaging rules are as follows :-

  1. A mainifest file is created at /META-INF/MANIFEST.MF containing :-
    • Archiver-Version: Plexus Archiver
    • Built-By: build user
    • Build-Jdk: jdk version
    • Package-Title: project groupId and name
    • Package-Version: project version and buildNumber
    • Package-Vendor: project organization name (if set)
    • Main-Class: mainClass parameter (if set)
    • TIBCO-EP-Build-Product-Version: product version
  2. pom.xml copied to /META-INF/maven/groupId/artifactId/pom.xml
  3. pom.properties created in /META-INF/maven/groupId/artifactId/pom.properties
  4. The project's built java classes files are copied into /classes
  5. The project's resource files are copied into /
  6. Java runtime dependencies are copied into /dependencies/java/

The plexus archiver is used to create the archive via the maven assembly plugin.

Native archives (nar) are included - in this case a mapping is included from the nar AOL values (http://maven-nar.github.io/aol.html) to internal values.

The generated filename is <artifactId>-<version>-ep-java-fragment.zip

Attributes:

  • Requires a Maven project to be executed.
  • The goal is thread-safe and supports parallel builds.
  • Binds by default to the lifecycle phase: package.

Optional Parameters

Name Type Since Description
<ignoreLeaks> String[] 1.3.0

List of class names to ignore in leak detection. This is processed to a CSV value to include in unit testing and in jar manifest file.

Example use in pom.xml:

pom
<mainClass> String 1.0.0

Java Main class name. This will be added to the MANIFEST file.

Example use in pom.xml:

pom
<productHome> File 1.0.0

Product home location. This path is resolved in the following way :

  • If property com.tibco.ep.ep-maven.product is set, use that, else
  • If environment variable TIBCO_EP_HOME is set, use that, else
  • Use localrepository/../product-group/product-artifact/product-version (so default is ~/.m2/product-group/product-artifact/product-version)

Example use in pom.xml:

pom

Example use on commandline:

pom
User Property: com.tibco.ep.ep-maven.product

Parameter Details

<ignoreLeaks>

List of class names to ignore in leak detection. This is processed to a CSV value to include in unit testing and in jar manifest file.

Example use in pom.xml:

pom
  • Type: java.lang.String[]
  • Since: 1.3.0
  • Required: No

<mainClass>

Java Main class name. This will be added to the MANIFEST file.

Example use in pom.xml:

pom
  • Type: java.lang.String
  • Since: 1.0.0
  • Required: No

<productHome>

Product home location. This path is resolved in the following way :

  • If property com.tibco.ep.ep-maven.product is set, use that, else
  • If environment variable TIBCO_EP_HOME is set, use that, else
  • Use localrepository/../product-group/product-artifact/product-version (so default is ~/.m2/product-group/product-artifact/product-version)

Example use in pom.xml:

pom

Example use on commandline:

pom
  • Type: java.io.File
  • Since: 1.0.0
  • Required: No
  • User Property: com.tibco.ep.ep-maven.product