maven-universal-module-aggregator-plugin

module aggregator

License

License

Categories

Categories

Maven Build Tools
GroupId

GroupId

com.github.sarahbuisson
ArtifactId

ArtifactId

maven-universal-module-aggregator-plugin
Last Version

Last Version

0.3
Release Date

Release Date

Type

Type

maven-plugin
Description

Description

maven-universal-module-aggregator-plugin
module aggregator
Project URL

Project URL

http://pitest.org
Source Code Management

Source Code Management

https://github.com/sarahBuisson/maven-universal-module-aggregator-plugin

Download maven-universal-module-aggregator-plugin

How to add to project

<plugin>
    <groupId>com.github.sarahbuisson</groupId>
    <artifactId>maven-universal-module-aggregator-plugin</artifactId>
    <version>0.3</version>
</plugin>

Dependencies

compile (6)

Group / Artifact Type Version
org.apache.maven : maven-plugin-api jar 2.2.1
org.apache.maven.reporting : maven-reporting-api jar 3.0
org.apache.maven.reporting : maven-reporting-impl jar 2.0.4.3
org.apache.maven : maven-project jar 2.2.1
org.antlr : stringtemplate jar 3.2
org.apache.maven : maven-core jar 3.3.9

provided (2)

Group / Artifact Type Version
org.apache.maven.plugin-tools : maven-plugin-annotations jar 3.4
org.slf4j : slf4j-api jar 1.7.12

test (2)

Group / Artifact Type Version
org.apache.maven.shared : maven-plugin-testing-harness jar 1.1
org.apache.maven.shared : maven-verifier jar 1.5

Project Modules

There are no modules declared in this project.

maven-universal-module-aggregator-plugin

maven plugin who aggregate files from the module to the target of the parents

##How to use:

add in the pom of your parent:

<build>
    <plugins>

        <plugin>
            <groupId>com.github.sarahbuisson</groupId>
            <artifactId>maven-universal-module-aggregator-plugin</artifactId>
            <version>LATEST</version>
            <configuration>
                <filesToAggregateModulePath>someDir</filesToAggregateModulePath>
           <!--... --> 
            </configuration>
        </plugin>
    </plugins>
</build>

call the goal you want to aggregate, then the universal-module-aggregator:aggregate:

mvn universal-module-aggregator:aggregate

you will find in the parent target a copy of all the files of all your module:

cd target;

>module1
>    target
>        someDir
>            fileModule1.html
>module2
>    target
>        someDir
>            fileModule2.html
>target
>    someDir
>        index.html
>        module1:
>            fileModule1.html
>        module2:
>            fileModule2.html

##configuration options

filesToAggregateModulePath: Mandatory

directory in the modules's target where the files will be taken.

reportsDirectory: Default filesToAggregateModulePath

directory in the target parent where the files of the modules will be put. By default take the same value as filesToAggregateModulePath

aggregateTemplatePath Optional path in

copyModules Default:true

copy the modules into the target parent configuration example:

     <configuration>
                            <reportsDirectory>pit-reports</reportsDirectory>
                            
                        </configuration>

Versions

Version
0.3
0.2