You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@netbeans.apache.org by Philip Durbin <ph...@gmail.com> on 2020/04/09 19:17:16 UTC
Project's pom.xml contains invalid xml content. Please fix the file
before proceeding.
Hi, we are seeing the following error in Netbeans 11.3 and earlier versions
such as Netbeans 8.2 even though our pom.xml is valid (I used xmllint to
check it and others on my team used other validators):
"Project's pom.xml contains invalid xml content. Please fix the file before
proceeding."
I'll also attach a screenshot.
What I'm trying to do is right click the Java EE project and open the
properties.
Here's the commit I'm on:
https://github.com/IQSS/dataverse/blob/d04d09c3e8d66295dc12e25f676a04a44b69acd6/pom.xml
Any advice is welcome!
Phil
Re: Project's pom.xml contains invalid xml content. Please fix the
file before proceeding.
Posted by Emilian Bold <em...@gmail.com>.
👍
--emi
--emi
On Fri, Apr 10, 2020 at 5:35 PM Philip Durbin <ph...@gmail.com>
wrote:
> Sure, here you go: https://issues.apache.org/jira/browse/NETBEANS-4148
>
> On Fri, Apr 10, 2020 at 1:40 AM Emilian Bold <em...@gmail.com>
> wrote:
>
>> Interesting. I think there's a whitelist of schema URLs in NetBeans
>> and they have the original http variant. Please report this on JIRA,
>> somebody might pick it up for 12 (which would be the next LTS
>> version).
>>
>> --emi
>>
>> On Fri, Apr 10, 2020 at 3:25 AM Philip Durbin <ph...@gmail.com>
>> wrote:
>> >
>> > I see what happened. In a recent pull request* we changed "http" to
>> "https" in our pom.xml like this:
>> >
>> > BEFORE
>> > <project xmlns="http://maven.apache.org/POM/4.0.0"
>> > AFTER
>> > <project xmlns="https://maven.apache.org/POM/4.0.0"
>> >
>> > If I revert "https" back to "http" I can open the project properties.
>> >
>> > Phil
>> >
>> > * https://github.com/IQSS/dataverse/pull/6519
>> >
>> >
>> >
>> > On Thu, Apr 9, 2020 at 3:17 PM Philip Durbin <ph...@gmail.com>
>> wrote:
>> >>
>> >> Hi, we are seeing the following error in Netbeans 11.3 and earlier
>> versions such as Netbeans 8.2 even though our pom.xml is valid (I used
>> xmllint to check it and others on my team used other validators):
>> >>
>> >> "Project's pom.xml contains invalid xml content. Please fix the file
>> before proceeding."
>> >>
>> >> I'll also attach a screenshot.
>> >>
>> >> What I'm trying to do is right click the Java EE project and open the
>> properties.
>> >>
>> >> Here's the commit I'm on:
>> https://github.com/IQSS/dataverse/blob/d04d09c3e8d66295dc12e25f676a04a44b69acd6/pom.xml
>> >>
>> >> Any advice is welcome!
>> >>
>> >> Phil
>>
>
Re: Project's pom.xml contains invalid xml content. Please fix the
file before proceeding.
Posted by Philip Durbin <ph...@gmail.com>.
Sure, here you go: https://issues.apache.org/jira/browse/NETBEANS-4148
On Fri, Apr 10, 2020 at 1:40 AM Emilian Bold <em...@gmail.com> wrote:
> Interesting. I think there's a whitelist of schema URLs in NetBeans
> and they have the original http variant. Please report this on JIRA,
> somebody might pick it up for 12 (which would be the next LTS
> version).
>
> --emi
>
> On Fri, Apr 10, 2020 at 3:25 AM Philip Durbin <ph...@gmail.com>
> wrote:
> >
> > I see what happened. In a recent pull request* we changed "http" to
> "https" in our pom.xml like this:
> >
> > BEFORE
> > <project xmlns="http://maven.apache.org/POM/4.0.0"
> > AFTER
> > <project xmlns="https://maven.apache.org/POM/4.0.0"
> >
> > If I revert "https" back to "http" I can open the project properties.
> >
> > Phil
> >
> > * https://github.com/IQSS/dataverse/pull/6519
> >
> >
> >
> > On Thu, Apr 9, 2020 at 3:17 PM Philip Durbin <ph...@gmail.com>
> wrote:
> >>
> >> Hi, we are seeing the following error in Netbeans 11.3 and earlier
> versions such as Netbeans 8.2 even though our pom.xml is valid (I used
> xmllint to check it and others on my team used other validators):
> >>
> >> "Project's pom.xml contains invalid xml content. Please fix the file
> before proceeding."
> >>
> >> I'll also attach a screenshot.
> >>
> >> What I'm trying to do is right click the Java EE project and open the
> properties.
> >>
> >> Here's the commit I'm on:
> https://github.com/IQSS/dataverse/blob/d04d09c3e8d66295dc12e25f676a04a44b69acd6/pom.xml
> >>
> >> Any advice is welcome!
> >>
> >> Phil
>
Re: Project's pom.xml contains invalid xml content. Please fix the
file before proceeding.
Posted by Emilian Bold <em...@gmail.com>.
Oh, I understand you point! You are right, the URIs must be identical (
https://www.w3.org/TR/REC-xml-names/#NSNameComparison ).
I wonder why no validator complains?
--emi
On Fri, Apr 10, 2020 at 8:58 PM Eric J. Schwarzenbach <
eric.schwarzenbach@wrycan.com> wrote:
> Right, but are you considering this error behavior to be a bug? Because as
> far as I can see the pom.xml, despite OP's claims, is NOT valid.
>
> This pom.xml uses xsi:schemaLocation="https://maven.apache.org/POM/4.0.0
> https://maven.apache.org/xsd/maven-4.0.0.xsd"
> <https://maven.apache.org/POM/4.0.0https://maven.apache.org/xsd/maven-4.0.0.xsd>
> .
>
> The schema at https://maven.apache.org/xsd/maven-4.0.0.xsd declares xmlns=
> "http://maven.apache.org/POM/4.0.0" <http://maven.apache.org/POM/4.0.0>.
>
>
> On 4/10/20 12:30 PM, Emilian Bold wrote:
>
> I suspect that's the problem: the URL itself is not resolved (because then
> it wouldn't have mattered if it's https vs http). So internally there *may*
> be a list of such schema URLs which expressly has the http URL and does
> nothing for the new https URL.
>
> --emi
>
>
> On Fri, Apr 10, 2020 at 7:29 PM Eric J. Schwarzenbach <
> eric.schwarzenbach@wrycan.com> wrote:
>
>> XML namespaces *look* like urls by convention, but are not meant to
>> actually be treated as urls and resolved. Is
>> "https://maven.apache.org/POM/4.0.0" <https://maven.apache.org/POM/4.0.0>
>> actually a valid namespace for the maven pom XML?
>> On 4/10/20 1:39 AM, Emilian Bold wrote:
>>
>> Interesting. I think there's a whitelist of schema URLs in NetBeans
>> and they have the original http variant. Please report this on JIRA,
>> somebody might pick it up for 12 (which would be the next LTS
>> version).
>>
>> --emi
>>
>> On Fri, Apr 10, 2020 at 3:25 AM Philip Durbin <ph...@gmail.com> <ph...@gmail.com> wrote:
>>
>> I see what happened. In a recent pull request* we changed "http" to "https" in our pom.xml like this:
>>
>> BEFORE
>> <project xmlns="http://maven.apache.org/POM/4.0.0" <http://maven.apache.org/POM/4.0.0>
>> AFTER
>> <project xmlns="https://maven.apache.org/POM/4.0.0" <https://maven.apache.org/POM/4.0.0>
>>
>> If I revert "https" back to "http" I can open the project properties.
>>
>> Phil
>>
>> * https://github.com/IQSS/dataverse/pull/6519
>>
>>
>>
>> On Thu, Apr 9, 2020 at 3:17 PM Philip Durbin <ph...@gmail.com> <ph...@gmail.com> wrote:
>>
>> Hi, we are seeing the following error in Netbeans 11.3 and earlier versions such as Netbeans 8.2 even though our pom.xml is valid (I used xmllint to check it and others on my team used other validators):
>>
>> "Project's pom.xml contains invalid xml content. Please fix the file before proceeding."
>>
>> I'll also attach a screenshot.
>>
>> What I'm trying to do is right click the Java EE project and open the properties.
>>
>> Here's the commit I'm on: https://github.com/IQSS/dataverse/blob/d04d09c3e8d66295dc12e25f676a04a44b69acd6/pom.xml
>>
>> Any advice is welcome!
>>
>> Phil
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org
>> For additional commands, e-mail: users-help@netbeans.apache.org
>>
>> For further information about the NetBeans mailing lists, visit:https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>>
>>
Re: Project's pom.xml contains invalid xml content. Please fix the
file before proceeding.
Posted by "Eric J. Schwarzenbach" <er...@wrycan.com>.
Right, but are you considering this error behavior to be a bug? Because
as far as I can see the pom.xml, despite OP's claims, is NOT valid.
This pom.xml uses xsi:schemaLocation="https://maven.apache.org/POM/4.0.0
https://maven.apache.org/xsd/maven-4.0.0.xsd".
The schema at https://maven.apache.org/xsd/maven-4.0.0.xsd declares
xmlns="http://maven.apache.org/POM/4.0.0".
On 4/10/20 12:30 PM, Emilian Bold wrote:
> I suspect that's the problem: the URL itself is not resolved (because
> then it wouldn't have mattered if it's https vs http). So internally
> there *may* be a list of such schema URLs which expressly has the http
> URL and does nothing for the new https URL.
>
> --emi
>
>
> On Fri, Apr 10, 2020 at 7:29 PM Eric J. Schwarzenbach
> <eric.schwarzenbach@wrycan.com <ma...@wrycan.com>>
> wrote:
>
> XML namespaces /look/ like urls by convention, but are not meant
> to actually be treated as urls and resolved. Is
> "https://maven.apache.org/POM/4.0.0"
> <https://maven.apache.org/POM/4.0.0> actually a valid namespace
> for the maven pom XML?
>
> On 4/10/20 1:39 AM, Emilian Bold wrote:
>> Interesting. I think there's a whitelist of schema URLs in NetBeans
>> and they have the original http variant. Please report this on JIRA,
>> somebody might pick it up for 12 (which would be the next LTS
>> version).
>>
>> --emi
>>
>> On Fri, Apr 10, 2020 at 3:25 AM Philip Durbin<ph...@gmail.com> <ma...@gmail.com> wrote:
>>> I see what happened. In a recent pull request* we changed "http" to "https" in our pom.xml like this:
>>>
>>> BEFORE
>>> <project xmlns="http://maven.apache.org/POM/4.0.0" <http://maven.apache.org/POM/4.0.0>
>>> AFTER
>>> <project xmlns="https://maven.apache.org/POM/4.0.0" <https://maven.apache.org/POM/4.0.0>
>>>
>>> If I revert "https" back to "http" I can open the project properties.
>>>
>>> Phil
>>>
>>> *https://github.com/IQSS/dataverse/pull/6519
>>>
>>>
>>>
>>> On Thu, Apr 9, 2020 at 3:17 PM Philip Durbin<ph...@gmail.com> <ma...@gmail.com> wrote:
>>>> Hi, we are seeing the following error in Netbeans 11.3 and earlier versions such as Netbeans 8.2 even though our pom.xml is valid (I used xmllint to check it and others on my team used other validators):
>>>>
>>>> "Project's pom.xml contains invalid xml content. Please fix the file before proceeding."
>>>>
>>>> I'll also attach a screenshot.
>>>>
>>>> What I'm trying to do is right click the Java EE project and open the properties.
>>>>
>>>> Here's the commit I'm on:https://github.com/IQSS/dataverse/blob/d04d09c3e8d66295dc12e25f676a04a44b69acd6/pom.xml
>>>>
>>>> Any advice is welcome!
>>>>
>>>> Phil
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail:users-unsubscribe@netbeans.apache.org <ma...@netbeans.apache.org>
>> For additional commands, e-mail:users-help@netbeans.apache.org <ma...@netbeans.apache.org>
>>
>> For further information about the NetBeans mailing lists, visit:
>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>>
Re: Project's pom.xml contains invalid xml content. Please fix the
file before proceeding.
Posted by Emilian Bold <em...@gmail.com>.
I suspect that's the problem: the URL itself is not resolved (because then
it wouldn't have mattered if it's https vs http). So internally there *may*
be a list of such schema URLs which expressly has the http URL and does
nothing for the new https URL.
--emi
On Fri, Apr 10, 2020 at 7:29 PM Eric J. Schwarzenbach <
eric.schwarzenbach@wrycan.com> wrote:
> XML namespaces *look* like urls by convention, but are not meant to
> actually be treated as urls and resolved. Is
> "https://maven.apache.org/POM/4.0.0" <https://maven.apache.org/POM/4.0.0>
> actually a valid namespace for the maven pom XML?
> On 4/10/20 1:39 AM, Emilian Bold wrote:
>
> Interesting. I think there's a whitelist of schema URLs in NetBeans
> and they have the original http variant. Please report this on JIRA,
> somebody might pick it up for 12 (which would be the next LTS
> version).
>
> --emi
>
> On Fri, Apr 10, 2020 at 3:25 AM Philip Durbin <ph...@gmail.com> <ph...@gmail.com> wrote:
>
> I see what happened. In a recent pull request* we changed "http" to "https" in our pom.xml like this:
>
> BEFORE
> <project xmlns="http://maven.apache.org/POM/4.0.0" <http://maven.apache.org/POM/4.0.0>
> AFTER
> <project xmlns="https://maven.apache.org/POM/4.0.0" <https://maven.apache.org/POM/4.0.0>
>
> If I revert "https" back to "http" I can open the project properties.
>
> Phil
>
> * https://github.com/IQSS/dataverse/pull/6519
>
>
>
> On Thu, Apr 9, 2020 at 3:17 PM Philip Durbin <ph...@gmail.com> <ph...@gmail.com> wrote:
>
> Hi, we are seeing the following error in Netbeans 11.3 and earlier versions such as Netbeans 8.2 even though our pom.xml is valid (I used xmllint to check it and others on my team used other validators):
>
> "Project's pom.xml contains invalid xml content. Please fix the file before proceeding."
>
> I'll also attach a screenshot.
>
> What I'm trying to do is right click the Java EE project and open the properties.
>
> Here's the commit I'm on: https://github.com/IQSS/dataverse/blob/d04d09c3e8d66295dc12e25f676a04a44b69acd6/pom.xml
>
> Any advice is welcome!
>
> Phil
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org
> For additional commands, e-mail: users-help@netbeans.apache.org
>
> For further information about the NetBeans mailing lists, visit:https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>
>
RE: Project's pom.xml contains invalid xml content. Please fix the
file before proceeding.
Posted by Eirik Bakke <eb...@ultorg.com>.
> XML namespaces look like urls by convention, but are not meant to actually be treated as urls and resolved.
Exactly this. I was plenty confused about this the first time I learned about XML namespaces...
Just consider them opaque identifiers, to match the namespace in the schema character-by-character. So don't try to replace "http" with "https".
From: Eric J. Schwarzenbach <er...@wrycan.com>
Sent: Friday, April 10, 2020 12:29 PM
To: users@netbeans.apache.org
Subject: Re: Project's pom.xml contains invalid xml content. Please fix the file before proceeding.
XML namespaces look like urls by convention, but are not meant to actually be treated as urls and resolved. Is "https://maven.apache.org/POM/4.0.0"<https://maven.apache.org/POM/4.0.0> actually a valid namespace for the maven pom XML?
On 4/10/20 1:39 AM, Emilian Bold wrote:
Interesting. I think there's a whitelist of schema URLs in NetBeans
and they have the original http variant. Please report this on JIRA,
somebody might pick it up for 12 (which would be the next LTS
version).
--emi
On Fri, Apr 10, 2020 at 3:25 AM Philip Durbin <ph...@gmail.com> wrote:
I see what happened. In a recent pull request* we changed "http" to "https" in our pom.xml like this:
BEFORE
<project xmlns="http://maven.apache.org/POM/4.0.0"<http://maven.apache.org/POM/4.0.0>
AFTER
<project xmlns="https://maven.apache.org/POM/4.0.0"<https://maven.apache.org/POM/4.0.0>
If I revert "https" back to "http" I can open the project properties.
Phil
* https://github.com/IQSS/dataverse/pull/6519
On Thu, Apr 9, 2020 at 3:17 PM Philip Durbin <ph...@gmail.com> wrote:
Hi, we are seeing the following error in Netbeans 11.3 and earlier versions such as Netbeans 8.2 even though our pom.xml is valid (I used xmllint to check it and others on my team used other validators):
"Project's pom.xml contains invalid xml content. Please fix the file before proceeding."
I'll also attach a screenshot.
What I'm trying to do is right click the Java EE project and open the properties.
Here's the commit I'm on: https://github.com/IQSS/dataverse/blob/d04d09c3e8d66295dc12e25f676a04a44b69acd6/pom.xml
Any advice is welcome!
Phil
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org<ma...@netbeans.apache.org>
For additional commands, e-mail: users-help@netbeans.apache.org<ma...@netbeans.apache.org>
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: Project's pom.xml contains invalid xml content. Please fix the
file before proceeding.
Posted by "Eric J. Schwarzenbach" <er...@wrycan.com>.
XML namespaces /look/ like urls by convention, but are not meant to
actually be treated as urls and resolved. Is
"https://maven.apache.org/POM/4.0.0" actually a valid namespace for the
maven pom XML?
On 4/10/20 1:39 AM, Emilian Bold wrote:
> Interesting. I think there's a whitelist of schema URLs in NetBeans
> and they have the original http variant. Please report this on JIRA,
> somebody might pick it up for 12 (which would be the next LTS
> version).
>
> --emi
>
> On Fri, Apr 10, 2020 at 3:25 AM Philip Durbin <ph...@gmail.com> wrote:
>> I see what happened. In a recent pull request* we changed "http" to "https" in our pom.xml like this:
>>
>> BEFORE
>> <project xmlns="http://maven.apache.org/POM/4.0.0"
>> AFTER
>> <project xmlns="https://maven.apache.org/POM/4.0.0"
>>
>> If I revert "https" back to "http" I can open the project properties.
>>
>> Phil
>>
>> * https://github.com/IQSS/dataverse/pull/6519
>>
>>
>>
>> On Thu, Apr 9, 2020 at 3:17 PM Philip Durbin <ph...@gmail.com> wrote:
>>> Hi, we are seeing the following error in Netbeans 11.3 and earlier versions such as Netbeans 8.2 even though our pom.xml is valid (I used xmllint to check it and others on my team used other validators):
>>>
>>> "Project's pom.xml contains invalid xml content. Please fix the file before proceeding."
>>>
>>> I'll also attach a screenshot.
>>>
>>> What I'm trying to do is right click the Java EE project and open the properties.
>>>
>>> Here's the commit I'm on: https://github.com/IQSS/dataverse/blob/d04d09c3e8d66295dc12e25f676a04a44b69acd6/pom.xml
>>>
>>> Any advice is welcome!
>>>
>>> Phil
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org
> For additional commands, e-mail: users-help@netbeans.apache.org
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>
Re: Project's pom.xml contains invalid xml content. Please fix the
file before proceeding.
Posted by Emilian Bold <em...@gmail.com>.
Interesting. I think there's a whitelist of schema URLs in NetBeans
and they have the original http variant. Please report this on JIRA,
somebody might pick it up for 12 (which would be the next LTS
version).
--emi
On Fri, Apr 10, 2020 at 3:25 AM Philip Durbin <ph...@gmail.com> wrote:
>
> I see what happened. In a recent pull request* we changed "http" to "https" in our pom.xml like this:
>
> BEFORE
> <project xmlns="http://maven.apache.org/POM/4.0.0"
> AFTER
> <project xmlns="https://maven.apache.org/POM/4.0.0"
>
> If I revert "https" back to "http" I can open the project properties.
>
> Phil
>
> * https://github.com/IQSS/dataverse/pull/6519
>
>
>
> On Thu, Apr 9, 2020 at 3:17 PM Philip Durbin <ph...@gmail.com> wrote:
>>
>> Hi, we are seeing the following error in Netbeans 11.3 and earlier versions such as Netbeans 8.2 even though our pom.xml is valid (I used xmllint to check it and others on my team used other validators):
>>
>> "Project's pom.xml contains invalid xml content. Please fix the file before proceeding."
>>
>> I'll also attach a screenshot.
>>
>> What I'm trying to do is right click the Java EE project and open the properties.
>>
>> Here's the commit I'm on: https://github.com/IQSS/dataverse/blob/d04d09c3e8d66295dc12e25f676a04a44b69acd6/pom.xml
>>
>> Any advice is welcome!
>>
>> Phil
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org
For additional commands, e-mail: users-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: Project's pom.xml contains invalid xml content. Please fix the
file before proceeding.
Posted by Philip Durbin <ph...@gmail.com>.
I see what happened. In a recent pull request* we changed "http" to "https"
in our pom.xml like this:
BEFORE
<project xmlns="http://maven.apache.org/POM/4.0.0"
AFTER
<project xmlns="https://maven.apache.org/POM/4.0.0"
If I revert "https" back to "http" I can open the project properties.
Phil
* https://github.com/IQSS/dataverse/pull/6519
On Thu, Apr 9, 2020 at 3:17 PM Philip Durbin <ph...@gmail.com> wrote:
> Hi, we are seeing the following error in Netbeans 11.3 and earlier
> versions such as Netbeans 8.2 even though our pom.xml is valid (I used
> xmllint to check it and others on my team used other validators):
>
> "Project's pom.xml contains invalid xml content. Please fix the file
> before proceeding."
>
> I'll also attach a screenshot.
>
> What I'm trying to do is right click the Java EE project and open the
> properties.
>
> Here's the commit I'm on:
> https://github.com/IQSS/dataverse/blob/d04d09c3e8d66295dc12e25f676a04a44b69acd6/pom.xml
>
> Any advice is welcome!
>
> Phil
>