I have 3 folders for the environments but when I run 'mvn clean package', the target folder gets created
and it too is treated as an environment. This causes it to create an additional 2 zips:
[INFO] --- multienv-maven-plugin:0.2.0:configuration (default) @ myapp ---
[INFO]
[INFO] We have found 5 environments.
[INFO] We have the following environments: target,target/maven-archiver,dev,prod,test
[INFO]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 40 resources
[INFO] Building Environment: 'target'
[INFO] Building jar: /some/path/myapp-0.0.1-SNAPSHOT-target.zip
[INFO] Building Environment: 'target/maven-archiver'
[INFO] Building jar: /some/path/myapp-0.0.1-SNAPSHOT-target/maven-archiver.zip
[INFO] Building Environment: 'dev1'
[INFO] Building jar: /some/path/myapp-0.0.1-SNAPSHOT-dev.zip
[INFO] Building Environment: 'prod'
[INFO] Building jar: /some/path/myapp-0.0.1-SNAPSHOT-prod.zip
[INFO] Building Environment: 'uat'
[INFO] Building jar: /some/path/myapp-0.0.1-SNAPSHOT-test.zip
I have 3 folders for the environments but when I run 'mvn clean package', the target folder gets created and it too is treated as an environment. This causes it to create an additional 2 zips:
[INFO] --- multienv-maven-plugin:0.2.0:configuration (default) @ myapp --- [INFO] [INFO] We have found 5 environments. [INFO] We have the following environments: target,target/maven-archiver,dev,prod,test [INFO] [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 40 resources [INFO] Building Environment: 'target' [INFO] Building jar: /some/path/myapp-0.0.1-SNAPSHOT-target.zip [INFO] Building Environment: 'target/maven-archiver' [INFO] Building jar: /some/path/myapp-0.0.1-SNAPSHOT-target/maven-archiver.zip [INFO] Building Environment: 'dev1' [INFO] Building jar: /some/path/myapp-0.0.1-SNAPSHOT-dev.zip [INFO] Building Environment: 'prod' [INFO] Building jar: /some/path/myapp-0.0.1-SNAPSHOT-prod.zip [INFO] Building Environment: 'uat' [INFO] Building jar: /some/path/myapp-0.0.1-SNAPSHOT-test.zip
The respective portion of my pom:
Am I missing anything that ensures that the target and target/maven-archiver folders are not zipped?