You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Karl Heinz Marbaise (JIRA)" <ji...@apache.org> on 2018/12/21 14:55:00 UTC
[jira] [Commented] (MSHADE-310) maven-shade-plugin version 3.2.0
with pluginManagement tag does not produce jar-with-dependencies file
[ https://issues.apache.org/jira/browse/MSHADE-310?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16726793#comment-16726793 ]
Karl Heinz Marbaise commented on MSHADE-310:
--------------------------------------------
As I already wrote on SO you need to execute the plugin outside the pluginManagement. pluginManagement is only for definition and configuration but NOT for execution....
> maven-shade-plugin version 3.2.0 with pluginManagement tag does not produce jar-with-dependencies file
> -------------------------------------------------------------------------------------------------------
>
> Key: MSHADE-310
> URL: https://issues.apache.org/jira/browse/MSHADE-310
> Project: Maven Shade Plugin
> Issue Type: Bug
> Affects Versions: 3.2.0
> Environment: windows, intellije IDEA, maven
> Reporter: ali akbar Shahriari Garaei
> Priority: Major
> Labels: maven, newbie, windows
>
> When I use maven-shade-plugin version 3.2.0 with pluginManagement tag as below
> {code:java}
> <pluginManagement>
> <plugins>
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-shade-plugin</artifactId>
> <!-- original version 2.1 -->
> <version>3.2.0</version>
> <configuration>
> <shadedArtifactAttached>true</shadedArtifactAttached>
> <shadedClassifierName>jar-with-dependencies</shadedClassifierName>
> <filters>
> <filter>
> <artifact>*:*</artifact>
> <excludes>
> <exclude>jdbc.properties_vb</exclude>
> <exclude>META-INF/*.SF</exclude>
> <exclude>META-INF/*.DSA</exclude>
> <exclude>META-INF/*.RSA</exclude>
> <exclude>META-INF/LICENSE*</exclude>
> <exclude>META-INF/license.txt</exclude>
> <exclude>META-INF/NOTICE*</exclude>
> <exclude>META-INF/notice.txt</exclude>
> <exclude>LICENSE</exclude>
> <exclude>license.txt</exclude>
> <exclude>NOTICE</exclude>
> <exclude>overview.html</exclude>
> <exclude>readme.txt</exclude>
> <exclude>testpool.jocl</exclude>
> <exclude>XPP3_1.1.4c_MIN_VERSION</exclude>
> </excludes>
> </filter>
> </filters>
> <transformers>
> <transformer
> implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
> <manifestEntries>
> <Main-Class>be.baba.tar.upload.Run</Main-Class>
> </manifestEntries>
> </transformer>
> </transformers>
> </configuration>
> <executions>
> <execution>
> <phase>package</phase>
> <goals>
> <goal>shade</goal>
> </goals>
> </execution>
> </executions>
> </plugin>
> </plugins>
> </pluginManagement>{code}
> does not produce jar-with-dependencies file in the target folder of my project.
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)