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:
@@ -29,14 +29,13 @@ import com.google.gerrit.server.ioutil.ColumnFormatter;
|
||||
import com.google.gerrit.sshd.CommandMetaData;
|
||||
import com.google.gerrit.sshd.SshCommand;
|
||||
import com.google.gwtorm.server.OrmException;
|
||||
import com.google.inject.Inject;
|
||||
|
||||
import org.kohsuke.args4j.Argument;
|
||||
|
||||
import java.io.PrintWriter;
|
||||
import java.util.List;
|
||||
|
||||
import javax.inject.Inject;
|
||||
|
||||
/**
|
||||
* Implements a command that allows the user to see the members of a group.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user