You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by el...@apache.org on 2025/07/21 13:20:44 UTC

(maven-site) branch xsi created (now caf376ee)

This is an automated email from the ASF dual-hosted git repository.

elharo pushed a change to branch xsi
in repository https://gitbox.apache.org/repos/asf/maven-site.git


      at caf376ee Remove needless schema attributes for clarity

This branch includes the following new commits:

     new caf376ee Remove needless schema attributes for clarity

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



(maven-site) 01/01: Remove needless schema attributes for clarity

Posted by el...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

elharo pushed a commit to branch xsi
in repository https://gitbox.apache.org/repos/asf/maven-site.git

commit caf376ee3ccb6620c85b5ca6f6aed27af0cfcb57
Author: Elliotte Rusty Harold <el...@ibiblio.org>
AuthorDate: Mon Jul 21 09:19:35 2025 -0400

    Remove needless schema attributes for clarity
---
 content/apt/pom.apt.vm | 96 +++++++++++++++++---------------------------------
 1 file changed, 32 insertions(+), 64 deletions(-)

diff --git a/content/apt/pom.apt.vm b/content/apt/pom.apt.vm
index 05071e79..06621197 100644
--- a/content/apt/pom.apt.vm
+++ b/content/apt/pom.apt.vm
@@ -104,8 +104,7 @@ POM Reference
   <<<build.xml>>> file, where tasks are almost always dependant on the lines executed before it.
 
 +--------------------------+
-<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">
+<project xmlns="http://maven.apache.org/POM/4.0.0">
   <modelVersion>4.0.0</modelVersion>
 
   <groupId>org.codehaus.mojo</groupId>
@@ -162,8 +161,7 @@ POM Reference
   <<<jar>>>. We could make it into a <<<war>>> by declaring a different packaging:
 
 +-----------------+
-<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">
+<project xmlns="http://maven.apache.org/POM/4.0.0">
   ...
   <packaging>war</packaging>
   ...
@@ -202,8 +200,7 @@ POM Reference
   allowing your list to focus solely on the dependencies your project requires.
 
 +-----------------+
-<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">
+<project xmlns="http://maven.apache.org/POM/4.0.0">
   ...
   <dependencies>
     <dependency>
@@ -536,8 +533,7 @@ Display parameters as parsed by Maven (in canonical form and as a list of tokens
   dependency on maven-embedder:
 
 +-----------------------------+
-<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">
+<project xmlns="http://maven.apache.org/POM/4.0.0">
   ...
   <dependencies>
     <dependency>
@@ -565,8 +561,7 @@ Display parameters as parsed by Maven (in canonical form and as a list of tokens
   the dependencies you use, so you exclude all the transitive dependencies:
 
 +-----------------------------+
-<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">
+<project xmlns="http://maven.apache.org/POM/4.0.0">
   ...
   <dependencies>
     <dependency>
@@ -598,8 +593,7 @@ Display parameters as parsed by Maven (in canonical form and as a list of tokens
   makes project inheritance explicit in the project object model.
 
 +-----------------------------+
-<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">
+<project xmlns="http://maven.apache.org/POM/4.0.0">
   <modelVersion>4.0.0</modelVersion>
 
   <groupId>org.codehaus.mojo</groupId>
@@ -676,8 +670,7 @@ Display parameters as parsed by Maven (in canonical form and as a list of tokens
     []
 
 +-----------------------------+
-<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">
+<project xmlns="http://maven.apache.org/POM/4.0.0">
   <modelVersion>4.0.0</modelVersion>
 
   <parent>
@@ -747,8 +740,7 @@ Display parameters as parsed by Maven (in canonical form and as a list of tokens
   directories or the POM files of those projects.
 
 +-----------------------------+
-<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">
+<project xmlns="http://maven.apache.org/POM/4.0.0">
   <modelVersion>4.0.0</modelVersion>
 
   <groupId>org.codehaus.mojo</groupId>
@@ -850,8 +842,7 @@ Display parameters as parsed by Maven (in canonical form and as a list of tokens
   <Note: These different> <<<build>>> <elements may be denoted "project build" and "profile build".>
 
 +-----------------------+
-<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">
+<project xmlns="http://maven.apache.org/POM/4.0.0">
   ...
   <!-- "Project Build" contains more elements than just the BaseBuild set -->
   <build>...</build>
@@ -920,8 +911,7 @@ Display parameters as parsed by Maven (in canonical form and as a list of tokens
   to bundle the resource correctly, you would specify resources similar to the following:
 
 +------------------------------------------+
-<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">
+<project xmlns="http://maven.apache.org/POM/4.0.0">
   <build>
     ...
     <resources>
@@ -980,8 +970,7 @@ Display parameters as parsed by Maven (in canonical form and as a list of tokens
 **** Plugins
 
 +------------------------------------------+
-<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">
+<project xmlns="http://maven.apache.org/POM/4.0.0">
   <build>
     ...
     <plugins>
@@ -1163,8 +1152,7 @@ Display parameters as parsed by Maven (in canonical form and as a list of tokens
   You would get an <<<execution>>> like this:
 
 +------------------------------------------+
-<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">
+<project xmlns="http://maven.apache.org/POM/4.0.0">
   ...
   <build>
     <plugins>
@@ -1226,8 +1214,7 @@ Display parameters as parsed by Maven (in canonical form and as a list of tokens
   []
 
 +------------------------------------------+
-<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">
+<project xmlns="http://maven.apache.org/POM/4.0.0">
   ...
   <build>
     ...
@@ -1263,8 +1250,7 @@ Display parameters as parsed by Maven (in canonical form and as a list of tokens
   So rather than the above mess included in every child <<<pom.xml>>>, only the following is required:
 
 +------------------------------------------+
-<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">
+<project xmlns="http://maven.apache.org/POM/4.0.0">
   ...
   <build>
     ...
@@ -1292,8 +1278,7 @@ Display parameters as parsed by Maven (in canonical form and as a list of tokens
  for the POM as a whole. Since they do not exist in profile builds, these cannot be altered by profiles.
 
 +------------------------------------------+
-<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">
+<project xmlns="http://maven.apache.org/POM/4.0.0">
   ...
   <build>
     <sourceDirectory>\${project.basedir}/src/main/java</sourceDirectory>
@@ -1321,8 +1306,7 @@ Display parameters as parsed by Maven (in canonical form and as a list of tokens
   are excellent for specifying one out of multiple implementations of a common plugin interface.
 
 +------------------------------------------+
-<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">
+<project xmlns="http://maven.apache.org/POM/4.0.0">
   ...
   <build>
     ...
@@ -1358,8 +1342,7 @@ Display parameters as parsed by Maven (in canonical form and as a list of tokens
   also be suppressed in the following, more verbose, way, which effectively turns off project-info reports.
 
 +------------------------------------------+
-<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">
+<project xmlns="http://maven.apache.org/POM/4.0.0">
   ...
   <reporting>
     <outputDirectory>${project.basedir}/target/site</outputDirectory>
@@ -1393,8 +1376,7 @@ Display parameters as parsed by Maven (in canonical form and as a list of tokens
   children, and set <<<inherited>>> to true. The <<<reportSet>>> would resemble the following:
 
 +------------------------------------------+
-<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">
+<project xmlns="http://maven.apache.org/POM/4.0.0">
   ...
   <reporting>
     <plugins>
@@ -1479,8 +1461,7 @@ Display parameters as parsed by Maven (in canonical form and as a list of tokens
   where the most basic information is set.
 
 +-------------------------+
-<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">
+<project xmlns="http://maven.apache.org/POM/4.0.0">
   ...
   <organization>
     <name>Mojohaus</name>
@@ -1500,8 +1481,7 @@ Display parameters as parsed by Maven (in canonical form and as a list of tokens
   should not be contacted about the project, they do not need to be listed here.
 
 +-------------------------+
-<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">
+<project xmlns="http://maven.apache.org/POM/4.0.0">
   ...
   <developers>
     <developer>
@@ -1556,8 +1536,7 @@ Display parameters as parsed by Maven (in canonical form and as a list of tokens
   than developers.
 
 +-------------------------+
-<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">
+<project xmlns="http://maven.apache.org/POM/4.0.0">
   ...
   <contributors>
     <contributor>
@@ -1590,8 +1569,7 @@ Display parameters as parsed by Maven (in canonical form and as a list of tokens
   something, it's primarily used for generating project documentation.
 
 +-------------------------+
-<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">
+<project xmlns="http://maven.apache.org/POM/4.0.0">
   ...
   <issueManagement>
     <system>Bugzilla</system>
@@ -1614,8 +1592,7 @@ Display parameters as parsed by Maven (in canonical form and as a list of tokens
   <<<sendOnFailure>>>, and not <<<sendOnSuccess>>> or <<<sendOnWarning>>>.
 
 +-------------------------+
-<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">
+<project xmlns="http://maven.apache.org/POM/4.0.0">
   ...
   <ciManagement>
     <system>continuum</system>
@@ -1641,8 +1618,7 @@ Display parameters as parsed by Maven (in canonical form and as a list of tokens
   Most mailing lists are for developers and users.
 
 +-------------------------+
-<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">
+<project xmlns="http://maven.apache.org/POM/4.0.0">
   ...
   <mailingLists>
     <mailingList>
@@ -1679,8 +1655,7 @@ Display parameters as parsed by Maven (in canonical form and as a list of tokens
   (it does, doesn't it?) then here is where you would place that information into the POM.
 
 +-------------------------+
-<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">
+<project xmlns="http://maven.apache.org/POM/4.0.0">
   ...
   <scm>
     <connection>scm:svn:http://127.0.0.1/svn/my-project</connection>
@@ -1730,8 +1705,7 @@ scm:cvs:pserver:127.0.0.1:/cvs/root:my-project
   that the minimum Maven version for the plugin is met (but only in the pom.xml of the referenced plugin).
 
 +-------------------------+
-<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">
+<project xmlns="http://maven.apache.org/POM/4.0.0">
   ...
   <prerequisites>
     <maven>2.0.6</maven>
@@ -1756,8 +1730,7 @@ scm:cvs:pserver:127.0.0.1:/cvs/root:my-project
   configured in the pom.xml `repositories` element. 
 
 +-------------------------+
-<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">
+<project xmlns="http://maven.apache.org/POM/4.0.0">
   ...
   <repositories>
     <repository>
@@ -1857,8 +1830,7 @@ scm:cvs:pserver:127.0.0.1:/cvs/root:my-project
   The repository elements will be used for snapshot distribution if the snapshotRepository is not defined.
 
 +-------------------------+
-<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">
+<project xmlns="http://maven.apache.org/POM/4.0.0">
   ...
   <distributionManagement>
     <repository>
@@ -1903,8 +1875,7 @@ scm:cvs:pserver:127.0.0.1:/cvs/root:my-project
   how to deploy the project's site and documentation.
 
 +-------------------------+
-<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">
+<project xmlns="http://maven.apache.org/POM/4.0.0">
   ...
   <distributionManagement>
     ...
@@ -1926,8 +1897,7 @@ scm:cvs:pserver:127.0.0.1:/cvs/root:my-project
 *** Relocation
 
 +-------------------------+
-<project xmlns="http://maven.apache.org/POM/4.0.0"1 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">
+<project xmlns="http://maven.apache.org/POM/4.0.0"1>
   ...
   <distributionManagement>
     ...
@@ -2014,8 +1984,7 @@ scm:cvs:pserver:127.0.0.1:/cvs/root:my-project
   The elements of profiles are as follows:
 
 +-------------------------+
-<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">
+<project xmlns="http://maven.apache.org/POM/4.0.0">
   ...
   <profiles>
     <profile>
@@ -2040,8 +2009,7 @@ scm:cvs:pserver:127.0.0.1:/cvs/root:my-project
   basic POM only under certain circumstances. Those circumstances are specified via an <<<activation>>> element.
 
 +-------------------------+
-<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">
+<project xmlns="http://maven.apache.org/POM/4.0.0">
   <!-- ... -->
   <profiles>
     <profile>