You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@netbeans.apache.org by Peter Nabbefeld <pe...@gmx.de> on 2019/07/20 14:32:16 UTC

Having problems with NetBeans module depending on OSGi modules

Hello all,

I'm trying to write a NetBeans module depending on OSGi modules, but 
when I try to start it, all OSGi dependencies are missing:

Warning - could not install some modules:
org.netbeans.modules.pm.docstree - The module named 
org.jvnet.staxex.stax_ex was needed and not found.
org.netbeans.modules.pm.docstree - The module named 
com.sun.xml.fastinfoset.FastInfoset was needed and not found.
org.netbeans.modules.pm.docstree - The module named jaxb_api was needed 
and not found.
org.netbeans.modules.pm.docstree - The module named 
com.sun.istack.commons_runtime was needed and not found.
org.netbeans.modules.pm.docstree - The module named javax.activation_api 
was needed and not found.

 From my POM:

     <build>
         <plugins>
             <plugin>
<groupId>org.apache.netbeans.utilities</groupId>
<artifactId>nbm-maven-plugin</artifactId>
                 <version>4.2</version>
                 <extensions>true</extensions>
                 <configuration>
<useOSGiDependencies>true</useOSGiDependencies>
                 </configuration>
             </plugin>
             <plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
                 <configuration>
                     <release>11</release>  <!--or <release>10</release>-->
                 </configuration>
             </plugin>
             <plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
                 <version>3.1.2</version>
                 <configuration>
                     <archive>
<manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
                     </archive>
                 </configuration>
             </plugin>
         </plugins>
     </build>

     <dependencies>
         <dependency>
             <groupId>javax.xml.bind</groupId>
             <artifactId>jaxb-api</artifactId>
             <version>2.3.1</version>
         </dependency>
         <dependency>
             <groupId>org.glassfish.jaxb</groupId>
             <artifactId>jaxb-runtime</artifactId>
             <version>2.3.2</version>
         </dependency>
         <dependency>
             <groupId>org.netbeans.api</groupId>
<artifactId>org-netbeans-api-annotations-common</artifactId>
             <version>RELEASE110</version>
         </dependency>
         <dependency>
             <groupId>org.netbeans.api</groupId>
             <artifactId>org-openide-windows</artifactId>
             <version>RELEASE110</version>
         </dependency>
         <dependency>
             <groupId>org.netbeans.api</groupId>
             <artifactId>org-openide-util</artifactId>
             <version>RELEASE110</version>
         </dependency>
         <dependency>
             <groupId>org.netbeans.api</groupId>
             <artifactId>org-openide-util-ui</artifactId>
             <version>RELEASE110</version>
         </dependency>
         <dependency>
             <groupId>org.netbeans.api</groupId>
<artifactId>org-openide-util-lookup</artifactId>
             <version>RELEASE110</version>
         </dependency>
         <dependency>
             <groupId>org.netbeans.api</groupId>
             <artifactId>org-openide-awt</artifactId>
             <version>RELEASE110</version>
         </dependency>
         <dependency>
             <groupId>org.netbeans.api</groupId>
<artifactId>org-netbeans-modules-settings</artifactId>
             <version>RELEASE110</version>
         </dependency>
         <dependency>
             <groupId>org.netbeans.api</groupId>
             <artifactId>org-openide-nodes</artifactId>
             <version>RELEASE110</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.netbeans.api</groupId>
<artifactId>org-openide-explorer</artifactId>
             <version>RELEASE110</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.netbeans.api</groupId>
             <artifactId>org-openide-dialogs</artifactId>
             <version>RELEASE110</version>
         </dependency>
         <dependency>
             <groupId>org.netbeans.api</groupId>
<artifactId>org-openide-filesystems</artifactId>
             <version>RELEASE110</version>
         </dependency>
         <dependency>
             <groupId>org.netbeans.api</groupId>
<artifactId>org-netbeans-modules-projectapi</artifactId>
             <version>RELEASE110</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.netbeans.api</groupId>
<artifactId>org-netbeans-modules-projectuiapi-base</artifactId>
             <version>RELEASE110</version>
             <type>jar</type>
         </dependency>
<!-- OSGi dependencies required by build (listed as missing before) -->
         <dependency>
             <groupId>javax.activation</groupId>
<artifactId>javax.activation-api</artifactId>
             <version>1.2.0</version>
         </dependency>
         <dependency>
             <groupId>com.sun.istack</groupId>
<artifactId>istack-commons-runtime</artifactId>
             <version>3.0.8</version>
         </dependency>
         <dependency>
             <groupId>org.jvnet.staxex</groupId>
             <artifactId>stax-ex</artifactId>
             <version>1.8.1</version>
         </dependency>
         <dependency>
             <groupId>com.sun.xml.fastinfoset</groupId>
             <artifactId>FastInfoset</artifactId>
             <version>1.2.16</version>
         </dependency>
     </dependencies>

It seems, I should install these OSGi dependencies into the NetBeans 
Felix container before - how do I achieve this?

Kind regards,
Peter




Re: Having problems with NetBeans module depending on OSGi modules

Posted by Geertjan Wielenga <ge...@apache.org>.
I’m sure people want to help, but, without a small sample or some way to
reproduce, that’s not possible.

Gj


On Sat, 20 Jul 2019 at 16:32, Peter Nabbefeld <pe...@gmx.de>
wrote:

>
> Hello all,
>
> I'm trying to write a NetBeans module depending on OSGi modules, but
> when I try to start it, all OSGi dependencies are missing:
>
> Warning - could not install some modules:
> org.netbeans.modules.pm.docstree - The module named
> org.jvnet.staxex.stax_ex was needed and not found.
> org.netbeans.modules.pm.docstree - The module named
> com.sun.xml.fastinfoset.FastInfoset was needed and not found.
> org.netbeans.modules.pm.docstree - The module named jaxb_api was needed
> and not found.
> org.netbeans.modules.pm.docstree - The module named
> com.sun.istack.commons_runtime was needed and not found.
> org.netbeans.modules.pm.docstree - The module named javax.activation_api
> was needed and not found.
>
>  From my POM:
>
>      <build>
>          <plugins>
>              <plugin>
> <groupId>org.apache.netbeans.utilities</groupId>
> <artifactId>nbm-maven-plugin</artifactId>
>                  <version>4.2</version>
>                  <extensions>true</extensions>
>                  <configuration>
> <useOSGiDependencies>true</useOSGiDependencies>
>                  </configuration>
>              </plugin>
>              <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-compiler-plugin</artifactId>
>                  <configuration>
>                      <release>11</release>  <!--or <release>10</release>-->
>                  </configuration>
>              </plugin>
>              <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-jar-plugin</artifactId>
>                  <version>3.1.2</version>
>                  <configuration>
>                      <archive>
>
> <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
>                      </archive>
>                  </configuration>
>              </plugin>
>          </plugins>
>      </build>
>
>      <dependencies>
>          <dependency>
>              <groupId>javax.xml.bind</groupId>
>              <artifactId>jaxb-api</artifactId>
>              <version>2.3.1</version>
>          </dependency>
>          <dependency>
>              <groupId>org.glassfish.jaxb</groupId>
>              <artifactId>jaxb-runtime</artifactId>
>              <version>2.3.2</version>
>          </dependency>
>          <dependency>
>              <groupId>org.netbeans.api</groupId>
> <artifactId>org-netbeans-api-annotations-common</artifactId>
>              <version>RELEASE110</version>
>          </dependency>
>          <dependency>
>              <groupId>org.netbeans.api</groupId>
>              <artifactId>org-openide-windows</artifactId>
>              <version>RELEASE110</version>
>          </dependency>
>          <dependency>
>              <groupId>org.netbeans.api</groupId>
>              <artifactId>org-openide-util</artifactId>
>              <version>RELEASE110</version>
>          </dependency>
>          <dependency>
>              <groupId>org.netbeans.api</groupId>
>              <artifactId>org-openide-util-ui</artifactId>
>              <version>RELEASE110</version>
>          </dependency>
>          <dependency>
>              <groupId>org.netbeans.api</groupId>
> <artifactId>org-openide-util-lookup</artifactId>
>              <version>RELEASE110</version>
>          </dependency>
>          <dependency>
>              <groupId>org.netbeans.api</groupId>
>              <artifactId>org-openide-awt</artifactId>
>              <version>RELEASE110</version>
>          </dependency>
>          <dependency>
>              <groupId>org.netbeans.api</groupId>
> <artifactId>org-netbeans-modules-settings</artifactId>
>              <version>RELEASE110</version>
>          </dependency>
>          <dependency>
>              <groupId>org.netbeans.api</groupId>
>              <artifactId>org-openide-nodes</artifactId>
>              <version>RELEASE110</version>
>              <type>jar</type>
>          </dependency>
>          <dependency>
>              <groupId>org.netbeans.api</groupId>
> <artifactId>org-openide-explorer</artifactId>
>              <version>RELEASE110</version>
>              <type>jar</type>
>          </dependency>
>          <dependency>
>              <groupId>org.netbeans.api</groupId>
>              <artifactId>org-openide-dialogs</artifactId>
>              <version>RELEASE110</version>
>          </dependency>
>          <dependency>
>              <groupId>org.netbeans.api</groupId>
> <artifactId>org-openide-filesystems</artifactId>
>              <version>RELEASE110</version>
>          </dependency>
>          <dependency>
>              <groupId>org.netbeans.api</groupId>
> <artifactId>org-netbeans-modules-projectapi</artifactId>
>              <version>RELEASE110</version>
>              <type>jar</type>
>          </dependency>
>          <dependency>
>              <groupId>org.netbeans.api</groupId>
> <artifactId>org-netbeans-modules-projectuiapi-base</artifactId>
>              <version>RELEASE110</version>
>              <type>jar</type>
>          </dependency>
> <!-- OSGi dependencies required by build (listed as missing before) -->
>          <dependency>
>              <groupId>javax.activation</groupId>
> <artifactId>javax.activation-api</artifactId>
>              <version>1.2.0</version>
>          </dependency>
>          <dependency>
>              <groupId>com.sun.istack</groupId>
> <artifactId>istack-commons-runtime</artifactId>
>              <version>3.0.8</version>
>          </dependency>
>          <dependency>
>              <groupId>org.jvnet.staxex</groupId>
>              <artifactId>stax-ex</artifactId>
>              <version>1.8.1</version>
>          </dependency>
>          <dependency>
>              <groupId>com.sun.xml.fastinfoset</groupId>
>              <artifactId>FastInfoset</artifactId>
>              <version>1.2.16</version>
>          </dependency>
>      </dependencies>
>
> It seems, I should install these OSGi dependencies into the NetBeans
> Felix container before - how do I achieve this?
>
> Kind regards,
> Peter
>
>
>
>