You'll need a couple of runtime dependencies in addition to the compile-time
API dependencies. Here are the Maven dependencies used in my own platform app:
<!-- Compile-time dependencies. -->
<dependency>
<groupId>org.netbeans.api</groupId>
<artifactId>org-netbeans-modules-projectapi</artifactId>
<version>${netbeans.version}</version>
</dependency>
<dependency>
<groupId>org.netbeans.api</groupId>
<artifactId>org-netbeans-modules-projectuiapi</artifactId>
<version>${netbeans.version}</version>
</dependency>
<!-- Runtime dependencies. -->
<dependency>
<groupId>org.netbeans.modules</groupId>
<artifactId>org-netbeans-modules-projectapi-nb</artifactId>
<version>${netbeans.version}</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.netbeans.modules</groupId>
<artifactId>org-netbeans-modules-projectui</artifactId>
<version>${netbeans.version}</version>
<scope>runtime</scope>
</dependency>
The error you're seeing, in particular, comes from
org-netbeans-modules-projectapi-nb being omitted.
-- Eirik
-----Original Message-----
From: Randall Wood <[email protected]>
Sent: Monday, October 5, 2020 8:40 AM
To: [email protected]
Subject: Adding Project UI to a maven NBP app?
NetBeans Platform for Beginners has the following statement (Section 9.2, page
307):
> Enabling the Project System is simple. Right-click a NetBeans Platform
> application and choose Properties. The Project Properties dialog opens. In
> the Libraries tab, expand the ide node, and put a checkmark next to Project
> UI. You will be prompted to include related NetBeans modules, via the red
> Resolve button. Click the button. Then close the Project Properties dialog.
> Clean the application and then run it.
>
These directions are clearly based on the ant-based NetBeans Platform
Application. I cannot figure out the equivalent action to take on a Maven-based
NetBeans Platform Application. Is there a crosswalk between the Ant-based
modules and maven artifacts?
If not, what artifacts do I need to perform the equivalent of those steps?
If I add only the org-netbeans-modules-projectui artifact (which may or may not
be needed), I get the stack trace recorded at
https://gist.github.com/rhwood/948abb90d9f7bbb604afd8f62eadbcfd
V/R
Randall Wood
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists