I have a project which is being managed by maven
, let's say it's a web-server (but it can any project which is being run by its jar)
maven will create an artifact of this project and even store it on the local repo (or even on a remote if configured)
but those artifacts have no meaning outside their context, I won't have this jar as a dependency in some other project, so is there some other merits for artifacts in this scenario (it won't act as a dependency in any other project) ?
is there a way to disable this behavior of maven? (I still would like to use the version though and other maven abilities like it's hooks and plugins)
I currently doing that with mvn package
and state the specific build cycles and plugins I want to run, looking for easier kill switch, like disable the install phase completely, by configuration or smth, so even when using mvn install it will do all previous phases but the install