arsi-apli opened a new issue, #188:
URL: https://github.com/apache/netbeans-mavenutils-nbm-maven-plugin/issues/188

   I think for a beginner these error messages are absolute hell, but even for 
me, an experienced one, it's quite a time killer. For the friend dependency I 
need to find the correct group and artifactId. For the transitive module I can 
define module as direct dependency directly from NB, but when I have 150 
modules in there, that search also takes a while. And yet the plugin has this 
information directly in itself, it just needs to be used... 
   Alternatively, a parameter could be added to the configuration to disable 
them. But for me they should be on by default..
   
   ```
   Failed to execute goal 
org.apache.netbeans.utilities:nbm-maven-plugin:14.3-SNAPSHOT:manifest 
(default-manifest) on project ZapliScadaEditor:
   Module has friend dependency on org.netbeans.modules.java.hints but is not 
listed as a friend.
   ```
   
   vs
   
   ```
   Failed to execute goal 
org.apache.netbeans.utilities:nbm-maven-plugin:14.3-SNAPSHOT:manifest 
(default-manifest) on project ZapliScadaEditor: 
   Module has friend dependency on org.netbeans.modules.java.hints but is not 
listed as a friend.
   Add the following lines to the plugin configuration:
   <configuration>
       <moduleDependencies>
       ...
       <dependency>
          <id>org.netbeans.modules:org-netbeans-modules-java-hints</id>
          <type>impl</type>
       </dependency>
       ...
       </moduleDependencies>
   </configuration>
   ```
   
   ```
   Project uses classes from transitive module 
org.netbeans.api:org-openide-io:jar:RELEASE126-ZAPLI1 which will not be 
accessible at runtime.
   To fix the problem, add this module as direct dependency. For OSGi bundles 
that are supposed to be wrapped in NetBeans modules, use the 
useOSGiDependencies=false parameter
   ```
   
   vs
   
   ```
   Project uses classes from transitive module 
org.netbeans.api:org-openide-io:jar:RELEASE126-ZAPLI1 which will not be 
accessible at runtime.
   To fix the problem, add this module as direct dependency. For OSGi bundles 
that are supposed to be wrapped in NetBeans modules, use the 
useOSGiDependencies=false parameter
   Add the following lines to the dependencies:
   <dependency>
     <groupId>org.netbeans.api</groupId>
     <artifactId>org-openide-io</artifactId>
     <version>${netbeans.version}</version>
   </dependency>
   ```
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

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

Reply via email to