Solved

perforce and maven release-plugin

Posted on 2010-11-15
8
819 Views
Last Modified: 2012-05-10
I'm using a flat directory structure and version 2.1 of the release plugin.  When I do a release:prepare the plugin updates the pom versions and checks them in, builds all the projects, but fails when it tries to tag the code.  If I run a prepare:release on a single sub-project it labels fine.  The error I'm seeing when I run from the aggregator:
BUILD FAILURE
[INFO] -------------------------------------
[INFO] Unable to tag SCM
Provider message:
Tag failed
Command output:
Error in label specification.
Mapping '/...' is not under '//depot/...'.

Has anyone seen this?  Any help would be appreciated.
thanks
0
Comment
Question by:buckrodger
  • 4
  • 4
8 Comments
 
LVL 17

Expert Comment

by:sweetfa2
ID: 34139640
It appears to be presuming that you need a non-flat structure.
0
 

Author Comment

by:buckrodger
ID: 34139731
But I should be able to get this to work with a flat structure.  Any Ideas?

thanks
0
 
LVL 17

Expert Comment

by:sweetfa2
ID: 34141669
Do you have the relativeURL field in the parent pom definition:?
0
 

Author Comment

by:buckrodger
ID: 34145842
Do you mean "relativePath" ?  I'm not familiar with the relativeURL.  I do use the relativePath.
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 17

Expert Comment

by:sweetfa2
ID: 34148407
Yep, I mean relativePath.
0
 
LVL 17

Expert Comment

by:sweetfa2
ID: 34148425
I will try out a similiar structure against svn today and see how it behaves.
0
 

Accepted Solution

by:
buckrodger earned 0 total points
ID: 34150397
I resolved this by adding the path in the scm tag.  I was initially setting the P4Client to the workspace but the view was defaulting incorrectly.
0
 

Author Closing Comment

by:buckrodger
ID: 34182488
I resolved it
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
Computer science students often experience many of the same frustrations when going through their engineering courses. This article presents seven tips I found useful when completing a bachelors and masters degree in computing which I believe may he…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
This video teaches viewers about errors in exception handling.

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now