You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Maven model 4.1.0 allows non-pom packaging for aggregators #11160
Please notice, that child/pom.xml do not declare parent.
lets consider scenarios.
Model 4.0.0, tag: Build fails with: 'packaging' with value 'jar' is invalid. Aggregator projects require 'pom' as packaging. This is good old behaviour
Model 4.1.0, tag: Again, build fails with: 'packaging' with value 'jar' is invalid. Aggregator projects require 'pom' as packaging. This is good old behaviour
Model 4.1.0, tag: Build passes. This looks a bit strange for me and contradicts with scenario Use Eclipse/Sisu 0.0.0.M2 milestone #2. Also, in this scenario src/main/java is also being compiled. We can fail the build, e.g. creating src/main/java/Main.java with syntax error
So, the issue is: In model 4.1.0 now it is possible to build jar from an aggregator project. OR, in another words, aggregator projects can have any packaging, not only"pom" if they use tag.
Is it an expected behavoir? If yes, we will fix our expectations in IDEA.
Model 4.0.0, tag modules: Build fails with: 'packaging' with value 'jar' is invalid. Aggregator projects require 'pom' as packaging. This is good old behaviour
Model 4.1.0, tag modules: Again, build fails with: 'packaging' with value 'jar' is invalid. Aggregator projects require 'pom' as packaging. This is good old behaviour
Model 4.1.0, tag subprojects: Build passes. This looks a bit strange for me and contradicts with scenario 2 . Also, in this scenario src/main/java is also being compiled.
Activity
zulkar commentedon Sep 23, 2025
Sorry, markdown ate tags.
Should be:
Model 4.0.0, tag modules: Build fails with: 'packaging' with value 'jar' is invalid. Aggregator projects require 'pom' as packaging. This is good old behaviour
Model 4.1.0, tag modules: Again, build fails with: 'packaging' with value 'jar' is invalid. Aggregator projects require 'pom' as packaging. This is good old behaviour
Model 4.1.0, tag subprojects: Build passes. This looks a bit strange for me and contradicts with scenario 2 . Also, in this scenario src/main/java is also being compiled.
Maven model 4.1.0 should not allow non-pom packaging for aggregators
Maven model 4.1.0 should not allow non-pom packaging for aggregators (#…
Maven model 4.1.0 should not allow non-pom packaging for aggregators (a…
Maven model 4.1.0 should not allow non-pom packaging for aggregators (a…
Maven model 4.1.0 should not allow non-pom packaging for aggregators (#…