Open rj-hwang opened 6 years ago
You know that omitting the packaging mean jar
? So usually can omit the <packaging>..</packaging>
tag if you like to have jar
packaging which is the default...
Yes, I know that. But keep <packaging>..</packaging>
tag is more clear.
When deploy my child module to bintray, bintray recognize it as a pom package if no <packaging>..</packaging>
tag. May be that is bintray bug. But keep it is a good idea.
The behavior comes from org.apache.maven.model.io.xpp3.MavenXpp3Writer (maven-model-3.2.5) which has
if ( ( model.getPackaging() != null ) && !model.getPackaging().equals( "jar" ) )
{
serializer.startTag( NAMESPACE, "packaging" ).text( model.getPackaging() ).endTag( NAMESPACE, "packaging" );
}
so I doubt this has any chance of being changed here.
Considered as nice to have. But no priority. If someone considers this as important please provide a PR.
Parent module:
Childmodule:
After
mvn install
the child module, theflattened-pom.xml
is:It losts
packaging
property.