maven-package

A simple way to create a single file artifact using maven?

痞子三分冷 提交于 2019-12-10 11:47:38
问题 I'd like to create an single file artifact. Don't care if it's wrapped by an archive file. Is there a way to do it without creating a new maven-plugin or without using an additional assembly xml file? * Full code (XMLs) would be appreciated. 回答1: xml reference can be found here: How to specify files to be deployed in Maven fine tuning and command line experimentation: mvn install:install-file -DgroupId=com.xyz -DartifactId=zyx-component -Dversion=1.0.0 -Dfile=test.log -Dpackaging=log mvn

Maven with an explicit finalName won't work properly

怎甘沉沦 提交于 2019-12-04 02:46:50
问题 1. Background My maven project has a lot of modules and submodules with jars and wars and everything works. I also can deploy it on server without any problem. I decided to follow this maven naming conversion, I am making some tests with project.name and project.build.finalName to have an appropriate name. The pattern I defined to create project.name for the root artifact is company-${project.artifactId} and for the modules and sub-modules is ${project.parent.name}-${project.artifactId} :

Maven with an explicit finalName won't work properly

冷暖自知 提交于 2019-12-01 15:00:55
1. Background My maven project has a lot of modules and submodules with jars and wars and everything works. I also can deploy it on server without any problem. I decided to follow this maven naming conversion , I am making some tests with project.name and project.build.finalName to have an appropriate name. The pattern I defined to create project.name for the root artifact is company-${project.artifactId} and for the modules and sub-modules is ${project.parent.name}-${project.artifactId} : company-any-artifact-any-module1 company-any-artifact-any-module2-any-submodule1 company-any-artifact-any