无法加载MainifestResourceTransformer
内容导读
互联网集市收集整理的这篇技术教程文章主要介绍了无法加载MainifestResourceTransformer,小编现在分享给大家,供广大互联网技能从业者学习和参考。文章包含1733字,纯文字阅读大概需要3分钟。
内容图文
![无法加载MainifestResourceTransformer](/upload/InfoBanner/zyjiaocheng/1239/6c43303f6c8d4c969bf7090abfcfff1b.jpg)
Cannot load implementation hint ‘org.apache.maven.plugins.shade.resource.MainifestResourceTransformer‘
解决办法:
http://maven.apache.org/plugins/maven-shade-plugin/examples/resource-transformers.html
官网例子:
1 Setting Manifest Entries with the ManifestResourceTransformer 2 The ManifestResourceTransformer allows existing entries in the MANIFEST to be replaced and new entries added. 3 4 For example, the following sample sets 5 6 the Main-Class entry to the value of the app.main.class property, 7 the X-Compile-Source-JDK entry to the value of the maven.compile.source property and 8 the X-Compile-Target-JDK entry to the value of the maven.compile.target property. 9 < project > 10 ... 11 < build > 12 < plugins > 13 < plugin > 14 < groupId >org.apache.maven.plugins</groupId>15<artifactId>maven-shade-plugin</artifactId>16<version>2.4.3</version>17<executions>18<execution>19<phase>package</phase>20<goals>21<goal>shade</goal>22</goals>23<configuration>24<transformers>25<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">26<manifestEntries>27<Main-Class>${app.main.class}</Main-Class>28<X-Compile-Source-JDK>${maven.compile.source}</X-Compile-Source-JDK>29<X-Compile-Target-JDK>${maven.compile.target}</X-Compile-Target-JDK>30</manifestEntries>31</transformer>32</transformers>33</configuration>34</execution>35</executions>36</plugin>37</plugins>38</build>39 ... 40</project>
原文:http://www.cnblogs.com/moonpool/p/6119369.html
内容总结
以上是互联网集市为您收集整理的无法加载MainifestResourceTransformer全部内容,希望文章能够帮你解决无法加载MainifestResourceTransformer所遇到的程序开发问题。 如果觉得互联网集市技术教程内容还不错,欢迎将互联网集市网站推荐给程序员好友。
内容备注
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 gblab@vip.qq.com 举报,一经查实,本站将立刻删除。
内容手机端
扫描二维码推送至手机访问。