You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "dchaudhari7177 (via GitHub)" <gi...@apache.org> on 2026/08/19 11:20:52 UTC

[PR] Remove the Jetty 6 pluginManagement entry and the unbuilt archetype-samples tree [maven-archetype]

dchaudhari7177 opened a new pull request, #1013:
URL: https://github.com/apache/maven-archetype/pull/1013

   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.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Replace the Jetty 6 sample profile with a container-neutral Cargo one [maven-archetype]

Posted by "dchaudhari7177 (via GitHub)" <gi...@apache.org>.
dchaudhari7177 commented on PR #1013:
URL: https://github.com/apache/maven-archetype/pull/1013#issuecomment-5393033456

   @slachiewicz good call — reworked along those lines. The samples all stay; only the webapp sample's container profile changes.
   
   `archetype-samples/webapp/pom.xml` now uses `org.codehaus.cargo:cargo-maven3-plugin` 1.10.28 with an embedded container instead of `org.mortbay.jetty:maven-jetty-plugin` 6.1.26, and the root pom's matching `pluginManagement` entry goes away with it. Cargo keeps the "build the war and serve it" affordance the sample was demonstrating while being container-neutral — one `<containerId>` swap moves the same war to Jetty, WildFly or Payara.
   
   Tomcat 9 is the default rather than something newer on purpose: this sample's `web.xml` declares servlet 2.5 in the `javax.servlet` namespace, and Tomcat 10+/Jetty 11+ moved to `jakarta.servlet`, so they would not deploy it unchanged.
   
   One judgement call worth flagging — I folded the `tomcat` profile into the same profile rather than leaving it beside the new one. It bound `org.codehaus.mojo:tomcat-maven-plugin` (last release 2011), declared **no version** in this pom or in `pluginManagement`, and used the Maven 2 `${pom.artifactId}` expression, so it could not have resolved either. Happy to restore it as a separate `tomcat` profile if you would rather keep the two ids.
   
   Verified rather than assumed: I copied the sample's `src/` and the new profile into a standalone project and ran it.
   
   ```
   [INFO] Tomcat 9.x Embedded starting...
   INFO: Starting Servlet engine: [Apache Tomcat/9.0.120]
   [INFO] Tomcat 9.x Embedded started on port [15000]
   ```
   
   `curl http://localhost:15000/` returns 200 with the sample's `index.jsp` body. The `<context>/</context>` deployable property is what puts it at the root path — without it Cargo deploys to `/maven-webapp`, whereas `jetty:run` served at `/`, so that keeps the documented URL unchanged.
   
   `mvn -N validate` passes on the edited root pom. Note the samples tree is still not in `<modules>` (and its own `<modules>` is commented out), so CI does not build it — that standalone run is the only way to exercise it.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Replace the Jetty 6 sample profile with a container-neutral Cargo one [maven-archetype]

Posted by "slachiewicz (via GitHub)" <gi...@apache.org>.
slachiewicz merged PR #1013:
URL: https://github.com/apache/maven-archetype/pull/1013


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Remove the Jetty 6 pluginManagement entry and the unbuilt archetype-samples tree [maven-archetype]

Posted by "slachiewicz (via GitHub)" <gi...@apache.org>.
slachiewicz commented on PR #1013:
URL: https://github.com/apache/maven-archetype/pull/1013#issuecomment-5352107183

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


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org