On 4/17/26 00:51, Ernie Rael wrote: > 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".
ah. This explains it. Changing xml namespaces or schema locations is often not a good idea since those are essentially unique identifiers. even maven uses http in the project pom: https://github.com/apache/maven/blob/78302702978300c3168787297224a50b53426f57/pom.xml#L20 > (NB error message misleading/not-useful) yeah it is definitively of limited use without more details. > > === 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 well. if it builds in CLI we should also make it load in the IDE if possible. (pretty sure build would still work when run form NB) -mbien > >> >> -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
