fredsa / playn

Cross platform game library for N≥4 platforms
0 stars 1 forks source link

Getting project build path error #126

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi I am getting following error while creating a new project.

"The App Engine SDK 
'C:\..\.m2\repository\com\google\appengine\appengine-api-1.0-sdk\1.6.0\appengine
-api-1.0-sdk-1.6.0.jar' on the project's build path is not valid (SDK location 
'C:\..\.m2\repository\com\google\appengine\appengine-api-1.0-sdk\1.6.0\appengine
-api-1.0-sdk-1.6.0.jar' is not a directory) samplescrabble-html     Unknown Google 
App Engine Problem"

1.Created project using eclipse as mentioned inside GettingStarted page.

Original issue reported on code.google.com by dron...@gmail.com on 2 Feb 2012 at 1:17

GoogleCodeExporter commented 9 years ago
I actually got around this by modifying my maven playn-html dependency 
coordinates as follows:

    <dependency>
      <groupId>com.googlecode.playn</groupId>
      <artifactId>playn-html</artifactId>
      <version>${playn.version}</version>
      <exclusions>
        <exclusion>
          <groupId>com.google.appengine</groupId>
          <artifactId>appengine-api-1.0-sdk</artifactId>
        </exclusion>
      </exclusions>
    </dependency>

Adding a maven dependencies for gae-runtime, datanucleus, etc. as follows:

    <dependency>
      <groupId>net.kindleit</groupId>
      <artifactId>gae-runtime</artifactId>
      <version>${gae.version}</version>
      <type>pom</type>
      <exclusions>
        <exclusion>
          <groupId>com.google.appengine</groupId>
          <artifactId>appengine-tools-sdk</artifactId>
        </exclusion>
        <exclusion>
          <groupId>com.google.appengine.orm</groupId>
          <artifactId>datanucleus-core</artifactId>
        </exclusion>
        <exclusion>
          <groupId>com.google.appengine.orm</groupId>
          <artifactId>datanucleus-appengine</artifactId>
        </exclusion>
      </exclusions>
    </dependency>

    <dependency>
      <groupId>javax.jdo</groupId>
      <artifactId>jdo2-api</artifactId>
      <version>2.3-eb</version>
      <exclusions>
        <exclusion>
          <groupId>javax.transaction</groupId>
          <artifactId>transaction-api</artifactId>
        </exclusion>
      </exclusions>
    </dependency>

    <dependency>
      <groupId>javax.validation</groupId>
      <artifactId>validation-api</artifactId>
      <version>1.0.0.GA</version>
      <scope>test</scope>
    </dependency>

    <dependency>
      <groupId>javax.validation</groupId>
      <artifactId>validation-api</artifactId>
      <version>1.0.0.GA</version>
      <classifier>sources</classifier>
      <scope>test</scope>
    </dependency>

    <dependency>
      <groupId>org.datanucleus</groupId>
      <artifactId>datanucleus-core</artifactId>
      <version>1.1.5</version>
      <scope>runtime</scope>
      <exclusions>
        <exclusion>
          <groupId>javax.transaction</groupId>
          <artifactId>transaction-api</artifactId>
        </exclusion>
      </exclusions>
    </dependency>

And the following plugins in the plugins tag under build:

    <plugin>
      <groupId>net.kindleit</groupId>
      <artifactId>maven-gae-plugin</artifactId>
      <version>0.9.2</version>
      <executions>
        <execution>
          <id />
          <phase>validate</phase>
          <goals>
            <goal>unpack</goal>
          </goals>
        </execution>
      </executions>
    </plugin>

    <plugin>
      <groupId>org.datanucleus</groupId>
      <artifactId>maven-datanucleus-plugin</artifactId>
      <version>1.1.4</version>
      <configuration>
        <mappingIncludes>**/domain/*.class</mappingIncludes>
        <log4jConfiguration>${webappDirectory}/WEB-INF/logging.properties</log4jConfiguration>
        <verbose>true</verbose>
      </configuration>
      <executions>
        <execution>
          <phase>process-classes</phase>
          <goals>
            <goal>enhance</goal>
          </goals>
        </execution>
      </executions>
      <dependencies>
        <dependency>
          <groupId>javax.jdo</groupId>
          <artifactId>jdo2-api</artifactId>
          <version>2.3-eb</version>
          <scope>runtime</scope>
        </dependency>
        <dependency>
          <groupId>com.google.appengine.orm</groupId>
          <artifactId>datanucleus-appengine</artifactId>
          <version>1.0.10</version>
          <scope>runtime</scope>
        </dependency>
      </dependencies>
    </plugin>

And finally, I added this under build:

    <pluginManagement>
      <plugins>
        <!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
        <plugin>
          <groupId>org.eclipse.m2e</groupId>
          <artifactId>lifecycle-mapping</artifactId>
          <version>1.0.0</version>
          <configuration>
            <lifecycleMappingMetadata>
              <pluginExecutions>
                <pluginExecution>
                  <pluginExecutionFilter>
                    <groupId>org.datanucleus</groupId>
                    <artifactId>maven-datanucleus-plugin</artifactId>
                    <versionRange>[1.1.4,)</versionRange>
                    <goals>
                      <goal>enhance</goal>
                    </goals>
                  </pluginExecutionFilter>
                  <action>
                    <ignore />
                  </action>
                </pluginExecution>
                <pluginExecution>
                  <pluginExecutionFilter>
                    <groupId>net.kindleit</groupId>
                    <artifactId>maven-gae-plugin</artifactId>
                    <versionRange>[0.9.2,)</versionRange>
                    <goals>
                      <goal>unpack</goal>
                    </goals>
                  </pluginExecutionFilter>
                  <action>
                    <execute />
                  </action>
                </pluginExecution>
                <pluginExecution>
                  <pluginExecutionFilter>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-war-plugin</artifactId>
                    <versionRange>[2.1.1,)</versionRange>
                    <goals>
                      <goal>exploded</goal>
                    </goals>
                  </pluginExecutionFilter>
                  <action>
                    <execute />
                  </action>
                </pluginExecution>
              </pluginExecutions>
            </lifecycleMappingMetadata>
          </configuration>
        </plugin>
      </plugins>
    </pluginManagement>

Original comment by matthew....@gmail.com on 2 Feb 2012 at 3:32

GoogleCodeExporter commented 9 years ago
Thanks Mathew, I hope this will be helpful. I will try it out and reply with 
the result

Original comment by dron...@gmail.com on 3 Feb 2012 at 11:55

GoogleCodeExporter commented 9 years ago
This should be fixed in the latest trunk, which does not export GAE depends 
from playn-html but rather includes them in the archetype.

Original comment by samskiv...@gmail.com on 3 Feb 2012 at 10:41

GoogleCodeExporter commented 9 years ago
It doesn't work for me. Wen i do those replacements all this new errors happen:

Description Resource    Path    Location    Type
ArtifactDescriptorException: Failed to read artifact descriptor for 
com.googlecode.playn:playn-html:jar:${playn.version}: 
ArtifactResolutionException: Failure to transfer 
com.googlecode.playn:playn-html:pom:${playn.version} from 
http://maven.springframework.org/release was cached in the local repository, 
resolution will not be reattempted until the update interval of 
spring-maven-release has elapsed or updates are forced. Original error: Could 
not transfer artifact com.googlecode.playn:playn-html:pom:${playn.version} 
from/to spring-maven-release (http://maven.springframework.org/release): 
IllegalArgumentException    pom.xml /expenses   line 1  Maven Dependency Problem
Missing artifact aopalliance:aopalliance:jar:1.0    pom.xml /expenses   line 1  Maven 
Dependency Problem
Missing artifact asm:asm:jar:3.3.1  pom.xml /expenses   line 1  Maven Dependency 
Problem
Missing artifact cglib:cglib-nodep:jar:2.2  pom.xml /expenses   line 1  Maven 
Dependency Problem
Missing artifact 
com.google.appengine:appengine-api-1.0-sdk:jar:1.5.0.1  pom.xml /expenses   line 
1   Maven Dependency Problem
Missing artifact 
com.google.appengine:appengine-api-labs:jar:1.5.0.1 pom.xml /expenses   line 
1   Maven Dependency Problem
Missing artifact 
com.google.appengine:appengine-api-stubs:jar:1.5.0.1    pom.xml /expenses   line 
1   Maven Dependency Problem
Missing artifact 
com.google.appengine:appengine-testing:jar:1.5.0.1  pom.xml /expenses   line 
1   Maven Dependency Problem
Missing artifact 
com.google.appengine.orm:datanucleus-appengine:jar:1.0.8    pom.xml /expenses   line 
1   Maven Dependency Problem
Missing artifact com.google.gwt:gwt-servlet:jar:2.3.0   pom.xml /expenses   line 
1   Maven Dependency Problem
Missing artifact com.google.gwt:gwt-user:jar:2.3.0  pom.xml /expenses   line 
1   Maven Dependency Problem
Missing artifact 
commons-beanutils:commons-beanutils:jar:1.8.0   pom.xml /expenses   line 1  Maven 
Dependency Problem
Missing artifact commons-dbcp:commons-dbcp:jar:1.3  pom.xml /expenses   line 
1   Maven Dependency Problem
Missing artifact 
commons-digester:commons-digester:jar:2.0   pom.xml /expenses   line 1  Maven 
Dependency Problem
Missing artifact 
commons-fileupload:commons-fileupload:jar:1.2.1 pom.xml /expenses   line 1  Maven 
Dependency Problem
Missing artifact commons-pool:commons-pool:jar:1.5.4    pom.xml /expenses   line 
1   Maven Dependency Problem
Missing artifact javax.el:el-api:jar:1.0    pom.xml /expenses   line 1  Maven 
Dependency Problem
Missing artifact javax.jdo:jdo2-api:jar:2.3-eb  pom.xml /expenses   line 1  Maven 
Dependency Problem
Missing artifact 
javax.persistence:persistence-api:jar:1.0   pom.xml /expenses   line 1  Maven 
Dependency Problem
Missing artifact javax.servlet:jstl:jar:1.2 pom.xml /expenses   line 1  Maven 
Dependency Problem
Missing artifact javax.servlet:servlet-api:jar:2.5  pom.xml /expenses   line 
1   Maven Dependency Problem
Missing artifact javax.transaction:jta:jar:1.1  pom.xml /expenses   line 1  Maven 
Dependency Problem
Missing artifact 
javax.transaction:transaction-api:jar:1.1   pom.xml /expenses   line 1  Maven 
Dependency Problem
Missing artifact 
javax.validation:validation-api:jar:1.0.0.GA    pom.xml /expenses   line 1  Maven 
Dependency Problem
Missing artifact 
javax.validation:validation-api:jar:sources:1.0.0.GA    pom.xml /expenses   line 
1   Maven Dependency Problem
Missing artifact joda-time:joda-time:jar:1.6    pom.xml /expenses   line 1  Maven 
Dependency Problem
Missing artifact junit:junit:jar:4.8.1  pom.xml /expenses   line 1  Maven 
Dependency Problem
Missing artifact log4j:log4j:jar:1.2.16 pom.xml /expenses   line 1  Maven 
Dependency Problem
Missing artifact net.kindleit:gae-runtime:pom:1.5.0.1   pom.xml /expenses   line 
1   Maven Dependency Problem
Missing artifact net.sf.jsr107cache:jsr107cache:jar:1.1 pom.xml /expenses   line 
1   Maven Dependency Problem
Missing artifact 
org.apache.geronimo.specs:geronimo-jpa_3.0_spec:jar:1.1.1   pom.xml /expenses   line
 1  Maven Dependency Problem
Missing artifact 
org.apache.geronimo.specs:geronimo-jta_1.1_spec:jar:1.1.1   pom.xml /expenses   line
 1  Maven Dependency Problem
Missing artifact 
org.datanucleus:datanucleus-core:jar:1.1.5  pom.xml /expenses   line 1  Maven 
Dependency Problem
Missing artifact 
org.datanucleus:datanucleus-enhancer:jar:1.1.4  pom.xml /expenses   line 1  Maven 
Dependency Problem
Missing artifact 
org.datanucleus:datanucleus-jpa:jar:1.1.5   pom.xml /expenses   line 1  Maven 
Dependency Problem
Missing artifact 
org.datanucleus:datanucleus-rdbms:jar:1.1.5 pom.xml /expenses   line 1  Maven 
Dependency Problem
Missing artifact 
org.hibernate:hibernate-validator:jar:4.0.2.GA  pom.xml /expenses   line 1  Maven 
Dependency Problem
Missing artifact org.json:json:jar:20090211 pom.xml /expenses   line 1  Maven 
Dependency Problem
Missing artifact org.slf4j:jcl-over-slf4j:jar:1.6.1 pom.xml /expenses   line 
1   Maven Dependency Problem
Missing artifact org.slf4j:slf4j-api:jar:1.6.1  pom.xml /expenses   line 1  Maven 
Dependency Problem
Missing artifact org.slf4j:slf4j-log4j12:jar:1.6.1  pom.xml /expenses   line 
1   Maven Dependency Problem
Missing artifact 
org.springframework:spring-aop:jar:3.0.3.RELEASE    pom.xml /expenses   line 1  Maven 
Dependency Problem
Missing artifact 
org.springframework:spring-asm:jar:3.0.3.RELEASE    pom.xml /expenses   line 1  Maven 
Dependency Problem
Missing artifact 
org.springframework:spring-aspects:jar:3.0.3.RELEASE    pom.xml /expenses   line 
1   Maven Dependency Problem
Missing artifact 
org.springframework:spring-beans:jar:3.0.3.RELEASE  pom.xml /expenses   line 
1   Maven Dependency Problem
Missing artifact 
org.springframework:spring-context-support:jar:3.0.3.RELEASE    pom.xml /expenses   l
ine 1   Maven Dependency Problem
Missing artifact 
org.springframework:spring-context:jar:3.0.3.RELEASE    pom.xml /expenses   line 
1   Maven Dependency Problem
Missing artifact 
org.springframework:spring-core:jar:3.0.3.RELEASE   pom.xml /expenses   line 
1   Maven Dependency Problem
Missing artifact 
org.springframework:spring-expression:jar:3.0.3.RELEASE pom.xml /expenses   line 
1   Maven Dependency Problem
Missing artifact 
org.springframework:spring-jdbc:jar:3.0.3.RELEASE   pom.xml /expenses   line 
1   Maven Dependency Problem
Missing artifact 
org.springframework:spring-orm:jar:3.0.3.RELEASE    pom.xml /expenses   line 1  Maven 
Dependency Problem
Missing artifact 
org.springframework:spring-test:jar:3.0.3.RELEASE   pom.xml /expenses   line 
1   Maven Dependency Problem
Missing artifact 
org.springframework:spring-tx:jar:3.0.3.RELEASE pom.xml /expenses   line 1  Maven 
Dependency Problem
Missing artifact 
org.springframework:spring-web:jar:3.0.3.RELEASE    pom.xml /expenses   line 1  Maven 
Dependency Problem
Missing artifact 
org.springframework:spring-webmvc:jar:3.0.3.RELEASE pom.xml /expenses   line 
1   Maven Dependency Problem
Missing artifact 
org.springframework.roo:org.springframework.roo.annotations:jar:1.1.0.RELEASE   po
m.xml   /expenses   line 1  Maven Dependency Problem
Missing artifact 
org.springframework.webflow:spring-js:jar:2.0.8.RELEASE pom.xml /expenses   line 
1   Maven Dependency Problem
Missing artifact org.tuckey:urlrewritefilter:jar:3.1.0  pom.xml /expenses   line 
1   Maven Dependency Problem
Missing artifact xalan:serializer:jar:2.7.1 pom.xml /expenses   line 1  Maven 
Dependency Problem
Missing artifact xalan:xalan:jar:2.7.1  pom.xml /expenses   line 1  Maven 
Dependency Problem
Missing artifact xml-apis:xml-apis:jar:1.3.04   pom.xml /expenses   line 1  Maven 
Dependency Problem
null 
(net.kindleit:maven-gae-plugin:0.9.2:unpack::validate)  pom.xml /expenses   line 
788 Maven Build Problem
The App Engine SDK 
'C:\Users\me\.m2\repository\com\google\appengine\appengine-api-1.0-sdk\1.5.0.1\a
ppengine-api-1.0-sdk-1.5.0.1.jar' on the project's build path is not valid (SDK 
location 
'C:\Users\me\.m2\repository\com\google\appengine\appengine-api-1.0-sdk\1.5.0.1\a
ppengine-api-1.0-sdk-1.5.0.1.jar' is not a directory)   expenses        Unknown Google 
App Engine Problem
The container 'Maven Dependencies' references non existing library 
'C:\Users\ccastillo\.m2\repository\org\apache\geronimo\specs\geronimo-jta_1.1_sp
ec\1.1.1\geronimo-jta_1.1_spec-1.1.1.jar'   expenses        Build path  Build Path 
Problem
The project cannot be built until build path errors are 
resolved    expenses        Unknown Java Problem

Original comment by castillo...@gmail.com on 23 Feb 2012 at 12:09