Uploaded image for project: 'Maven Stage Plugin'
  1. Maven Stage Plugin
  2. MSTAGE-22

Could not find a suitable constructor in kr.motd.maven.os.DetectExtension. Classes must have either one (and only one) constructor annotated with @Inject or a zero-argument constructor that is not private.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None
    • Auto Pilot

    Description

      [ERROR] Internal error: com.google.inject.ProvisionException: Guice provision errors:
      [ERROR]
      [ERROR] 1) Could not find a suitable constructor in kr.motd.maven.os.DetectExtension. Classes must have either one (and only one) constructor annotated with @Inject or a zero-argument constructor that is not private.
      [ERROR] at kr.motd.maven.os.DetectExtension.class(Unknown Source)
      [ERROR] while locating kr.motd.maven.os.DetectExtension
      [ERROR] at ClassRealm[extension>kr.motd.maven:os-maven-plugin:1.6.0, parent: sun.misc.Launcher$AppClassLoader@5c647e05]
      [ERROR] at ClassRealm[extension>kr.motd.maven:os-maven-plugin:1.6.0, parent: sun.misc.Launcher$AppClassLoader@5c647e05]
      [ERROR] while locating org.apache.maven.AbstractMavenLifecycleParticipant annotated with @com.google.inject.name.Named(value=detect-os)
      [ERROR]
      [ERROR] 1 error
      [ERROR] -> [Help 1]
      org.apache.maven.InternalErrorException: Internal error: com.google.inject.ProvisionException: Guice provision errors:

      1) Could not find a suitable constructor in kr.motd.maven.os.DetectExtension. Classes must have either one (and only one) constructor annotated with @Inject or a zero-argument constructor that is not private.
      at kr.motd.maven.os.DetectExtension.class(Unknown Source)
      while locating kr.motd.maven.os.DetectExtension
      at ClassRealm[extension>kr.motd.maven:os-maven-plugin:1.6.0, parent: sun.misc.Launcher$AppClassLoader@5c647e05]
      at ClassRealm[extension>kr.motd.maven:os-maven-plugin:1.6.0, parent: sun.misc.Launcher$AppClassLoader@5c647e05]
      while locating org.apache.maven.AbstractMavenLifecycleParticipant annotated with @com.google.inject.name.Named(value=detect-os)

      1 error
      at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:168)
      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:62)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:498)
      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: com.google.inject.ProvisionException: Guice provision errors:

      1) Could not find a suitable constructor in kr.motd.maven.os.DetectExtension. Classes must have either one (and only one) constructor annotated with @Inject or a zero-argument constructor that is not private.
      at kr.motd.maven.os.DetectExtension.class(Unknown Source)
      while locating kr.motd.maven.os.DetectExtension
      at ClassRealm[extension>kr.motd.maven:os-maven-plugin:1.6.0, parent: sun.misc.Launcher$AppClassLoader@5c647e05]
      at ClassRealm[extension>kr.motd.maven:os-maven-plugin:1.6.0, parent: sun.misc.Launcher$AppClassLoader@5c647e05]
      while locating org.apache.maven.AbstractMavenLifecycleParticipant annotated with @com.google.inject.name.Named(value=detect-os)

      1 error
      at com.google.inject.internal.InjectorImpl$3.get(InjectorImpl.java:974)
      at org.sonatype.guice.bean.locators.LazyBeanEntry.getValue(LazyBeanEntry.java:83)
      at org.sonatype.guice.plexus.locators.LazyPlexusBean.getValue(LazyPlexusBean.java:49)
      at org.sonatype.guice.bean.locators.EntryListAdapter$ValueIterator.next(EntryListAdapter.java:112)
      at java.util.AbstractCollection.addAll(AbstractCollection.java:343)
      at org.apache.maven.DefaultMaven.getLifecycleParticipants(DefaultMaven.java:538)
      at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:270)
      at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
      ... 11 more
      [ERROR]
      [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
      [ERROR] Re-run Maven using the -X switch to enable full debug logging.
      [ERROR]
      [ERROR] For more information about the errors and possible solutions, please read the following articles:
      [ERROR] [Help 1]
      http://cwiki.apache.org/confluence/display/MAVEN/InternalErrorException
      [Pipeline] }
      [Pipeline] // withCredentials
      [Pipeline] error
      [Pipeline] }
      [Pipeline] // dir
      [Pipeline] }
      [Pipeline] // script
      [Pipeline] }
      [Pipeline] // stage
      [Pipeline] stage
      [Pipeline] { (SSAP SCAN)
      Stage 'SSAP SCAN' skipped due to earlier failure(s)
      [Pipeline] }
      [Pipeline] // stage
      [Pipeline] }
      [Pipeline] // node
      [Pipeline] End of Pipeline
      ERROR: [ERROR] Please Check with DEI/Sonar team or raise tcket with DEI using
      http://go/dsoHelp
      Finished: FAILURE

      Attachments

        Activity

          People

            Unassigned Unassigned
            E853587 Aarti Balakrishnan
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: