user11215077
user11215077

Reputation: 17

Deploy mutliple artifacts to the same folder using maven

Currently we have one main pom file which builds the code for multiple modules using the module tag. When I use the "mvn clean package deploy" command (which references the main pom file and performs these actions fro all other modules), the packaged file(war/jar) for each module is placed in it's respective target directory. Since there are different modules and they have their own respective group-id,artifact-id etc. the packaged files are spread across different folders.

My applications consists of all of these modules and I need all the packaged files under one single folder. Till now we have used an ant script to copy the relevant files from all of these modules to a single folder. Apart from copying the files/aggregating all the packaged files and then uploading it as part of deploy:deploy-file is there any way I can deploy all the files to the same folder?

Upvotes: 0

Views: 500

Answers (1)

J Fabian Meier
J Fabian Meier

Reputation: 35785

No, this is not possible.

The directory structure in Artifactory is always of the form

org/something/artifact/1.2.3/artifact-1.2.3.jar

assuming groupId org.something, artifactId artifact and version 1.2.3.

This structure cannot be changed.

Upvotes: 1

Related Questions