Flatten Maven Plugin

Simplify Maven project descriptor for publication

Лицензия

Лицензия

Apache-2.0
Категории

Категории

Maven Компиляция и сборка
Группа

Группа

com.carrotgarden.maven
Идентификатор

Идентификатор

flatten-maven-plugin
Последняя версия

Последняя версия

1.7.20200503171255
Дата

Дата

Тип

Тип

maven-plugin
Описание

Описание

Flatten Maven Plugin
Simplify Maven project descriptor for publication
Ссылка на сайт

Ссылка на сайт

https://github.com/random-maven/flatten-maven-plugin
Организация-разработчик

Организация-разработчик

CarrotGarden
Система контроля версий

Система контроля версий

https://github.com/random-maven/flatten-maven-plugin

Скачать flatten-maven-plugin

Как подключить последнюю версию

<plugin>
    <groupId>com.carrotgarden.maven</groupId>
    <artifactId>flatten-maven-plugin</artifactId>
    <version>1.7.20200503171255</version>
</plugin>

Зависимости

compile (7)

Идентификатор библиотеки Тип Версия
org.sonatype.plexus : plexus-build-api jar 0.0.7
org.apache.maven.shared : maven-dependency-analyzer jar 1.11.1
org.apache.maven : maven-plugin-api jar 3.5.4
org.apache.maven.plugin-tools : maven-plugin-annotations jar 3.5.2
org.apache.maven.plugins : maven-dependency-plugin jar 3.0.2
org.apache.maven : maven-core jar 3.5.4
org.apache.maven : maven-compat jar 3.5.4

Модули Проекта

Данный проект не имеет модулей.

Flatten Maven Plugin

Project License Travis Status Appvey Status Lines of Code

Production Release Development Release
Install
Central Bintray

Similar plugins

Plugin features

  • replaces published identity
  • resolves dependency version ranges
  • excludes dependencies based on scope
  • optionally includes transitive dependencies
  • removes pom.xml members based on xml tag names
  • switches project pom.xml with generated pom.xml.flatten

Maven goals

Plugin demo

Compare results

Usage examples

Test projects

flatten:flatten - produce deployment pom.xml.flatten

mvn clean package -P flatten
        <profile>
            <id>flatten</id>
            <build>
                <plugins>
                    <plugin>
                        <groupId>com.carrotgarden.maven</groupId>
                        <artifactId>flatten-maven-plugin</artifactId>
                        <configuration>

                            <!-- Control dependency resolution. -->
                            <performDependencyResolve>true</performDependencyResolve>
                            <includeScope>runtime</includeScope>
                            <excludeTransitive>false</excludeTransitive>

                            <!-- Remove these pom.xml members. -->
                            <performRemoveMembers>true</performRemoveMembers>
                            <memberRemoveList>
                                <member>parent</member>
                                <member>properties</member>
                                <member>distributionManagement</member>
                                <member>dependencyManagement</member>
                                <member>repositories</member>
                                <member>pluginRepositories</member>
                                <member>build</member>
                                <member>profiles</member>
                                <member>reporting</member>
                            </memberRemoveList>

                            <!-- Change published artifact identity. -->
                            <performOverrideIdentity>true</performOverrideIdentity>
                            <overrideArtifactId>${project.artifactId}</overrideArtifactId>

                            <!-- Switch project from pom.xml to pom.xml.flatten. -->
                            <performSwitchPomXml>true</performSwitchPomXml>
                            <packagingSwitchList>
                                <packaging>jar</packaging>
                            </packagingSwitchList>

                        </configuration>
                        <executions>
                            <!-- Activate "flatten:flatten" during "prepare-package" -->
                            <execution>
                                <goals>
                                    <goal>flatten</goal>
                                </goals>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
            </build>
        </profile>

Build yourself

cd /tmp
git clone git@github.com:random-maven/flatten-maven-plugin.git
cd flatten-maven-plugin
./mvnw.sh clean install -B -P skip-test
com.carrotgarden.maven

Версии библиотеки

Версия
1.7.20200503171255
1.6.20190428102750
1.5.20190427220340
1.4.20180402132337
1.3.20180210195103
1.2.20171206225205
1.1.20171204015648
1.0.20171129163300