Tecnologia do Blogger.
RSS

Re: [androidbrasil-dev] Problema com GAE/JDO

Caused by: javax.jdo.JDOFatalUserException: A property named javax.jdo.Pe
rsistenceManagerFactoryClass must be specified, or a jar file with a META-INF/se
rvices/javax.jdo.PersistenceManagerFactory entry must be in the classpath, or a
property named javax.jdo.option.PersistenceUnitName must be specified.

Alguma coisa está relacionada com a sua configuração no persistence.xml

Abraço,

Ernani

On Sat, Sep 6, 2014 at 5:23 PM, Brayan Bernardo
<brianrevolution@gmail.com> wrote:
> Olá pessoal, estoy tentando fazer uma inserção com o GAE porém quanto eu
> executo o código, aparece o seguinte erro:
>
> java.lang.NoClassDefFoundError: Could not initialize class com.example.PMF.
>
> Meu tracer:
>
>
> [INFO] Retrieving Google App Engine Java SDK from Maven
> set 06, 2014 5:04:30 PM
> com.google.apphosting.utils.config.AppEngineWebXmlReader
> readAppEngineWebXml
> INFORMAÃıES: Successfully processed
> C:\Users\Brayan\Documents\TCC\projeto\hellow
> orld\target/helloworld-1.0-SNAPSHOT\WEB-INF/appengine-web.xml
> [INFO] Running C:\Program Files\Java\jdk1.8.0_20\jre\bin\java
> -javaagent:C:\User
> s\Brayan\.m2\repository\com\google\appengine\appengine-java-sdk\1.9.10\appengine
> -java-sdk\appengine-java-sdk-1.9.10\lib\agent\appengine-agent.jar
> -Xbootclasspat
> h/p:C:\Users\Brayan\.m2\repository\com\google\appengine\appengine-java-sdk\1.9.1
> 0\appengine-java-sdk\appengine-java-sdk-1.9.10\lib\override\appengine-dev-jdk-ov
> errides.jar -Dappengine.fullscan.seconds=5 -classpath
> C:\Users\Brayan\.m2\reposi
> tory\com\google\appengine\appengine-java-sdk\1.9.10\appengine-java-sdk\appengine
> -java-sdk-1.9.10\lib\appengine-tools-api.jar
> com.google.appengine.tools.developm
> ent.DevAppServerMain --allow_remote_shutdown
> C:\Users\Brayan\Documents\TCC\proje
> to\helloworld\target/helloworld-1.0-SNAPSHOT
> [INFO] set 06, 2014 5:04:31 PM
> com.google.appengine.tools.development.agent.AppE
> ngineDevAgent premain
> [INFO] GRAVE: Unable to load the App Engine dev agent. Security restrictions
> wil
> l not be completely emulated.
> [INFO] java.lang.RuntimeException: Unexpected exception during cast.
> [INFO] at
> com.google.apphosting.utils.clearcast.ClearCast$CasterImpl.cast(Clear
> Cast.java:385)
> [INFO] at
> com.google.apphosting.utils.clearcast.ClearCast.staticCast(ClearCast.
> java:252)
> [INFO] at
> com.google.apphosting.utils.clearcast.ClearCast.staticCast(ClearCast.
> java:263)
> [INFO] at
> com.google.appengine.tools.development.agent.AppEngineDevAgent.premai
> n(AppEngineDevAgent.java:61)
> [INFO] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> [INFO] at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
> java:62)
> [INFO] at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
> sorImpl.java:43)
> [INFO] at java.lang.reflect.Method.invoke(Method.java:483)
> [INFO] at
> sun.instrument.InstrumentationImpl.loadClassAndStartAgent(Instrumenta
> tionImpl.java:386)
> [INFO] at
> sun.instrument.InstrumentationImpl.loadClassAndCallPremain(Instrument
> ationImpl.java:401)
> [INFO] Caused by: java.lang.IllegalAccessException: Class
> com.google.apphosting.
> utils.clearcast.ClearCast$CasterImpl can not access a member of class
> com.google
> .appengine.tools.development.agent.$Proxy0 with modifiers "public"
> [INFO] at sun.reflect.Reflection.ensureMemberAccess(Reflection.java:101)
> [INFO] at
> java.lang.reflect.AccessibleObject.slowCheckMemberAccess(AccessibleOb
> ject.java:295)
> [INFO] at
> java.lang.reflect.AccessibleObject.checkAccess(AccessibleObject.java:
> 287)
> [INFO] at java.lang.reflect.Constructor.newInstance(Constructor.java:398)
> [INFO] at
> com.google.apphosting.utils.clearcast.ClearCast$CasterImpl.cast(Clear
> Cast.java:383)
> [INFO] ... 9 more
> [INFO]
> [INFO] set 06, 2014 5:04:34 PM
> com.google.apphosting.utils.config.AppEngineWebXm
> lReader readAppEngineWebXml
> [INFO] INFORMAÇÕES: Successfully processed
> C:\Users\Brayan\Documents\TCC\projeto
> \helloworld\target\helloworld-1.0-SNAPSHOT\WEB-INF/appengine-web.xml
> [INFO] set 06, 2014 5:04:34 PM
> com.google.apphosting.utils.config.AbstractConfig
> XmlReader readConfigXml
> [INFO] INFORMAÇÕES: Successfully processed
> C:\Users\Brayan\Documents\TCC\projeto
> \helloworld\target\helloworld-1.0-SNAPSHOT\WEB-INF/web.xml
> [INFO] set 06, 2014 5:04:34 PM
> com.google.appengine.tools.development.SystemProp
> ertiesManager setSystemProperties
> [INFO] INFORMAÇÕES: Overwriting system property key
> 'java.util.logging.config.fi
> le', value
> 'C:\Users\Brayan\.m2\repository\com\google\appengine\appengine-java-s
> dk\1.9.10\appengine-java-sdk\appengine-java-sdk-1.9.10\config\sdk\logging.proper
> ties' with value 'WEB-INF/logging.properties' from
> 'C:\Users\Brayan\Documents\TC
> C\projeto\helloworld\target\helloworld-1.0-SNAPSHOT\WEB-INF\appengine-web.xml'
> [INFO] set 06, 2014 5:04:34 PM com.google.apphosting.utils.jetty.JettyLogger
> inf
> o
> [INFO] INFORMAÇÕES: Logging to JettyLogger(null) via
> com.google.apphosting.utils
> .jetty.JettyLogger
> [INFO] set 06, 2014 5:04:34 PM com.google.apphosting.utils.jetty.JettyLogger
> inf
> o
> [INFO] INFORMAÇÕES: jetty-6.1.x
> [INFO] set 06, 2014 5:04:35 PM com.google.apphosting.utils.jetty.JettyLogger
> inf
> o
> [INFO] INFORMAÇÕES: Started SelectChannelConnector@127.0.0.1:8080
> [INFO] set 06, 2014 5:04:35 PM
> com.google.appengine.tools.development.JettyConta
> inerService startHotDeployScanner
> [INFO] INFORMAÇÕES: Full scan of the web app in place every 5s.
> [INFO] set 06, 2014 5:04:35 PM
> com.google.appengine.tools.development.AbstractMo
> dule startup
> [INFO] INFORMAÇÕES: Module instance default is running at
> http://localhost:8080/
>
> [INFO] set 06, 2014 5:04:35 PM
> com.google.appengine.tools.development.AbstractMo
> dule startup
> [INFO] INFORMAÇÕES: The admin console is running at
> http://localhost:8080/_ah/ad
> min
> [INFO] set 06, 2014 5:04:35 PM
> com.google.appengine.tools.development.DevAppServ
> erImpl doStart
> [INFO] INFORMAÇÕES: Dev App Server is now running
> [INFO] set 06, 2014 5:04:48 PM
> com.google.appengine.tools.development.LocalResou
> rceFileServlet doGet
> [INFO] ADVERTÊNCIA: No file found for: /favicon.ico
> [INFO] set 06, 2014 5:04:49 PM
> com.google.api.server.spi.SystemServiceServlet in
> it
> [INFO] INFORMAÇÕES: SPI restricted: true
> [INFO] set 06, 2014 5:05:05 PM com.google.api.server.spi.SystemService
> invokeSer
> viceMethod
> [INFO] INFORMAÇÕES: cause={0}
> [INFO] java.lang.ExceptionInInitializerError
> [INFO] at com.example.Greetings.setData(Greetings.java:52)
> [INFO] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> [INFO] at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
> java:62)
> [INFO] at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
> sorImpl.java:43)
> [INFO] at java.lang.reflect.Method.invoke(Method.java:483)
> [INFO] at
> com.google.api.server.spi.SystemService.invokeServiceMethod(SystemSer
> vice.java:359)
> [INFO] at
> com.google.api.server.spi.SystemServiceServlet.execute(SystemServiceS
> ervlet.java:160)
> [INFO] at
> com.google.api.server.spi.SystemServiceServlet.doPost(SystemServiceSe
> rvlet.java:118)
> [INFO] at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
> [INFO] at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
> [INFO] at
> org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511
> )
> [INFO] at
> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(Servlet
> Handler.java:1166)
> [INFO] at
> com.google.appengine.api.socket.dev.DevSocketFilter.doFilter(DevSocke
> tFilter.java:74)
> [INFO] at
> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(Servlet
> Handler.java:1157)
> [INFO] at
> com.google.appengine.tools.development.ResponseRewriterFilter.doFilte
> r(ResponseRewriterFilter.java:127)
> [INFO] at
> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(Servlet
> Handler.java:1157)
> [INFO] at
> com.google.appengine.tools.development.HeaderVerificationFilter.doFil
> ter(HeaderVerificationFilter.java:34)
> [INFO] at
> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(Servlet
> Handler.java:1157)
> [INFO] at
> com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(Serve
> BlobFilter.java:63)
> [INFO] at
> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(Servlet
> Handler.java:1157)
> [INFO] at
> com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter
> (TransactionCleanupFilter.java:43)
> [INFO] at
> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(Servlet
> Handler.java:1157)
> [INFO] at
> com.google.appengine.tools.development.StaticFileFilter.doFilter(Stat
> icFileFilter.java:125)
> [INFO] at
> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(Servlet
> Handler.java:1157)
> [INFO] at
> com.google.appengine.tools.development.DevAppServerModulesFilter.doDi
> rectRequest(DevAppServerModulesFilter.java:366)
> [INFO] at
> com.google.appengine.tools.development.DevAppServerModulesFilter.doDi
> rectModuleRequest(DevAppServerModulesFilter.java:349)
> [INFO] at
> com.google.appengine.tools.development.DevAppServerModulesFilter.doFi
> lter(DevAppServerModulesFilter.java:116)
> [INFO] at
> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(Servlet
> Handler.java:1157)
> [INFO] at
> org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:3
> 88)
> [INFO] at
> org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.jav
> a:216)
> [INFO] at
> org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:1
> 82)
> [INFO] at
> org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:7
> 65)
> [INFO] at
> org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418)
>
> [INFO] at
> com.google.appengine.tools.development.DevAppEngineWebAppContext.hand
> le(DevAppEngineWebAppContext.java:98)
> [INFO] at
> org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:1
> 52)
> [INFO] at
> com.google.appengine.tools.development.JettyContainerService$ApiProxy
> Handler.handle(JettyContainerService.java:491)
> [INFO] at
> org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:1
> 52)
> [INFO] at org.mortbay.jetty.Server.handle(Server.java:326)
> [INFO] at
> org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:54
> 2)
> [INFO] at
> org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnectio
> n.java:938)
> [INFO] at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:755)
> [INFO] at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218)
> [INFO] at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
> [INFO] at
> org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.ja
> va:409)
> [INFO] at
> org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.j
> ava:582)
> [INFO] Caused by: javax.jdo.JDOFatalUserException: A property named
> javax.jdo.Pe
> rsistenceManagerFactoryClass must be specified, or a jar file with a
> META-INF/se
> rvices/javax.jdo.PersistenceManagerFactory entry must be in the classpath,
> or a
> property named javax.jdo.option.PersistenceUnitName must be specified.
> [INFO] at
> javax.jdo.JDOHelper.getPersistenceManagerFactory(JDOHelper.java:861)
> [INFO] at
> javax.jdo.JDOHelper.getPersistenceManagerFactory(JDOHelper.java:1099)
>
> [INFO] at
> javax.jdo.JDOHelper.getPersistenceManagerFactory(JDOHelper.java:919)
> [INFO] at com.example.PMF.<clinit>(PMF.java:23)
> [INFO] ... 45 more
> [INFO]
> [INFO] set 06, 2014 5:05:05 PM com.google.api.server.spi.SystemService
> invokeSer
> viceMethod
> [INFO] GRAVE: null
> [INFO] java.lang.ExceptionInInitializerError
> [INFO] at com.example.Greetings.setData(Greetings.java:52)
> [INFO] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> [INFO] at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
> java:62)
> [INFO] at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
> sorImpl.java:43)
> [INFO] at java.lang.reflect.Method.invoke(Method.java:483)
> [INFO] at
> com.google.api.server.spi.SystemService.invokeServiceMethod(SystemSer
> vice.java:359)
> [INFO] at
> com.google.api.server.spi.SystemServiceServlet.execute(SystemServiceS
> ervlet.java:160)
> [INFO] at
> com.google.api.server.spi.SystemServiceServlet.doPost(SystemServiceSe
> rvlet.java:118)
> [INFO] at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
> [INFO] at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
> [INFO] at
> org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511
> )
> [INFO] at
> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(Servlet
> Handler.java:1166)
> [INFO] at
> com.google.appengine.api.socket.dev.DevSocketFilter.doFilter(DevSocke
> tFilter.java:74)
> [INFO] at
> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(Servlet
> Handler.java:1157)
> [INFO] at
> com.google.appengine.tools.development.ResponseRewriterFilter.doFilte
> r(ResponseRewriterFilter.java:127)
> [INFO] at
> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(Servlet
> Handler.java:1157)
> [INFO] at
> com.google.appengine.tools.development.HeaderVerificationFilter.doFil
> ter(HeaderVerificationFilter.java:34)
> [INFO] at
> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(Servlet
> Handler.java:1157)
> [INFO] at
> com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(Serve
> BlobFilter.java:63)
> [INFO] at
> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(Servlet
> Handler.java:1157)
> [INFO] at
> com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter
> (TransactionCleanupFilter.java:43)
> [INFO] at
> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(Servlet
> Handler.java:1157)
> [INFO] at
> com.google.appengine.tools.development.StaticFileFilter.doFilter(Stat
> icFileFilter.java:125)
> [INFO] at
> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(Servlet
> Handler.java:1157)
> [INFO] at
> com.google.appengine.tools.development.DevAppServerModulesFilter.doDi
> rectRequest(DevAppServerModulesFilter.java:366)
> [INFO] at
> com.google.appengine.tools.development.DevAppServerModulesFilter.doDi
> rectModuleRequest(DevAppServerModulesFilter.java:349)
> [INFO] at
> com.google.appengine.tools.development.DevAppServerModulesFilter.doFi
> lter(DevAppServerModulesFilter.java:116)
> [INFO] at
> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(Servlet
> Handler.java:1157)
> [INFO] at
> org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:3
> 88)
> [INFO] at
> org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.jav
> a:216)
> [INFO] at
> org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:1
> 82)
> [INFO] at
> org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:7
> 65)
> [INFO] at
> org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418)
>
> [INFO] at
> com.google.appengine.tools.development.DevAppEngineWebAppContext.hand
> le(DevAppEngineWebAppContext.java:98)
> [INFO] at
> org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:1
> 52)
> [INFO] at
> com.google.appengine.tools.development.JettyContainerService$ApiProxy
> Handler.handle(JettyContainerService.java:491)
> [INFO] at
> org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:1
> 52)
> [INFO] at org.mortbay.jetty.Server.handle(Server.java:326)
> [INFO] at
> org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:54
> 2)
> [INFO] at
> org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnectio
> n.java:938)
> [INFO] at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:755)
> [INFO] at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218)
> [INFO] at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
> [INFO] at
> org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.ja
> va:409)
> [INFO] at
> org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.j
> ava:582)
> [INFO] Caused by: javax.jdo.JDOFatalUserException: A property named
> javax.jdo.Pe
> rsistenceManagerFactoryClass must be specified, or a jar file with a
> META-INF/se
> rvices/javax.jdo.PersistenceManagerFactory entry must be in the classpath,
> or a
> property named javax.jdo.option.PersistenceUnitName must be specified.
> [INFO] at
> javax.jdo.JDOHelper.getPersistenceManagerFactory(JDOHelper.java:861)
> [INFO] at
> javax.jdo.JDOHelper.getPersistenceManagerFactory(JDOHelper.java:1099)
>
> [INFO] at
> javax.jdo.JDOHelper.getPersistenceManagerFactory(JDOHelper.java:919)
> [INFO] at com.example.PMF.<clinit>(PMF.java:23)
> [INFO] ... 45 more
> [INFO]
>
>
> Onde eu faço a inserção:
>
> MyBean p = new MyBean(la,lo);
>
> PersistenceManager pm = PMF.get().getPersistenceManager();
>
>
> try{
> pm.makePersistent(p);
>
> } finally {
>
> pm.close();
> }
>
>
> Minha classe PMF:
>
>
> public final class PMF extends java.lang.Object{
>
> private static final PersistenceManagerFactory pmfInstance =
> JDOHelper.getPersistenceManagerFactory("transactions-optional");
>
> private PMF() {}
>
> public static PersistenceManagerFactory get() {
> return pmfInstance;
> }
> }
>
>
> Estou usando o Maven, por padrão ele vem o arquivo persistence.xml dentro da
> pasta META-INF, nos tutorias sempre fala do arquivo jdoconfig, criei um e
> coloquei junto com o persistence.xml:
>
> <?xml version="1.0" encoding="utf-8"?>
> <jdoconfig xmlns="http://java.sun.com/xml/ns/jdo/jdoconfig"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:noNamespaceSchemaLocation="http://java.sun.com/xml/ns/jdo/jdoconfig">
>
>
> <persistence-manager-factory name="transactions-optional">
> <property name="javax.jdo.PersistenceManagerFactoryClass"
>
> value="org.datanucleus.store.appengine.jdo.DatastoreJDOPersistenceManagerFactory"/>
> <property name="javax.jdo.option.ConnectionURL" value="appengine"/>
> <property name="javax.jdo.option.NontransactionalRead" value="true"/>
> <property name="javax.jdo.option.NontransactionalWrite"
> value="true"/>
> <property name="javax.jdo.option.RetainValues" value="true"/>
> <property name="datanucleus.appengine.autoCreateDatastoreTxns"
> value="true"/>
> </persistence-manager-factory>
> </jdoconfig>
>
>
> 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>
> <packaging>war</packaging>
> <version>1.0-SNAPSHOT</version>
>
>
> <groupId>com.example</groupId>
> <artifactId>helloworld</artifactId>
>
>
> <properties>
> <appengine.app.version>1</appengine.app.version>
> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
> </properties>
>
>
> <prerequisites>
> <maven>3.1.0</maven>
> </prerequisites>
>
>
> <dependencies>
> <!-- Compile/runtime dependencies -->
> <dependency>
> <groupId>com.google.appengine</groupId>
> <artifactId>appengine-api-1.0-sdk</artifactId>
> <version>1.9.10</version>
> </dependency>
> <dependency>
> <groupId>com.google.appengine</groupId>
> <artifactId>appengine-endpoints</artifactId>
> <version>1.9.10</version>
> </dependency>
> <dependency>
> <groupId>javax.servlet</groupId>
> <artifactId>servlet-api</artifactId>
> <version>2.5</version>
> <scope>provided</scope>
> </dependency>
> <dependency>
> <groupId>javax.inject</groupId>
> <artifactId>javax.inject</artifactId>
> <version>1</version>
> </dependency>
> <dependency>
> <groupId>javax.jdo</groupId>
> <artifactId>jdo-api</artifactId>
> <version>3.0.1</version>
> </dependency>
> <dependency>
> <groupId>xml-apis</groupId>
> <artifactId>xml-apis</artifactId>
> <version>1.4.01</version>
> </dependency>
>
>
> <!-- Test Dependencies -->
> <dependency>
> <groupId>junit</groupId>
> <artifactId>junit</artifactId>
> <version>4.11</version>
> <scope>test</scope>
> </dependency>
> <dependency>
> <groupId>org.mockito</groupId>
> <artifactId>mockito-all</artifactId>
> <version>1.9.5</version>
> <scope>test</scope>
> </dependency>
> <dependency>
> <groupId>com.google.appengine</groupId>
> <artifactId>appengine-testing</artifactId>
> <version>1.9.10</version>
> <scope>test</scope>
> </dependency>
> <dependency>
> <groupId>com.google.appengine</groupId>
> <artifactId>appengine-api-stubs</artifactId>
> <version>1.9.10</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>
> <plugins>
> <plugin>
> <groupId>org.codehaus.mojo</groupId>
> <artifactId>versions-maven-plugin</artifactId>
> <version>2.1</version>
> <executions>
> <execution>
> <phase>compile</phase>
> <goals>
> <goal>display-dependency-updates</goal>
> <goal>display-plugin-updates</goal>
> </goals>
> </execution>
> </executions>
> </plugin>
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <version>3.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>1.9.10</version>
> <configuration>
> <enableJarClasses>false</enableJarClasses>
> <!-- Comment in the below snippet to bind to all IPs
> instead of just localhost -->
> <!-- address>0.0.0.0</address>
> <port>8080</port -->
> <!-- Comment in the below snippet to enable local
> debugging with a remove debugger
> like those included with Eclipse or IntelliJ -->
> <!-- jvmFlags>
>
> <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>
> </build>
>
>
> </project>
>
>
>
> Alguém?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Android Brasil - Dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to androidbrasil-dev+unsubscribe@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Android Brasil - Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to androidbrasil-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

  • Digg
  • Del.icio.us
  • StumbleUpon
  • Reddit
  • RSS

0 comentários:

Postar um comentário