I’m working on the Import-Package section of osgi.bnd for org.mandas.docker-client_3.2.1 and have a question.
When ebr generates the versions list at the top of osgi.bnd, it appears to make its list by parsing the dependencies section of pom.xml for the artifact.
In the case of org.mandas.docker-client_3.2.1 I get *versions-list* as shown below.
I manually parsed the imports from the sources of org.mandas.docker-client_3.2.1 and got *imports-list* as shown below.
For the imports which are provided by declared dependencies, I believe I can just make the list and use the declared version – no problem there.
What about the imports which are not coming from declared dependencies, for example “org.apache.http”?
Do I still list them in Import-Package?
Can I omit the “;version=” clause for those items?
Thanks!
Tony
*versions-list*
slf4j-api-version-range=${range;[===,+);1.7.30}slf4j-api-version=${version;===;1.7.30}
jackson-jaxrs-json-provider-version-range=${range;[===,+);2.10.3}jackson-jaxrs-json-provider-version=${version;===;2.10.3}
jackson-databind-version-range=${range;[===,+);2.10.3}jackson-databind-version=${version;===;2.10.3}
jersey-client-version-range=${range;[===,+);2.30.1}jersey-client-version=${version;===;2.30.1}
jersey-hk2-version-range=${range;[===,+);2.30.1}jersey-hk2-version=${version;===;2.30.1}
jersey-apache-connector-version-range=${range;[===,+);2.30.1}jersey-apache-connector-version=${version;===;2.30.1}
jersey-media-json-jackson-version-range=${range;[===,+);2.30.1}jersey-media-json-jackson-version=${version;===;2.30.1}
commons-compress-version-range=${range;[===,+);1.19}commons-compress-version=${version;===;1.19}
jnr-unixsocket-version-range=${range;[===,+);0.28}jnr-unixsocket-version=${version;===;0.28}
commons-lang-version-range=${range;[===,+);2.6}commons-lang-version=${version;===;2.6}
bcpkix-jdk15on-version-range=${range;[===,+);1.65}bcpkix-jdk15on-version=${version;===;1.65}
value-version-range=${range;[===,+);2.8.3}value-version=${version;===;2.8.3}
google-auth-library-oauth2-http-version-range=${range;[===,+);0.20.0}google-auth-library-oauth2-http-version=${version;===;0.20.0}
*imports-list*
com.fasterxml.jackson.annotation
com.fasterxml.jackson.core
com.fasterxml.jackson.core.type
com.fasterxml.jackson.databind
com.fasterxml.jackson.databind.annotation
com.fasterxml.jackson.databind.module
com.google.auth.oauth2
javax.net.ssl
javax.ws.rs
javax.ws.rs.client
javax.ws.rs.core
javax.ws.rs.ext
jnr.unixsocket
org.apache.commons.codec.binary
org.apache.commons.compress.archivers.tar
org.apache.commons.compress.compressors.gzip
org.apache.commons.compress.utils
org.apache.commons.lang
org.apache.http
org.apache.http.annotation
org.apache.http.client.config
org.apache.http.client.methods
org.apache.http.config
org.apache.http.conn
org.apache.http.conn.socket
org.apache.http.conn.ssl
org.apache.http.impl.client
org.apache.http.impl.conn
org.apache.http.protocol
org.apache.http.ssl
org.bouncycastle.asn1.pkcs
org.bouncycastle.openssl
org.glassfish.hk2.api
org.glassfish.jersey.apache.connector
org.glassfish.jersey.client
org.glassfish.jersey.jackson
org.immutables.value
org.slf4j