You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "S Boot (JIRA)" <ji...@apache.org> on 2017/05/04 19:50:04 UTC
[jira] [Updated] (MASSEMBLY-853) jar which are not transitive is
not excluding.
[ https://issues.apache.org/jira/browse/MASSEMBLY-853?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
S Boot updated MASSEMBLY-853:
-----------------------------
Description:
So here is the thing what I am trying is :
I have parent pom and I am using maven-assembly-plugin in that like below.
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<configuration>
<descriptors>
<descriptor>src/main/assembly/domainApi.xml</descriptor>
</descriptors>
</configuration>
<executions>
<execution>
<id>dist-assembly</id> <!-- this is used for inheritance merges -->
<phase>package</phase> <!-- bind to the packaging phase -->
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
</plugin>
I also have assembley file which is listed below.
<assembly>
<id>domainApi</id>
<formats>
<format>jar</format>
</formats>
<includeBaseDirectory>false</includeBaseDirectory>
<fileSets>
<fileSet>
<directory>target/classes/com/cac/customer/api</directory>
<outputDirectory>.</outputDirectory>
<includes>
<include>*.class</include>
</includes>
</fileSet>
</fileSets>
<dependencySets>
<dependencySet>
<!-- <outputDirectory>target/classes/com/cac/customer/api </outputDirectory>
<outputFileNameMapping>customerHub-1.0.0-SNAPSHOT-api.jar </outputFileNameMapping> -->
<useProjectArtifact>false</useProjectArtifact>
<useTransitiveDependencies>false</useTransitiveDependencies>
<useProjectAttachments>false</useProjectAttachments>
<unpack>false</unpack>
</dependencySet>
</dependencySets>
</assembly>
Now while building assembley jar I am getting only .class file which I want exactly and pushing this jar
to nexus.
While using this jar with below notation it also download some other jar which is not detect by <useTransitiveDependencies>
Please suggest whats the way to exclude parent jar which are not TransitiveDependencies.
was:
So here is the thing what I am trying is :
I have parent pom and I am using maven-assembly-plugin in that like below.
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<configuration>
<descriptors>
<descriptor>src/main/assembly/domainApi.xml</descriptor>
</descriptors>
</configuration>
<executions>
<execution>
<id>dist-assembly</id> <!-- this is used for inheritance merges -->
<phase>package</phase> <!-- bind to the packaging phase -->
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
</plugin>
I also have assembley file which is listed below.
<assembly>
<id>domainApi</id>
<formats>
<format>jar</format>
</formats>
<includeBaseDirectory>false</includeBaseDirectory>
<fileSets>
<fileSet>
<directory>target/classes/com/cac/customer/api</directory>
<outputDirectory>.</outputDirectory>
<includes>
<include>*.class</include>
</includes>
<dependencySets>
<dependencySet>
<!-- <outputDirectory>target/classes/com/cac/customer/api </outputDirectory>
<outputFileNameMapping>customerHub-1.0.0-SNAPSHOT-api.jar </outputFileNameMapping> -->
<useProjectArtifact>false</useProjectArtifact>
<useTransitiveDependencies>false</useTransitiveDependencies>
<useProjectAttachments>false</useProjectAttachments>
<unpack>false</unpack>
</dependencySet>
</dependencySets>
</assembly>
</fileSet>
</fileSets>
Now while building assembley jar I am getting only .class file which I want exactly and pushing this jar
to nexus.
While using this jar with below notation it also download some other jar which is not detect by <useTransitiveDependencies>
Please suggest whats the way to exclude parent jar which are not TransitiveDependencies.
> jar which are not transitive is not excluding.
> ----------------------------------------------
>
> Key: MASSEMBLY-853
> URL: https://issues.apache.org/jira/browse/MASSEMBLY-853
> Project: Maven Assembly Plugin
> Issue Type: Bug
> Components: maven-archiver
> Affects Versions: 2.4, 3.0.0
> Reporter: S Boot
>
> So here is the thing what I am trying is :
> I have parent pom and I am using maven-assembly-plugin in that like below.
> <plugin>
> <artifactId>maven-assembly-plugin</artifactId>
> <configuration>
>
> <descriptors>
> <descriptor>src/main/assembly/domainApi.xml</descriptor>
> </descriptors>
> </configuration>
> <executions>
> <execution>
> <id>dist-assembly</id> <!-- this is used for inheritance merges -->
> <phase>package</phase> <!-- bind to the packaging phase -->
> <goals>
> <goal>single</goal>
> </goals>
> </execution>
> </executions>
> </plugin>
> I also have assembley file which is listed below.
> <assembly>
> <id>domainApi</id>
> <formats>
> <format>jar</format>
> </formats>
>
> <includeBaseDirectory>false</includeBaseDirectory>
> <fileSets>
> <fileSet>
> <directory>target/classes/com/cac/customer/api</directory>
> <outputDirectory>.</outputDirectory>
> <includes>
> <include>*.class</include>
> </includes>
> </fileSet>
> </fileSets>
>
> <dependencySets>
> <dependencySet>
> <!-- <outputDirectory>target/classes/com/cac/customer/api </outputDirectory>
> <outputFileNameMapping>customerHub-1.0.0-SNAPSHOT-api.jar </outputFileNameMapping> -->
> <useProjectArtifact>false</useProjectArtifact>
> <useTransitiveDependencies>false</useTransitiveDependencies>
> <useProjectAttachments>false</useProjectAttachments>
> <unpack>false</unpack>
> </dependencySet>
> </dependencySets>
> </assembly>
>
> Now while building assembley jar I am getting only .class file which I want exactly and pushing this jar
> to nexus.
> While using this jar with below notation it also download some other jar which is not detect by <useTransitiveDependencies>
> Please suggest whats the way to exclude parent jar which are not TransitiveDependencies.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)