Include everything in pmd-dist
- Include both the pmd-cli module and the completion script
This commit is contained in:
@ -47,6 +47,28 @@
|
||||
</arguments>
|
||||
</configuration>
|
||||
</plugin>
|
||||
|
||||
<plugin>
|
||||
<groupId>org.codehaus.mojo</groupId>
|
||||
<artifactId>build-helper-maven-plugin</artifactId>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>add-completion-artifact</id>
|
||||
<goals>
|
||||
<goal>attach-artifact</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<artifacts>
|
||||
<artifact>
|
||||
<file>${project.build.directory}/pmd_completion.sh</file>
|
||||
<type>sh</type>
|
||||
<classifier>completion</classifier>
|
||||
</artifact>
|
||||
</artifacts>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
<dependencies>
|
||||
|
@ -134,6 +134,14 @@
|
||||
<artifactId>pmd-cli</artifactId>
|
||||
<version>${project.version}</version>
|
||||
</dependency>
|
||||
<!-- include bash/zsh completions -->
|
||||
<dependency>
|
||||
<groupId>net.sourceforge.pmd</groupId>
|
||||
<artifactId>pmd-cli</artifactId>
|
||||
<version>${project.version}</version>
|
||||
<type>sh</type>
|
||||
<classifier>completion</classifier>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>net.sourceforge.pmd</groupId>
|
||||
<artifactId>pmd-core</artifactId>
|
||||
|
@ -54,8 +54,25 @@
|
||||
</fileSets>
|
||||
|
||||
<dependencySets>
|
||||
<!-- shell completion goes to shell/ -->
|
||||
<dependencySet>
|
||||
<scope>runtime</scope>
|
||||
<includes>
|
||||
<include>net.sourceforge.pmd:pmd-cli:sh:completion:*</include>
|
||||
</includes>
|
||||
<outputFileNameMapping>pmd-completion.sh</outputFileNameMapping>
|
||||
<outputDirectory>shell</outputDirectory>
|
||||
<directoryMode>0755</directoryMode>
|
||||
<fileMode>0644</fileMode>
|
||||
<useProjectArtifact>false</useProjectArtifact>
|
||||
</dependencySet>
|
||||
|
||||
<!-- jar dependencies go to lib/ -->
|
||||
<dependencySet>
|
||||
<scope>runtime</scope>
|
||||
<excludes>
|
||||
<exclude>net.sourceforge.pmd:pmd-cli:sh:completion:*</exclude>
|
||||
</excludes>
|
||||
<outputDirectory>lib</outputDirectory>
|
||||
<directoryMode>0755</directoryMode>
|
||||
<fileMode>0644</fileMode>
|
||||
|
Reference in New Issue
Block a user