简体   繁体   English

将Felix集成到Netbeans 8.0中

[英]Integrating Felix into Netbeans 8.0

I want to develop a protegé plugin using Netbeans. 我想使用Netbeans开发一个protegé插件。 So, someone suggest for me using Netbeans OSGIs dor that. 因此,有人建议我使用Netbeans OSGI。 I haven't yet known how it helps in my work. 我还不知道它对我的工作有何帮助。 However, I chose Felix and I am following this link . 但是,我选择了Felix,并且我正在关注此链接 Unfortunately, I followed it step by step and am blocked at this step 不幸的是,我一步一步地遵循它,并在这一步被阻止 在此处输入图片说明 However, for me, it doesn't workfor me. 但是,对我而言,这对我不起作用。 Instead, it displays me: 相反,它向我显示: 在此处输入图片说明

Thank you for helping me and advise me if I am at the wrong way. 感谢您的帮助,如果我的方法有误,请给我建议。

1) Check out this project from GitHub ( https://github.com/protegeproject/protege-plugin-examples ) 1)从GitHub检出这个专案( https://github.com/protegeproject/protege-plugin-examples

git clone https://github.com/protegeproject/protege-plugin-examples.git git clone https://github.com/protegeproject/protege-plugin-examples.git

2) Open it (the folder) as an existing project with NetBeans 8 2)使用NetBeans 8作为现有项目打开它(文件夹)

3) Build it. 3)建立它。


If you want get deeper into developing production-ready applications using OSGi, I'd like to suggest to take a look on the Apache Sling Launchpad project. 如果您想更深入地使用OSGi开发可用于生产环境的应用程序,我建议您看一下Apache Sling Launchpad项目。

( http://www.eclipsecon.org/2013/sites/eclipsecon.org.2013/files/2013_EclipseConSlingInstaller.pdf ) http://www.eclipsecon.org/2013/sites/eclipsecon.org.2013/files/2013_EclipseConSlingInstaller.pdf

( https://github.com/apache/sling ) https://github.com/apache/sling

The Sling Launchpad does not depend on other Sling specific bundles and can be used even without the Apache Sling framework. Sling Launchpad不依赖于其他Sling特定的捆绑软件,即使没有Apache Sling框架也可以使用。

It makes everyday life much more comfortable. 它使日常生活更加舒适。

You just add the following snippet to your plugin's pom.xml and every time you build the plugin project NetBeans updates the plugin in the felix container. 您只需将以下代码段添加到插件的pom.xml中,并且每次构建插件项目时,NetBeans都会更新felix容器中的插件。

...
      <build>
        <plugins>
                <plugin>
                    <groupId>org.apache.sling</groupId>
                    <artifactId>maven-sling-plugin</artifactId>
                    <executions>
                        <execution>
                            <id>install-bundle</id>
                            <goals>
                                <goal>install</goal>
                            </goals>
                        </execution>
                    </executions>
                </plugin>

            </plugins>
        </build>

... ...

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM