Hi all, I am trying to build the first rest sample from GeoServer 2.9.0 Developer Manual: http://docs.geoserver.org/2.9.0/developer/programming-guide/rest-services/implementing.html
And I am getting an error. The error is in attached file mvn_install.txt. I tried with different versions of com.mockrunner:mockrunner:jar and it is always the same. When I remove test dependencies from pom.xml and test folder from hello_rest project I can build the project with maven install, but when I copy my jar in WEB-INF\lib, I get the error from th other attached file - geoserver.log. The last attached file is my pom.xml I am using latest version of maven - 3.3.9 and java 1.8.0_72. I do not know what am I doing wrong... I am reading the manual and doing all the steps... Best regards, Kalin
D:\Work\geoserver\hello_rest>mvn clean install [INFO] Scanning for projects... [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building hello_rest 1.0-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 0.794 s [INFO] Finished at: 2016-08-10T12:07:47+03:00 [INFO] Final Memory: 11M/309M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal on project hello_rest: Could not resolve dependencies for project org.geoserver:hello_rest:jar:1.0-SNAPSHOT: Failure to find com.mockrunner:mockrunner:jar:1.1.1 in http://repo.maven.apache.org/maven2/ was cached in the local repository, resolution will not be reattempted until the update interval of Maven2Repo has elapsed or updates are forced -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
geoserver.log
Description: Binary data
<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/maven-v4_0_0.xsd "> <modelVersion>4.0.0</modelVersion> <groupId>org.geoserver</groupId> <artifactId>hello_rest</artifactId> <packaging>jar</packaging> <version>1.0-SNAPSHOT</version> <name>hello_rest</name> <properties> <skipTests>true</skipTests> <maven-compiler-plugin-version>3.5.1</maven-compiler-plugin-version> </properties> <dependencies> <dependency> <groupId>org.geoserver</groupId> <artifactId>gs-rest</artifactId> <version>2.9.0</version> <!-- change this to the proper GeoServer version --> </dependency> <dependency> <groupId>org.geoserver</groupId> <artifactId>gs-main</artifactId> <version>2.9.0</version> <classifier>tests</classifier> <scope>test</scope> </dependency> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.12</version> <scope>test</scope> </dependency> <dependency> <groupId>com.mockrunner</groupId> <artifactId>mockrunner</artifactId> <version>1.1.1</version> <scope>test</scope> </dependency> </dependencies> <repositories> <repository> <id>Maven2Repo</id> <name>Maven2 Repository</name> <url>http://repo.maven.apache.org/maven2/</url> </repository> <repository> <id>Maven2Repo1</id> <name>Maven2 Repository</name> <url>http://repo1.maven.org/maven2/</url> </repository> <repository> <id>com.springsource.repository.bundles.release</id> <name>SpringSource Enterprise Bundle Repository - SpringSource Bundle Releases</name> <url>http://repository.springsource.com/maven/bundles/release</url> </repository> <repository> <id>com.springsource.repository.bundles.external</id> <name>SpringSource Enterprise Bundle Repository - External Bundle Releases</name> <url>http://repository.springsource.com/maven/bundles/external</url> </repository> <repository> <id>Geotools</id> <name>GeoTools</name> <url>http://download.osgeo.org/webdav/geotools/</url> </repository> <repository> <id>boundless</id> <name>Boundless Maven Repository</name> <url>http://repo.boundlessgeo.com/main/</url> </repository> </repositories> <build> <plugins> <plugin> <artifactId>maven-compiler-plugin</artifactId> <version>${maven-compiler-plugin-version}</version> <configuration> <source>1.8</source> <target>1.8</target> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <version>2.12.4</version> <configuration> <skipTests>${skipTests}</skipTests> </configuration> </plugin> </plugins> </build> </project>
------------------------------------------------------------------------------ What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic patterns at an interface-level. Reveals which users, apps, and protocols are consuming the most bandwidth. Provides multi-vendor support for NetFlow, J-Flow, sFlow and other flows. Make informed decisions using capacity planning reports. http://sdm.link/zohodev2dev
_______________________________________________ Geoserver-devel mailing list Geoserver-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-devel