can bnd-baseline-maven-plugin not fail if there is no previous version?

305 views
Skip to first unread message

Milen Dyankov

unread,
Apr 30, 2018, 3:46:59 PM4/30/18
to bndtool...@googlegroups.com
I have a multi module maven project. All modules are at version 0.0.1 and installed in maven's local repo. 

Now I add bnd-baseline-maven-plugin (3.5.0) to my parent pom. I make some changes in one module and update its version. bnd-baseline-maven-plugin works fine for this module but fails for all other with "An error occurred while calculating the baseline: Unable to locate a previous version of the artifact". 

What is the proper way to configure it in such scenario? 

If I only add it to the module I change, I'd have to remember to add it to other modules when the time comes to first change them. That's less than ideal as I (or someone else) could change and publish them in the future without noticing. 

If I keep it the way it is I can no longer run reactor build on all modules. Ideally it should be possible to tell bnd-baseline-maven-plugin "if there is previous version, assume this is the first one and don't complain" but I couldn't find a way to do that. 
 
Best,
Milen

Raymond Auge

unread,
Apr 30, 2018, 3:58:55 PM4/30/18
to bndtool...@googlegroups.com

--
You received this message because you are subscribed to the Google Groups "bndtools-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bndtools-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Raymond Augé (@rotty3000)
Senior Software Architect Liferay, Inc. (@Liferay)
Board Member & EEG Co-Chair, OSGi Alliance (@OSGiAlliance)

Milen Dyankov

unread,
Apr 30, 2018, 4:50:43 PM4/30/18
to bndtool...@googlegroups.com
Believe it or not I have that page open in my browser all day long and have read through it may be 10 time at minimum.
If not the git history I would be convinced you just added this section. 
Oh, it's not my day today. Thanks for you help and apologies for my blindness.
Reply all
Reply to author
Forward
0 new messages