Results 1 to 1 of 1
- 12-17-2012, 01:32 PM #1
Member
- Join Date
- Nov 2012
- Posts
- 5
- Rep Power
- 0
Maven 2 to Maven 3 up-gradation: Issue on version attribute
Hi,
This problem faced while migrated the code from maven 2 to maven 3.
I have a master POM and project pom structure.
In project pom (means a project having their own pom which inherits some properties form master pom)
version uses expression which is defined in master pom.
Earlier we were using Maven 2, and there was not any issue,
until we migrated to maven3.
Warning coming is-
[WARNING] Some problems were encountered while building the effective model for com.mycompany.myservice:myservice:jar:MyBranch-1.0
[WARNING] 'version' contains an expression but should be a constant. @ com.mycompany.myservice:myservice:${myserviceVersi on}, pom.xml line 11, column 14
[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.
Following is the structure in project pom--
"myserviceVersion" is defined in master pom as follows--Java Code:<name>MyProject</name> <groupId>com.mycompany.myservice</groupId> <artifactId>myservice</artifactId> <version>${myserviceVersion}</version> <packaging>jar</packaging>
Got this link where it shows that similar issue is in OPEN state.Java Code:<myserviceVersion>${BranchUsed}-${BranchVersion}</myserviceVersion> <BranchUsed>MyBranch</BranchUsed> <BranchVersion>1.0</BranchVersion>
JIRA
Need a thought if we have any workaround for this?
Thanks,
Arfeen.
Similar Threads
-
Dynamic version control in Maven
By szms in forum Apache MavenReplies: 3Last Post: 07-26-2012, 09:29 AM -
jsf and maven
By j2me64 in forum JavaServer Faces (JSF)Replies: 0Last Post: 02-10-2012, 11:17 AM -
Maven plugin for eclipse + "Updating Maven Dependencies" problem??
By sbutt in forum EclipseReplies: 0Last Post: 04-20-2009, 06:26 PM -
Maven
By Java Tutorial in forum Java TutorialReplies: 0Last Post: 06-02-2008, 12:58 PM -
Maven or ANT
By goldhouse in forum Reviews / AdvertisingReplies: 0Last Post: 08-09-2007, 08:01 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks