-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Jetty Maven Plugin - jetty:run does not work with pom type dependencies #12173
Comments
jetty-maven-plugin gets its dependencies directly from maven. |
Here is a similar sample project with Jetty 9.4 |
@jaygarala thanks for the report. I've raised #12177 to fix it. |
@jaygarala FYI using such dependency is deprecated in Maven, tend to generate some problems and might be removed in the coming Maven 4. |
Seems exactly this to be documented in linked book by sonatype. |
sonatype != Apache Maven dev btw that's probably outdated doc which need to be fixed. |
In description, under more details here. |
@pzygielo thanks. |
This is not a 'trick', it is documented here, known as Grouping Dependencies. You include the POM as your dependency and it will bring the declared dependencies into your project. The BOM strategy is used to define the specific version of dependencies that you are including in the Maven module/sub-modules. You would still need to include the individual dependency in your module. Also the issue is of a third-party dependency which we have no control over. |
As said earlier you are reading some outdated documentation from a software vendor, this is not official documentation from the Apache Maven project.
Yes and this is a golden rule of using Maven always declare dependencies you are using if you want real control of your dependencies. I'm saying with my hat of Maven developers to help you. |
Upgrading from Jetty 9.4 to 12
Jetty version(s)
Jetty 12
Jetty Environment
ee10
Java version/vendor
(use: java -version)
OpenJDK 64-Bit Server VM (build 17.0.12+7-Ubuntu-1ubuntu222.04, mixed mode, sharing)
Apache Maven 3.6.3
OS type/version
Ubuntu 22
Description
This is working with Jetty 9.4. We have a maven dependency in the web-app that is
<type>pom</type>
, more details here. When running withjetty:run
, we get the following error.How to reproduce?
Extract the sample project. Run
mvn install
, thencd webapp
, andmvn jetty:run
jetty-maven-proj.zip
The text was updated successfully, but these errors were encountered: