title: Maven com.google cannot be resolved to type
body: <p>New to Maven. I built my project using Maven and generate a Protobuf executable and generate the source to my project. I'm using eclipse and compiling in Java. I don't seem to have the library properly imported so I get a lot of errors when viewing the generated code through eclipse. </p>
  
  <p>I am receiving error <code>Maven com.google cannot be resolved to type</code></p>
  
  <p>I've looked at numerous suggestions and can't seem to find a resolution to this problem. My build path seems to be correct from what I think. </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;project xmlns="http://maven.apache.org/POM/4.0.0"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"&gt;
  &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
  &lt;groupId&gt;com.henosisknot.com&lt;/groupId&gt;
  &lt;version&gt;0.1.0&lt;/version&gt;
  &lt;name&gt;ChatBot-Henosisknot&lt;/name&gt;
  &lt;url&gt;henosisknot.com&lt;/url&gt;
  &lt;description&gt;Chatbot for henosisknot.com&lt;/description&gt;
  &lt;artifactId&gt;Chatbot-Henosisknot&lt;/artifactId&gt;
  &lt;packaging&gt;pom&lt;/packaging&gt;
  &lt;profiles&gt;
      &lt;profile&gt;
          &lt;modules&gt;
                  &lt;module&gt;com&lt;/module&gt;
          &lt;/modules&gt;
        &lt;/profile&gt;
  &lt;/profiles&gt;
  &lt;organization&gt;
      &lt;name&gt;Henosisknot.com&lt;/name&gt; 
   &lt;/organization&gt;
  
  &lt;properties&gt;
  
  &lt;!-- protobuf paths --&gt;
  &lt;protobuf.input.directory&gt;${project.basedir}/src/main/java/com/proto&lt;/protobuf.input.directory&gt;
  &lt;protobuf.output.directory&gt;${project.basedir}/src/&lt;/protobuf.output.directory&gt;
  &lt;project.build.dir&gt;${project.basedir}/build&lt;/project.build.dir&gt;
  
  &lt;!-- library versions --&gt;
  &lt;build-helper-maven-plugin.version&gt;1.9.1&lt;/build-helper-maven-plugin.version&gt;
  &lt;maven-antrun-plugin.version&gt;1.8&lt;/maven-antrun-plugin.version&gt;
  &lt;maven-dependency-plugin.version&gt;2.10&lt;/maven-dependency-plugin.version&gt;
  &lt;maven-shade-plugin.version&gt;2.4.2&lt;/maven-shade-plugin.version&gt;
  &lt;os-maven-plugin.version&gt;1.4.1.Final&lt;/os-maven-plugin.version&gt;
  &lt;protobuf.version&gt;3.0.0&lt;/protobuf.version&gt;
  &lt;maven.compiler.source&gt;1.8&lt;/maven.compiler.source&gt;
  &lt;maven.compiler.target&gt;1.8&lt;/maven.compiler.target&gt;
  
  &lt;/properties&gt;
  
  
  &lt;dependencies&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;com.google.protobuf&lt;/groupId&gt;
          &lt;artifactId&gt;protobuf-java&lt;/artifactId&gt;
          &lt;version&gt;3.0.0&lt;/version&gt;
      &lt;/dependency&gt;
  
  &lt;/dependencies&gt;
  
  
   &lt;build&gt;
      &lt;extensions&gt;
      &lt;!-- provides os.detected.classifier (i.e. linux-x86_64, osx-x86_64) property --&gt;
          &lt;extension&gt;
              &lt;groupId&gt;kr.motd.maven&lt;/groupId&gt;
              &lt;artifactId&gt;os-maven-plugin&lt;/artifactId&gt;
              &lt;version&gt;${os-maven-plugin.version}&lt;/version&gt;
          &lt;/extension&gt;
      &lt;/extensions&gt;
  
      &lt;directory&gt;${project.build.dir}/classes&lt;/directory&gt;
      &lt;outputDirectory&gt;/users/andor/workspace/Chatbot-Henosisknot/build/classes&lt;/outputDirectory&gt;
  
      &lt;plugins&gt;
          &lt;!-- copy protoc binary into build directory --&gt;
          &lt;plugin&gt;
              &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
              &lt;artifactId&gt;maven-dependency-plugin&lt;/artifactId&gt;
              &lt;version&gt;${maven-dependency-plugin.version}&lt;/version&gt;
              &lt;executions&gt;
                  &lt;execution&gt;
                      &lt;id&gt;copy-protoc&lt;/id&gt;
                      &lt;phase&gt;generate-sources&lt;/phase&gt;
                      &lt;goals&gt;
                          &lt;goal&gt;copy&lt;/goal&gt;
                      &lt;/goals&gt;
                      &lt;configuration&gt;
                          &lt;artifactItems&gt;
                              &lt;artifactItem&gt;
                                  &lt;groupId&gt;com.google.protobuf&lt;/groupId&gt;
                                  &lt;artifactId&gt;protoc&lt;/artifactId&gt;
                                  &lt;version&gt;${protobuf.version}&lt;/version&gt;
                                  &lt;classifier&gt;${os.detected.classifier}&lt;/classifier&gt;
                                  &lt;type&gt;exe&lt;/type&gt;
                                  &lt;overWrite&gt;true&lt;/overWrite&gt;
                                  &lt;outputDirectory&gt;${project.build.dir}&lt;/outputDirectory&gt;
                              &lt;/artifactItem&gt;
                          &lt;/artifactItems&gt;
                      &lt;/configuration&gt;
                  &lt;/execution&gt;
              &lt;/executions&gt;
          &lt;/plugin&gt;
          &lt;!-- compile proto buffer files using copied protoc binary --&gt;
          &lt;plugin&gt;
              &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
              &lt;artifactId&gt;maven-antrun-plugin&lt;/artifactId&gt;
              &lt;version&gt;${maven-antrun-plugin.version}&lt;/version&gt;
              &lt;executions&gt;
                  &lt;execution&gt;
                      &lt;id&gt;exec-protoc&lt;/id&gt;
                      &lt;phase&gt;generate-sources&lt;/phase&gt;
                      &lt;configuration&gt;
                          &lt;target&gt;
                              &lt;property name="protoc.filename" value="protoc-${protobuf.version}-${os.detected.classifier}.exe"/&gt;
                              &lt;property name="protoc.filepath" value="${project.build.dir}/${protoc.filename}"/&gt;
                              &lt;chmod file="${protoc.filepath}" perm="ugo+rx"/&gt;
                              &lt;mkdir dir="${protobuf.output.directory}" /&gt;
                              &lt;path id="protobuf.input.filepaths.path"&gt;
                                  &lt;fileset dir="${protobuf.input.directory}"&gt;
                                      &lt;include name="**/*.proto"/&gt;
                                  &lt;/fileset&gt;
                              &lt;/path&gt;
                              &lt;pathconvert pathsep=" " property="protobuf.input.filepaths" refid="protobuf.input.filepaths.path"/&gt;
                              &lt;exec executable="${protoc.filepath}" failonerror="true"&gt;
                                  &lt;arg value="-I"/&gt;
                                  &lt;arg value="${protobuf.input.directory}"/&gt;
                                  &lt;arg value="--java_out"/&gt;
                                  &lt;arg value="${protobuf.output.directory}"/&gt;
                                  &lt;arg line="${protobuf.input.filepaths}"/&gt;
                              &lt;/exec&gt;
                          &lt;/target&gt;
                      &lt;/configuration&gt;
                      &lt;goals&gt;
                          &lt;goal&gt;run&lt;/goal&gt;
                      &lt;/goals&gt;
                  &lt;/execution&gt;
              &lt;/executions&gt;
          &lt;/plugin&gt;
          &lt;plugin&gt;
          &lt;groupId&gt;org.xolstice.maven.plugins&lt;/groupId&gt;
          &lt;artifactId&gt;protobuf-maven-plugin&lt;/artifactId&gt;
          &lt;version&gt;0.5.0&lt;/version&gt;
          &lt;configuration&gt;
            &lt;protocExecutable&gt;/usr/local/bin/protoc&lt;/protocExecutable&gt;
          &lt;/configuration&gt;
          &lt;executions&gt;
            &lt;execution&gt;
              &lt;goals&gt;
                &lt;goal&gt;compile&lt;/goal&gt;
                &lt;goal&gt;test-compile&lt;/goal&gt;
              &lt;/goals&gt;
            &lt;/execution&gt;
          &lt;/executions&gt;
          &lt;/plugin&gt;
          &lt;plugin&gt;
                  &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
                  &lt;version&gt;2.0.2&lt;/version&gt;
                  &lt;configuration&gt;
                      &lt;includes&gt;
                          &lt;include&gt;**/com/**&lt;/include&gt;
                      &lt;/includes&gt;
                  &lt;/configuration&gt;
          &lt;/plugin&gt;
             &lt;plugin&gt;
              &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
              &lt;artifactId&gt;maven-shade-plugin&lt;/artifactId&gt;
              &lt;version&gt;2.1&lt;/version&gt;
              &lt;executions&gt;
                  &lt;execution&gt;
                      &lt;phase&gt;package&lt;/phase&gt;
                      &lt;goals&gt;
                          &lt;goal&gt;shade&lt;/goal&gt;
                      &lt;/goals&gt;
                      &lt;configuration&gt;
                          &lt;transformers&gt;
                              &lt;transformer
                                  implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"&gt;
                                  &lt;mainClass&gt;main.java.com.chatbot.Main&lt;/mainClass&gt;
                              &lt;/transformer&gt;
                          &lt;/transformers&gt;
                      &lt;/configuration&gt;
                  &lt;/execution&gt;
              &lt;/executions&gt;
          &lt;/plugin&gt;
            &lt;plugin&gt;
              &lt;groupId&gt;org.codehaus.mojo&lt;/groupId&gt;
              &lt;artifactId&gt;exec-maven-plugin&lt;/artifactId&gt;
              &lt;version&gt;1.2.1&lt;/version&gt;
              &lt;configuration&gt;
                  &lt;mainClass&gt;com.chatbot.Main&lt;/mainClass&gt;
              &lt;/configuration&gt;
      &lt;/plugin&gt;
      &lt;/plugins&gt;
  &lt;/build&gt;
  </code></pre>
  
  <p></p>