From 84ee422e65e86fc866c94dec162311b46a27f187 Mon Sep 17 00:00:00 2001 From: Tamas Cservenak Date: Thu, 7 Sep 2023 12:02:58 +0200 Subject: [PATCH] [MNG-7870] Undeprecate G level metadata (#1224) The modello generated classes should not be deprecated, and they are in use. --- https://issues.apache.org/jira/browse/MNG-7870 --- maven-repository-metadata/src/main/mdo/metadata.mdo | 10 ++-------- maven-repository-metadata/src/site/apt/index.apt | 12 ++++-------- 2 files changed, 6 insertions(+), 16 deletions(-) diff --git a/maven-repository-metadata/src/main/mdo/metadata.mdo b/maven-repository-metadata/src/main/mdo/metadata.mdo index 6ce381d4a8..aa7db3a2bc 100644 --- a/maven-repository-metadata/src/main/mdo/metadata.mdo +++ b/maven-repository-metadata/src/main/mdo/metadata.mdo @@ -74,10 +74,7 @@ under the License. plugins 1.0.0+ - The set of plugins when this directory represents a "groupId" (deprecated) - - @Deprecated - + The set of plugins when this directory represents a "groupId". Plugin * @@ -383,10 +380,7 @@ under the License. Plugin 1.0.0+ - Mapping information for a single plugin within this group (deprecated). - - @Deprecated - + Mapping information for a single plugin within this group. NOTE: plugin version is _NOT_ included here, since it is resolved using a separate algorithm in plugins' artifact. diff --git a/maven-repository-metadata/src/site/apt/index.apt b/maven-repository-metadata/src/site/apt/index.apt index 1a484f9f5c..0598e3887c 100644 --- a/maven-repository-metadata/src/site/apt/index.apt +++ b/maven-repository-metadata/src/site/apt/index.apt @@ -44,7 +44,7 @@ Maven Repository Metadata Model gives data about available versions (<<>>, <<>>, <<>> list and <<>>), [[3]] in a "groupId/artifactId/version" snapshot artifact directory: metadata describes <<>>, <<>>, <<>> (base version, i.e. ending in <<<-SNAPSHOT>>>) and - <<>> element that gives data about snaphot (<<>>, <<>> and <<>> list). Notice that a + <<>> element that gives data about snapshot (<<>>, <<>> and <<>> list). Notice that a release artifact directory is not expected to provide metadata. [] @@ -55,10 +55,6 @@ Maven Repository Metadata Model * a {{{./repository-metadata.html}Descriptor Reference}}. - Notice: data about plugins in a directory representing a groupId is deprecated and will be removed in a future Maven version. -~~ logic behind this: -~~ 1. MNG-7266: maven-compat will be removed from future Maven version -~~ 2. this will remove the code that updates plugins data: see MNG-7375/MPLUGIN-384 https://maven.apache.org/ref/3.8.4/maven-compat/apidocs/org/apache/maven/artifact/repository/metadata/GroupRepositoryMetadata.html -~~ 3. this will lead to inconsistent data: removing it will be safer/more clear -~~ but this logic still remains to be confirmed by clear consensus of the whole team - \ No newline at end of file + + For more information see this page: {{{https://maven.apache.org/repositories/metadata.html}Maven Metadata}}. +