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

Class class com.jcabi.heroku.maven.plugin.Repo is not immutable, can't use it #149

Closed
yegor256 opened this issue Mar 5, 2013 · 1 comment

Comments

@yegor256
Copy link
Member

yegor256 commented Mar 5, 2013

[ERROR] Failed to execute goal com.jcabi:jcabi-heroku-maven-plugin:0.7.10:deploy (deploy-to-heroku) on project woquo-www: Execution deploy-to-heroku of goal com.jcabi:jcabi-heroku-maven-plugin:0.7.10:deploy failed: Class class com.jcabi.heroku.maven.plugin.Repo is not immutable, can't use it: Class 'com.jcabi.heroku.maven.plugin.Repo' is mutable: field 'private final transient java.io.File com.jcabi.heroku.maven.plugin.Repo.path' is mutable: Class 'java.io.File' is mutable: field 'private java.lang.String java.io.File.path' is not final -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.jcabi:jcabi-heroku-maven-plugin:0.7.10:deploy (deploy-to-heroku) on project woquo-www: Execution deploy-to-heroku of goal com.jcabi:jcabi-heroku-maven-plugin:0.7.10:deploy failed: Class class com.jcabi.heroku.maven.plugin.Repo is not immutable, can't use it
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:225)
        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)
        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:601)
        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.PluginExecutionException: Execution deploy-to-heroku of goal com.jcabi:jcabi-heroku-maven-plugin:0.7.10:deploy failed: Class class com.jcabi.heroku.maven.plugin.Repo is not immutable, can't use it
        at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:110)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
        ... 19 more
Caused by: java.lang.IllegalStateException: Class class com.jcabi.heroku.maven.plugin.Repo is not immutable, can't use it
        at com.jcabi.aspects.aj.ImmutabilityChecker.after(ImmutabilityChecker.java:71)
        at com.jcabi.heroku.maven.plugin.Repo.<init>(Repo.java:72)
        at com.jcabi.heroku.maven.plugin.Heroku.clone(Heroku.java:103)
        at com.jcabi.heroku.maven.plugin.DeployMojo.execute(DeployMojo.java:149)
        at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
        ... 20 more
Caused by: com.jcabi.aspects.aj.ImmutabilityChecker$Violation: Class 'com.jcabi.heroku.maven.plugin.Repo' is mutable
        at com.jcabi.aspects.aj.ImmutabilityChecker.check(ImmutabilityChecker.java:102)
        at com.jcabi.aspects.aj.ImmutabilityChecker.after(ImmutabilityChecker.java:69)
        ... 24 more
Caused by: com.jcabi.aspects.aj.ImmutabilityChecker$Violation: field 'private final transient java.io.File com.jcabi.heroku.maven.plugin.Repo.path' is mutable
        at com.jcabi.aspects.aj.ImmutabilityChecker.fields(ImmutabilityChecker.java:162)
        at com.jcabi.aspects.aj.ImmutabilityChecker.check(ImmutabilityChecker.java:100)
        ... 25 more
Caused by: com.jcabi.aspects.aj.ImmutabilityChecker$Violation: Class 'java.io.File' is mutable
        at com.jcabi.aspects.aj.ImmutabilityChecker.check(ImmutabilityChecker.java:102)
        at com.jcabi.aspects.aj.ImmutabilityChecker.fields(ImmutabilityChecker.java:160)
        ... 26 more
Caused by: com.jcabi.aspects.aj.ImmutabilityChecker$Violation: field 'private java.lang.String java.io.File.path' is not final
        at com.jcabi.aspects.aj.ImmutabilityChecker.fields(ImmutabilityChecker.java:144)
        at com.jcabi.aspects.aj.ImmutabilityChecker.check(ImmutabilityChecker.java:100)
        ... 27 more
yegor256 pushed a commit that referenced this issue Mar 5, 2013
yegor256 pushed a commit that referenced this issue Mar 5, 2013
@yegor256
Copy link
Member Author

yegor256 commented Mar 5, 2013

fixed

@yegor256 yegor256 closed this as completed Mar 5, 2013
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

1 participant