Presumably your new pom.xml has all sorts of dependency for the netbeans platform poms, eg:

        <dependency>
            <groupId>org.netbeans.api</groupId>
<artifactId>org-openide-util-lookup</artifactId>
            <version>RELEASE111</version>
        </dependency>

        <!-- https://mvnrepository.com/artifact/org.netbeans.api/org-openide-util -->
        <dependency>
            <groupId>org.netbeans.api</groupId>
            <artifactId>org-openide-util</artifactId>
            <version>RELEASE111</version>
        </dependency>

(etc, etc - my application has 11 RCP modules in the dependency section)


So you can select a given platform using properties:


       <properties>
<netbeans.version>RELEASE111</netbeans.version>
       </properties>

       <dependency>
            <groupId>org.netbeans.api</groupId>
<artifactId>org-openide-util-lookup</artifactId>
            <version>${netbeans.version}</version>
       </dependency>

(etc, etc)

Now if you've got your own version of the the platform jars, then you will have to set up poms for them and install them to a maven repository (either your local .m2 directory, done by doing a 'mvn install' in the build directory for each of your RCP modules, or push them up to an artifactory). Presumably, your custom modules have their own version string (or artifactId). For this case you would something like:

    <properties>
<netbeans.version>MY_HACKED_NETBEANS_VERSION</netbeans.version>
    </properties>
       <dependency>
            <groupId>org.netbeans.api</groupId>
<artifactId>org-openide-util-lookup</artifactId>
            <version>${netbeans.version}</version>
        </dependency>

(etc, etc)


Does this help?

On 11/13/2019 1:55 PM, joe foe wrote:
Hello,

I have a module that is a toolbar with couple of actions developed in ant for a custom netbeans platform application. I would like to move the build  it to maven .

Issue is , if I want to build this module for a specific version of a netbeans platform in Ant , First I add the platform thorough Options -> Netbeans  platforms and then I just right click  the project - >Project properties -> choose platform .

How would I do this with maven? I only see the standard netbeans versions and don't have any option to select a custom netbeans platform (also in project properties) .

Any help would be appreciated.

Thanks !

Regards
Joefoe

--
William Reynolds, Ph.D.
Stellar Science, LLC
wnreyno...@stellarscience.com
www.stellarscience.com
877-763-8268 x710 (v)

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to