scmp:run don't work in 1.60 version

Issue #991 open
Oleg Shtch created an issue

I'm working on scm-fork-plugin. When I test it with 1.34 scm-manager it works. After I updated scm-manager version to 1.60 in pom.xml I get error:

--- scm-maven-plugin:1.60:run (default-cli) @ scm-fork-plugin ---
Installing artifact D:\NetBeansProjects\scm-fork-plugin\target\scm-fork-plugin-1.4-SNAPSHOT.jar to D:\NetBeansProjects\scm-fork-plugin\target\scm-home\plugins\sonia\scm\plugins\scm-fork-plugin\1.4-SNAPSHOT\scm-fork-plugin-1.4-SNAPSHOT.jar
Installing artifact D:\maven-repo\sonia\scm\plugins\scm-userrepo-plugin\1.7\scm-userrepo-plugin-1.7.jar to D:\NetBeansProjects\scm-fork-plugin\target\scm-home\plugins\sonia\scm\plugins\scm-userrepo-plugin\1.7\scm-userrepo-plugin-1.7.jar
Installing artifact D:\maven-repo\sonia\scm\plugins\scm-mail-plugin\1.5\scm-mail-plugin-1.5.jar to D:\NetBeansProjects\scm-fork-plugin\target\scm-home\plugins\sonia\scm\plugins\scm-mail-plugin\1.5\scm-mail-plugin-1.5.jar
Installing artifact D:\maven-repo\org\codemonkey\simplejavamail\simple-java-mail\2.4\simple-java-mail-2.4.jar to D:\NetBeansProjects\scm-fork-plugin\target\scm-home\plugins\org\codemonkey\simplejavamail\simple-java-mail\2.4\simple-java-mail-2.4.jar
Installing artifact D:\maven-repo\javax\mail\mail\1.4.7\mail-1.4.7.jar to D:\NetBeansProjects\scm-fork-plugin\target\scm-home\plugins\javax\mail\mail\1.4.7\mail-1.4.7.jar
start servletcontainer at port 8081
SET STAGE DEVELOPMENT
jetty-7.6.21.v20160908
Extract jar:file:/D:/maven-repo/sonia/scm/scm-webapp/1.60/scm-webapp-1.60.war!/ to C:\Users\oleg_schelicalnov\AppData\Local\Temp\jetty-0.0.0.0-8081-scm-webapp-1.60.war-_scm-any-\webapp
NO JSP Support for /scm, did not find org.apache.jasper.servlet.JspServlet
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/C:/Users/oleg_schelicalnov/AppData/Local/Temp/jetty-0.0.0.0-8081-scm-webapp-1.60.war-_scm-any-/webapp/WEB-INF/lib/logback-classic-1.2.3.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/D:/maven-repo/org/slf4j/slf4j-simple/1.7.25/slf4j-simple-1.7.25.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [ch.qos.logback.classic.util.ContextSelectorStaticBinder]
17:18:16.602 [main] INFO  sonia.scm.boot.BootstrapListener - start scm-manager 1.60 in stage: DEVELOPMENT
17:18:16.781 [main] INFO  sonia.scm.boot.BootstrapUtil - using parent-first as plugin classloading strategy
17:18:16.782 [main] INFO  sonia.scm.boot.BootstrapListener - try to use ScmBootstrapClassLoader
17:18:16.783 [main] INFO  sonia.scm.boot.BootstrapListener - initialize scm context listener
17:18:16.799 [main] INFO  sonia.scm.plugin.DefaultPluginLoader - load core plugin /C:/Users/oleg_schelicalnov/AppData/Local/Temp/jetty-0.0.0.0-8081-scm-webapp-1.60.war-_scm-any-/webapp/WEB-INF/lib/scm-git-plugin-1.60.jar
17:18:16.859 [main] INFO  sonia.scm.plugin.DefaultPluginLoader - load core plugin /C:/Users/oleg_schelicalnov/AppData/Local/Temp/jetty-0.0.0.0-8081-scm-webapp-1.60.war-_scm-any-/webapp/WEB-INF/lib/scm-hg-plugin-1.60.jar
17:18:16.874 [main] INFO  sonia.scm.plugin.DefaultPluginLoader - load core plugin /C:/Users/oleg_schelicalnov/AppData/Local/Temp/jetty-0.0.0.0-8081-scm-webapp-1.60.war-_scm-any-/webapp/WEB-INF/lib/scm-svn-plugin-1.60.jar
17:18:16.879 [main] INFO  sonia.scm.plugin.DefaultPluginLoader - load  plugin /D:/NetBeansProjects/scm-fork-plugin/target/scm-home/plugins/sonia/scm/plugins/scm-fork-plugin/1.4-SNAPSHOT/scm-fork-plugin-1.4-SNAPSHOT.jar
17:18:16.889 [main] INFO  sonia.scm.plugin.DefaultPluginLoader - load  plugin /D:/NetBeansProjects/scm-fork-plugin/target/scm-home/plugins/sonia/scm/plugins/scm-userrepo-plugin/1.7/scm-userrepo-plugin-1.7.jar
17:18:16.893 [main] INFO  sonia.scm.plugin.DefaultPluginLoader - load  plugin /D:/NetBeansProjects/scm-fork-plugin/target/scm-home/plugins/sonia/scm/plugins/scm-mail-plugin/1.5/scm-mail-plugin-1.5.jar
17:18:17.496 [main] INFO  sonia.scm.plugin.DefaultPluginLoader - add module class sonia.scm.web.HgServletModule
17:18:17.498 [main] INFO  sonia.scm.plugin.DefaultPluginLoader - add module class sonia.scm.fork.ForkModule
17:18:17.499 [main] INFO  sonia.scm.plugin.DefaultPluginLoader - add module class sonia.scm.mail.internal.MailModule
17:18:17.499 [main] INFO  sonia.scm.plugin.DefaultPluginLoader - add module class sonia.scm.userrepo.UserRepositoryModule
17:18:17.499 [main] INFO  sonia.scm.plugin.DefaultPluginLoader - add module class sonia.scm.web.GitServletModule
17:18:17.500 [main] INFO  sonia.scm.plugin.DefaultPluginLoader - add module class sonia.scm.web.SvnServletModule
17:18:18.014 [main] INFO  sonia.scm.event.ScmEventBus - use sonia.scm.event.GuavaScmEventBus as event bus implementation
июн 27, 2018 5:18:18 PM com.google.inject.internal.MessageProcessor visit
INFO: An exception was caught and reported. Message: java.lang.RuntimeException: Uncompilable source code - Erroneous sym type: sonia.scm.ScmServletModule.bind
java.lang.RuntimeException: Uncompilable source code - Erroneous sym type: sonia.scm.ScmServletModule.bind
    at sonia.scm.ScmServletModule.configureServlets(ScmServletModule.java:278)
    at com.google.inject.servlet.ServletModule.configure(ServletModule.java:53)
    at com.google.inject.AbstractModule.configure(AbstractModule.java:59)
    at com.google.inject.spi.Elements$RecordingBinder.install(Elements.java:223)
    at com.google.inject.spi.Elements.getElements(Elements.java:101)
    at com.google.inject.internal.InjectorShell$Builder.build(InjectorShell.java:133)
    at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:103)
    at com.google.inject.Guice.createInjector(Guice.java:95)
    at com.google.inject.Guice.createInjector(Guice.java:72)
    at sonia.scm.ScmContextListener.getDefaultInjector(ScmContextListener.java:207)
    at sonia.scm.ScmContextListener.getInjector(ScmContextListener.java:172)
    at com.google.inject.servlet.GuiceServletContextListener.contextInitialized(GuiceServletContextListener.java:45)
    at sonia.scm.ScmContextListener.contextInitialized(ScmContextListener.java:137)
    at sonia.scm.boot.BootstrapListener.initializeContext(BootstrapListener.java:290)
    at sonia.scm.boot.BootstrapListener.contextInitialized(BootstrapListener.java:163)
    at org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:746)
    at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:238)
    at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1240)
    at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:689)
    at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:482)
    at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
    at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:95)
    at org.eclipse.jetty.server.Server.doStart(Server.java:281)
    at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
    at sonia.scm.maven.RunMojo.runServletContainer(RunMojo.java:343)
    at sonia.scm.maven.RunMojo.execute(RunMojo.java:82)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)
    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:116)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
    at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
    at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)
    at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
    at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)
    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:289)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)

Failed startup of context o.e.j.w.WebAppContext{/scm,file:/C:/Users/oleg_schelicalnov/AppData/Local/Temp/jetty-0.0.0.0-8081-scm-webapp-1.60.war-_scm-any-/webapp/},D:\maven-repo\sonia\scm\scm-webapp\1.60\scm-webapp-1.60.war
com.google.inject.CreationException: Guice creation errors:

1) No implementation for sonia.scm.repository.RepositoryManager was bound.
  while locating com.google.inject.Provider<sonia.scm.repository.RepositoryManager>
    for parameter 0 at sonia.scm.repository.spi.HookEventFacade.<init>(HookEventFacade.java:68)
  while locating sonia.scm.repository.spi.HookEventFacade
    for parameter 1 at sonia.scm.web.GitReceivePackFactory.<init>(GitReceivePackFactory.java:69)
  at sonia.scm.web.GitServletModule.configureServlets(GitServletModule.java:71)

2) No implementation for sonia.scm.repository.RepositoryManager was bound.
  while locating com.google.inject.Provider<sonia.scm.repository.RepositoryManager>
    for parameter 0 at sonia.scm.repository.spi.HookEventFacade.<init>(HookEventFacade.java:68)
  while locating com.google.inject.Provider<sonia.scm.repository.spi.HookEventFacade>
    for parameter 0 at org.eclipse.jgit.transport.ScmTransportProtocol.<init>(ScmTransportProtocol.java:93)
  at sonia.scm.web.GitServletModule.configureServlets(GitServletModule.java:72)

3) No implementation for sonia.scm.web.security.WebSecurityContext was bound.
  while locating com.google.inject.Provider<sonia.scm.web.security.WebSecurityContext>
    for parameter 2 at sonia.scm.userrepo.UserRepositoryService.<init>(UserRepositoryService.java:90)
  at sonia.scm.userrepo.UserRepositoryModule.configure(UserRepositoryModule.java:55)

4) No implementation for java.util.Set<sonia.scm.repository.BlameLinePreProcessor> was bound.
  while locating java.util.Set<sonia.scm.repository.BlameLinePreProcessor>
    for parameter 4 at sonia.scm.repository.PreProcessorUtil.<init>(PreProcessorUtil.java:86)
  while locating sonia.scm.repository.PreProcessorUtil
    for parameter 4 at sonia.scm.repository.api.RepositoryServiceFactory.<init>(RepositoryServiceFactory.java:168)
  while locating sonia.scm.repository.api.RepositoryServiceFactory
    for parameter 2 at sonia.scm.fork.ForkService.<init>(ForkService.java:89)
  at sonia.scm.fork.ForkModule.configure(ForkModule.java:57)

5) No implementation for java.util.Set<sonia.scm.repository.BlameLinePreProcessor> was bound.
  while locating java.util.Set<sonia.scm.repository.BlameLinePreProcessor>
    for parameter 4 at sonia.scm.repository.PreProcessorUtil.<init>(PreProcessorUtil.java:86)
  while locating sonia.scm.repository.PreProcessorUtil
    for parameter 4 at sonia.scm.repository.api.RepositoryServiceFactory.<init>(RepositoryServiceFactory.java:168)
  while locating sonia.scm.repository.api.RepositoryServiceFactory
    for parameter 1 at sonia.scm.fork.PullRequestService.<init>(PullRequestService.java:120)
  at sonia.scm.fork.ForkModule.configure(ForkModule.java:60)

6) No implementation for java.util.Set<sonia.scm.repository.BlameLinePreProcessor> was bound.
  while locating java.util.Set<sonia.scm.repository.BlameLinePreProcessor>
    for parameter 4 at sonia.scm.repository.PreProcessorUtil.<init>(PreProcessorUtil.java:86)
  while locating sonia.scm.repository.PreProcessorUtil
    for parameter 4 at sonia.scm.repository.api.RepositoryServiceFactory.<init>(RepositoryServiceFactory.java:168)
  while locating sonia.scm.repository.api.RepositoryServiceFactory
    for parameter 1 at sonia.scm.web.GitRepositoryViewer.<init>(GitRepositoryViewer.java:111)
  at sonia.scm.web.GitServletModule.configureServlets(GitServletModule.java:69)
...

82) An exception was caught and reported. Message: Uncompilable source code - Erroneous sym type: sonia.scm.ScmServletModule.bind
  at com.google.inject.internal.InjectorShell$Builder.build(InjectorShell.java:133)

82 errors
    at com.google.inject.internal.Errors.throwCreationExceptionIfErrorsExist(Errors.java:435)
    at com.google.inject.internal.InternalInjectorCreator.initializeStatically(InternalInjectorCreator.java:154)
    at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:106)
    at com.google.inject.Guice.createInjector(Guice.java:95)
    at com.google.inject.Guice.createInjector(Guice.java:72)
    at sonia.scm.ScmContextListener.getDefaultInjector(ScmContextListener.java:207)
    at sonia.scm.ScmContextListener.getInjector(ScmContextListener.java:172)
    at com.google.inject.servlet.GuiceServletContextListener.contextInitialized(GuiceServletContextListener.java:45)
    at sonia.scm.ScmContextListener.contextInitialized(ScmContextListener.java:137)
    at sonia.scm.boot.BootstrapListener.initializeContext(BootstrapListener.java:290)
    at sonia.scm.boot.BootstrapListener.contextInitialized(BootstrapListener.java:163)
    at org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:746)
    at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:238)
    at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1240)
    at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:689)
    at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:482)
    at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
    at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:95)
    at org.eclipse.jetty.server.Server.doStart(Server.java:281)
    at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
    at sonia.scm.maven.RunMojo.runServletContainer(RunMojo.java:343)
    at sonia.scm.maven.RunMojo.execute(RunMojo.java:82)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)
    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:116)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
    at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
    at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)
    at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
    at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)
    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:289)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
Caused by: java.lang.RuntimeException: Uncompilable source code - Erroneous sym type: sonia.scm.ScmServletModule.bind
    at sonia.scm.ScmServletModule.configureServlets(ScmServletModule.java:278)
    at com.google.inject.servlet.ServletModule.configure(ServletModule.java:53)
    at com.google.inject.AbstractModule.configure(AbstractModule.java:59)
    at com.google.inject.spi.Elements$RecordingBinder.install(Elements.java:223)
    at com.google.inject.spi.Elements.getElements(Elements.java:101)
    at com.google.inject.internal.InjectorShell$Builder.build(InjectorShell.java:133)
    at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:103)
    ... 41 more
Started SelectChannelConnector@0.0.0.0:8081

In 1.34 I got

...
17:35:38.642 [main] INFO  sonia.scm.plugin.DefaultPluginLoader - add module class sonia.scm.userrepo.UserRepositoryModule
17:35:38.642 [main] INFO  sonia.scm.plugin.DefaultPluginLoader - add module class sonia.scm.web.HgServletModule
17:35:38.642 [main] INFO  sonia.scm.plugin.DefaultPluginLoader - add module class sonia.scm.web.GitServletModule
17:35:40.049 [main] INFO  sonia.scm.event.ScmEventBus - use sonia.scm.event.GuavaScmEventBus as event bus implementation
17:35:40.059 [main] INFO  sonia.scm.plugin.ext.ExtensionBinder - bind 14 extensions to 21 extension points
17:35:40.059 [main] INFO  sonia.scm.plugin.ext.ExtensionBinder - create multibinder for sonia.scm.group.GroupListener
17:35:40.080 [main] INFO  sonia.scm.plugin.ext.ExtensionBinder - create multibinder for sonia.scm.repository.RepositoryRequestListener
17:35:40.080 [main] INFO  sonia.scm.plugin.ext.ExtensionBinder - create multibinder for sonia.scm.repository.spi.RepositoryServiceResolver

Comments (6)

  1. Sebastian Sdorra repo owner
    • changed status to open

    Hi, i can't reproduce this issue. I've set the parent of the fork plugin to version 1.60 and it starts without any problem. Could you describe your environment (os, maven and java version)?

  2. Sebastian Sdorra repo owner

    Sorry, i'm not able to reproduce this issue and i could not find a download for maven 3.4.

    Could you test the behaviour with maven 3.5.x? Could you also test to do a mvn clean before mvn scmp:run?

  3. Oleg Shtch reporter

    There was 3.3.9 maven bundled with Netbeans 9.
    I've tried with maven 3.5.4 and still gets error:

    cd D:\NetBeansProjects\scm-fork-plugin; "JAVA_HOME=C:\\Program Files\\Java\\jdk1.8.0_112" M2_HOME=C:\\apache-maven-3.5.4 cmd /c "\"\"C:\\apache-maven-3.5.4\\bin\\mvn.cmd\" -Dmaven.ext.class.path=E:\\netbeans\\java\\maven-nblib\\netbeans-eventspy.jar -Dfile.encoding=UTF-8 scmp:run\""
    Scanning for projects...
    
    -----------------< sonia.scm.plugins:scm-fork-plugin >------------------
    Building scm-fork-plugin 1.4-SNAPSHOT
    --------------------------------[ jar ]---------------------------------
    
    >>> scm-maven-plugin:1.60:run (default-cli) > package @ scm-fork-plugin >>>
    
    --- maven-resources-plugin:2.6:resources (default-resources) @ scm-fork-plugin ---
    Using 'UTF-8' encoding to copy filtered resources.
    Copying 1 resource
    Copying 16 resources
    
    --- scm-maven-plugin:1.60:fix-descriptor (default) @ scm-fork-plugin ---
    
    --- maven-compiler-plugin:3.0:compile (default-compile) @ scm-fork-plugin ---
    Changes detected - recompiling the module!
    Compiling 25 source files to D:\NetBeansProjects\scm-fork-plugin\target\classes
    /D:/NetBeansProjects/scm-fork-plugin/src/main/java/sonia/scm/fork/PullRequestService.java: D:\NetBeansProjects\scm-fork-plugin\src\main\java\sonia\scm\fork\PullRequestService.java uses or overrides a deprecated API.
    /D:/NetBeansProjects/scm-fork-plugin/src/main/java/sonia/scm/fork/PullRequestService.java: Recompile with -Xlint:deprecation for details.
    /D:/NetBeansProjects/scm-fork-plugin/src/main/java/sonia/scm/fork/PullRequest.java: D:\NetBeansProjects\scm-fork-plugin\src\main\java\sonia\scm\fork\PullRequest.java uses unchecked or unsafe operations.
    /D:/NetBeansProjects/scm-fork-plugin/src/main/java/sonia/scm/fork/PullRequest.java: Recompile with -Xlint:unchecked for details.
    
    --- animal-sniffer-maven-plugin:1.16:check (default) @ scm-fork-plugin ---
    Checking unresolved references to org.codehaus.mojo.signature:java17:1.0
    
    --- maven-enforcer-plugin:3.0.0-M1:enforce (enforce-java) @ scm-fork-plugin ---
    Adding ignore: module-info
    
    --- maven-resources-plugin:2.6:testResources (default-testResources) @ scm-fork-plugin ---
    Using 'UTF-8' encoding to copy filtered resources.
    skip non existing resourceDirectory D:\NetBeansProjects\scm-fork-plugin\src\test\resources
    
    --- maven-compiler-plugin:3.0:testCompile (default-testCompile) @ scm-fork-plugin ---
    Changes detected - recompiling the module!
    
    --- maven-surefire-plugin:2.12.4:test (default-test) @ scm-fork-plugin ---
    
    --- maven-jar-plugin:2.4:jar (default-jar) @ scm-fork-plugin ---
    Building jar: D:\NetBeansProjects\scm-fork-plugin\target\scm-fork-plugin-1.4-SNAPSHOT.jar
    
    <<< scm-maven-plugin:1.60:run (default-cli) < package @ scm-fork-plugin <<<
    
    
    --- scm-maven-plugin:1.60:run (default-cli) @ scm-fork-plugin ---
    Installing artifact D:\NetBeansProjects\scm-fork-plugin\target\scm-fork-plugin-1.4-SNAPSHOT.jar to D:\NetBeansProjects\scm-fork-plugin\target\scm-home\plugins\sonia\scm\plugins\scm-fork-plugin\1.4-SNAPSHOT\scm-fork-plugin-1.4-SNAPSHOT.jar
    Installing artifact D:\maven-repo\sonia\scm\plugins\scm-userrepo-plugin\1.7\scm-userrepo-plugin-1.7.jar to D:\NetBeansProjects\scm-fork-plugin\target\scm-home\plugins\sonia\scm\plugins\scm-userrepo-plugin\1.7\scm-userrepo-plugin-1.7.jar
    Installing artifact D:\maven-repo\sonia\scm\plugins\scm-mail-plugin\1.4\scm-mail-plugin-1.4.jar to D:\NetBeansProjects\scm-fork-plugin\target\scm-home\plugins\sonia\scm\plugins\scm-mail-plugin\1.4\scm-mail-plugin-1.4.jar
    Installing artifact D:\maven-repo\org\codemonkey\simplejavamail\simple-java-mail\2.1\simple-java-mail-2.1.jar to D:\NetBeansProjects\scm-fork-plugin\target\scm-home\plugins\org\codemonkey\simplejavamail\simple-java-mail\2.1\simple-java-mail-2.1.jar
    Installing artifact D:\maven-repo\javax\mail\mail\1.4.5\mail-1.4.5.jar to D:\NetBeansProjects\scm-fork-plugin\target\scm-home\plugins\javax\mail\mail\1.4.5\mail-1.4.5.jar
    start servletcontainer at port 8081
    SET STAGE DEVELOPMENT
    jetty-7.6.21.v20160908
    Extract jar:file:/D:/maven-repo/sonia/scm/scm-webapp/1.60/scm-webapp-1.60.war!/ to C:\Users\oleg_schelicalnov\AppData\Local\Temp\jetty-0.0.0.0-8081-scm-webapp-1.60.war-_scm-any-\webapp
    NO JSP Support for /scm, did not find org.apache.jasper.servlet.JspServlet
    SLF4J: Class path contains multiple SLF4J bindings.
    SLF4J: Found binding in [jar:file:/C:/Users/oleg_schelicalnov/AppData/Local/Temp/jetty-0.0.0.0-8081-scm-webapp-1.60.war-_scm-any-/webapp/WEB-INF/lib/logback-classic-1.2.3.jar!/org/slf4j/impl/StaticLoggerBinder.class]
    SLF4J: Found binding in [jar:file:/D:/maven-repo/org/slf4j/slf4j-simple/1.7.25/slf4j-simple-1.7.25.jar!/org/slf4j/impl/StaticLoggerBinder.class]
    SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
    SLF4J: Actual binding is of type [ch.qos.logback.classic.util.ContextSelectorStaticBinder]
    09:49:14.602 [main] INFO  sonia.scm.boot.BootstrapListener - start scm-manager 1.60 in stage: DEVELOPMENT
    09:49:15.500 [main] INFO  sonia.scm.boot.BootstrapUtil - using parent-first as plugin classloading strategy
    09:49:15.500 [main] INFO  sonia.scm.boot.BootstrapListener - try to use ScmBootstrapClassLoader
    09:49:15.502 [main] INFO  sonia.scm.boot.BootstrapListener - initialize scm context listener
    09:49:15.517 [main] INFO  sonia.scm.plugin.DefaultPluginLoader - load core plugin /C:/Users/oleg_schelicalnov/AppData/Local/Temp/jetty-0.0.0.0-8081-scm-webapp-1.60.war-_scm-any-/webapp/WEB-INF/lib/scm-git-plugin-1.60.jar
    09:49:15.547 [main] INFO  sonia.scm.plugin.DefaultPluginLoader - load core plugin /C:/Users/oleg_schelicalnov/AppData/Local/Temp/jetty-0.0.0.0-8081-scm-webapp-1.60.war-_scm-any-/webapp/WEB-INF/lib/scm-hg-plugin-1.60.jar
    09:49:15.550 [main] INFO  sonia.scm.plugin.DefaultPluginLoader - load core plugin /C:/Users/oleg_schelicalnov/AppData/Local/Temp/jetty-0.0.0.0-8081-scm-webapp-1.60.war-_scm-any-/webapp/WEB-INF/lib/scm-svn-plugin-1.60.jar
    09:49:15.553 [main] INFO  sonia.scm.plugin.DefaultPluginLoader - load  plugin /D:/NetBeansProjects/scm-fork-plugin/target/scm-home/plugins/sonia/scm/plugins/scm-fork-plugin/1.4-SNAPSHOT/scm-fork-plugin-1.4-SNAPSHOT.jar
    09:49:15.557 [main] INFO  sonia.scm.plugin.DefaultPluginLoader - load  plugin /D:/NetBeansProjects/scm-fork-plugin/target/scm-home/plugins/sonia/scm/plugins/scm-userrepo-plugin/1.7/scm-userrepo-plugin-1.7.jar
    09:49:15.561 [main] INFO  sonia.scm.plugin.DefaultPluginLoader - load  plugin /D:/NetBeansProjects/scm-fork-plugin/target/scm-home/plugins/sonia/scm/plugins/scm-mail-plugin/1.4/scm-mail-plugin-1.4.jar
    09:49:15.932 [main] INFO  sonia.scm.plugin.DefaultPluginLoader - add module class sonia.scm.web.HgServletModule
    09:49:15.933 [main] INFO  sonia.scm.plugin.DefaultPluginLoader - add module class sonia.scm.userrepo.UserRepositoryModule
    09:49:15.933 [main] INFO  sonia.scm.plugin.DefaultPluginLoader - add module class sonia.scm.fork.ForkModule
    09:49:15.933 [main] INFO  sonia.scm.plugin.DefaultPluginLoader - add module class sonia.scm.mail.internal.MailModule
    09:49:15.933 [main] INFO  sonia.scm.plugin.DefaultPluginLoader - add module class sonia.scm.web.SvnServletModule
    09:49:15.933 [main] INFO  sonia.scm.plugin.DefaultPluginLoader - add module class sonia.scm.web.GitServletModule
    09:49:16.516 [main] INFO  sonia.scm.event.ScmEventBus - use sonia.scm.event.GuavaScmEventBus as event bus implementation
    июл 16, 2018 9:49:16 AM com.google.inject.internal.MessageProcessor visit
    INFO: An exception was caught and reported. Message: java.lang.RuntimeException: Uncompilable source code - Erroneous sym type: sonia.scm.ScmServletModule.bind
    java.lang.RuntimeException: Uncompilable source code - Erroneous sym type: sonia.scm.ScmServletModule.bind
        at sonia.scm.ScmServletModule.configureServlets(ScmServletModule.java:278)
        at com.google.inject.servlet.ServletModule.configure(ServletModule.java:53)
        at com.google.inject.AbstractModule.configure(AbstractModule.java:59)
        at com.google.inject.spi.Elements$RecordingBinder.install(Elements.java:223)
        at com.google.inject.spi.Elements.getElements(Elements.java:101)
        at com.google.inject.internal.InjectorShell$Builder.build(InjectorShell.java:133)
        at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:103)
        at com.google.inject.Guice.createInjector(Guice.java:95)
        at com.google.inject.Guice.createInjector(Guice.java:72)
        at sonia.scm.ScmContextListener.getDefaultInjector(ScmContextListener.java:207)
        at sonia.scm.ScmContextListener.getInjector(ScmContextListener.java:172)
        at com.google.inject.servlet.GuiceServletContextListener.contextInitialized(GuiceServletContextListener.java:45)
        at sonia.scm.ScmContextListener.contextInitialized(ScmContextListener.java:137)
        at sonia.scm.boot.BootstrapListener.initializeContext(BootstrapListener.java:290)
        at sonia.scm.boot.BootstrapListener.contextInitialized(BootstrapListener.java:163)
        at org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:746)
        at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:238)
        at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1240)
        at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:689)
        at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:482)
        at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
        at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:95)
        at org.eclipse.jetty.server.Server.doStart(Server.java:281)
        at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
        at sonia.scm.maven.RunMojo.runServletContainer(RunMojo.java:343)
        at sonia.scm.maven.RunMojo.execute(RunMojo.java:82)
        at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:137)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:154)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:146)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:117)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:81)
        at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:56)
        at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:305)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:192)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:105)
        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:954)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:192)
        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:289)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
        at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
        at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
    
    Failed startup of context o.e.j.w.WebAppContext{/scm,file:/C:/Users/oleg_schelicalnov/AppData/Local/Temp/jetty-0.0.0.0-8081-scm-webapp-1.60.war-_scm-any-/webapp/},D:\maven-repo\sonia\scm\scm-webapp\1.60\scm-webapp-1.60.war
    com.google.inject.CreationException: Guice creation errors:
    
    1) No implementation for sonia.scm.repository.RepositoryManager was bound.
      while locating com.google.inject.Provider<sonia.scm.repository.RepositoryManager>
        for parameter 0 at sonia.scm.repository.spi.HookEventFacade.<init>(HookEventFacade.java:68)
      while locating sonia.scm.repository.spi.HookEventFacade
        for parameter 1 at sonia.scm.web.GitReceivePackFactory.<init>(GitReceivePackFactory.java:69)
      at sonia.scm.web.GitServletModule.configureServlets(GitServletModule.java:71)
    
    2) No implementation for sonia.scm.repository.RepositoryManager was bound.
      while locating com.google.inject.Provider<sonia.scm.repository.RepositoryManager>
        for parameter 0 at sonia.scm.repository.spi.HookEventFacade.<init>(HookEventFacade.java:68)
      while locating com.google.inject.Provider<sonia.scm.repository.spi.HookEventFacade>
        for parameter 0 at org.eclipse.jgit.transport.ScmTransportProtocol.<init>(ScmTransportProtocol.java:93)
      at sonia.scm.web.GitServletModule.configureServlets(GitServletModule.java:72)
    
  4. Log in to comment