bnd icon indicating copy to clipboard operation
bnd copied to clipboard

Better error message when no snapshotUrl configured for a MavenBndRepository

Open brampouwelse opened this issue 3 years ago • 1 comments

Took me some time to figure out what bnd was trying to tell mw with the message

error: my-project: No metadata for revision my.group:my.artifact:1.0.0-SNAPSHOT

Traced it down to the MavenRepository#resolveSnapshot method ( https://github.com/bndtools/bnd/blob/ba0bd37c2c33afe4ccfd8660b1a37b1c1ac52eaa/biz.aQute.repository/src/aQute/maven/provider/MavenRepository.java#L225 )

I forgot to configure the snapshotUrl ... A more informative message at this point could have been of great help and would probably have saved me an hour (or 2).

Maybe something like

Trying to resolve snapshot revision 'my.group:my.artifact:1.0.0-SNAPSHOT' but no snapshotUrl configured.

brampouwelse avatar Nov 03 '21 17:11 brampouwelse

Maybe you can make a PR?

bjhargrave avatar Nov 03 '21 18:11 bjhargrave

This issue has been automatically marked as stale because it has not had recent activity. Given the limited bandwidth of the team, it will be automatically closed if no further activity occurs. If you feel this is something you could contribute, please have a look at our Contributor Guide. Thank you for your contribution.

github-actions[bot] avatar Nov 13 '22 03:11 github-actions[bot]

This issue has been automatically closed due to inactivity. If you can reproduce this on a recent version of Bnd/Bndtools or if you have a good use case for this feature, please feel free to reopen the issue with steps to reproduce, a quick explanation of your use case or a high-quality pull request.

github-actions[bot] avatar Dec 05 '22 02:12 github-actions[bot]