Hi,
It seems that OptionsAction contains  
"org.netbeans.modules.options.OptionsWindowAction" 
I'm not sure why this change happen compare to previous version

You may try to configure nbm-maven-plugin for core with the following:
<verifyRuntime>false</verifyRuntime>

Regards
Eric
-----Message d'origine-----
De : Patrik Karlström <pat...@trixon.se> 
Envoyé : vendredi 14 juin 2019 11:33
À : dev@netbeans.apache.org
Objet : Re: nbm-maven-plugin 4.2 fails

Well, I just tried 3.1.0 & 3.1.1 to no avail.
Is there anything else I can do?

Den tors 13 juni 2019 kl 23:36 skrev Eric Barboni <sk...@apache.org>:

> Hi Patrik,
>
> I see that you use a "modern" jar plugin Can you configure it like 
> that and see if it's better
>
> <groupId>org.apache.maven.plugins</groupId>
>         <artifactId>maven-jar-plugin</artifactId>
>         <version>a superior version than 3.0.2</version>
>         <configuration>
>             <archive>
>
> <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
>             </archive>
> </configuration>
>
> Best Regards
> Eric
>
> -----Message d'origine-----
> De : Patrik Karlström <pat...@trixon.se> Envoyé : jeudi 13 juin 2019 
> 22:10 À : dev@netbeans.apache.org Objet : nbm-maven-plugin 4.2 fails
>
> Hi Eric, as always, it's really nice to see the progress made on the 
> maven related side of netbeans, thank you.
>
> So, I manage to build a library project using 4.2, but I get the 
> following failure when trying to build the Mapton application[1]:
>
> Private classes referenced in module:
> [org.netbeans.modules.options.OptionsWindowAction]
> Project depends on packages not accessible at runtime in module
> org.netbeans.api:org-netbeans-modules-options-api:jar:RELEASE110
>
> Failed to execute goal
> org.apache.netbeans.utilities:nbm-maven-plugin:4.2:manifest
> (default-manifest) on project core: Uncategorized problems with 
> NetBeans dependency verification (maybe MNBMODULE-102 or wrong maven 
> dependency metadata). Supposedly external classes are used in the 
> project's binaries but the classes are not found on classpath. Class usages:
> [org.netbeans.core.actions.LogAction] -> [Help 1]
> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to 
> execute goal 
> org.apache.netbeans.utilities:nbm-maven-plugin:4.2:manifest
> (default-manifest) on project core: Uncategorized problems with 
> NetBeans dependency verification (maybe MNBMODULE-102 or wrong maven 
> dependency metadata). Supposedly external classes are used in the 
> project's binaries but the classes are not found on classpath. Class usages:
> [org.netbeans.core.actions.LogAction]
> at
>
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.
> java:212)
> at
>
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.
> java:153)
> at
>
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.
> java:145)
> at
>
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProjec
> t(LifecycleModuleBuilder.java:116)
> at
>
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProjec
> t(LifecycleModuleBuilder.java:80)
> at
>
> org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThrea
> dedBuilder.build(SingleThreadedBuilder.java:51)
> at
>
> org.apache.maven.lifecycle.internal.LifecycleStarter.execute(Lifecycle
> Starter.java:128) at 
> org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
> at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)
> at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
> at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
>
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.j
> ava:62)
> at
>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccess
> orImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498)
> at
>
> org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launc
> her.java:289)
> at
> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java
> :229)
> at
>
> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Lau
> ncher.java:415)
> at
> org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:3
> 56) Caused by: org.apache.maven.plugin.MojoFailureException: 
> Uncategorized problems with NetBeans dependency verification (maybe 
> MNBMODULE-102 or wrong maven dependency metadata). Supposedly external 
> classes are used in the project's binaries but the classes are not 
> found on classpath. Class
> usages: [org.netbeans.core.actions.LogAction]
> at
>
> org.apache.netbeans.nbm.NetBeansManifestUpdateMojo.checkModuleClassPat
> h(NetBeansManifestUpdateMojo.java:755)
> at
>
> org.apache.netbeans.nbm.NetBeansManifestUpdateMojo.execute(NetBeansMan
> ifestUpdateMojo.java:550)
> at
>
> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultB
> uildPluginManager.java:134)
> at
>
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.
> java:207)
> ... 20 more
>
> I'm not sure if the fault is in Mapton, in 
> org.netbeans.modules.options.OptionsWindowAction or in the nbm-maven-plugin.
>
>
> [1] https://github.com/trixon/mapton/tree/apache-nbm-maven-plugin
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscr...@netbeans.apache.org
> For additional commands, e-mail: dev-h...@netbeans.apache.org
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>
>
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@netbeans.apache.org
For additional commands, e-mail: dev-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



Reply via email to