apache / apache/netbeans

NB Platform application archetype still uses security-manager

Open
#8,902 0 comments 0 reactions 0 assignees View on GitHub
kind:bug Maven Platform
Dominant language
Java
Stars
3.1k
Forks
935
Avg merge
2d 3h
Merged PRs (30d)
17

Description

### Apache NetBeans version

Apache NetBeans 27

### What happened

Creating a new Netbeans Application works but the applications cannot be build. Maven gives an error due to the application module using `-Djava.security.manager=allow` in jmps-flags in its `pom.xml`. That is defined in the application maven archetype.

### Language / Project Type / NetBeans Component

Netbeans Platform Application

### How to reproduce

Create a new Netbeans Application, build it.

### Did this work correctly in an earlier version?

No / Don't know

### Operating System

Windows 10, Ubuntu 24

### JDK

Oracle jdk-24 (24.0.2)

### Apache NetBeans packaging

Third-party package

### Anything else

I have created a PR, my understanding is the archetype used comes from https://github.com/apache/netbeans-mavenutils-archetype-netbeans-platform-app-archetype

I created https://github.com/apache/netbeans-mavenutils-archetype-netbeans-platform-app-archetype/pull/19

### Are you willing to submit a pull request?

Yes

Contributor guide

Open the contributing guide

Research direction

Start in the netbeans-mavenutils-archetype-netbeans-platform-app-archetype repository and inspect the application archetype pom.xml, especially jmps-flags; the issue links PR 19 for context. Reproduce by generating a NetBeans Application with JDK 24 and building it, then verify the generated application builds without the reported security-manager error.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
build-system
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.