Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/eclipse/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Eclipse 在新的ecplise项目中设置geoserver manager_Eclipse_Maven - Fatal编程技术网

Eclipse 在新的ecplise项目中设置geoserver manager

Eclipse 在新的ecplise项目中设置geoserver manager,eclipse,maven,Eclipse,Maven,一周的大部分时间里,我一直在用我的脸直截了当地打这个——我已经达到了极度沮丧的程度 我在eclipse中创建了一个新的maven项目,并具有以下pom.xml: <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://

一周的大部分时间里,我一直在用我的脸直截了当地打这个——我已经达到了极度沮丧的程度

我在eclipse中创建了一个新的maven项目,并具有以下pom.xml:

<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>

    <repositories>
        <repository>
            <id>GeoSolutions</id>
            <url>http://maven.geo-solutions.it/</url>
        </repository>
    </repositories>


    <!-- The Basics -->
    <groupId>ARU</groupId>
    <artifactId>ARU</artifactId>
    <version>0.0.1-SNAPSHOT</version>
    <dependencies>
        <dependency>
            <groupId>it.geosolutions</groupId>
            <artifactId>geoserver-manager</artifactId>
            <version>1.5.2</version>
        </dependency>
    </dependencies> 

    <!-- Project Information -->
    <name>Automatic Raster Update</name>
    <description>Application that automates the update of your raster imagery</description>

    <!-- Build Settings -->
    <build>
        <sourceDirectory>src</sourceDirectory>
        <plugins>
            <plugin>
            <artifactId>maven-compiler-plugin</artifactId>
            <version>3.3</version>
            <configuration>
                <source>1.4</source>
                <target>1.4</target>
            </configuration>
            </plugin>
        </plugins>
    </build>

</project>
Maven依赖项似乎已加载,但通过检查构建路径libs,我得到了以下信息

我该去哪里,我该做什么

更新 这是我在尝试运行测试代码时遇到的错误

你想做什么?嘿@iant,现在我只是想用geoserver管理器在geoserver上做一些剩余的调用。整个项目将使用新图像并重建金字塔以上载到GeoServer尝试将源和目标标记更改为1。7或1。8@iant仍然告诉我在1.7和1.8上都没有编译器错误,你安装了jdk吗?
[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building Automatic Raster Update 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ ARU ---
[INFO] Deleting C:\BABS_WMS\v_1.1\js_Dev\ARU\ARU-master\target
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ ARU ---
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory C:\BABS_WMS\v_1.1\js_Dev\ARU\ARU-master\src\main\resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.3:compile (default-compile) @ ARU ---
[INFO] Changes detected - recompiling the module!
[WARNING] File encoding has not been set, using platform encoding Cp1252, i.e. build is platform dependent!
[INFO] Compiling 1 source file to C:\BABS_WMS\v_1.1\js_Dev\ARU\ARU-master\target\classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR : 
[INFO] -------------------------------------------------------------
[ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
[INFO] 1 error
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.499 s
[INFO] Finished at: 2016-01-19T13:36:30-05:00
[INFO] Final Memory: 9M/219M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.3:compile (default-compile) on project ARU: Compilation failure
[ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
[ERROR] -> [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/MojoFailureException