Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/three.js/2.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
IntelliJ Idea失去了git上的AppEngine集成_Git_Google App Engine_Intellij Idea - Fatal编程技术网

IntelliJ Idea失去了git上的AppEngine集成

IntelliJ Idea失去了git上的AppEngine集成,git,google-app-engine,intellij-idea,Git,Google App Engine,Intellij Idea,我得到了一个用IntelliJ制作的AppEngine应用程序的存储库。 当我的同事克隆repo来处理它时,项目丢失了对AppEngine的所有引用(尽管他在他的计算机上有它),他必须手动添加每个库 有没有办法避免这种情况 这是我的.gitignore,由gitignore.io生成 ### AppEngine ### # Google App Engine generated folder appengine-generated/ ### Intellij ### # Covers Jet

我得到了一个用IntelliJ制作的AppEngine应用程序的存储库。 当我的同事克隆repo来处理它时,项目丢失了对AppEngine的所有引用(尽管他在他的计算机上有它),他必须手动添加每个库

有没有办法避免这种情况

这是我的.gitignore,由gitignore.io生成

### AppEngine ###
# Google App Engine generated folder
appengine-generated/


### Intellij ###
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm

*.iml

## Directory-based project format:
.idea/
# if you remove the above rule, at least ignore the following:

# User-specific stuff:
# .idea/workspace.xml
# .idea/tasks.xml
# .idea/dictionaries

# Sensitive or high-churn files:
# .idea/dataSources.ids
# .idea/dataSources.xml
# .idea/sqlDataSources.xml
# .idea/dynamic.xml
# .idea/uiDesigner.xml

# Gradle:
# .idea/gradle.xml
# .idea/libraries

# Mongo Explorer plugin:
# .idea/mongoSettings.xml

## File-based project format:
*.ipr
*.iws

## Plugin-specific files:

# IntelliJ
/out/

# mpeltonen/sbt-idea plugin
.idea_modules/

# JIRA plugin
atlassian-ide-plugin.xml

这可能不是你想要的答案,但我已经在多个IDE中获得了最好的结果,在所有应用引擎项目中使用maven。IntelliJ对maven(甚至是社区版)有很好的支持,所以我真的建议使用maven。通过使用maven,您还消除了对任何应用程序引擎插件等的需求。它可以正常工作

根据要求,这是我在一个项目中使用的maven 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>de.konqi.konqiapp</groupId>
    <artifactId>appengine</artifactId>
    <packaging>war</packaging>

    <properties>
        <appengine.target.version>1.9.12</appengine.target.version>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    </properties>

    <dependencies>
        <!-- Compile/runtime dependencies -->
        <dependency>
            <groupId>com.google.appengine</groupId>
            <artifactId>appengine-api-1.0-sdk</artifactId>
            <version>${appengine.target.version}</version>
        </dependency>
        <dependency>
            <groupId>com.google.appengine</groupId>
            <artifactId>appengine-endpoints</artifactId>
            <version>${appengine.target.version}</version>
        </dependency>
        <dependency>
            <groupId>javax.servlet</groupId>
            <artifactId>servlet-api</artifactId>
            <version>2.5</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>jstl</groupId>
            <artifactId>jstl</artifactId>
            <version>1.2</version>
        </dependency>
        <!-- Test Dependencies -->
        <dependency>
            <groupId>com.google.appengine</groupId>
            <artifactId>appengine-testing</artifactId>
            <version>${appengine.target.version}</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>com.google.appengine</groupId>
            <artifactId>appengine-api-stubs</artifactId>
            <version>${appengine.target.version}</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <version>4.8.1</version>
            <scope>test</scope>
        </dependency>
    </dependencies>

    <build>
        <!-- for hot reload of the web application -->
        <outputDirectory>${project.build.directory}/${project.build.finalName}/WEB-INF/classes</outputDirectory>
        <resources>
            <resource>
                <directory>src/main/java</directory>
                <includes>
                    <include>**/*.properties</include>
                </includes>
            </resource>
            <resource>
                <directory>src/main/resources</directory>
                <includes>
                    <include>**/*.properties</include>
                </includes>
            </resource>
        </resources>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <version>2.5.1</version>
                <artifactId>maven-compiler-plugin</artifactId>
                <configuration>
                    <source>1.7</source>
                    <target>1.7</target>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-war-plugin</artifactId>
                <version>2.4</version>
                <configuration>
                    <webXml>${project.build.directory}/generated-sources/appengine-endpoints/WEB-INF/web.xml</webXml>
                    <webResources>
                        <resource>
                            <!-- this is relative to the pom.xml directory -->
                            <directory>${project.build.directory}/generated-sources/appengine-endpoints</directory>
                            <!-- the list has a default value of ** -->
                            <includes>
                                <include>WEB-INF/*.discovery</include>
                                <include>WEB-INF/*.api</include>
                            </includes>
                        </resource>
                    </webResources>
                </configuration>
            </plugin>
            <plugin>
                <groupId>com.google.appengine</groupId>
                <artifactId>appengine-maven-plugin</artifactId>
                <version>${appengine.target.version}</version>
                <configuration>
                    <enableJarClasses>false</enableJarClasses>
                    <jvmFlags>
                        <jvmFlag>-Xdebug</jvmFlag>
                        <jvmFlag>-agentlib:jdwp=transport=dt_socket,address=8000,server=y,suspend=n</jvmFlag>
                    </jvmFlags>
                </configuration>
                <executions>
                    <execution>
                        <goals>
                            <goal>endpoints_get_discovery_doc</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
        </plugins>
</project>

4.0.0
德康齐康恰普
阿彭金
战争
1.9.12
UTF-8
com.google.appengine
appengine-api-1.0-sdk
${appengine.target.version}
com.google.appengine
appengine端点
${appengine.target.version}
javax.servlet
servlet api
2.5
假如
jstl
jstl
1.2
com.google.appengine
阿彭金试验
${appengine.target.version}
测试
com.google.appengine
appengine api存根
${appengine.target.version}
测试
朱尼特
朱尼特
4.8.1
测试
${project.build.directory}/${project.build.finalName}/WEB-INF/classes
src/main/java
**/*.物业
src/main/resources
**/*.物业
org.apache.maven.plugins
2.5.1
maven编译器插件
1.7
1.7
org.apache.maven.plugins
maven战争插件
2.4
${project.build.directory}/generated sources/appengine endpoints/WEB-INF/WEB.xml
${project.build.directory}/generated sources/appengine endpoints
WEB-INF/*.discovery
WEB-INF/*.api
com.google.appengine
appengine maven插件
${appengine.target.version}
假的
-Xdebug
-agentlib:jdwp=transport=dt_socket,地址=8000,服务器=y,挂起=n
端点\u获取\u发现\u文档

每当我使用Intelij Idea&App Engine时,我都会在存储库中包含
.Idea
目录,但不包括workspace.xml。它最适合我

我想你应该联系intellij的支持者你能分享一下你是如何使用maven启用app engine的吗?当然-添加了pom.xml。一定要检查一下。一旦将pom.xml放入项目根目录中,就可以在IntelliJ中以maven项目的形式打开该项目。我在.gitignore中有所有与IntelliJ相关的内容,因此项目将由pom导入,而不是项目配置中的一些(通常是假的)设置。