Maven-publish plugin publishes 0 or two artifacts but not one

(Hans Marggraff) #1

I have configured a second artifact in my build through a jar task. I wanted to publish one of them using the maven-pulish plugin.

However if I just list one artifact (either the one from, or the other) then both get published.

I believe the plugin requires too much configuration in the default case and does not use conventions when it could.

If the plugin can find all publishable artifacts as it obviously does, then it should publish them per default using the artifactBaseName and the project version.

This should be complimented by a configuration, that allows to exclude some publications. I believe this would make the plugin easier to use.

In its current state (1.10) it is no improvement over the maven plugin.