google app engine - IntelliJ Idea lost AppEngine integration over git -
i got repository appengine application made in intellij. when colleague clone repo work on it, project lost every reference appengine (although has on computer) , must add each library manually.
is there way avoid that?
this .gitignore, generated witgh 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 remove above rule, @ least ignore 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
this may not answer looking have had best results accross multiple ides using maven app engine projects. intellij has excellent support maven (even community edition) recommend using maven. using maven eliminate requirement app engine plugins, etc. works.
upon request, maven pom.xml use in 1 of projects:
<?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> <!-- hot reload of 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> <!-- relative pom.xml directory --> <directory>${project.build.directory}/generated-sources/appengine-endpoints</directory> <!-- list has 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>
Comments
Post a Comment