apache / apache/netbeans

Maven support should check for toolchains.xml

Open
#5,999 0 comments 1 reaction 0 assignees View on GitHub
kind:feature Maven
Dominant language
Java
Stars
3.1k
Forks
935
Avg merge
2d 3h
Merged PRs (30d)
17

Description

### Description

Toolchains may be used by a project; in case of e.g. apache Cocoon, if there's no toolchains definition, the project compilation fails.
NB IDE could check for user toolchains.xml file and if missing provide its own generated on-the-fly based on JDK that NB executes on. This would not affect user machine setup and only activate in cases the user does not define any tools.

NB IDE could also attempt to synchronize its configured Java platforms with the user toolchains.xml

### Use case/motivation

This feature would allow to compile more projects 'out of the box' on a clean machine. Manipulating with platforms would also configure machine's Maven build environment.

### Related issues

#5978

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

Yes

Contributor guide

Open the contributing guide

Research direction

The issue names NetBeans Maven support and user toolchains.xml, with related issue #5978. Start by locating the Maven support entry points and existing Java platform configuration; determine how missing user toolchains are detected and how configured platforms could be synchronized. Done should cover clean-machine compilation when no user toolchain is defined without altering existing machine setup.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
build-system, tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.