Solved

perforce and maven release-plugin

Posted on 2010-11-15
8
818 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
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 
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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
If you’re thinking to yourself “That description sounds a lot like two people doing the work that one could accomplish,” you’re not alone.
The viewer will learn how to implement Singleton Design Pattern in Java.
This video teaches viewers about errors in exception handling.

706 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

20 Experts available now in Live!

Get 1:1 Help Now