On 4/17/26 11:39, Neil C Smith wrote: > On Fri, 17 Apr 2026 at 00:58, Michael Bien <[email protected]> wrote: >> On 4/17/26 00:51, Ernie Rael wrote: >> 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. > Well, strictly speaking, it's entirely accurate.
it is accurate but not super useful. The best error msgs either provide enough details that the user can resolve the issue or point at least at the general direction. The FINE logger output Ernie provided indicates that there is a chance that we could add a bit more to the error. My thoughts went to "probably an illegal character in one of the XMLs" when I read it, not that it is a schema validation issue. At the very least it could say "unknown schema" or something like that. > The XML contains > invalid content because it contains an invalid namespace. The change > to https is not correct. yes, as I said you shouldn't change the namespace on xmls. Although they are URIs, they are also used as identifiers. I think we established that the pom is wrong, yet the IDE should give hints how to fix that if somehow possible. I am not at my PC so i can't check, but I am also surprised that maven itself doesn't complain. -mbien > It's a broken POM. Using Validate XML on > the POM will also fail, as will the Navigator, etc. The same issue > has been raised multiple times before, eg. in > https://github.com/apache/netbeans/pull/3012 > > Of course, it would be good if we were as lenient as the underlying > tools in cases like this, and at least offered to fix it. As we move > to support Maven 4 it might be good to look at pushing more of this > work into Maven or Maveniverse tools (Toolbox, DomTrip, etc.)? > > It might also be good if we could highlight the actual error when > opening the XML. > > Best wishes, > > Neil > > --------------------------------------------------------------------- > 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 > --------------------------------------------------------------------- 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
