java - Maven ArtifactNotFoundException troubleshooting -


problem: i'm trying google protocol buffers dependencies work. no result. maven can't pull protocol buffers dependencies.

question1: understand dependency absent in standard maven repositories, need indicate repositories. am right?

question2: if answer first question yes, how can url of repository? here reference maven dependency.

error:

[error] plugin com.google.protobuf.tools:maven-protoc-plugin:0.3.2 or 1 of dependencies not resolved: failure find com.google.protobuf.to ols:maven-protoc-plugin:jar:0.3.2 in http://repo.maven.apache.org/maven2 cached in local repository, resolution not reattempted until u pdate interval of central has elapsed or updates forced -> [help 1] org.apache.maven.plugin.pluginresolutionexception: plugin com.google.protobuf.tools:maven-protoc-plugin:0.3.2 or 1 of dependencies not resol ved: failure find com.google.protobuf.tools:maven-protoc-plugin:jar:0.3.2 in http://repo.maven.apache.org/maven2 cached in local repository, res olution not reattempted until update interval of central has elapsed or updates forced        ....... caused by: org.eclipse.aether.resolution.artifactresolutionexception: failure find com.google.protobuf.tools:maven-protoc-plugin:jar:0.3.2 in http://rep o.maven.apache.org/maven2 cached in local repository, resolution not reattempted until update interval of central has elapsed or update s forced 

pom.xml:

<?xml version="1.0" encoding="utf-8"?> <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">     <modelversion>4.0.0</modelversion>      <groupid>groupid</groupid>     <artifactid>javasockets</artifactid>     <version>1.0-snapshot</version>      <dependencies>         <dependency>             <groupid>com.google.protobuf</groupid>             <artifactid>protobuf-java</artifactid>             <version>2.5.0</version>         </dependency>     </dependencies>      <build>         <plugins>             <plugin>                 <groupid>org.apache.maven.plugins</groupid>                 <artifactid>maven-compiler-plugin</artifactid>                 <version>3.1</version>                 <configuration>                     <source>1.7</source>                     <target>1.7</target>                 </configuration>             </plugin>             <plugin>                 <groupid>com.google.protobuf.tools</groupid>                 <artifactid>maven-protoc-plugin</artifactid>                 <version>0.3.2</version>                 <configuration>                     <protocexecutable>c:\users\clasik\desktop\java sockets</protocexecutable>                 </configuration>                 <executions>                     <execution>                         <goals>                             <goal>compile</goal>                             <goal>testcompile</goal>                         </goals>                     </execution>                 </executions>             </plugin>         </plugins>     </build> </project>           ...... caused by: org.eclipse.aether.transfer.artifactnotfoundexception: failure find com.google.protobuf.tools:maven-protoc-plugin:jar:0.3.2 in http://repo.ma ven.apache.org/maven2 cached in local repository, resolution not reattempted until update interval of central has elapsed or updates ar e forced      ............... 

the missing dependency maven-protoc-plugin, not protobuf-java. plugin not available in maven central.

according it’s author can add self-hosted repository pom.xml:

<pluginrepositories>     <pluginrepository>         <id>protoc-plugin</id>         <url>http://sergei-ivanov.github.com/maven-protoc-plugin/repo/releases/</url>     </pluginrepository> </pluginrepositories> 

but i’m getting 404 here. can either contact author or check out sources , install plugin manually in local repository.


Comments

Popular posts from this blog

jQuery Mobile app not scrolling in Firefox -

c++ - How to add Crypto++ library to Qt project -

php array slice every 2th rule -