'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

时间: 2024-08-05 03:08:41

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

The android gradle plugin version 2.3.0-beta2 is too old, please update to the latest version.

编译项目的时候,报如下错误: Error:(1, 1) A problem occurred evaluating project ':app'. > Failed to apply plugin [id 'com.android.application'] > Could not create plugin of type 'AppPlugin'. > The android gradle plugin version 2.3.0-beta2 is too old, please up

Android开发学习---template requires a minimum SDK version of at least 7,build target API version of 14

adt 22.6.3的bug 当adt更新到22.6.3,其编辑器中最低支持api7,即android 2.1,这里可能是google故意这么做的,也可能是其bug.其target sdk 和compile sdk最低都为14,即anroid 4.0,这里建议都设为最高的api 19,即android 4.4;否则会一直报错,类似错误如下: This template requires a minimum SDK version of at least 7, and the current mi

Problems found loading plugins: Plugin &quot;GlassFish Integration&quot; was not loaded: required plugin &quot;Java EE: EJB, JPA, Servlets&quot; is disabled.

idea启动报错:并且无法部署web项目 Problems found loading plugins: Plugin "GlassFish Integration" was not loaded: required plugin "Java EE: EJB, JPA, Servlets" is disabled. 原因是非法关闭idea导致的. 需要找到安装idea的文件夹扫描找到disabled_plugins.txt 删掉这个文件夹,重启即可 原文地址:htt

利用Swagger Maven Plugin生成Rest API文档

利用Swagger Maven Plugin生成Rest API文档 Swagger Maven Plugin This plugin enables your Swagger-annotated project to generate Swagger specs and customizable, templated static documents during the maven build phase. Unlike swagger-core, swagger-maven-plugin

maven plugin在tomcat 热部署

前言: 此处的方法适用于tomcat6 和 tomcat7,对于最新的tomcat8还没有进行过测试,有兴趣的同学可以自己测一下. 总共分为五步: 1.在tomcat中配置用户权限,即添加管理员帐号 2.在maven中添加server,配置tomcat的管理员帐号密码 3.在project中添加插件,以及maven中配置的server, 4.设置部署命令 5.进行部署 下面进行分步骤讲解: 一. 在tomcat中配置用户权限,即添加管理员帐号. 我们需要实现热部署,自然就需要通过maven操作t

Tomcat Maven Plugin使用

原文同步至:http://www.waylau.com/tomcat-maven-plugin/ Apache Tomcat 的 Maven 插件提供了 goal,实现将 Apache Tomcat servlet 容器整合进 WAR 项目.你可以通过 Apache Maven 运行 WAR 项目而无需部署 WAR 文件到 Apache Tomcat 的实例. 详见下面网站: Trunk (开发环境下) Version 2.2 (2013-11-11) Version 2.1 (2013-02-

maven plugin介绍

http://maven.apache.org/guides/mini/guide-configuring-plugins.html Guide to Configuring Plug-ins Generic Configuration Help Goal Configuring Parameters Mapping Simple Objects Mapping Complex Objects Mapping Collections Mapping Lists Mapping Maps Mapp

Spring Boot Maven Plugin -- repackage目标

简介 Spring Boot Maven Plugin插件提供spring boot在maven中的支持.允许你打包可运行的jar包或war包. 插件提供了几个maven目标和Spring Boot 应用一起工作.总的有: spring-boot:repackage spring-boot:run spring-boot:start and spring-boot:stop spring-boot:build-info repackage:创建一个自动可执行的jar或war文件.它可以替换常规的

Apache Tomcat Maven Plugin

groupId and Mojo name change Since version 2.0-beta-1 tomcat mojos has been renamed to tomcat6 and tomcat7 with the same goals. You must configure your pom to use this new groupId: <pluginManagement> <plugins> <plugin> <groupId>org