New repository format isn't appear in list of repositories

93 views
Skip to first unread message

Mikhail Galanin

unread,
Nov 12, 2020, 8:22:27 AM11/12/20
to Nexus Users
Hi there,

I'm trying to create a new repository format, I took "raw" and "cpan" modules as an example.
I can see that "bundle:list" shows my bundle as "Active" (installed via commands) but the new repository doesn't appear in "/repository/repositories" page when I click "Create repository".

Which is the best way to understand what's wrong?

Mark Dodgson

unread,
Nov 12, 2020, 8:58:38 AM11/12/20
to Mikhail Galanin, Nexus Users
Initially, I would check to make sure it is not a browser cache problem. Try running in incognito mode if you use Chrome.

Other than that I would make sure there are no typos in your ui files

Sonatype
Mark Dodgson
Software Engineer



--
You received this message because you are subscribed to the Google Groups "Nexus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nexus-users...@glists.sonatype.com.
To view this discussion on the web visit https://groups.google.com/a/glists.sonatype.com/d/msgid/nexus-users/7d0f2c33-f9e1-405d-ab92-2a2a199ac57bn%40glists.sonatype.com.

Mikhail Galanin

unread,
Nov 12, 2020, 9:43:55 AM11/12/20
to Nexus Users, mdod...@sonatype.com, Nexus Users, Mikhail Galanin
Thanks for the answer!

As soon I ruled out the cache problems by using "private mode", is there any other way to debug the issue?
I didn't create any UI files, should I?

I also found my plugin by calling:

karaf@root()> repo-list
Repository                │ URL
...
nexus-repository-intellij │ mvn:org.sonatype.nexus.plugins/nexus-repository-intellij/0.0.1/xml/features
...


четверг, 12 ноября 2020 г. в 13:58:38 UTC, mdod...@sonatype.com:

Mark Dodgson

unread,
Nov 12, 2020, 10:25:30 AM11/12/20
to Mikhail Galanin, Nexus Users
The ui files I was referring to are the .js files that help make the ui work

Take a look at another community format for an example. You will need to copy a similar structure https://github.com/sonatype-nexus-community/nexus-repository-composer/blob/master/nexus-repository-composer/src/main/resources/static/rapture/NX/composer/view/repository/recipe/ComposerProxy.js and to also make sure that the content Is labelled correctly to match your format. For example, in that file note all the references to 'Composer' (https://github.com/sonatype-nexus-community/nexus-repository-composer/blob/master/nexus-repository-composer/src/main/resources/static/rapture/NX/composer/view/repository/recipe/ComposerProxy.js#L18 as an example). Basically everything needs to be in place from `resources/static/rapture` directory onwards

You could also look at using our archetype to get you up and running with a new format, see https://github.com/sonatype-nexus-community/nexus-format-archetype


Sonatype
Mark Dodgson
Software Engineer


Mikhail Galanin

unread,
Nov 12, 2020, 2:53:45 PM11/12/20
to Nexus Users, mdod...@sonatype.com, Nexus Users, Mikhail Galanin
thanks again... I tried using the archetype and failed to run tests:

[ERROR] Please refer to /Users/mikhailgalanin/src/nexus-repository-intellij/nexus-repository-intellij/nexus-repository-intellij/target/surefire-reports for the individual test results.
[ERROR] Please refer to dump files (if any exist) [date]-jvmRun[N].dump, [date].dumpstream and [date]-jvmRun[N].dumpstream.
[ERROR] There was an error in the forked process
[ERROR] Unable to load category: org.sonatype.nexus.content.testsuite.groups.SQLTestGroup
[ERROR] org.apache.maven.surefire.booter.SurefireBooterForkException: There was an error in the forked process
[ERROR] Unable to load category: org.sonatype.nexus.content.testsuite.groups.SQLTestGroup
[ERROR]     at org.apache.maven.plugin.surefire.booterclient.ForkStarter.fork(ForkStarter.java:665)
[ERROR]     at org.apache.maven.plugin.surefire.booterclient.ForkStarter.fork(ForkStarter.java:533)
[ERROR]     at org.apache.maven.plugin.surefire.booterclient.ForkStarter.run(ForkStarter.java:279)
[ERROR]     at org.apache.maven.plugin.surefire.booterclient.ForkStarter.run(ForkStarter.java:243)
[ERROR]     at org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeProvider(AbstractSurefireMojo.java:1077)
[ERROR]     at org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeAfterPreconditionsChecked(AbstractSurefireMojo.java:907)
[ERROR]     at org.apache.maven.plugin.surefire.AbstractSurefireMojo.execute(AbstractSurefireMojo.java:785)
[ERROR]     at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:137)
[ERROR]     at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:210)
[ERROR]     at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:156)
[ERROR]     at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:148)
[ERROR]     at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:117)
[ERROR]     at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:81)
[ERROR]     at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:56)
[ERROR]     at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
[ERROR]     at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:305)
[ERROR]     at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:192)
[ERROR]     at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:105)
[ERROR]     at org.apache.maven.cli.MavenCli.execute(MavenCli.java:957)
[ERROR]     at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:289)
[ERROR]     at org.apache.maven.cli.MavenCli.main(MavenCli.java:193)
[ERROR]     at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[ERROR]     at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[ERROR]     at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[ERROR]     at java.base/java.lang.reflect.Method.invoke(Method.java:564)
[ERROR]     at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:282)
[ERROR]     at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:225)
[ERROR]     at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:406)
[ERROR]     at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:347)
[ERROR]


четверг, 12 ноября 2020 г. в 15:25:30 UTC, mdod...@sonatype.com:

Dan Rollo

unread,
Nov 12, 2020, 6:54:30 PM11/12/20
to Mikhail Galanin, Nexus Users, mdod...@sonatype.com
FWIW, I’m trying to get the archetype updated to work with the latest version of Nexus Repository Manager. Here’s the PR: https://github.com/sonatype-nexus-community/nexus-format-archetype/pull/40

Mikhail Galanin

unread,
Nov 13, 2020, 8:31:11 AM11/13/20
to Nexus Users, Dan Rollo, Nexus Users, mdod...@sonatype.com, Mikhail Galanin
That's good to know!
It looks like the archetype creates "proxy" repositories. Is there a way to generate boilerplate for "hosted"?

четверг, 12 ноября 2020 г. в 23:54:30 UTC, Dan Rollo:

Dan Rollo

unread,
Nov 13, 2020, 11:28:56 AM11/13/20
to Mikhail Galanin, Nexus Users, mdod...@sonatype.com
Thanks to help from Anantoliy, we have the archetype working with Nexus 3.28.1 now. Please give it a try if you can.

Regarding archetype support for generating a “hosted” repo - please create an issue on the github project! That way, maybe someone with much more skill than I will give it a whirl. If nothing else, creating an issue also provides a way to track interest in that feature.

Dan


Reply all
Reply to author
Forward
0 new messages