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:
@@ -16,12 +16,11 @@ package com.google.gerrit.sshd;
|
||||
|
||||
import com.google.common.base.Preconditions;
|
||||
import com.google.gerrit.extensions.annotations.PluginName;
|
||||
import com.google.inject.Inject;
|
||||
import com.google.inject.binder.LinkedBindingBuilder;
|
||||
|
||||
import org.apache.sshd.server.Command;
|
||||
|
||||
import javax.inject.Inject;
|
||||
|
||||
/**
|
||||
* Binds one SSH command to the plugin name itself.
|
||||
* <p>
|
||||
|
||||
Reference in New Issue
Block a user