Re: Error opening project properties
Ernie Rael <[email protected]> Thu, 16 Apr 2026 15:51:47 -0700
| Newsgroups | gmane.comp.java.ide.netbeans.user |
|---|---|
| Message-ID | <[email protected]> |
On 26/04/16 11:50 AM, Michael Bien wrote:
> Hi Ernie,
>
> never seen this before, but it would come from this check:
>
> https://github.com/apache/netbeans/blob/07c92138b2945b65dc642463c49e591b9a509d41/java/maven/src/org/netbeans/modules/maven/customizer/CustomizerProviderImpl.java#L141
>
> what happens if you copy the parent pom into a newly created project. does it open from there?
Fails the same way.
Thanks for the pointer.
Turns out the poms in the project were changed at the end of last year.
The failing pom uses "https" and not "http". (NB error message
misleading/not-useful)
=== Notes
The error is from
FINE [org.netbeans.modules.maven.model.pom.POMModelFactory]: Sync has errors
java.io.IOException: Cannot create model with
{https://maven.apache.org/POM/4.0.0}project
at org.netbeans.modules.xml.xdm.xam.XDMAccess.sync(XDMAccess.java:124)
...
because in XDMAccess.sync() the following's true
if (model.createRootComponent(root) == null) {
because in POMModelImpl.createRootComponent: "PROJECT_NS.equals(q)" is false
PROJECT_NS = {http://maven.apache.org/POM/4.0.0}project
q = {https://maven.apache.org/POM/4.0.0}project
The constant PROJECT_NS is generated in POMQName.java
>
> -mbien
>
> On 4/16/26 18:08, Ernie Rael wrote:
>> Greetings,
>>
>> I work on a maven project that has a parent pom with two modules. Right click on any of these three projects and select *Properties* and there's a simple error dialog that says
>>
>> Project's pom.xml file contains invalid xml content. Please fix the file before proceeding.
>>
>> I open the pom.xml and it's green, no warnings or errors. Both NB-30RC1 and NB-29. There is nothing about it in messages.log. Each module builds OK from both NetBeans and the command line. Probably something about the pom, but what? With other maven projects, both single and multi module, the properties open fine.
>>
>> Before I update/build my local NB repo to track this down, any hints?
>>
>> -ernie
>>
---------------------------------------------------------------------
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