Skip to content

Remove the Jetty 6 pluginManagement entry and the unbuilt archetype-samples tree - #1013

Draft
dchaudhari7177 wants to merge 1 commit into
apache:masterfrom
dchaudhari7177:MARCHETYPE-remove-jetty6-and-samples
Draft

Remove the Jetty 6 pluginManagement entry and the unbuilt archetype-samples tree#1013
dchaudhari7177 wants to merge 1 commit into
apache:masterfrom
dchaudhari7177:MARCHETYPE-remove-jetty6-and-samples

Conversation

@dchaudhari7177

Copy link
Copy Markdown

Closes #1012.

Removes three things that only made sense together:

  1. org.mortbay.jetty:maven-jetty-plugin:6.1.26 from the root pluginManagement
  2. the archetype-samples/ tree (13 files)
  3. the now-dead <exclude>archetype-samples/**</exclude> RAT entry, which would otherwise match nothing
14 files changed, 321 deletions(-)

Confirmed the claims before deleting

  • archetype-samples is not among the four <module> entries (archetype-models, archetype-common, maven-archetype-plugin, archetype-packaging)
  • outside the tree itself, the only reference in the whole repository was the RAT exclude
  • its parent is org.apache.maven.archetypes:archetype-samples:2.0-alpha-5-SNAPSHOT — never released, so the tree could not build regardless
  • jetty / mortbay appeared only in the root POM and archetype-samples/webapp/pom.xml

After the change, git grep over the committed tree finds no remaining reference to archetype-samples, mortbay or jetty.

Verification

Maven 3.9.9, JDK 21:

command result
mvn -N validate BUILD SUCCESS
mvn -N apache-rat:check BUILD SUCCESS — Unapproved: 0, unknown: 0, approved: 19

The RAT run matters here specifically: removing an exclude can newly expose files, and it does not — 0 unapproved.

A full reactor mvn validate fails in enforce-bytecode-version on archetype-common. I checked that against a pristine master and it fails identically there, so it is a pre-existing issue in my local environment and not something this PR touches. CI will be the real signal for the full build.

Scope note

The released archetypes live in apache/maven-archetypes, so no generated project inherits any of this. As the issue notes, the only theoretical reach is anything declaring this root POM as a parent, which outside this repository is nobody.

…amples tree

org.mortbay.jetty:maven-jetty-plugin:6.1.26 sat in the root pluginManagement.
That is the pre-Eclipse groupId and its last release, from November 2010.

Nothing in the build used it. The only reference was
archetype-samples/webapp/pom.xml, in a jetty profile, and archetype-samples is
not part of the build: it is not among the four module entries, it was
excluded from RAT, and its parent is
org.apache.maven.archetypes:archetype-samples:2.0-alpha-5-SNAPSHOT, a version
that was never released -- so the tree could not build even if someone tried.

Remove all three together: the pluginManagement entry, the tree, and the RAT
exclude that pointed at it, which would otherwise be left matching nothing.

After this, grep finds no remaining reference to archetype-samples, mortbay or
jetty anywhere in the repository.

The released archetypes live in apache/maven-archetypes, so no generated
project inherits any of this.

Verified with Maven 3.9.9 and JDK 21: `mvn -N validate` and
`mvn -N apache-rat:check` both succeed on the root module, RAT reporting 0
unapproved and 0 unknown across 19 approved licenses. A full reactor `mvn
validate` fails identically before and after this change, in
enforce-bytecode-version on archetype-common -- a pre-existing failure in my
local environment, not something this touches.

Closes apache#1012
@slachiewicz

Copy link
Copy Markdown
Member

Too hard removal - maybe we can convert samples to somethgin that woudl not use jetty ?

@slachiewicz
slachiewicz marked this pull request as draft August 21, 2026 20:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove the Jetty 6 pluginManagement entry and the unbuilt archetype-samples tree

2 participants