Where should a custom Netbeans Platform conf. file be so that maven finds it? -


applications built on top of netbeans platform have <myappdir>/etc/<myapp>.conf file determining, among other things, application jvm parameters. historically, file part of netbeans ide installation (as far tell), starting nb 6.9, custom files supported.

i having trouble packaging custom configuration file using maven build application.

i imagine app.conf property should have been set in project's pom under project/build/pluginmanagement/plugins so:

<plugin>  ...     <configuration>         <brandingtoken>${brandingtoken}</brandingtoken>         <cluster>${brandingtoken}</cluster>         <appconf>myapp.conf</appconf>     </configuration> 

the maven module representing application contained no prior source, created src/main/nbm folder , placed myapp.conf in src/main/nbm. isn't picked nbm-maven-plugin. , putting conf file src/main/resources doesn't make difference.

so, can explain how netbeans platform application custom configuration file can built using maven?

update:

with tim's prod in right direction, found answer documented on geertjan's blog. solution configure nbm-maven-plugin in application module pom:

<build>     <plugins>         <plugin>             <groupid>org.codehaus.mojo</groupid>             <artifactid>nbm-maven-plugin</artifactid>             <configuration>                 <etcconffile>src/main/resources/my.conf</etcconffile>             </configuration>         </plugin>     </plugins> </build> 

btw, if need second name geertjan, you're not netbeans platform developer. ;)

have @ documentation of nbm:cluster-app plugin, part on conf file.

as per understanding should allow replace default 1 custom 1 create.


Comments

Popular posts from this blog

c++ - Is it possible to compile a VST on linux? -

java - Output of Eclipse is rubbish -

jquery - Confused with JSON data and normal data in Django ajax request -