bnd
bnd copied to clipboard
Better error message when no snapshotUrl configured for a MavenBndRepository
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.
Maybe you can make a PR?
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.
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.