简体   繁体   中英

Integrating Felix into Netbeans 8.0

I want to develop a protegé plugin using Netbeans. So, someone suggest for me using Netbeans OSGIs dor that. I haven't yet known how it helps in my work. However, I chose Felix and I am following this link . 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 )

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

2) Open it (the folder) as an existing project with NetBeans 8

3) Build it.


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.

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

( 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.

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.

...
      <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>

...

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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