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

Open Beginner friendly
#1,012 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
88/100
Issue type
Refactor
Clarity
Clearly specified
Activity status
Active
Tech stack
java
Domain
build-system

Research direction

Start with the root pom.xml and inspect its pluginManagement entry, then review the archetype-samples tree and its webapp/pom.xml. Remove the obsolete Jetty entry and the unbuilt tree together; done means the four current modules remain unchanged and no build reference to archetype-samples remains.

Written by the indexing model from the issue text.

Description

dependencies good first issue maintenance

Spun out of the estate-wide Jetty review in apache/maven#12768, which was triggered by the Jetty 9/10/11 end-of-life announcement in jetty/jetty.project#13918. This one is not covered by that announcement — it is older than the versions it covers — but it turned up in the same sweep, and it is cleanup rather than risk.

What is there

The root pom.xml pins org.mortbay.jetty:maven-jetty-plugin:6.1.26 in pluginManagement.

org.mortbay.jetty is the pre-Eclipse groupId, and 6.1.26 is the last release ever made under it — November 2010.

Why it can probably just go

Nothing in the build uses it. The only reference is archetype-samples/webapp/pom.xml, in a jetty profile with <defaultGoal>jetty:run</defaultGoal>, and archetype-samples is not part of the build:

  • it is not listed among the four <module> entries (archetype-models, archetype-common, maven-archetype-plugin, archetype-packaging)
  • it is excluded from RAT (<exclude>archetype-samples/**</exclude>)
  • its own parent is org.apache.maven.archetypes:archetype-samples:2.0-alpha-5-SNAPSHOT, a version that was never released, so the tree would not build even if someone tried

To be clear about what this is not: the released archetypes live in apache/maven-archetypes, so no generated project inherits any of this. The only theoretical reach is that our root POM is published and its pluginManagement is inherited by anything declaring it as a parent — which, outside this repository, is nobody.

Suggestion

Delete the pluginManagement entry and the archetype-samples tree together. The samples reference a 15-year-old Jetty and a tomcat:run profile from the same era, and they have been unbuildable for long enough that nobody has noticed.

If someone wants the samples kept, they need a live parent and a place in the build; a sample nobody compiles is a sample nobody maintains.

Small and self-contained — reasonable for a first contribution.

This issue was created with AI assistance.

Dominant language
Java
Stars
148
Forks
181
Avg merge
5h 25m
Merged PRs (30d)
16

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from apache/maven-archetype

All issues in apache/maven-archetype

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.