khmarbaise / multienv-maven-plugin

multienv-maven-plugin
https://khmarbaise.github.io/multienv-maven-plugin/
Apache License 2.0
9 stars 8 forks source link

target folder is getting created and zipped as an environment #17

Open devptrz opened 7 years ago

devptrz commented 7 years ago

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:

com.soebes.maven.plugins multienv-maven-plugin 0.2.0 zip ${basedir} ${basedir}/target/ configuration

Am I missing anything that ensures that the target and target/maven-archiver folders are not zipped?

khmarbaise commented 7 years ago

Can you make a zip file of a test project which shows this behaviour ?