BndPomRepository don't show artifact query with jetty but work well with zk

11 views
Skip to first unread message

Hiep Lq

unread,
Jul 30, 2019, 3:09:15 AM7/30/19
to bndtools-users

I try make reposiotry for jetty and zk use BndPomRepository

zk work well, but jetty don't work, already try with "revision GAV", "pom uri", "solr query"

i can see artifact of jetty already download to .m2/repository, but don't show on reposiotry view of bnd

this's my repository define

-plugin.10.Jetty.9.4.19: \
aQute.bnd.repository.maven.pom.provider.BndPomRepository; \
snapshotUrls=https://oss.sonatype.org/content/repositories/osgi/; \
releaseUrls=https://repo.maven.apache.org/maven2/; \
# revision=org.eclipse.jetty:jetty-bom:9.4.19.v20190610; \
# pom=https://repo1.maven.org/maven2/org/eclipse/jetty/jetty-bom/9.4.19.v20190610/jetty-bom-9.4.19.v20190610.pom; \
query="q=g:%22org.eclipse.jetty%22+AND+v:%229.4.19.v20190610%22+AND+a:%22jetty-bom%22"; \
readOnly=true; \
name="Jetty artifact 9.4.19"
-plugin.11.Zk.8.6.0.1: \
aQute.bnd.repository.maven.pom.provider.BndPomRepository; \
snapshotUrls=https://oss.sonatype.org/content/repositories/osgi/; \
releaseUrls=https://repo.maven.apache.org/maven2/; \
query="q=g:%22org.zkoss.zk%22+AND+v:%228.6.0.1%22"; \
readOnly=true; \
name="Zk.8.6.0.1"


jettyRepository.png

Hiep Lq

unread,
Jul 30, 2019, 5:29:45 AM7/30/19
to bndtools-users

Check it again, "solr query"" also work well for jetty but pom and revision still not work.

Fr Jeremy Krieg (Home)

unread,
Jul 30, 2019, 10:48:06 AM7/30/19
to bndtools-users
Hi Hiep,

I note that you've tried to comment out a line in the middle of a multi-line property directive. From memory, this confuses the bnd parser. This might contribute to your problems.

BndPomRepository is a bit out of my area of expertise, but in my limited experience I think you might get more consistent results using a locally-defined pom file with a few "seed" dependencies in it that resolve all the test of the artifacts you need.

Also, unless you have a particular need for BndPomRepository, you could use P2Repository. From memory both zk and jetty have p2 repos (I think the Tycho build uses them). You've also got MavenBndRepository, which is a little more work as you need to specify the dependencies manually, but it gives you a bit more control over what versions you're using.

Hope this helps,
Fr Jeremy



--
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-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bndtools-users/b575ac1c-9cf0-4b87-9655-129dfdf63e4d%40googlegroups.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-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bndtools-users/b575ac1c-9cf0-4b87-9655-129dfdf63e4d%40googlegroups.com.work as

Hiep Lq

unread,
Aug 4, 2019, 2:28:34 PM8/4/19
to bndtool...@googlegroups.com
On Tue, Jul 30, 2019 at 9:48 PM Fr Jeremy Krieg (Home) <jezzy...@gmail.com> wrote:
Hi Hiep,

I note that you've tried to comment out a line in the middle of a multi-line property directive. From memory, this confuses the bnd parser. This might contribute to your problems.

comment out in line it's not effect (for my case, for build-in -plugin it's get error)
but ever i remove comment line, nothing change
 

BndPomRepository is a bit out of my area of expertise, but in my limited experience I think you might get more consistent results using a locally-defined pom file with a few "seed" dependencies in it that resolve all the test of the artifacts you need.

Also, unless you have a particular need for BndPomRepository, you could use P2Repository. From memory both zk and jetty have p2 repos (I think the Tycho build uses them). You've also got MavenBndRepository, which is a little more work as you need to specify the dependencies manually, but it gives you a bit more control over what versions you're using.
 
maven is update soon than P2, on jetty p2 just core, you don't have 3th party dependency 
jetty is example, that issue happen to all my test with other GAV
 


--
Lê Quý Hiệp
Email: hie...@hasuvimex.vn
Skype: admin.hasuvimex

Company: Thanh Hoa Fishery Import - Export J.s.c  (HasuvimexDL 47
Add: Lot E, Le Mon Industrial Zone, Thanh Hoa, Vietnam
Reply all
Reply to author
Forward
0 new messages