Simply substituting the dependency specs isn't enough. I think you need to patch the `pom.xml` so you actually replace the plugin.
Mechtilde Stehmann 於 2019/9/28 上午12:31 寫道: > Hello Ingo > > Am 27.09.19 um 00:28 schrieb Ingo Bauersachs: >>> Am 26.09.19 um 15:57 schrieb 殷啟聰 | Kai-Chung Yan: >>>>> What I'm doing wrong? >>>> >>>> Seems that the `bnd` package does not build the Maven plugin. The >>>> maintainer left it that way probably because it wasn't used by anything. >>> >>> I need the bnd-maven-plugin to build Jollyday (ITP #939617) which is a >>> dependency of JVerein (ITP #929477) >>> >>> How can I work on? >> >> You might be able to use maven-bundle-plugin (Debian packaged as >> libmaven-bundle-plugin-java) instead of bnd-maven-plugin. Both generate OSGi >> metadata, so the result should be the same. >> But note that libmaven-bundle-plugin-java doesn't have a symbolic 'debian' >> version, you must use whatever is packaged, currently 3.5.1 (see e.g. bug >> 907477 for an explanation). >> >> Good luck, > > I followed your suggestion. > > In maven.rules I wrote: > > s/biz.aQute.bnd/org.apache.felix/ > s/bnd-maven-plugin/maven-bundle-plugin/ * s/4.1.0/3.5.1/ * * > > In control I added libmaven-bundle-plugin-java > > I get the following message: > > Building Jollyday 0.5.8 > [INFO] --------------------------------[ jar > ]--------------------------------- > [WARNING] The POM for biz.aQute.bnd:bnd-maven-plugin:jar:4.1.0 is > missing, no dependency information available > [INFO] > ------------------------------------------------------------------------ > [INFO] BUILD FAILURE > [INFO] > ------------------------------------------------------------------------ > [INFO] Total time: 0.174 s > [INFO] Finished at: 2019-09-27T16:18:48Z > [INFO] > ------------------------------------------------------------------------ > [ERROR] Plugin biz.aQute.bnd:bnd-maven-plugin:4.1.0 or one of its > dependencies could not be resolved: Cannot access central > (https://repo.maven.apache.org/maven2) in offline mode and the artifact > biz.aQute.bnd:bnd-maven-plugin:jar:4.1.0 has not been downloaded from it > before. > > this is the same error message I got before > > Kind regards >
signature.asc
Description: OpenPGP digital signature