title: Unable to find artifact "copy-protoc:generate-sources"
body: <p>I'm using Google's Protocol Buffers in a project. We use Maven to compile the protobufs automatically ( based on <a href="http://vlkan.com/blog/post/2015/11/27/maven-protobuf/" rel="nofollow">http://vlkan.com/blog/post/2015/11/27/maven-protobuf/</a> )</p>
  
  <p>Maven gave us tree errors which we were able to solve by installing Maven Plugins on our Eclipse installation. But there is one error we can't solve :</p>
  
  <pre><code>org.apache.maven.plugins:maven-dependency-plugin:2.9:copy:copy-protoc:generate-sources
  </code></pre>
  
  <p>This error comes and goes apparently "randomly" and it doesn't break the compilation: everything works perfectly fine.
  Here is the maven plugin configuration responsible for this problem:</p>
  
  <pre><code>    &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;2.9&lt;/version&gt;
          &lt;executions&gt;
  ERROR HERE - &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;3.0.0-beta-3&lt;/version&gt;
                              &lt;classifier&gt;${os.detected.classifier}&lt;/classifier&gt;
                              &lt;type&gt;exe&lt;/type&gt;
                              &lt;outputDirectory&gt;${project.build.directory}&lt;/outputDirectory&gt;
                          &lt;/artifactItem&gt;
                      &lt;/artifactItems&gt;
                  &lt;/configuration&gt;
              &lt;/execution&gt;
          &lt;/executions&gt;
      &lt;/plugin&gt;
  </code></pre>
  
  <p>I tried deleting the .m2 folder or looking for more plugins to no avail.</p>
  
  <p>How to remove that error from Eclipse? Thanks</p>
  
  <p><strong>Edit 1 , the whole stacktrace:</strong></p>
  
  <pre><code>Unable to find artifact. (org.apache.maven.plugins:maven-dependency-plugin:2.9:copy:copy-protoc:generate-sources)
  
  org.apache.maven.plugin.MojoExecutionException: Unable to find artifact.
      at org.apache.maven.plugin.dependency.fromConfiguration.AbstractFromConfigurationMojo.getArtifact(AbstractFromConfigurationMojo.java:265)
      at org.apache.maven.plugin.dependency.fromConfiguration.AbstractFromConfigurationMojo.getProcessedArtifactItems(AbstractFromConfigurationMojo.java:171)
      at org.apache.maven.plugin.dependency.fromConfiguration.CopyMojo.doExecute(CopyMojo.java:105)
      at org.apache.maven.plugin.dependency.AbstractDependencyMojo.execute(AbstractDependencyMojo.java:167)
      at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
      at org.eclipse.m2e.core.internal.embedder.MavenImpl.execute(MavenImpl.java:331)
      at org.eclipse.m2e.core.internal.embedder.MavenImpl$11.call(MavenImpl.java:1362)
      at org.eclipse.m2e.core.internal.embedder.MavenImpl$11.call(MavenImpl.java:1)
      at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.executeBare(MavenExecutionContext.java:176)
      at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.execute(MavenExecutionContext.java:112)
      at org.eclipse.m2e.core.internal.embedder.MavenImpl.execute(MavenImpl.java:1360)
      at org.eclipse.m2e.core.project.configurator.MojoExecutionBuildParticipant.build(MojoExecutionBuildParticipant.java:52)
      at com.ianbrandt.tools.m2e.mdp.core.MdpBuildParticipant.executeMojo(MdpBuildParticipant.java:133)
      at com.ianbrandt.tools.m2e.mdp.core.MdpBuildParticipant.build(MdpBuildParticipant.java:67)
      at org.eclipse.m2e.core.internal.builder.MavenBuilderImpl.build(MavenBuilderImpl.java:137)
      at org.eclipse.m2e.core.internal.builder.MavenBuilder$1.method(MavenBuilder.java:172)
      at org.eclipse.m2e.core.internal.builder.MavenBuilder$1.method(MavenBuilder.java:1)
      at org.eclipse.m2e.core.internal.builder.MavenBuilder$BuildMethod$1$1.call(MavenBuilder.java:115)
      at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.executeBare(MavenExecutionContext.java:176)
      at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.execute(MavenExecutionContext.java:112)
      at org.eclipse.m2e.core.internal.builder.MavenBuilder$BuildMethod$1.call(MavenBuilder.java:105)
      at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.executeBare(MavenExecutionContext.java:176)
      at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.execute(MavenExecutionContext.java:151)
      at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.execute(MavenExecutionContext.java:99)
      at org.eclipse.m2e.core.internal.builder.MavenBuilder$BuildMethod.execute(MavenBuilder.java:86)
      at org.eclipse.m2e.core.internal.builder.MavenBuilder.build(MavenBuilder.java:200)
      at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:734)
      at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
      at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:205)
      at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:245)
      at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:300)
      at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
      at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:303)
      at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:359)
      at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:382)
      at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:144)
      at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:235)
      at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
  Caused by: org.apache.maven.artifact.resolver.ArtifactNotFoundException: Failure to find com.google.protobuf:protoc:exe:3.0.0-beta-3 in https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced
  
  Try downloading the file manually from the project website.
  
  Then, install it using the command: 
      mvn install:install-file -DgroupId=com.google.protobuf -DartifactId=protoc -Dversion=3.0.0-beta-3 -Dpackaging=exe -Dfile=/path/to/file
  
  Alternatively, if you host your own repository you can deploy the file there: 
      mvn deploy:deploy-file -DgroupId=com.google.protobuf -DartifactId=protoc -Dversion=3.0.0-beta-3 -Dpackaging=exe -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
  
  
    com.google.protobuf:protoc:exe:3.0.0-beta-3
  
  from the specified remote repositories:
    central (https://repo.maven.apache.org/maven2, releases=true, snapshots=false)
  
      at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:218)
      at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:154)
      at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:545)
      at org.apache.maven.plugin.dependency.fromConfiguration.AbstractFromConfigurationMojo.getArtifact(AbstractFromConfigurationMojo.java:257)
      ... 37 more
  Caused by: org.eclipse.aether.resolution.ArtifactResolutionException: Failure to find com.google.protobuf:protoc:exe:3.0.0-beta-3 in https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced
      at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:444)
      at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:246)
      at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifact(DefaultArtifactResolver.java:223)
      at org.eclipse.aether.internal.impl.DefaultRepositorySystem.resolveArtifact(DefaultRepositorySystem.java:294)
      at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:212)
      ... 40 more
  Caused by: org.eclipse.aether.transfer.ArtifactNotFoundException: Failure to find com.google.protobuf:protoc:exe:3.0.0-beta-3 in https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced
      at org.eclipse.aether.internal.impl.DefaultUpdateCheckManager.newException(DefaultUpdateCheckManager.java:231)
      at org.eclipse.aether.internal.impl.DefaultUpdateCheckManager.checkArtifact(DefaultUpdateCheckManager.java:206)
      at org.eclipse.aether.internal.impl.DefaultArtifactResolver.gatherDownloads(DefaultArtifactResolver.java:585)
      at org.eclipse.aether.internal.impl.DefaultArtifactResolver.performDownloads(DefaultArtifactResolver.java:503)
      at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:421)
      ... 44 more
  </code></pre>
  
  <p><strong>Edit 2 , The Effective POM:</strong></p>
  
  <pre><code>Effective POMs, after inheritance, interpolation, and profiles are applied:
  
  &lt;!-- ====================================================================== --&gt;
  &lt;!--                                                                        --&gt;
  &lt;!-- Generated by Maven Help Plugin on 2016-06-01T01:19:06                  --&gt;
  &lt;!-- See: http://maven.apache.org/plugins/maven-help-plugin/                --&gt;
  &lt;!--                                                                        --&gt;
  &lt;!-- ====================================================================== --&gt;
  
  &lt;!-- ====================================================================== --&gt;
  &lt;!--                                                                        --&gt;
  &lt;!-- Effective POM for project 'com.GroupName:ProjectName:jar:1.0-SNAPSHOT'  --&gt;
  &lt;!--                                                                        --&gt;
  &lt;!-- ====================================================================== --&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.GroupName&lt;/groupId&gt;
    &lt;artifactId&gt;ProjectName&lt;/artifactId&gt;
    &lt;version&gt;1.0-SNAPSHOT&lt;/version&gt;
    &lt;name&gt;ProjectName&lt;/name&gt;
    &lt;url&gt;http://maven.apache.org&lt;/url&gt;
    &lt;properties&gt;
      &lt;build-helper-maven-plugin.version&gt;1.9.1&lt;/build-helper-maven-plugin.version&gt;
      &lt;java.version&gt;1.8&lt;/java.version&gt;
      &lt;junit.version&gt;4.12&lt;/junit.version&gt;
      &lt;maven-antrun-plugin.version&gt;1.8&lt;/maven-antrun-plugin.version&gt;
      &lt;maven-dependency-plugin.version&gt;2.9&lt;/maven-dependency-plugin.version&gt;
      &lt;maven-shade-plugin.version&gt;2.4.3&lt;/maven-shade-plugin.version&gt;
      &lt;os-maven-plugin.version&gt;1.5.0.Final&lt;/os-maven-plugin.version&gt;
      &lt;os.detected.arch&gt;x86_64&lt;/os.detected.arch&gt;
      &lt;os.detected.classifier&gt;windows-x86_64&lt;/os.detected.classifier&gt;
      &lt;os.detected.name&gt;windows&lt;/os.detected.name&gt;
      &lt;project.build.sourceEncoding&gt;UTF-8&lt;/project.build.sourceEncoding&gt;
      &lt;project.reporting.outputEncoding&gt;UTF-8&lt;/project.reporting.outputEncoding&gt;
      &lt;protobuf-java-format.version&gt;1.2&lt;/protobuf-java-format.version&gt;
      &lt;protobuf.input.directory&gt;E:\Development\GroupName\ProjectFolder/proto&lt;/protobuf.input.directory&gt;
      &lt;protobuf.output.directory.cpp&gt;E:\Development\GroupName\ProjectFolder\target/libcpp&lt;/protobuf.output.directory.cpp&gt;
      &lt;protobuf.output.directory.java&gt;E:\Development\GroupName\ProjectFolder\target/generated-sources&lt;/protobuf.output.directory.java&gt;
      &lt;protobuf.version&gt;3.0.0-beta-3&lt;/protobuf.version&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-beta-3&lt;/version&gt;
        &lt;scope&gt;compile&lt;/scope&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
        &lt;groupId&gt;com.googlecode.protobuf-java-format&lt;/groupId&gt;
        &lt;artifactId&gt;protobuf-java-format&lt;/artifactId&gt;
        &lt;version&gt;1.2&lt;/version&gt;
        &lt;scope&gt;compile&lt;/scope&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
        &lt;groupId&gt;junit&lt;/groupId&gt;
        &lt;artifactId&gt;junit&lt;/artifactId&gt;
        &lt;version&gt;4.12&lt;/version&gt;
        &lt;scope&gt;test&lt;/scope&gt;
      &lt;/dependency&gt;
    &lt;/dependencies&gt;
    &lt;repositories&gt;
      &lt;repository&gt;
        &lt;snapshots&gt;
          &lt;enabled&gt;false&lt;/enabled&gt;
        &lt;/snapshots&gt;
        &lt;id&gt;central&lt;/id&gt;
        &lt;name&gt;Central Repository&lt;/name&gt;
        &lt;url&gt;https://repo.maven.apache.org/maven2&lt;/url&gt;
      &lt;/repository&gt;
    &lt;/repositories&gt;
    &lt;pluginRepositories&gt;
      &lt;pluginRepository&gt;
        &lt;releases&gt;
          &lt;updatePolicy&gt;never&lt;/updatePolicy&gt;
        &lt;/releases&gt;
        &lt;snapshots&gt;
          &lt;enabled&gt;false&lt;/enabled&gt;
        &lt;/snapshots&gt;
        &lt;id&gt;central&lt;/id&gt;
        &lt;name&gt;Central Repository&lt;/name&gt;
        &lt;url&gt;https://repo.maven.apache.org/maven2&lt;/url&gt;
      &lt;/pluginRepository&gt;
    &lt;/pluginRepositories&gt;
    &lt;build&gt;
      &lt;sourceDirectory&gt;E:\Development\GroupName\ProjectFolder\src\main\java&lt;/sourceDirectory&gt;
      &lt;scriptSourceDirectory&gt;E:\Development\GroupName\ProjectFolder\src\main\scripts&lt;/scriptSourceDirectory&gt;
      &lt;testSourceDirectory&gt;E:\Development\GroupName\ProjectFolder\src\test\java&lt;/testSourceDirectory&gt;
      &lt;outputDirectory&gt;E:\Development\GroupName\ProjectFolder\target\classes&lt;/outputDirectory&gt;
      &lt;testOutputDirectory&gt;E:\Development\GroupName\ProjectFolder\target\test-classes&lt;/testOutputDirectory&gt;
      &lt;extensions&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;1.5.0.Final&lt;/version&gt;
        &lt;/extension&gt;
      &lt;/extensions&gt;
      &lt;resources&gt;
        &lt;resource&gt;
          &lt;directory&gt;E:\Development\GroupName\ProjectFolder\src\main\resources&lt;/directory&gt;
        &lt;/resource&gt;
      &lt;/resources&gt;
      &lt;testResources&gt;
        &lt;testResource&gt;
          &lt;directory&gt;E:\Development\GroupName\ProjectFolder\src\test\resources&lt;/directory&gt;
        &lt;/testResource&gt;
      &lt;/testResources&gt;
      &lt;directory&gt;E:\Development\GroupName\ProjectFolder\target&lt;/directory&gt;
      &lt;finalName&gt;ProjectName&lt;/finalName&gt;
      &lt;pluginManagement&gt;
        &lt;plugins&gt;
          &lt;plugin&gt;
            &lt;artifactId&gt;maven-antrun-plugin&lt;/artifactId&gt;
            &lt;version&gt;1.3&lt;/version&gt;
          &lt;/plugin&gt;
          &lt;plugin&gt;
            &lt;artifactId&gt;maven-assembly-plugin&lt;/artifactId&gt;
            &lt;version&gt;2.2-beta-5&lt;/version&gt;
          &lt;/plugin&gt;
          &lt;plugin&gt;
            &lt;artifactId&gt;maven-dependency-plugin&lt;/artifactId&gt;
            &lt;version&gt;2.8&lt;/version&gt;
          &lt;/plugin&gt;
          &lt;plugin&gt;
            &lt;artifactId&gt;maven-release-plugin&lt;/artifactId&gt;
            &lt;version&gt;2.3.2&lt;/version&gt;
          &lt;/plugin&gt;
          &lt;plugin&gt;
            &lt;groupId&gt;org.eclipse.m2e&lt;/groupId&gt;
            &lt;artifactId&gt;lifecycle-mapping&lt;/artifactId&gt;
            &lt;version&gt;1.0.0&lt;/version&gt;
            &lt;configuration&gt;
              &lt;lifecycleMappingMetadata&gt;
                &lt;pluginExecutions&gt;
                  &lt;pluginExecution&gt;
                    &lt;pluginExecutionFilter&gt;
                      &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                      &lt;artifactId&gt;maven-antrun-plugin&lt;/artifactId&gt;
                      &lt;versionRange&gt;[1.7,)&lt;/versionRange&gt;
                      &lt;goals&gt;
                        &lt;goal&gt;run&lt;/goal&gt;
                      &lt;/goals&gt;
                    &lt;/pluginExecutionFilter&gt;
                    &lt;action&gt;
                      &lt;ignore /&gt;
                      &lt;execute&gt;
                        &lt;runOnConfiguration&gt;true&lt;/runOnConfiguration&gt;
                        &lt;runOnIncremental&gt;true&lt;/runOnIncremental&gt;
                      &lt;/execute&gt;
                    &lt;/action&gt;
                  &lt;/pluginExecution&gt;
                &lt;/pluginExecutions&gt;
              &lt;/lifecycleMappingMetadata&gt;
            &lt;/configuration&gt;
          &lt;/plugin&gt;
        &lt;/plugins&gt;
      &lt;/pluginManagement&gt;
      &lt;plugins&gt;
        &lt;plugin&gt;
          &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
          &lt;version&gt;3.3&lt;/version&gt;
          &lt;executions&gt;
            &lt;execution&gt;
              &lt;id&gt;default-compile&lt;/id&gt;
              &lt;phase&gt;compile&lt;/phase&gt;
              &lt;goals&gt;
                &lt;goal&gt;compile&lt;/goal&gt;
              &lt;/goals&gt;
              &lt;configuration&gt;
                &lt;source&gt;1.8&lt;/source&gt;
                &lt;target&gt;1.8&lt;/target&gt;
                &lt;encoding&gt;UTF-8&lt;/encoding&gt;
              &lt;/configuration&gt;
            &lt;/execution&gt;
            &lt;execution&gt;
              &lt;id&gt;default-testCompile&lt;/id&gt;
              &lt;phase&gt;test-compile&lt;/phase&gt;
              &lt;goals&gt;
                &lt;goal&gt;testCompile&lt;/goal&gt;
              &lt;/goals&gt;
              &lt;configuration&gt;
                &lt;source&gt;1.8&lt;/source&gt;
                &lt;target&gt;1.8&lt;/target&gt;
                &lt;encoding&gt;UTF-8&lt;/encoding&gt;
              &lt;/configuration&gt;
            &lt;/execution&gt;
          &lt;/executions&gt;
          &lt;configuration&gt;
            &lt;source&gt;1.8&lt;/source&gt;
            &lt;target&gt;1.8&lt;/target&gt;
            &lt;encoding&gt;UTF-8&lt;/encoding&gt;
          &lt;/configuration&gt;
        &lt;/plugin&gt;
        &lt;plugin&gt;
          &lt;artifactId&gt;maven-resources-plugin&lt;/artifactId&gt;
          &lt;version&gt;2.7&lt;/version&gt;
          &lt;executions&gt;
            &lt;execution&gt;
              &lt;id&gt;default-testResources&lt;/id&gt;
              &lt;phase&gt;process-test-resources&lt;/phase&gt;
              &lt;goals&gt;
                &lt;goal&gt;testResources&lt;/goal&gt;
              &lt;/goals&gt;
              &lt;configuration&gt;
                &lt;encoding&gt;UTF-8&lt;/encoding&gt;
              &lt;/configuration&gt;
            &lt;/execution&gt;
            &lt;execution&gt;
              &lt;id&gt;default-resources&lt;/id&gt;
              &lt;phase&gt;process-resources&lt;/phase&gt;
              &lt;goals&gt;
                &lt;goal&gt;resources&lt;/goal&gt;
              &lt;/goals&gt;
              &lt;configuration&gt;
                &lt;encoding&gt;UTF-8&lt;/encoding&gt;
              &lt;/configuration&gt;
            &lt;/execution&gt;
          &lt;/executions&gt;
          &lt;configuration&gt;
            &lt;encoding&gt;UTF-8&lt;/encoding&gt;
          &lt;/configuration&gt;
        &lt;/plugin&gt;
        &lt;plugin&gt;
          &lt;artifactId&gt;maven-dependency-plugin&lt;/artifactId&gt;
          &lt;version&gt;2.9&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;3.0.0-beta-3&lt;/version&gt;
                    &lt;classifier&gt;${os.detected.classifier}&lt;/classifier&gt;
                    &lt;type&gt;exe&lt;/type&gt;
                    &lt;outputDirectory&gt;E:\Development\GroupName\ProjectFolder\target&lt;/outputDirectory&gt;
                  &lt;/artifactItem&gt;
                &lt;/artifactItems&gt;
              &lt;/configuration&gt;
            &lt;/execution&gt;
          &lt;/executions&gt;
        &lt;/plugin&gt;
        &lt;plugin&gt;
          &lt;artifactId&gt;maven-antrun-plugin&lt;/artifactId&gt;
          &lt;version&gt;1.8&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;goals&gt;
                &lt;goal&gt;run&lt;/goal&gt;
              &lt;/goals&gt;
              &lt;configuration&gt;
                &lt;target&gt;
                  &lt;property name="protoc.filename" value="protoc-3.0.0-beta-3-${os.detected.classifier}.exe" /&gt;
                  &lt;property name="protoc.filepath" value="E:\Development\GroupName\ProjectFolder\target/${protoc.filename}" /&gt;
                  &lt;chmod file="${protoc.filepath}" perm="ugo+rx" /&gt;
                  &lt;mkdir dir="E:\Development\GroupName\ProjectFolder\target/generated-sources" /&gt;
                  &lt;mkdir dir="E:\Development\GroupName\ProjectFolder\target/libcpp" /&gt;
                  &lt;path id="protobuf.input.filepaths.path"&gt;
                    &lt;fileset dir="E:\Development\GroupName\ProjectFolder/proto"&gt;
                      &lt;include name="**/*.proto" /&gt;
                    &lt;/fileset&gt;
                  &lt;/path&gt;
                  &lt;pathconvert property="protobuf.input.filepaths" pathsep=" " refid="protobuf.input.filepaths.path" /&gt;
                  &lt;exec failonerror="true" executable="${protoc.filepath}"&gt;
                    &lt;arg value="-I" /&gt;
                    &lt;arg value="E:\Development\GroupName\ProjectFolder/proto" /&gt;
                    &lt;arg value="--java_out" /&gt;
                    &lt;arg value="E:\Development\GroupName\ProjectFolder\target/generated-sources" /&gt;
                    &lt;arg value="--cpp_out" /&gt;
                    &lt;arg value="E:\Development\GroupName\ProjectFolder\target/libcpp" /&gt;
                    &lt;arg line="${protobuf.input.filepaths}" /&gt;
                  &lt;/exec&gt;
                &lt;/target&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;build-helper-maven-plugin&lt;/artifactId&gt;
          &lt;version&gt;1.9.1&lt;/version&gt;
          &lt;executions&gt;
            &lt;execution&gt;
              &lt;id&gt;add-classes&lt;/id&gt;
              &lt;phase&gt;generate-sources&lt;/phase&gt;
              &lt;goals&gt;
                &lt;goal&gt;add-source&lt;/goal&gt;
              &lt;/goals&gt;
              &lt;configuration&gt;
                &lt;sources&gt;
                  &lt;source&gt;E:\Development\GroupName\ProjectFolder\target/generated-sources&lt;/source&gt;
                &lt;/sources&gt;
              &lt;/configuration&gt;
            &lt;/execution&gt;
          &lt;/executions&gt;
        &lt;/plugin&gt;
        &lt;plugin&gt;
          &lt;artifactId&gt;maven-clean-plugin&lt;/artifactId&gt;
          &lt;version&gt;2.5&lt;/version&gt;
          &lt;executions&gt;
            &lt;execution&gt;
              &lt;id&gt;default-clean&lt;/id&gt;
              &lt;phase&gt;clean&lt;/phase&gt;
              &lt;goals&gt;
                &lt;goal&gt;clean&lt;/goal&gt;
              &lt;/goals&gt;
            &lt;/execution&gt;
          &lt;/executions&gt;
        &lt;/plugin&gt;
        &lt;plugin&gt;
          &lt;artifactId&gt;maven-jar-plugin&lt;/artifactId&gt;
          &lt;version&gt;2.4&lt;/version&gt;
          &lt;executions&gt;
            &lt;execution&gt;
              &lt;id&gt;default-jar&lt;/id&gt;
              &lt;phase&gt;package&lt;/phase&gt;
              &lt;goals&gt;
                &lt;goal&gt;jar&lt;/goal&gt;
              &lt;/goals&gt;
            &lt;/execution&gt;
          &lt;/executions&gt;
        &lt;/plugin&gt;
        &lt;plugin&gt;
          &lt;artifactId&gt;maven-surefire-plugin&lt;/artifactId&gt;
          &lt;version&gt;2.12.4&lt;/version&gt;
          &lt;executions&gt;
            &lt;execution&gt;
              &lt;id&gt;default-test&lt;/id&gt;
              &lt;phase&gt;test&lt;/phase&gt;
              &lt;goals&gt;
                &lt;goal&gt;test&lt;/goal&gt;
              &lt;/goals&gt;
            &lt;/execution&gt;
          &lt;/executions&gt;
        &lt;/plugin&gt;
        &lt;plugin&gt;
          &lt;artifactId&gt;maven-install-plugin&lt;/artifactId&gt;
          &lt;version&gt;2.4&lt;/version&gt;
          &lt;executions&gt;
            &lt;execution&gt;
              &lt;id&gt;default-install&lt;/id&gt;
              &lt;phase&gt;install&lt;/phase&gt;
              &lt;goals&gt;
                &lt;goal&gt;install&lt;/goal&gt;
              &lt;/goals&gt;
            &lt;/execution&gt;
          &lt;/executions&gt;
        &lt;/plugin&gt;
        &lt;plugin&gt;
          &lt;artifactId&gt;maven-deploy-plugin&lt;/artifactId&gt;
          &lt;version&gt;2.7&lt;/version&gt;
          &lt;executions&gt;
            &lt;execution&gt;
              &lt;id&gt;default-deploy&lt;/id&gt;
              &lt;phase&gt;deploy&lt;/phase&gt;
              &lt;goals&gt;
                &lt;goal&gt;deploy&lt;/goal&gt;
              &lt;/goals&gt;
            &lt;/execution&gt;
          &lt;/executions&gt;
        &lt;/plugin&gt;
        &lt;plugin&gt;
          &lt;artifactId&gt;maven-site-plugin&lt;/artifactId&gt;
          &lt;version&gt;3.3&lt;/version&gt;
          &lt;executions&gt;
            &lt;execution&gt;
              &lt;id&gt;default-site&lt;/id&gt;
              &lt;phase&gt;site&lt;/phase&gt;
              &lt;goals&gt;
                &lt;goal&gt;site&lt;/goal&gt;
              &lt;/goals&gt;
              &lt;configuration&gt;
                &lt;outputDirectory&gt;E:\Development\GroupName\ProjectFolder\target\site&lt;/outputDirectory&gt;
                &lt;reportPlugins&gt;
                  &lt;reportPlugin&gt;
                    &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                    &lt;artifactId&gt;maven-project-info-reports-plugin&lt;/artifactId&gt;
                  &lt;/reportPlugin&gt;
                &lt;/reportPlugins&gt;
              &lt;/configuration&gt;
            &lt;/execution&gt;
            &lt;execution&gt;
              &lt;id&gt;default-deploy&lt;/id&gt;
              &lt;phase&gt;site-deploy&lt;/phase&gt;
              &lt;goals&gt;
                &lt;goal&gt;deploy&lt;/goal&gt;
              &lt;/goals&gt;
              &lt;configuration&gt;
                &lt;outputDirectory&gt;E:\Development\GroupName\ProjectFolder\target\site&lt;/outputDirectory&gt;
                &lt;reportPlugins&gt;
                  &lt;reportPlugin&gt;
                    &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                    &lt;artifactId&gt;maven-project-info-reports-plugin&lt;/artifactId&gt;
                  &lt;/reportPlugin&gt;
                &lt;/reportPlugins&gt;
              &lt;/configuration&gt;
            &lt;/execution&gt;
          &lt;/executions&gt;
          &lt;configuration&gt;
            &lt;outputDirectory&gt;E:\Development\GroupName\ProjectFolder\target\site&lt;/outputDirectory&gt;
            &lt;reportPlugins&gt;
              &lt;reportPlugin&gt;
                &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                &lt;artifactId&gt;maven-project-info-reports-plugin&lt;/artifactId&gt;
              &lt;/reportPlugin&gt;
            &lt;/reportPlugins&gt;
          &lt;/configuration&gt;
        &lt;/plugin&gt;
      &lt;/plugins&gt;
    &lt;/build&gt;
    &lt;reporting&gt;
      &lt;outputDirectory&gt;E:\Development\GroupName\ProjectFolder\target\site&lt;/outputDirectory&gt;
    &lt;/reporting&gt;
  &lt;/project&gt;
  </code></pre>