Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] Steps to get the Nexus p2 repository plugin to run (I want to use this for Tycho builds)

Thanks Igor, will do. I would like to see how usable things are on the OSS version. It sounded like Sonatype were pretty motivated to get a decent open source solution working, so that it could be used heavily at Eclipse.

Cheers,
Andrew

On Thu, Dec 15, 2011 at 9:48 PM, Igor Fedorenko <igor@xxxxxxxxxxxxxx> wrote:
You may want to ask this question on nexus user or dev list. I believe
Nexus 2.0 is about to be released [1], and there were improvements in
plugin manager that may make nexus-p2 plugin easier to maintain across
multiple nexus versions.

[1] http://www.sonatype.com/Products/Sonatype-Pro-for-Nexus/Why-Go-Pro/Nexus-Pro-2.0-Coming-Soon

--
Regards,
Igor


On 11-12-15 3:43 PM, Andrew Shewring wrote:
Hi there

I want to try the p2 support in Nexus (via the p2 repository plugin
which was recently open sourced). I followed the instructions on the page

https://docs.sonatype.org/display/Nexus/Nexus+OSGi+Experimental+Features+-+P2+Repository+Plugin
<https://docs.sonatype.org/display/Nexus/Nexus+OSGi+Experimental+Features+-+P2+Repository+Plugin>

At least one person has managed to get the p2 functionality to run with
recent 1.10.0-SNAPSHOT versions (see the comment on that page).
I found the latest snapshots of all the required components:

 * Nexus itself (nexus-oss-webapp-1.10.0-20111213.030726-160-bundle)
 * Nexus p2 repository plugin
   (nexus-p2-repository-plugin-1.0-20111130.160618-32-bundle.zip)
 * Nexus capabilities plugin
   (nexus-capabilities-plugin-1.10.0-20111214.183234-178-bundle.zip) AND
 * Nexus p2 bridge plugin

   (nexus-p2-bridge-plugin-1.0-20111213.032133-777-bundle.zip).

Unfortunately Nexus refuses to start with this combination. Below is an
extract from the wrapper log:

jvm 1    | -------------------------------------------------
jvm 1    | 2011-12-15 01:15:23 INFO  [7-main-thread-1] -
org.sonatype.nexus.DefaultNexus - Activating locally installed plugins...
jvm 1    | [WARNING] Error initializing:
org.sonatype.nexus.DefaultNexus@310caf
jvm 1    | java.lang.NullPointerException
jvm 1    | at
org.sonatype.nexus.plugins.DefaultNexusPluginManager.activatePlugin(DefaultNexusPluginManager.java:189)
jvm 1    | at
org.sonatype.nexus.plugins.DefaultNexusPluginManager.activatePlugin(DefaultNexusPluginManager.java:143)
jvm 1    | at
org.sonatype.nexus.plugins.DefaultNexusPluginManager.activatePlugin(DefaultNexusPluginManager.java:192)
jvm 1    | at
org.sonatype.nexus.plugins.DefaultNexusPluginManager.activatePlugin(DefaultNexusPluginManager.java:143)
jvm 1    | at
org.sonatype.nexus.plugins.DefaultNexusPluginManager.activateInstalledPlugins(DefaultNexusPluginManager.java:126)
jvm 1    | at
org.sonatype.nexus.DefaultNexus.initialize(DefaultNexus.java:538)
jvm 1    | at
org.sonatype.guice.plexus.lifecycles.PlexusLifecycleManager.initialize(PlexusLifecycleManager.java:338)
jvm 1    | at
org.sonatype.guice.plexus.lifecycles.PlexusLifecycleManager.manageLifecycle(PlexusLifecycleManager.java:296)
jvm 1    | at
org.sonatype.guice.plexus.lifecycles.PlexusLifecycleManager.onProvision(PlexusLifecycleManager.java:148)
jvm 1    | at
com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:108)
jvm 1    | at
com.google.inject.internal.ProvisionListenerStackCallback.provision(ProvisionListenerStackCallback.java:55)
jvm 1    | at
com.google.inject.internal.ProviderInternalFactory.circularGet(ProviderInternalFactory.java:68)
jvm 1    | at
com.google.inject.internal.InternalFactoryToInitializableAdapter.get(InternalFactoryToInitializableAdapter.java:45)
[...]

Does anyone have some current instructions to set up the p2 repository
plugin? I also tried the plugin with the latest release version of Nexus
(1.9.2.3), but this did not work either. I don't have the logs for that,
however.

Thanks,
Andrew




_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-user
_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-user


Back to the top