diff --git a/errorreporting/pom.xml b/errorreporting/pom.xml
index c4f880a58b8..d02a6b7030b 100644
--- a/errorreporting/pom.xml
+++ b/errorreporting/pom.xml
@@ -33,6 +33,15 @@
snippets
+
+
+ enable-samples
+
+ sample
+
+
+
+
diff --git a/errorreporting/snippets/pom.xml b/errorreporting/snippets/pom.xml
index c01b935d8f8..db4df899b92 100644
--- a/errorreporting/snippets/pom.xml
+++ b/errorreporting/snippets/pom.xml
@@ -42,7 +42,7 @@
com.google.cloud
google-cloud-errorreporting
-
+
com.google.cloud
google-cloud-core
diff --git a/errorreporting/snippets/src/main/java/com/example/errorreporting/QuickStart.java b/errorreporting/snippets/src/main/java/com/example/errorreporting/QuickStart.java
index 3e8518bca28..852b00a4ca2 100644
--- a/errorreporting/snippets/src/main/java/com/example/errorreporting/QuickStart.java
+++ b/errorreporting/snippets/src/main/java/com/example/errorreporting/QuickStart.java
@@ -21,10 +21,10 @@
// [START error_reporting_setup_java]
import com.google.cloud.ServiceOptions;
-import com.google.cloud.errorreporting.v1beta1.ReportErrorsServiceClient;
import com.google.devtools.clouderrorreporting.v1beta1.ErrorContext;
import com.google.devtools.clouderrorreporting.v1beta1.ProjectName;
import com.google.devtools.clouderrorreporting.v1beta1.ReportedErrorEvent;
+import com.google.devtools.clouderrorreporting.v1beta1.ReportErrorsServiceClient;
import com.google.devtools.clouderrorreporting.v1beta1.SourceLocation;
/**