'version' contains an expression but should be a constant
2017-06-13 19:45
281 查看
[WARNING] Some problems were encountered while building the effective model for com.app:cache:jar:4.0.0 [WARNING] 'version' contains an expression but should be a constant. @ com.app:webapi:${myproject.version}, /usr/local/jenkins/webapi/pom.xml, line 8, column 14
[WARNING] Some problems were encountered while building the effective model for cy.nad.cyg:pay-web:war:3.0.2 [WARNING] 'version' contains an expression but should be a constant. @ cy.nad.cyg:pay:${myproject.version}, D:\workspace\idea\pay\pom.xml, line 7, column 14
这是因为Maven3 不允许出现version为非常量值的情况,我们就需要第三方插件来帮我们自动完成升级版本的工作。
参见下文:
http://mojo.codehaus.org/versions-maven-plugin/examples/update-child-modules.html
这个插件等于只需要我们在parent pom中变更一下版本号,然后执行
mvn -N versions:update-child-modules这个命令,就会将所有依赖的地方全部变成新的版本号,从而帮我们完成该问题。
http://www.cnblogs.com/beiyeren/p/4275032.html
相关文章推荐
- maven2 up to maven3的'version' contains an expression but should be a constant
- Maven3 package时报 'version' contains an expression but should be a constant
- mm_The type of the expression must be an array type but it resolved to List
- The type of the expression must be an array type but it resolved to Point
- 删除子窗体中的控件中的某些属性时出现"Selection contains a component introduced in an ancestor form which cannot be deleted."错误的解决方法
- Myeclipse 很多标签都有警告说should be an empty-element tag ??
- PLS-00363: expression 'v_s' cannot be used as an assignment target
- The field 'key' must be an object, but got undefined
- python3爬虫问题 POST data should be bytes or an iterable of bytes
- Template within template: why “`>>' should be `> >' within a nested template argument list” 解决方法
- Fundamental Book, but should be last read
- 删除子窗体中的控件中的某些属性时出现"Selection contains a component introduced in an ancestor form which cannot be deleted."错误的解决方法
- The filename 未命名.ipa in the package contains an invalid character(s). The valid characters are: A-Z, a-z, 0-9, dash, period, underscore, but the name cannot start with a dash, period, or underscore
- tomcat 7 WARNING: A context path must either be an empty string or start with a '/' and do not end with a '/'. The path [/] does not meet these criteria and has been changed to []
- React Native JSX value should be expression or a quoted JSX text.
- Layout state should be one of 100 but it is 10的问题
- Android问题-selection contains a component,button7,introduced in an ancestor and cannot be deleted.
- dic home should not be a file, but a directory!
- Fix SharePoint Server 2013 The SDDL string contains an invalid sid or a sid that cannot be translated. Issue
- Buttons in button bars should be borderless; use style="?android:attr/buttonBarButtonStyle" (and ?an