appengine-api-1.0-sdk-1.7.6.jar不是一个目录 [英] appengine-api-1.0-sdk-1.7.6.jar is not a directory

查看:114
本文介绍了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.xsdxmlns = 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>
< organization>
<名称> OhApp!< / name>
< url> www.ohapp.pt< / url>
< / organization>
<依赖关系>
< dependency>
< groupId> com.googlecode.objectify< / groupId>
< artifactId> objectify< / artifactId>
< version> 4.0b3< / version>
< scope>编译< / scope>
< /依赖关系>
< dependency>
< groupId> com.google.web.bindery< / groupId>
< artifactId> requestfactory< / artifactId>
< version> 2.5.1-rc1< / version>
< type> pom< / type>
< scope>编译< / scope>
< /依赖关系>
< /依赖关系>
< repositories>
< repository>
<快照>
<启用> false< / enabled>
< / snapshots>
< id>中央< / id>
<名称>中央储存库< /名称>
< url> http://repo.maven.apache.org/maven2< / url>
< / repository>
< / repositories>
< pluginRepositories>
< pluginRepository>
<发布>
< updatePolicy>永不< / updatePolicy>
< / releases>
<快照>
<启用> false< / enabled>
< / snapshots>
< id>中央< / id>
<名称>中央储存库< /名称>
< 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>
<资源>
< resource>
< directory> / Users / abelbarbosa / Documents / workspace / WebConFuturo / src< / directory>
<排除>
< exclude> ** / *。java< / exclude>
< /不包括>
< / resource>
< /资源>
< 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>
<执行次数>
<执行>
< id> default-testCompile< / id>
<阶段>测试编译< /阶段>
<目标>
< goal> testCompile< / goal>
< /目标>
<配置>
< source> 1.6< / source>
< target> 1.6< / target>
< / configuration>
< /执行>
<执行>
< id> default-compile< / id>
<阶段>编译< /阶段>
<目标>
< goal>编译< / goal>
< /目标>
<配置>
< source> 1.6< / source>
< target> 1.6< / target>
< / configuration>
< /执行>
< /执行次数>
<配置>
< source> 1.6< / source>
< target> 1.6< / target>
< / configuration>
< / plugin>
< plugin>
< artifactId> maven-war-plugin< / artifactId>
< version> 2.3< / version>
<执行次数>
<执行>
< id> default-war< / id>
<阶段>包< /阶段>
<目标>
< goal>战争< / goal>
< /目标>
<配置>
< archiveClasses> true< / archiveClasses>
< / 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>
<执行次数>
<执行>
< id> default-clean< / id>
<阶段>清洁< /阶段>
<目标>
< goal> clean< / goal>
< /目标>
< /执行>
< /执行次数>
< / plugin>
< plugin>
< artifactId> maven-install-plugin< / artifactId>
< version> 2.3.1< / version>
<执行次数>
<执行>
< id> default-install< / id>
<阶段>安装< /阶段>
<目标>
< goal>安装< / goal>
< /目标>
< /执行>
< /执行次数>
< / plugin>
< plugin>
< artifactId> maven-resources-plugin< / artifactId>
< version> 2.5< / version>
<执行次数>
<执行>
< id> default-resources< / id>
<阶段>过程资源< /阶段>
<目标>
<目标>资源< /目标>
< /目标>
< /执行>
<执行>
< id> default-testResources< / id>
<阶段>进程测试资源< /阶段>
<目标>
< goal> testResources< / goal>
< /目标>
< /执行>
< /执行次数>
< / plugin>
< plugin>
< artifactId> maven-surefire-plugin< / artifactId>
< version> 2.10< / version>
<执行次数>
<执行>
< id> default-test< / id>
<阶段>测试< /阶段>
<目标>
< goal> test< / goal>
< /目标>
< /执行>
< /执行次数>
< / plugin>
< plugin>
< artifactId> maven-deploy-plugin< / artifactId>
< version> 2.7< / version>
<执行次数>
<执行>
< id> default-deploy< / id>
<阶段>部署< /阶段>
<目标>
< goal> deploy< / goal>
< /目标>
< /执行>
< /执行次数>
< / plugin>
< plugin>
< artifactId> maven-site-plugin< / artifactId>
< version> 3.0< / version>
<执行次数>
<执行>
< id>默认网站< / id>
<阶段>网站< /阶段>
<目标>
< goal>网站< / goal>
< /目标>
<配置>
< 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>
< /执行>
<执行>
< id> default-deploy< / id>
<阶段>网站部署< /阶段>
<目标>
< goal> deploy< / goal>
< /目标>
<配置>
< 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>
< /执行>
< /执行次数>
<配置>
< 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>
<报告>
< outputDirectory> / Users / abelbarbosa / Documents / workspace / WebConFuturo / target / site< / outputDirectory>
< / reporting>
< / project>

感谢您的帮助。

最好的问候

解决方案

您必须使用maven appengine插件。 https://code.google.com/p/maven-gae-plugin/


I just started using Maven in my projects.

I converted an old project to a Maven project and at first everything worked fine. But now I have a problem.

When I try to run the application (is a GWT application that uses Objectify) I get the following error:

SDK location '/Users/abelbarbosa/.m2/repository/com/google/appengine/appengine-api-1.0-sdk/1.7.6/appengine-api-1.0-sdk-1.7.6.jar' is not a directory

I know that it isn't a directory but i don't think it was supposed to be. I don't know how to correct this.

Is there anything wrong with my 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>

Thank you for your help.

Best regards

解决方案

You have to use the maven appengine plugin. https://code.google.com/p/maven-gae-plugin/

这篇关于appengine-api-1.0-sdk-1.7.6.jar不是一个目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆