Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/maven/5.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
Java appengine-api-1.0-sdk-1.7.6.jar不是目录_Java_Maven_Gwt_Objectify - Fatal编程技术网

Java appengine-api-1.0-sdk-1.7.6.jar不是目录

Java appengine-api-1.0-sdk-1.7.6.jar不是目录,java,maven,gwt,objectify,Java,Maven,Gwt,Objectify,我刚开始在我的项目中使用Maven 我将一个旧项目转换为一个Maven项目,起初一切都很顺利。但现在我有一个问题 当我尝试运行应用程序(是一个使用Objectify的GWT应用程序)时,出现以下错误: SDK位置“/Users/abelbarbosa/.m2/repository/com/google/appengine/appengine-api-1.0-SDK/1.7.6/appengine-api-1.0-SDK-1.7.6.jar”不是目录 我知道它不是一个目录,但我不认为它应该是。我不

我刚开始在我的项目中使用Maven

我将一个旧项目转换为一个Maven项目,起初一切都很顺利。但现在我有一个问题

当我尝试运行应用程序(是一个使用Objectify的GWT应用程序)时,出现以下错误:

SDK位置“/Users/abelbarbosa/.m2/repository/com/google/appengine/appengine-api-1.0-SDK/1.7.6/appengine-api-1.0-SDK-1.7.6.jar”不是目录

我知道它不是一个目录,但我不认为它应该是。我不知道怎么纠正这个

我的pom.xml有什么问题吗:

<?xml version="1.0"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <modelVersion>4.0.0</modelVersion>
  <groupId>WebConFuturo</groupId>
  <artifactId>WebConFuturo</artifactId>
  <version>0.0.1-SNAPSHOT</version>
  <packaging>war</packaging>
  <organization>
    <name>OhApp!</name>
    <url>www.ohapp.pt</url>
  </organization>
  <dependencies>
    <dependency>
      <groupId>com.googlecode.objectify</groupId>
      <artifactId>objectify</artifactId>
      <version>4.0b3</version>
      <scope>compile</scope>
    </dependency>
    <dependency>
      <groupId>com.google.web.bindery</groupId>
      <artifactId>requestfactory</artifactId>
      <version>2.5.1-rc1</version>
      <type>pom</type>
      <scope>compile</scope>
    </dependency>
  </dependencies>
  <repositories>
    <repository>
      <snapshots>
        <enabled>false</enabled>
      </snapshots>
      <id>central</id>
      <name>Central Repository</name>
      <url>http://repo.maven.apache.org/maven2</url>
    </repository>
  </repositories>
  <pluginRepositories>
    <pluginRepository>
      <releases>
        <updatePolicy>never</updatePolicy>
      </releases>
      <snapshots>
        <enabled>false</enabled>
      </snapshots>
      <id>central</id>
      <name>Central Repository</name>
      <url>http://repo.maven.apache.org/maven2</url>
    </pluginRepository>
  </pluginRepositories>
  <build>
    <sourceDirectory>/Users/abelbarbosa/Documents/workspace/WebConFuturo/src</sourceDirectory>
    <scriptSourceDirectory>/Users/abelbarbosa/Documents/workspace/WebConFuturo/src/main/scripts</scriptSourceDirectory>
    <testSourceDirectory>/Users/abelbarbosa/Documents/workspace/WebConFuturo/src/test/java</testSourceDirectory>
    <outputDirectory>/Users/abelbarbosa/Documents/workspace/WebConFuturo/target/classes</outputDirectory>
    <testOutputDirectory>/Users/abelbarbosa/Documents/workspace/WebConFuturo/target/test-classes</testOutputDirectory>
    <resources>
      <resource>
        <directory>/Users/abelbarbosa/Documents/workspace/WebConFuturo/src</directory>
        <excludes>
          <exclude>**/*.java</exclude>
        </excludes>
      </resource>
    </resources>
    <testResources>
      <testResource>
        <directory>/Users/abelbarbosa/Documents/workspace/WebConFuturo/src/test/resources</directory>
      </testResource>
    </testResources>
    <directory>/Users/abelbarbosa/Documents/workspace/WebConFuturo/target</directory>
    <finalName>WebConFuturo-0.0.1-SNAPSHOT</finalName>
    <pluginManagement>
      <plugins>
        <plugin>
          <artifactId>maven-antrun-plugin</artifactId>
          <version>1.3</version>
        </plugin>
        <plugin>
          <artifactId>maven-assembly-plugin</artifactId>
          <version>2.2-beta-5</version>
        </plugin>
        <plugin>
          <artifactId>maven-dependency-plugin</artifactId>
          <version>2.1</version>
        </plugin>
        <plugin>
          <artifactId>maven-release-plugin</artifactId>
          <version>2.0</version>
        </plugin>
      </plugins>
    </pluginManagement>
    <plugins>
      <plugin>
        <artifactId>maven-compiler-plugin</artifactId>
        <version>2.5.1</version>
        <executions>
          <execution>
            <id>default-testCompile</id>
            <phase>test-compile</phase>
            <goals>
              <goal>testCompile</goal>
            </goals>
            <configuration>
              <source>1.6</source>
              <target>1.6</target>
            </configuration>
          </execution>
          <execution>
            <id>default-compile</id>
            <phase>compile</phase>
            <goals>
              <goal>compile</goal>
            </goals>
            <configuration>
              <source>1.6</source>
              <target>1.6</target>
            </configuration>
          </execution>
        </executions>
        <configuration>
          <source>1.6</source>
          <target>1.6</target>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-war-plugin</artifactId>
        <version>2.3</version>
        <executions>
          <execution>
            <id>default-war</id>
            <phase>package</phase>
            <goals>
              <goal>war</goal>
            </goals>
            <configuration>
              <archiveClasses>true</archiveClasses>
            </configuration>
          </execution>
        </executions>
        <configuration>
          <archiveClasses>true</archiveClasses>
        </configuration>
      </plugin>
      <plugin>
        <groupId>com.google.appengine</groupId>
        <artifactId>appengine-maven-plugin</artifactId>
        <version>1.7.6</version>
      </plugin>
      <plugin>
        <artifactId>maven-clean-plugin</artifactId>
        <version>2.4.1</version>
        <executions>
          <execution>
            <id>default-clean</id>
            <phase>clean</phase>
            <goals>
              <goal>clean</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <artifactId>maven-install-plugin</artifactId>
        <version>2.3.1</version>
        <executions>
          <execution>
            <id>default-install</id>
            <phase>install</phase>
            <goals>
              <goal>install</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <artifactId>maven-resources-plugin</artifactId>
        <version>2.5</version>
        <executions>
          <execution>
            <id>default-resources</id>
            <phase>process-resources</phase>
            <goals>
              <goal>resources</goal>
            </goals>
          </execution>
          <execution>
            <id>default-testResources</id>
            <phase>process-test-resources</phase>
            <goals>
              <goal>testResources</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <artifactId>maven-surefire-plugin</artifactId>
        <version>2.10</version>
        <executions>
          <execution>
            <id>default-test</id>
            <phase>test</phase>
            <goals>
              <goal>test</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <artifactId>maven-deploy-plugin</artifactId>
        <version>2.7</version>
        <executions>
          <execution>
            <id>default-deploy</id>
            <phase>deploy</phase>
            <goals>
              <goal>deploy</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <artifactId>maven-site-plugin</artifactId>
        <version>3.0</version>
        <executions>
          <execution>
            <id>default-site</id>
            <phase>site</phase>
            <goals>
              <goal>site</goal>
            </goals>
            <configuration>
              <outputDirectory>/Users/abelbarbosa/Documents/workspace/WebConFuturo/target/site</outputDirectory>
              <reportPlugins>
                <reportPlugin>
                  <groupId>org.apache.maven.plugins</groupId>
                  <artifactId>maven-project-info-reports-plugin</artifactId>
                </reportPlugin>
              </reportPlugins>
            </configuration>
          </execution>
          <execution>
            <id>default-deploy</id>
            <phase>site-deploy</phase>
            <goals>
              <goal>deploy</goal>
            </goals>
            <configuration>
              <outputDirectory>/Users/abelbarbosa/Documents/workspace/WebConFuturo/target/site</outputDirectory>
              <reportPlugins>
                <reportPlugin>
                  <groupId>org.apache.maven.plugins</groupId>
                  <artifactId>maven-project-info-reports-plugin</artifactId>
                </reportPlugin>
              </reportPlugins>
            </configuration>
          </execution>
        </executions>
        <configuration>
          <outputDirectory>/Users/abelbarbosa/Documents/workspace/WebConFuturo/target/site</outputDirectory>
          <reportPlugins>
            <reportPlugin>
              <groupId>org.apache.maven.plugins</groupId>
              <artifactId>maven-project-info-reports-plugin</artifactId>
            </reportPlugin>
          </reportPlugins>
        </configuration>
      </plugin>
    </plugins>
  </build>
  <reporting>
    <outputDirectory>/Users/abelbarbosa/Documents/workspace/WebConFuturo/target/site</outputDirectory>
  </reporting>
</project>

4.0.0
网络未来
网络未来
0.0.1-快照
战争
啊哈!
www.ohapp.pt
com.googlecode.objectify
客观化
4.0b3
编写
com.google.web.bindery
请求工厂
2.5.1-rc1
聚甲醛
编写
错误的
中心的
中央知识库
http://repo.maven.apache.org/maven2
从不
错误的
中心的
中央知识库
http://repo.maven.apache.org/maven2
/用户/abelbarbosa/Documents/workspace/WebConFuturo/src
/用户/abelbarbosa/Documents/workspace/WebConFuturo/src/main/scripts
/用户/abelbarbosa/Documents/workspace/WebConFuturo/src/test/java
/用户/abelbarbosa/Documents/workspace/WebConFuturo/target/classes
/用户/abelbarbosa/Documents/workspace/WebConFuturo/target/test类
/用户/abelbarbosa/Documents/workspace/WebConFuturo/src
**/*.爪哇
/用户/abelbarbosa/Documents/workspace/WebConFuturo/src/test/resources
/用户/abelbarbosa/Documents/workspace/WebConFuturo/target
WebConFuturo-0.0.1-SNAPSHOT
maven antrun插件
1.3
maven汇编插件
2.2-β-5
maven依赖插件
2.1
maven发布插件
2
maven编译器插件
2.5.1
默认测试编译
测试编译
测试编译
1.6
1.6
默认编译
编写
编写
1.6
1.6
1.6
1.6
maven战争插件
2.3
默认战争
包裹
战争
符合事实的
符合事实的
com.google.appengine
appengine maven插件
1.7.6
maven清洁插件
2.4.1
默认清除
清洁的
清洁的
maven安装插件
2.3.1
默认安装
安装
安装
maven资源插件
2.5
默认资源
过程资源
资源
默认测试资源
过程测试资源
测试资源
maven surefire插件
2.10
默认测试
测验
测验
maven部署插件
2.7
默认部署
部署
部署
maven站点插件
3
默认站点
地点
地点
/用户/abelbarbosa/Documents/workspace/WebConFuturo/target/site
org.apache.maven.plugins
maven项目信息报告插件
默认部署
站点部署
部署
/用户/abelbarbosa/Documents/workspace/WebConFuturo/target/site
org.apache.maven.plugins
maven项目信息报告插件
/用户/abelbarbosa/Documents/workspace/WebConFuturo/target/site
org.apache.maven.plugins
maven项目信息报告插件
/用户/abelbarbosa/Documents/workspace/WebConFuturo/target/site
谢谢你的帮助


致以最诚挚的问候

评论中的文字被弄乱了。在这里重写,为appengine添加一个依赖项:

<dependency>
  <groupId>com.google.appengine</groupId>
  <artifactId>appengine-api-1.0-sdk</artifactId>
  <version>1.8.1</version>
</dependency>

com.google.appengine
appengine-api-1.0-sdk
1.8.1

不确定它是否能解决问题,但请告诉我们结果。

注释中的文本被弄乱了。在这里重写,为appengine添加一个依赖项:

<dependency>
  <groupId>com.google.appengine</groupId>
  <artifactId>appengine-api-1.0-sdk</artifactId>
  <version>1.8.1</version>
</dependency>

com.google.appengine
appengine-api-1.0-sdk
1.8.1

不确定它是否能解决问题,但请告诉我们结果。

您必须使用maven appengine插件

您必须使用maven appengine插件

在项目构建路径中,确保AppEngine库在maven库之前。 请参见此处的设置方法:

在yo中