Maven dependencies with branches

I am looking for a solution to a problem.

 

I have a separate project that is building a core library. This library is then used by several projects.

When core is built it is installed into maven. All other projects than have maven dependency with snapshot dependancy so it is always accurate. 

At first I've used local maven on agents so I had to check the option to run on the same agent in snapshot dependancy. Then I've installed a shared maven server and now it is working among multiple agents. 

 

The problem I'm facing right now is that I cannot get feature branches to distinguish on maven. 

I've tried changing the artifact name to core-%teamcity.build.branch% but this ended up like  core-/ref/heads/develop for default branch.

I cannot find a simple solution to this problem in teamcity. other than having a script as a first step that would change the name of resulting artifact. This is annoying.

 

Anyone has a idea how to solve this problem?

0

Please sign in to leave a comment.