Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
devptrz opened this issue Mar 16, 2017 · 1 comment
Open

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

devptrz opened this issue Mar 16, 2017 · 1 comment

Comments

@devptrz
Copy link

devptrz commented Mar 16, 2017

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
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants