-
-
Notifications
You must be signed in to change notification settings - Fork 358
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
Feature Request: Support for Publishing POM Artifacts #3206
Comments
I see two task to implement this:
@tecklead Can you clarify whether in Maven pom-packaging modules compilation is possible at all? Is it optional or even disallowed? Can pom-packaging modules have tests? |
@lefou In our case, we don't have any code/tests in pom-packaging modules. IMHO, In Maven, when you define a module with pom packaging, it serves as a container for other modules but does not produce a deployable artifact like a JAR or WAR. This is typically used for parent projects that aggregate several sub-modules.
References :- https://maven.apache.org/pom.html#aggregation-or-multi-module |
Added new `PublishModuleTests` test suite and moved all publish test there. Fix #3206
Description:
In Maven, the packaging attribute allows for publishing
pom
artifacts. This is particularly useful for creating parent POMs that can be used as dependencies in other projects. Here is an example of how this works in Maven:Example POM Configuration:
With the above configuration, the
com.example.abc-starter
artifact can be referenced as a parent in another POM:Example Usage in a
Consumer
POM:Request:
It would be highly beneficial if Mill could provide similar support for publishing pom artifacts. This would allow for the creation of parent POMs that can be used as dependencies in consumer POMs using the same syntax as shown above.
Benefits:
Thank you for considering this feature request!
The text was updated successfully, but these errors were encountered: