1. 程式人生 > >'build.plugins.plugin.version' for com.pyx4me:proguard-maven-plugin is missing. @ line 42, column 12

'build.plugins.plugin.version' for com.pyx4me:proguard-maven-plugin is missing. @ line 42, column 12

‘build.plugins.plugin.version’ for com.pyx4me:proguard-maven-plugin is missing. @ line 42, column 12

執行Maven Install的時候提示如下警告資訊:

[WARNING] 
[WARNING] Some problems were encountered while building the effective model for xunge-middleware:xunge-middleware:war:0.0.1-SNAPSHOT
[WARNING] 'build.plugins.plugin.version'
for com.pyx4me:proguard-maven-plugin is missing. @ line 42, column 12 [WARNING] [WARNING] It is highly recommended to fix these problems because they threaten the stability of your build. [WARNING] [WARNING] For this reason, future Maven versions might no longer support building such malformed projects. [WARNING]

其實警告資訊忽略不管也可以的,不過這裡的警告是關於外掛版本的,最好還是指定版本:

<plugin>
                <groupId>com.pyx4me</groupId>
                <artifactId>proguard-maven-plugin</artifactId>
                **<version>2.0.4</version>**
                <executions>
                    <execution
>
<phase>package</phase> <goals> <goal>proguard</goal> </goals> </execution> </executions> <configuration> <obfuscate>true</obfuscate> <proguardInclude>${basedir}/proguard.conf</proguardInclude> <!-- 新增依賴,這裡你可以按你的需要修改 --> <libs> <lib>${java.home}/lib/rt.jar</lib> <lib>lib/jsp-api.jar</lib> <lib>lib/servlet-api.jar</lib> </libs> <addMavenDescriptor>false</addMavenDescriptor> </configuration> <dependencies> <!-- 使用4.8版本來混淆 --> <dependency> <groupId>net.sf.proguard</groupId> <artifactId>proguard</artifactId> <version>4.8</version> <scope>runtime</scope> </dependency> </dependencies> </plugin>

添加了<version>2.0.4</version>警告就消失了。

相關推薦

'build.plugins.plugin.version' for com.pyx4me:proguard-maven-plugin is missing. @ line 42, column 12

‘build.plugins.plugin.version’ for com.pyx4me:proguard-maven-plugin is missing. @ line 42, column 12 執行Maven Install的時候提示如下警告資訊:

maven專案jar包版本錯誤:'dependencies.dependency.version' for xxx:jar is missing. @ line xx, column xx

http://blog.csdn.net/qdqht2009/article/details/52352547 [ERROR] The project XXX (/home/×××/pom.xml) has 1 error [ERROR] ‘de

Maven錯誤:'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing

配置maven compiler的時候加上對應的Servlet版本號即可解決。 <plugin>     <groupId>org.apache.maven.plugins</groupId>     <artifactI

Failed to execute goal com.spotify:docker-maven-plugin:0.4.13:build (default-cli)...

當使用Docker來構建專案的時候,可能會出現一下異常: [ERROR] Failed to execute goal com.spotify:docker-maven-plugin:0.4.13:build (default-cli) on project springb: Exc

使用idfc-proguard-maven-plugin混淆優化Jave Web工程二

上篇文章說了下大致流程和我們要達到的效果。本文主要講一下詳細配置。 其實只要弄過一次,就覺得很簡單了。只需要配置兩個檔案。 pom.xml和${project.artifactId}-maven.pro 這兩個檔案即可。 其中pom.xml配置外掛的使用,真正的優化選項

Failed to com.spotify:docker-maven-plugin:HttpHostConnectException:Connect to localhost:2375

在用docker部署Spring Cloud的時候,pom.xml: <build> <plugins> <plugin>

com.spotify:docker-maven-plugin 報localhost:2375 Connection refused 錯誤正確解決方法

最近學習spring cloud,用到docker maven外掛編譯的時候遇到了Connection refused的錯誤。網上搜了很多解決方法都不管用。 執行命令docker-machine env,可以檢視docker的相關環境資訊,如下圖: 有d

Java maven 環境下使用proguard-maven-plugin 外掛混淆程式碼

相關連結  maven配置: <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http:/

'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing.

'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ line 264, column 16 plugin缺少版本號 加入解決 <ver

No cached version of com.android.tools.build:gradle:2.0.0 available for offline mode.

問題描述:在新安裝了AndroidStudio3.1.2之後,重新匯入專案後,在專案的編譯過程中一直提示以下問題: No cached version of com.android.tools.build:gradle:2.0.0 available for offline mode.

關於解決ASNo cached version of com.android.tools.build:aapt2:3.2.1-4818971 available for offline mode的方法

最近在更新as最新版之後無法編譯通過專案,就連新建的專案也不行。最先報錯缺少R檔案,我想新建的專案應該不會出現配置的問題,然後看bulid的報錯資訊,出現這個報錯。 我顯示百度找了,幾乎都是在settings->Build...->Gradle裡取消Offlin

Android dependency 'com.android.support:recyclerview-v7' has different version for the compile

Error:Execution failed for task ':app:preDebugBuild'. > Android dependency 'com.android.support:recyclerview-v7' has different version for the co

'com.android.tools.build:gradle:2.3.0' 版本報錯解決Plugin used. Try disabling Instant Run (or updating. ..

今天下載路由框架原始碼進行閱讀的時候,gradle 報錯了,“Plugin used. Try disabling Instant Run (or updating either the IDE or the Gradle plugin to the latest vers

No cached version of com.xxx.xxx available for offline mode

No cached version of com.xxx.xxx available for offline mode 作為一個開發小白,使用開發工具中,總會出現這樣或那樣的問題,一步一個坑,慢慢來,這就是學習。 使用AndroidStudio開發Android App的時候,I

Could not find any matches for com.tencent.mm.opensdk:wechat-sdk-android-without-mta:+ as no version

Long long ago , 專案中用到了微信分享,我是直接集成了微信的 sdk (沒有用友盟的微信分享),之前做這一功能的時候,按照微信的官方文件做的,沒有問題,也測試 OK 了,很順利; 但是,今天執行專案的時候,Android Studio 突然丟擲一

AndroidStudio 中的 Android plugin version與Gradle version、SDK Build Tools之間的關係

先推薦一下google在中國合法且訪問迅速的網站 google開發者網站(中國) 首先 android plugin version 理解成gradle 的android 外掛版本 gradle versin 就是gradle自己本身的版本

Maven出現錯誤No plugin found for prefix 'jetty' in the current

jetty jpress Maven出現錯誤No plugin found for prefix ‘jetty‘ in the current project and in the plugin groups的問題解決只需在maven的setting.xml文件上加入如下節點:<pluginGr

requirejs r.js 打包報錯paths fallback not supported in optimizer please provide a build config path override for jquery

vid log 技術 optimizer ges mage all config support 錯誤原因: 改為: requirejs r.js 打包報錯paths fallback not supported in optimizer please provide

關於check the manual that corresponds to your MySQL server version for the right syntax to use near

mysql今天在更新表的時候一直提示check the manual that corresponds to your MySQL server version for the right syntax to use near問題排查很久,數據庫版本沒有問題,語法也沒有問題,卻一直報錯最後排查發現是關鍵詞沖突

MySQL check the manual that corresponds to your MySQL server version for the right syntax錯誤

bat sqli jdbc call wrap base defaults org dsta 今配置Mybatis框架測試的時候報了這個錯:以下是錯誤的信息:org.apache.ibatis.exceptions.PersistenceException: ### Err