Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

The refactoring of a package that contains the main class is not propagated to POM.xml

Aperta
#9,663 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
58/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
java
Ambito
build-system

Direzione di ricerca

Start by reproducing the reported workflow in a Java Maven project: build the JAR, rename the main package, and inspect the element in POM.xml. Then trace how NetBeans package refactoring updates Maven project metadata. Done means the element reflects the renamed main class and the JAR runs successfully.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Java kind:bug Maven needs:triage
Apache NetBeans version

Apache NetBeans 31

What happened

If the main class' project is renamed, the old name remains in the POM.xml element.

Language / Project Type / NetBeans Component

Java Maven

How to reproduce

Create a Java Maven project.
Build the JAR.
It will run successfully.
Refactor the main package by renaming.
The JAR will fail to run by not finding the main class.

Did this work correctly in an earlier version?

No / Don't know

Operating System

Linux

JDK

21

Apache NetBeans packaging

Apache NetBeans binary zip

Anything else

No response

Are you willing to submit a pull request?

No

Lingua principale
Java
Stelle
3.1k
Fork
939
Merge medio
5g 3h
PR unite (30g)
22

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di apache/netbeans

Tutte le issue di apache/netbeans

Issue simili

Altre issue su Java

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.