开发者

NetBeans RCP application classpath

I am developing NetBeans RCP application. The application consists of several modules, all modules (and also the application project itself) are managed by maven. I need to add custom jar to the application classpath. Is there easy way to 开发者_如何学Pythondo it? Especialy, I need to add the classpaths of every module for the application to be able to load module dependencies as this:

ModuleXxx has dependency on LibXxx ModuleYyy has dependency on ModuleXxx

I need to get LibXxx jar path, which should be in the module classpath.

Thanks for any help.


I would have thought a simple Maven dependency from ModuleXxx to LibXxx should be enough. Did you try that? Any issues?


You cannot add "jar" to classpath, because netbeansrcp is SET of modules, which has own independent classpath ;-) So, you should create new module, which has in dependency "jar" (by maven for example) and then in pom.xml. Then set in your dependent module dependency to new LibWrappedModule

<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>nbm-maven-plugin</artifactId>
<version>3.2</version>
<extensions>true</extensions>
<configuration>
                <publicPackages>
                    <publicPackage>com.mycompany.textfilter</publicPackage>
                </publicPackages>

</configuration>

more information is there https://platform.netbeans.org/tutorials/70/nbm-maven-quickstart.html

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜