Giter Club home page Giter Club logo

Comments (7)

dmitry-timofeev avatar dmitry-timofeev commented on June 25, 2024 2

The http://maven.apache.org/developers/conventions/code.html#POM_Code_Convention which this plugin enforces now uses https for the Maven POM XSD.

It seems reasonable to make tidy-maven-plugin do the opposite of its present behaviour: to rewrite http to https in https://maven.apache.org/xsd/maven-4.0.0.xsd"

from tidy-maven-plugin.

dbwiddis avatar dbwiddis commented on June 25, 2024 1

This change is just unreleased. Would anyone of the maintainers please release a new version? Probably, a 2.0.0 — since it will fail previously passing builds.

As of March 2020, Maven no longer supports http. Https is not only a good idea, it's mandatory.

The current version of the tidy plugin actively breaks builds when used.

from tidy-maven-plugin.

dmitry-timofeev avatar dmitry-timofeev commented on June 25, 2024

I considered patching that, but it appeared it was already fixed 3 years ago in 52917c0:

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

This change is just unreleased. Would anyone of the maintainers please release a new version? Probably, a 2.0.0 — since it will fail previously passing builds.

from tidy-maven-plugin.

sewe avatar sewe commented on June 25, 2024

As of March 2020, Maven no longer supports http. Https is not only a good idea, it's mandatory.

The current version of the tidy plugin actively breaks builds when used.

I cannot confirm this with version 1.1.0.

Are you sure that you are only changing the schema’s location to https: and not also the namespace URI itself? That is just an identifier and not used for network communication. As such it must not be changed but needs to stay at http::

<project xmlns="http://maven.apache.org/POM/4.0.0"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">

from tidy-maven-plugin.

sewe avatar sewe commented on June 25, 2024

Spoke to soon. The tidy:pom goal indeed rewrites the schema’s location from https: back to http:; only my IDE didn’t refresh its editors. So the bug still persists in version 1.1.0. 😢

from tidy-maven-plugin.

ctrueden avatar ctrueden commented on June 25, 2024

@sewe wrote:

The tidy:pom goal indeed rewrites the schema’s location from https: back to http:

I tried to fix this behavior with #53.

Edit: The behavior was already fixed on the main branch, so my PR was unnecessary. It's just that we need a tidy-maven-plugin 1.1.1 release now.

from tidy-maven-plugin.

slawekjaranowski avatar slawekjaranowski commented on June 25, 2024

For reference #54 - will be released soon, so I close this issue.

from tidy-maven-plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.