empty source maven plugin

The Maven Source Plugin creates a empty JAR archive of the source files of the current project.

License

License

Categories

Categories

Maven Build Tools
GroupId

GroupId

com.github.ichelon
ArtifactId

ArtifactId

empty-source-maven-plugin
Last Version

Last Version

1.0.0.RELEASE
Release Date

Release Date

Type

Type

maven-plugin
Description

Description

empty source maven plugin
The Maven Source Plugin creates a empty JAR archive of the source files of the current project.
Project URL

Project URL

https://github.com/ichelon/empty-source-maven-plugin
Source Code Management

Source Code Management

https://github.com/ichelon/empty-source-maven-plugin

Download empty-source-maven-plugin

How to add to project

<plugin>
    <groupId>com.github.ichelon</groupId>
    <artifactId>empty-source-maven-plugin</artifactId>
    <version>1.0.0.RELEASE</version>
</plugin>

Dependencies

compile (3)

Group / Artifact Type Version
org.apache.maven.plugins : maven-source-plugin jar 3.1.0
org.apache.maven : maven-plugin-api jar 2.0
org.codehaus.plexus : plexus-utils jar 3.0.8

provided (1)

Group / Artifact Type Version
org.apache.maven.plugin-tools : maven-plugin-annotations jar 3.2

Project Modules

There are no modules declared in this project.

empty source maven plugin

重写maven源代码插件maven-plugin-plugin,导出一个空的源码包。 由于oss的验证要求,上传的jar文件必须包含源代码, 因此编写此插件帮助跳过sources检查。

例子

<build>
    <plugins>
        <plugin>
            <groupId>com.github.ichelon</groupId>
            <artifactId>empty-source-maven-plugin</artifactId>
            <version>1.0.0.RELEASE</version>
            <configuration>
                <attach>true</attach>
                <forceCreation>true</forceCreation>
            </configuration>
            <executions>
                <execution>
                    <phase>compile</phase>
                    <goals>
                        <goal>jar-no-fork</goal>
                    </goals>
                </execution>
            </executions>
        </plugin>
    </plugins>
</build>

Versions

Version
1.0.0.RELEASE