Consistently use com.google.inject.Inject instead of javax.inject.Inject
JEE containers intercept JSR330 annotations and are failing to deploy gerrit.war, here example of Wildfly 8: [1]. This change rectifies it by using consistently Guice's own annotations to prevent it. Here is fixed deployment on Wildfly [2], note that weld service was started successfully. [1] http://paste.openstack.org/show/117008 [2] http://paste.openstack.org/show/117014 Change-Id: Idedd9e44352ced5166b62fa09c4b42971e666aaa
This commit is contained in:
@@ -17,6 +17,7 @@ package com.google.gerrit.sshd;
|
||||
import com.google.gerrit.server.plugins.Plugin;
|
||||
import com.google.gerrit.server.plugins.ReloadPluginListener;
|
||||
import com.google.gerrit.server.plugins.StartPluginListener;
|
||||
import com.google.inject.Inject;
|
||||
import com.google.inject.Key;
|
||||
import com.google.inject.Provider;
|
||||
import com.google.inject.Singleton;
|
||||
@@ -25,8 +26,6 @@ import org.apache.sshd.server.Command;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
import javax.inject.Inject;
|
||||
|
||||
@Singleton
|
||||
class SshPluginStarterCallback
|
||||
implements StartPluginListener, ReloadPluginListener {
|
||||
|
Reference in New Issue
Block a user