ingenieux/beanstalker

clean-previous-versions don't work

Closed this issue · 6 comments

I keep getting this exception:

org.apache.maven.plugin.MojoFailureException: Declare either versionsToKeep or daysToKeep, but not both nor none!
at br.com.ingenieux.mojo.beanstalk.version.CleanPreviousVersionsMojo.executeInternal(CleanPreviousVersionsMojo.java:92)
at br.com.ingenieux.mojo.aws.AbstractAWSMojo.execute(AbstractAWSMojo.java:340)
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:320)
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)

No matter what values I provide. I think that it's a typo in the class. default-value should be replaced with expression.

Can you show the pom / cli invocation you're using?

The problem is unrelated to that. Simply, the original mojo descriptors weren't migrated to the new format we're using

A temp workaround is to use version 0.2.6 while I fix it

I'll wait for the fix, it's not urgent. Thanks.

Fixed in 0.2.7-RC6

thanks!