开发者

"Unattach" WAR artifact from lifecycle since it's is superseded by an RPM

开发者 https://www.devze.com 2023-04-02 04:44 出处:网络
We have a multi-module Maven project who\'s primary artifact is a WAR.However our final b开发者_开发问答uild step is RPM packaging of that said WAR, and we really don\'t care about the WAR itself from

We have a multi-module Maven project who's primary artifact is a WAR. However our final b开发者_开发问答uild step is RPM packaging of that said WAR, and we really don't care about the WAR itself from a distributionManagement perspective. I would still like the JARS/source-jars uploaded to our Nexus repository, but it's just wasteful in terms of time/space to upload the WARs since no-one links agains that.

I would like to mark the WAR plugin as 'ignored' from a build life cycle point of view when going through the 'deploy' phase, since the RPM bundle itself is used.

I can't see any plugin configuration of the WAR plugin to avoid this, has anyone got any pointers?


Isn't that what the primaryArtifact property does? I've never used it, but I always assumed that's what it was for.

0

精彩评论

暂无评论...
验证码 换一张
取 消