You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Christine Poerschke (BLOOMBERG/ LONDON)" <cp...@bloomberg.net> on 2017/10/16 13:00:52 UTC

pom.xml.template schemaLocation

I noticed that we have

xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"

currently and that doesn't seem to exist at present.

There's a https://maven.apache.org/xsd/maven-v3_0_0.xsd and
        a https://maven.apache.org/xsd/maven-4.0.0.xsd
linked on http://maven.apache.org/ref/3.5.0/maven-model/maven.html however.

Can I change our schemaLocation in the pom.xml.template files to https://maven.apache.org/xsd/maven-4.0.0.xsd or is some other change needed?

Thanks,
Christine
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Re: pom.xml.template schemaLocation

Posted by Steve Rowe <sa...@gmail.com>.
I guess canonical is overstating it - here’s the one from both the POM reference <https://maven.apache.org/pom.html> and the 3.5.0 Maven Model <http://maven.apache.org/ref/3.5.0/maven-model/maven.html>:	•   

> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
>                     http://maven.apache.org/xsd/maven-4.0.0.xsd"

+1 from me to change our pom.xml.template-s.  (I don’t know whether “http://” or “https://” is better.)

--
Steve
www.lucidworks.com

> On Oct 16, 2017, at 10:21 AM, Steve Rowe <sa...@gmail.com> wrote:
> 
> Hi Christine,
> 
>> On Oct 16, 2017, at 9:00 AM, Christine Poerschke (BLOOMBERG/ LONDON) <cp...@bloomberg.net> wrote:
>> 
>> I noticed that we have
>> 
>> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"
>> 
>> currently and that doesn't seem to exist at present.
> 
> wget against the .xsd link says:
> 
>> HTTP request sent, awaiting response... 301 Moved Permanently
>> Location: http://maven.apache.org/xsd/maven-4.0.0.xsd [following]
> 
> But: I ran ‘mvn archetype:generate’ using Maven 3.5.0 and got the exact same xsi:schemaLocation as we have in our pom.xml.template files:
> 
>> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd
> 
> I guess one could say this is canonical?
> 
> --
> Steve
> www.lucidworks.com
> 
> 
>> There's a https://maven.apache.org/xsd/maven-v3_0_0.xsd and
>>       a https://maven.apache.org/xsd/maven-4.0.0.xsd
>> linked on http://maven.apache.org/ref/3.5.0/maven-model/maven.html however.
>> 
>> Can I change our schemaLocation in the pom.xml.template files to https://maven.apache.org/xsd/maven-4.0.0.xsd or is some other change needed?
>> 
>> Thanks,
>> Christine
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Re: pom.xml.template schemaLocation

Posted by Steve Rowe <sa...@gmail.com>.
Hi Christine,

> On Oct 16, 2017, at 9:00 AM, Christine Poerschke (BLOOMBERG/ LONDON) <cp...@bloomberg.net> wrote:
> 
> I noticed that we have
> 
> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"
> 
> currently and that doesn't seem to exist at present.

wget against the .xsd link says:

> HTTP request sent, awaiting response... 301 Moved Permanently
> Location: http://maven.apache.org/xsd/maven-4.0.0.xsd [following]

But: I ran ‘mvn archetype:generate’ using Maven 3.5.0 and got the exact same xsi:schemaLocation as we have in our pom.xml.template files:

> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd

I guess one could say this is canonical?

--
Steve
www.lucidworks.com


> There's a https://maven.apache.org/xsd/maven-v3_0_0.xsd and
>        a https://maven.apache.org/xsd/maven-4.0.0.xsd
> linked on http://maven.apache.org/ref/3.5.0/maven-model/maven.html however.
> 
> Can I change our schemaLocation in the pom.xml.template files to https://maven.apache.org/xsd/maven-4.0.0.xsd or is some other change needed?
> 
> Thanks,
> Christine


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org