CBI Deployment POM-Enhancer Maven Plugin

A Maven plugin to post-process pom.xml-files generated by Eclipse CBI aggregator

License

License

Categories

Categories

Maven Build Tools
GroupId

GroupId

tools.mdsd
ArtifactId

ArtifactId

pom-enhancer-maven-plugin
Last Version

Last Version

0.1.1
Release Date

Release Date

Type

Type

maven-plugin
Description

Description

CBI Deployment POM-Enhancer Maven Plugin
A Maven plugin to post-process pom.xml-files generated by Eclipse CBI aggregator
Project URL

Project URL

https://mdsd.tools
Source Code Management

Source Code Management

http://github.com/mdsd-tools/maven-build-pomenhancer/tree/master

Download pom-enhancer-maven-plugin

How to add to project

<plugin>
    <groupId>tools.mdsd</groupId>
    <artifactId>pom-enhancer-maven-plugin</artifactId>
    <version>0.1.1</version>
</plugin>

Dependencies

compile (2)

Group / Artifact Type Version
org.apache.maven.shared : file-management jar 3.0.0
org.apache.commons : commons-lang3 jar 3.9

provided (4)

Group / Artifact Type Version
org.apache.maven : maven-plugin-api jar 3.5.0
org.apache.maven : maven-core jar 3.5.0
org.apache.maven : maven-artifact jar 3.5.0
org.apache.maven.plugin-tools : maven-plugin-annotations jar 3.6.0

test (3)

Group / Artifact Type Version
org.apache.maven : maven-compat jar 3.5.0
junit : junit jar 4.12
org.apache.maven.plugin-testing : maven-plugin-testing-harness jar 3.3.0

Project Modules

There are no modules declared in this project.

Pom-Enhancer-Maven-Plugin

The pom-enhancer-maven-plugin is a maven plugin to support publishing tycho-built artifacts to m2 repositories, in particular, Maven Central.

The Eclipse CBI aggregator is able to convert a tycho-built updatesite into a Maven-compatible repository. Doing so, it generates a synthetic pom.xml for each artifact. In the process it converts bundle-dependencies to traditional maven dependencies.

In order to publish the artifacts to Maven Central the generated pom.xml is required to have certain information, which is not filled in by the CBI aggregator.

The pom-enhancer-maven-plugin post-processes the generated pom.xml-files and adds the missing meta-data based on a template pom.

The following excerpt shows an exemplary configuration. In this case, the multi-project root pom constitutes the pom-template.

    <build>
        <plugins>
            <plugin>
                <groupId>tools.mdsd</groupId>
                <artifactId>pom-enhancer-maven-plugin</artifactId>
                <version>0.1.0-SNAPSHOT</version>
                <executions>
                    <execution>
                        <goals>
                            <goal>enhance-pom</goal>
                        </goals>
                        <phase>package</phase>
                    </execution>
                </executions>
                <configuration>
                    <scanDir>
                        <fileSet>
                            <directory>${project.build.directory}/m2/final/</directory>
                            <includes>
                                <include>**/*.pom</include>
                            </includes>
                        </fileSet>
                    </scanDir>
                    <pomTemplate>${maven.multiModuleProjectDirectory}/pom.xml</pomTemplate>
                    <requiredFields>description,scm,licenses,name,url,developers</requiredFields>
                </configuration>
            </plugin>
        </plugins>
    </build>
tools.mdsd

Versions

Version
0.1.1
0.1.0