You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@netbeans.apache.org by GitBox <gi...@apache.org> on 2022/10/05 19:56:32 UTC
[GitHub] [netbeans] marcorobiati opened a new issue, #4722: Maven super POM properties took from bundled version if another is specified in settings
marcorobiati opened a new issue, #4722:
URL: https://github.com/apache/netbeans/issues/4722
### Apache NetBeans version
Apache NetBeans 15
### What happened
Opening a project POM, under "Effective" tab, complete POM is showed, so properties from superPOM too. Problem is those properties are always from the bundled version (C:/Program Files/NetBeans-15/netbeans/java/maven/lib/maven-model-builder-3.8.6.jar!/org/apache/maven/model/pom-4.0.0.xml), even if in Tools -> Options -> Java -> Maven I unchecked "Prefer maven wrapper that comes with the project" and used another maven installation, placed in a separate directory from Netbeans folders.
I tried version 3.8.6 (same as bundled one) and 3.6.3. (for the external 3.8.6 version I changed some version number in !/org/apache/maven/model/pom-4.0.0.xml to check if it got the updated properties)
Changed version, restarted Netbeans, same problem.
Closed Netbeans, cleared cache, same problem.
So i tried removing maven-model-builder-3.8.6.jar from C:/Program Files/NetBeans-15/netbeans/java/maven/lib (the bundled one) but netbeans closed all maven projects and threw exception (attached), and again every time I tried to open a maven project.
I tried creating a new maven project, same problem.
[NetBeans Exception.txt](https://github.com/apache/netbeans/files/9693433/NetBeans.Exception.txt)

### How to reproduce
_No response_
### Did this work correctly in an earlier version?
No / Don't know
### Operating System
Windows 10 21H2 19044.2006
### JDK
openjdk version "17.0.4" 2022-07-19 OpenJDK Runtime Environment GraalVM CE 22.2.0 (build 17.0.4+8-jvmci-22.2-b06) OpenJDK 64-Bit Server VM GraalVM CE 22.2.0 (build 17.0.4+8-jvmci-22.2-b06, mixed mode, sharing)
### Apache NetBeans packaging
Apache NetBeans provided installer
### Anything else
_No response_
### Are you willing to submit a pull request?
No
### Code of Conduct
Yes
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists