[ERROR] Failed to execute goal br.com.ingenieux:beanstalk-maven-plugin:0.2.7-RC6:update-environment (default-cli) on project ui: Failed: org.apache.maven.plugin.MojoExecutionException: You must declare either EnvironmentId or EnvironmentName or EnvironmentCNamePrefix
I use
<plugin>
<groupId>br.com.ingenieux</groupId>
<artifactId>beanstalk-maven-plugin</artifactId>
<version>0.2.7-RC6</version>
<configuration>
<accessKey>...</accessKey>
<secretKey>...</secretKey>
<s3Bucket>...</s3Bucket>
<s3Key>${project.build.finalName}-${beanstalk.versionLabel}.war</s3Key>
<applicationName>BizFabrik</applicationName>
<environmentName>Test</environmentName>
<cnamePrefix>bizfabrik</cnamePrefix>
<verbose>true</verbose>
</configuration>
</plugin>
(Yes, I'll get rid of the accessKey, etc. ... after I have it working ;-)
It uploads to S3 but does not switch the Beanstalk environment.
I added the tags <EnvironmentName> and <EnvironmentCNamePrefix> to the configuration above, but that did not make a difference. I got it working with 0.2.6, but that had the log issue (although worked ;-)
What am I missing?
[INFO] --- beanstalk-maven-plugin:0.2.7-RC6:upload-source-bundle (default-cli) @ ui --- SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". SLF4J: Defaulting to no-operation (NOP) logger implementation SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details. [WARNING] Warning! Usage of accessKey and secretKey is being deprecated! See http://beanstalker.ingenieux.com.br/beanstalk-maven-plugin/security.html for more information [WARNING] You should encrypt your passwords. See http://beanstalker.ingenieux.com.br/security.html for more information [INFO] Target Path: s3://elasticbeanstalk-us-east-1-016408518007/ui-1.1-SNAPSHOT-20120906-182551.war [INFO] Uploading artifact file: /var/lib/hudson/jobs/bizUi/workspace/target/ui-1.1-SNAPSHOT.war [INFO] Artifact Uploaded [INFO] SUCCESS [INFO] ETag: 009e675a9ada7b3edafcf7c0e767b7e2 [class: String] [INFO] [INFO] --- beanstalk-maven-plugin:0.2.7-RC6:create-application-version (default-cli) @ ui --- [WARNING] Warning! Usage of accessKey and secretKey is being deprecated! See http://beanstalker.ingenieux.com.br/beanstalk-maven-plugin/security.html for more information [WARNING] You should encrypt your passwords. See http://beanstalker.ingenieux.com.br/security.html for more information [INFO] SUCCESS [INFO] sourceBundle: {S3Bucket: elasticbeanstalk-us-east-1-016408518007, S3Key: ui-1.1-SNAPSHOT-20120906-182551.war, } [class: S3Location] [INFO] versionLabel: 20120906-182551 [class: String] [INFO] description: GWT UI [class: String] [INFO] applicationName: BizFabrik [class: String] [INFO] dateCreated: Thu Sep 06 18:29:15 UTC 2012 [class: Date] [INFO] dateUpdated: Thu Sep 06 18:29:15 UTC 2012 [class: Date] [INFO] [INFO] --- beanstalk-maven-plugin:0.2.7-RC6:update-environment (default-cli) @ ui --- [WARNING] FAILURE java.lang.RuntimeException: org.apache.maven.plugin.MojoExecutionException: You must declare either EnvironmentId or EnvironmentName or EnvironmentCNamePrefix at br.com.ingenieux.mojo.beanstalk.AbstractNeedsEnvironmentMojo.configure(AbstractNeedsEnvironmentMojo.java:49) at br.com.ingenieux.mojo.aws.AbstractAWSMojo.execute(AbstractAWSMojo.java:338) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59) at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196) at org.apache.maven.cli.MavenCli.main(MavenCli.java:141) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352) Caused by: org.apache.maven.plugin.MojoExecutionException: You must declare either EnvironmentId or EnvironmentName or EnvironmentCNamePrefix at br.com.ingenieux.mojo.beanstalk.AbstractBeanstalkMojo.lookupEnvironment(AbstractBeanstalkMojo.java:67) at br.com.ingenieux.mojo.beanstalk.AbstractNeedsEnvironmentMojo.configure(AbstractNeedsEnvironmentMojo.java:47) ... 22 more