Skip to content

Commit f538647

Browse files
committed
Do not generate a separate 'cli' jar.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/codec/trunk@1812329 13f79535-47bb-0310-9956-ffa450edef68
1 parent f5d152e commit f538647

1 file changed

Lines changed: 1 addition & 88 deletions

File tree

pom.xml

Lines changed: 1 addition & 88 deletions
Original file line numberDiff line numberDiff line change
@@ -266,18 +266,7 @@ limitations under the License.
266266
</configuration>
267267
</plugin>
268268

269-
<!-- Exclude cli from source jar -->
270-
<plugin>
271-
<groupId>org.apache.maven.plugins</groupId>
272-
<artifactId>maven-source-plugin</artifactId>
273-
<configuration>
274-
<excludes>
275-
<exclude>**/cli/**</exclude>
276-
</excludes>
277-
</configuration>
278-
</plugin>
279-
280-
<!-- Exclude cli from binary jar and add Java 9 Automatic-Module-Name -->
269+
<!-- Add Java 9 Automatic-Module-Name -->
281270
<plugin>
282271
<artifactId>maven-jar-plugin</artifactId>
283272
<configuration>
@@ -287,84 +276,8 @@ limitations under the License.
287276
<Automatic-Module-Name>${commons.module.name}</Automatic-Module-Name>
288277
</manifestEntries>
289278
</archive>
290-
<excludes>
291-
<exclude>**/cli/**</exclude>
292-
</excludes>
293279
</configuration>
294280
</plugin>
295-
296-
<!-- Create CLI jar -->
297-
<plugin>
298-
<artifactId>maven-antrun-plugin</artifactId>
299-
<executions>
300-
<execution>
301-
<phase>package</phase>
302-
<configuration>
303-
<target>
304-
<!--
305-
Create the binary cli jar, which will be added to the binary zip/tgz,
306-
but not deployed independently to Maven
307-
-->
308-
<jar destfile="target/commons-codec-cli-${project.version}.jar">
309-
<metainf dir="${basedir}" includes="NOTICE.txt,LICENSE.txt" />
310-
<manifest>
311-
<attribute name="Extension-Name" value="org.apache.commons.net" />
312-
<attribute name="Specification-Title" value="${project.name}" />
313-
<attribute name="Implementation-Title" value="${project.name}" />
314-
<attribute name="Implementation-Vendor" value="${project.organization.name}" />
315-
<attribute name="Implementation-Version" value="${project.version}" />
316-
<attribute name="Implementation-Vendor-Id" value="org.apache" />
317-
<attribute name="Implementation-Build" value="${implementation.build}"/>
318-
<attribute name="X-Compile-Source-JDK" value="${maven.compiler.source}" />
319-
<attribute name="X-Compile-Target-JDK" value="${maven.compiler.target}" />
320-
<attribute name="Main-Class" value="org.apache.commons.codec.cli.Digest" />
321-
</manifest>
322-
<fileset dir="target/classes" includes="org/apache/commons/codec/cli/**"/>
323-
<fileset dir="target/classes" includes="org/apache/commons/codec/BinaryDecoder.class"/>
324-
<fileset dir="target/classes" includes="org/apache/commons/codec/BinaryEncoder.class"/>
325-
<fileset dir="target/classes" includes="org/apache/commons/codec/Charsets.class"/>
326-
<fileset dir="target/classes" includes="org/apache/commons/codec/Decoder.class"/>
327-
<fileset dir="target/classes" includes="org/apache/commons/codec/DecoderException.class"/>
328-
<fileset dir="target/classes" includes="org/apache/commons/codec/Encoder.class"/>
329-
<fileset dir="target/classes" includes="org/apache/commons/codec/EncoderException.class"/>
330-
<fileset dir="target/classes" includes="org/apache/commons/codec/binary/Hex.class"/>
331-
<fileset dir="target/classes" includes="org/apache/commons/codec/digest/DigestUtils.class"/>
332-
<fileset dir="target/classes" includes="org/apache/commons/codec/digest/MessageDigestAlgorithms.class"/>
333-
</jar>
334-
</target>
335-
</configuration>
336-
<goals>
337-
<goal>run</goal>
338-
</goals>
339-
</execution>
340-
</executions>
341-
</plugin>
342-
343-
<!-- Attaches the cli JAR to the Maven lifecycle
344-
to ensure it will be signed and deployed as normal -->
345-
<plugin>
346-
<groupId>org.codehaus.mojo</groupId>
347-
<artifactId>build-helper-maven-plugin</artifactId>
348-
<executions>
349-
<execution>
350-
<id>attach-artifacts</id>
351-
<phase>package</phase>
352-
<goals>
353-
<goal>attach-artifact</goal>
354-
</goals>
355-
<configuration>
356-
<artifacts>
357-
<artifact>
358-
<file>target/commons-codec-cli-${project.version}.jar</file>
359-
<type>jar</type>
360-
<classifier>cli</classifier>
361-
</artifact>
362-
</artifacts>
363-
</configuration>
364-
</execution>
365-
</executions>
366-
</plugin>
367-
368281
<plugin>
369282
<groupId>org.apache.maven.plugins</groupId>
370283
<artifactId>maven-surefire-plugin</artifactId>

0 commit comments

Comments
 (0)