Coder Social home page Coder Social logo

attribution-maven-plugin's Introduction

attribution-maven-plugin

The attribution-maven-plugin is a Maven Plugin that creates author's attribution for project dependencies.

Usage

The plugin contains 2 goals

  • generate - the attribution file is generated per project/module;
  • aggregate - one attribution file is aggregated for all subprojects/submodules;

By default the resulting file is the target/attribution.txt.

Both goals are thread safe and they share the following configuration.

Configuration properties

Property name User property Default value Description
copyrightPattern attribution.copyrightPattern (?i)^([\s/*]*)(((\(c\))|(copyright))\s+\S[^;{}]*)$ Customizes the pattern for finding the "attribution lines".
copyrightPatternGroupIndex attribution.copyrightPatternGroupIndex When a custom copyrightPattern is configured, then this parameter allows to specify which capture group is used. By default, the whole pattern is used (group==0) when the custom pattern is configured. Capture group 2 is used otherwise (i.e. for the default pattern).
exclusionPatterns Specifies list of copyright exclusion patterns.
exclusionPatternsFile attribution.exclusionPatternsFile Parameter which can specify a file in which exclusion patterns are listed. File should be in UTF-8 with a pattern per line.
outputFile attribution.outputFile ${project.build.directory}/attribution.txt Specifies the destination attribution file.
parallelism attribution.parallelism (#available-processors) Configures the parallelism level. By default the number of available processors is used. Parallelism says (1) how many new threads is used for reading source archives and also (2) how many new threads is used for search the copyright notices.
serviceTimeoutMinutes attribution.serviceTimeoutMinutes 60 Maximal wait time for finishing reading source JARs and searching for patterns in the found source files.
skip attribution.skip false Specifies whether the plugin logic should be skipped. The plugin (since version 1.2) creates an empty outputFile if the execution is skipped.

The pom.xml

<plugin>
    <groupId>com.hazelcast.maven</groupId>
    <artifactId>attribution-maven-plugin</artifactId>
    <version>${maven.attribution-maven-plugin}</version>
    <executions>
        <execution>
            <id>attribution</id>
            <goals>
                <goal>generate</goal>
            </goals>
        </execution>
    </executions>
</plugin>

The command-line

mvn com.hazelcast.maven:attribution-maven-plugin:1.0.1:aggregate

Building project

mvn install
mvn -Prun-its verify -DskipTests

attribution-maven-plugin's People

Contributors

dependabot[bot] avatar devopshazelcast avatar jackpgreen avatar kwart avatar

Watchers

 avatar  avatar  avatar  avatar

attribution-maven-plugin's Issues

Move off maven-artifact-transfer use

As I see, plugin does not support Maven 3.0.x anymore, so there is no reason to use MAT that is a ratnest and unsupported. If help needed, I can provide a PR.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.