Comments (7)
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.
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.
I considered patching that, but it appeared it was already fixed 3 years ago in 52917c0:
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.
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.
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.
@sewe wrote:
The tidy:pom goal indeed rewrites the schema’s location from
https:
back tohttp:
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.
For reference #54 - will be released soon, so I close this issue.
from tidy-maven-plugin.
Related Issues (20)
- Add tidy.skip parameter HOT 2
- Ordering mismatch when compared to POM Code Convention HOT 1
- More specific section paths when sorting
- tidy:check tries to check (virtual) pom.xml of POM-less Tycho build
- The MojoHaus plugin list still states this is a “pre-release plugin” HOT 1
- indent size ignored HOT 1
- tidy:pom concatentes original and tidied POM, producing invalid XML HOT 2
- on http://www.mojohaus.org/tidy-maven-plugin/ it must clarify what tidy pom is HOT 3
- Support for validating other XML related files (i.e. assembly descriptors).
- Make plugin @threadSafe HOT 1
- Apply XML Code Style HOT 1
- Modules placement does not work with archetype HOT 1
- Dependency Exclusions groupId/artifactId get inconsistency ordered
- Update to Java 8
- WstxParsingException when using properties ending on dependency or plugin. HOT 1
- Please release a new version that includes the threadSafe fix HOT 11
- How to avoid checking maven-shade-plugin: dependency-reduced-pom.xml?
- Pom goal destroys poms that use shade relocation HOT 2
- How to disable comments formatting?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tidy-maven-plugin.