Closed ieugen closed 9 years ago
p.s. Once this is done, I can push this to the Karaf committers/ mailing list.
Hi, I would love to publish it. But to be honest I do not know maven well enough to know what I have to do.
Currently I have created poms for all the jars that should go in maven central. I publish them by invoking mvn gpg:sign-and-deploy-file -Durl=$MAVEN_REPO -DrepositoryId=sonatype-nexus-staging -DpomFile=pom.xml -Dfile=NAME.jar
Can you provide a pom that I can just publish the same way?
Ok, if I'm right I can just use the pom you provided within the example, right?
Yes, you can use the pom's I provided. I also configured the build-helper plugin to attach features.xml as a deployment artifact [1].
You should update to the latest project version and maybe sync the features project version to equal osgi-jax-rs-connector version. This way, people can find the exact version of connector they need.
Features.xml uses property placeholders so all you have to do is update the properties in the master pom [3].
By the way, I ran some tests by installing the features with a consumer, and uninstalling (feature:uninstall jax-rs-connector) and re-installing them to see how the rest services behave when jax-rs connector disappear and I know I found some issues there.
[1] https://github.com/hstaudacher/osgi-jax-rs-connector/blob/master/examples/karaf-integration/features/pom.xml [2] https://github.com/hstaudacher/osgi-jax-rs-connector/blob/master/examples/karaf-integration/features/src/main/resources/features.xml [3] https://github.com/hstaudacher/osgi-jax-rs-connector/blob/master/examples/karaf-integration/pom.xml
Hey @ieugen I managed to upload something :). Can you verify that this is what you want? https://oss.sonatype.org/content/repositories/snapshots/com/eclipsesource/jaxrs/features/4.2-SNAPSHOT/
Yes, that's great. The features.xml is there and that's all it's needed.
2014-12-11 11:11 GMT+02:00 Holger Staudacher notifications@github.com:
Hey @ieugen https://github.com/ieugen I managed to upload something :). Can you verify that this is what you want?
— Reply to this email directly or view it on GitHub https://github.com/hstaudacher/osgi-jax-rs-connector/issues/71#issuecomment-66591092 .
Ioan Eugen Stan 0720 898 747
phew ;) Great. So, I will close this issue and deploy the feature to central when we do the 4.2 release. Thanks for the input.
Hello @hstaudacher,
Please make the features.xml part of the release so it will end up published to Maven Central. This will make osgi-jax-rs connector easier to consume and test out.
Karaf users can use these commands to install and deploy osgi jax-rs-connector. Karaf will search all registerd maven repositories (Maven Central is included by default), download and start the bundles.
Here is a sample of pax-web-features published on Central: http://search.maven.org/#search%7Cga%7C1%7Cpax%20web%20features