Advertisement
Guest User

Untitled

a guest
Oct 8th, 2017
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.58 KB | None | 0 0
  1. C:UsersAzeemDownloadscloudcloudsql>mvn appengine:deploy
  2. [INFO] Scanning for projects...
  3. [INFO]
  4. [INFO] ------------------------------------------------------------------------
  5. [INFO] Building appengine-cloudsql-j8 1.0-SNAPSHOT
  6. [INFO] ------------------------------------------------------------------------
  7. [INFO]
  8. [INFO] >>> appengine-maven-plugin:1.3.1:deploy (default-cli) > package @ appengi
  9. ne-cloudsql-j8 >>>
  10. [INFO]
  11. [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ appengine-
  12. cloudsql-j8 ---
  13. [WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources,
  14. i.e. build is platform dependent!
  15. [INFO] skip non existing resourceDirectory C:UsersAzeemDownloadscloudclouds
  16. qlsrcmainresources
  17. [INFO]
  18. [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ appengine-cloud
  19. sql-j8 ---
  20. [INFO] Nothing to compile - all classes are up to date
  21. [INFO]
  22. [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ ap
  23. pengine-cloudsql-j8 ---
  24. [WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources,
  25. i.e. build is platform dependent!
  26. [INFO] skip non existing resourceDirectory C:UsersAzeemDownloadscloudclouds
  27. qlsrctestresources
  28. [INFO]
  29. [INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ appengi
  30. ne-cloudsql-j8 ---
  31. [INFO] No sources to compile
  32. [INFO]
  33. [INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ appengine-cloudsql
  34. -j8 ---
  35. [INFO] No tests to run.
  36. [INFO]
  37. [INFO] --- maven-war-plugin:3.0.0:war (default-war) @ appengine-cloudsql-j8 ---
  38. [INFO] Packaging webapp
  39. [INFO] Assembling webapp [appengine-cloudsql-j8] in [C:UsersAzeemDownloadscl
  40. oudcloudsqltargetappengine-cloudsql-j8-1.0-SNAPSHOT]
  41. [INFO] Processing war project
  42. [INFO] Copying webapp webResources [C:UsersAzeemDownloadscloudcloudsql/src/
  43. main/webapp/WEB-INF] to [C:UsersAzeemDownloadscloudcloudsqltargetappengin
  44. e-cloudsql-j8-1.0-SNAPSHOT]
  45. [INFO] Copying webapp resources [C:UsersAzeemDownloadscloudcloudsqlsrcmai
  46. nwebapp]
  47. [INFO] Webapp assembled in [165 msecs]
  48. [INFO] Building war: C:UsersAzeemDownloadscloudcloudsqltargetappengine-cl
  49. oudsql-j8-1.0-SNAPSHOT.war
  50. [INFO]
  51. [INFO] <<< appengine-maven-plugin:1.3.1:deploy (default-cli) < package @ appengi
  52. ne-cloudsql-j8 <<<
  53. [INFO]
  54. [INFO]
  55. [INFO] --- appengine-maven-plugin:1.3.1:deploy (default-cli) @ appengine-cloudsq
  56. l-j8 ---
  57. [INFO] Deleting the staging directory: C:UsersAzeemDownloadscloudcloudsqlt
  58. argetappengine-staging
  59. [INFO] Staging the application to: C:UsersAzeemDownloadscloudcloudsqltarge
  60. tappengine-staging
  61. [INFO] Detected App Engine standard environment application.
  62. Oct 07, 2017 10:52:07 PM com.google.cloud.tools.appengine.cloudsdk.CloudSdk logC
  63. ommand
  64. INFO: submitting command: C:Program FilesJavajdk1.8.0_144jrebinjava.exe -c
  65. p C:Program Files (x86)GoogleCloud SDKgoogle-cloud-sdkplatformgoogle_appen
  66. ginegoogleappenginetoolsjavalibappengine-tools-api.jar com.google.appengin
  67. e.tools.admin.AppCfg --disable_update_check stage C:UsersAzeemDownloadscloud
  68. cloudsqltargetappengine-cloudsql-j8-1.0-SNAPSHOT C:UsersAzeemDownloadsclo
  69. udcloudsqltargetappengine-staging
  70. [INFO] GCLOUD: Reading application configuration data...
  71. [INFO] GCLOUD: Bad configuration: XML error validating <?xml version="1.0" encod
  72. ing="utf-8"?>
  73. [INFO] GCLOUD: <!--
  74. [INFO] GCLOUD: Copyright 2016 Google Inc.
  75. [INFO] GCLOUD: Licensed under the Apache License, Version 2.0 (the "License");
  76.  
  77. [INFO] GCLOUD: you may not use this file except in compliance with the License
  78. .
  79. [INFO] GCLOUD: You may obtain a copy of the License at
  80. [INFO] GCLOUD: http://www.apache.org/licenses/LICENSE-2.0
  81. [INFO] GCLOUD: Unless required by applicable law or agreed to in writing, soft
  82. ware
  83. [INFO] GCLOUD: distributed under the License is distributed on an "AS IS" BASI
  84. S,
  85. [INFO] GCLOUD: WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
  86. implied.
  87. [INFO] GCLOUD: See the License for the specific language governing permissions
  88. and
  89. [INFO] GCLOUD: limitations under the License.
  90. [INFO] GCLOUD: -->
  91. [INFO] GCLOUD: <!-- [START config] -->
  92. [INFO] GCLOUD: <appengine-web-app xmlns="http://appengine.google.com/ns/1.0">
  93. [INFO] GCLOUD: <threadsafe>true</threadsafe>
  94. [INFO] GCLOUD: <runtime>java8</runtime>
  95. [INFO] GCLOUD: <use-google-connector-j>true</use-google-connector-j>
  96. [INFO] GCLOUD:
  97. [INFO] GCLOUD: <service>cloudsql</service>
  98. [INFO] GCLOUD:
  99. [INFO] GCLOUD: <system-properties>
  100. [INFO] GCLOUD: <property name="cloudsql" value="jdbc:google:mysql://analog-p
  101. remise-181709:asia-northeast1:testinstance/testdatabase?user=root&password=p
  102. akistan312" />
  103. [INFO] GCLOUD: <property name="cloudsql-local" value="jdbc:mysql://google/te
  104. stdatabase?useSSL=false&cloudSqlInstance=analog-premise-181709:asia-northeas
  105. t1:testinstance&socketFactory=com.google.cloud.sql.mysql.SocketFactory&u
  106. ser=root&password=pakistan312" />
  107. [INFO] GCLOUD: </system-properties>
  108. [INFO] GCLOUD:
  109. [INFO] GCLOUD: <!-- ENDPOINTS -->
  110. [INFO] GCLOUD: <system-properties>
  111. [INFO] GCLOUD: <property name="java.util.logging.config.file" value="WEB
  112. -INF/logging.properties"/>
  113. [INFO] GCLOUD: </system-properties>
  114. [INFO] GCLOUD:
  115. [INFO] GCLOUD: <env-variables>
  116. [INFO] GCLOUD: <env-var name="ENDPOINTS_SERVICE_NAME" value="YOUR_PROJEC
  117. T_ID.appspot.com" />
  118. [INFO] GCLOUD: </env-variables>
  119. [INFO] GCLOUD:
  120. [INFO] GCLOUD: </appengine-web-app>
  121. [INFO] GCLOUD: <!-- [END config] -->
  122. [INFO] GCLOUD: against C:Program Files (x86)GoogleCloud SDKgoogle-cloud-sdk
  123. platformgoogle_appenginegoogleappenginetoolsjavadocsappengine-web.xsd
  124. [INFO] GCLOUD: Caused by: cvc-complex-type.2.4.a: Invalid content was found st
  125. arting with element 'system-properties'. One of '{"http://appengine.google.com/n
  126. s/1.0":application, "http://appengine.google.com/ns/1.0":version, "http://appeng
  127. ine.google.com/ns/1.0":module, "http://appengine.google.com/ns/1.0":instance-cla
  128. ss, "http://appengine.google.com/ns/1.0":automatic-scaling, "http://appengine.go
  129. ogle.com/ns/1.0":manual-scaling, "http://appengine.google.com/ns/1.0":basic-scal
  130. ing, "http://appengine.google.com/ns/1.0":static-files, "http://appengine.google
  131. .com/ns/1.0":resource-files, "http://appengine.google.com/ns/1.0":vm-settings, "
  132. http://appengine.google.com/ns/1.0":beta-settings, "http://appengine.google.com/
  133. ns/1.0":vm-health-check, "http://appengine.google.com/ns/1.0":health-check, "htt
  134. p://appengine.google.com/ns/1.0":liveness-check, "http://appengine.google.com/ns
  135. /1.0":readiness-check, "http://appengine.google.com/ns/1.0":resources, "http://a
  136. ppengine.google.com/ns/1.0":network, "http://appengine.google.com/ns/1.0":env-va
  137. riables, "http://appengine.google.com/ns/1.0":ssl-enabled, "http://appengine.goo
  138. gle.com/ns/1.0":sessions-enabled, "http://appengine.google.com/ns/1.0":async-ses
  139. sion-persistence, "http://appengine.google.com/ns/1.0":user-permissions, "http:/
  140. /appengine.google.com/ns/1.0":public-root, "http://appengine.google.com/ns/1.0":
  141. inbound-services, "http://appengine.google.com/ns/1.0":precompilation-enabled, "
  142. http://appengine.google.com/ns/1.0":admin-console, "http://appengine.google.com/
  143. ns/1.0":static-error-handlers, "http://appengine.google.com/ns/1.0":warmup-reque
  144. sts-enabled, "http://appengine.google.com/ns/1.0":auto-id-policy, "http://appeng
  145. ine.google.com/ns/1.0":code-lock, "http://appengine.google.com/ns/1.0":vm, "http
  146. ://appengine.google.com/ns/1.0":env, "http://appengine.google.com/ns/1.0":class-
  147. loader-config, "http://appengine.google.com/ns/1.0":url-stream-handler, "http://
  148. appengine.google.com/ns/1.0":api-config}' is expected.
  149. [INFO] GCLOUD: Please see the logs [C:UsersAzeemAppDataLocalTempappcfg7263
  150. 310358647343011.log] for further information.
  151. [INFO] ------------------------------------------------------------------------
  152. [INFO] BUILD FAILURE
  153. [INFO] ------------------------------------------------------------------------
  154. [INFO] Total time: 4.220 s
  155. [INFO] Finished at: 2017-10-07T22:52:07-07:00
  156. [INFO] Final Memory: 15M/217M
  157. [INFO] ------------------------------------------------------------------------
  158. [ERROR] Failed to execute goal com.google.cloud.tools:appengine-maven-plugin:1.3
  159. .1:deploy (default-cli) on project appengine-cloudsql-j8: Execution default-cli
  160. of goal com.google.cloud.tools:appengine-maven-plugin:1.3.1:deploy failed: Non z
  161. ero exit: 1 -> [Help 1]
  162. [ERROR]
  163. [ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
  164. ch.
  165. [ERROR] Re-run Maven using the -X switch to enable full debug logging.
  166. [ERROR]
  167. [ERROR] For more information about the errors and possible solutions, please rea
  168. d the following articles:
  169. [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutio
  170. nException
  171.  
  172. C:UsersAzeemDownloadscloudcloudsql>
  173.  
  174. <!--
  175. Copyright 2016 Google Inc.
  176.  
  177. Licensed under the Apache License, Version 2.0 (the "License");
  178. you may not use this file except in compliance with the License.
  179. You may obtain a copy of the License at
  180.  
  181. http://www.apache.org/licenses/LICENSE-2.0
  182.  
  183. Unless required by applicable law or agreed to in writing, software
  184. distributed under the License is distributed on an "AS IS" BASIS,
  185. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  186. See the License for the specific language governing permissions and
  187. limitations under the License.
  188. -->
  189. <project>
  190. <modelVersion>4.0.0</modelVersion>
  191. <packaging>war</packaging>
  192. <version>1.0-SNAPSHOT</version>
  193. <groupId>com.example.appengine</groupId>
  194. <artifactId>appengine-cloudsql-j8</artifactId>
  195.  
  196. <!--<parent>
  197. <artifactId>appengine-java8-samples</artifactId>
  198. <groupId>com.google.cloud</groupId>
  199. <version>1.0.0</version>
  200. <relativePath>..</relativePath>
  201. </parent>-->
  202.  
  203. <!-- [START properties] -->
  204. <properties>
  205. <!-- INSTANCE_CONNECTION_NAME from Cloud Console > SQL > Instance Details > Properties
  206. or gcloud sql instances describe <instance>
  207. project:region:instance for Cloud SQL 2nd Generation or
  208. project:instance for Cloud SQL 1st Generation
  209. -->
  210. <INSTANCE_CONNECTION_NAME>analog-premise-181709:asia-northeast1:testinstance</INSTANCE_CONNECTION_NAME>
  211. <user>root</user>
  212. <password>pakistan312</password>
  213. <database>testdatabase</database>
  214.  
  215. <!-- ENDPOINTS -->
  216. <endpoints.framework.version>2.0.8</endpoints.framework.version>
  217. <endpoints.management.version>1.0.4</endpoints.management.version>
  218. <endpoints.project.id>YOUR_PROJECT_ID</endpoints.project.id>
  219. <appengine.maven.plugin.version>1.3.1</appengine.maven.plugin.version>
  220.  
  221. <maven.compiler.target>1.8</maven.compiler.target>
  222. <maven.compiler.source>1.8</maven.compiler.source>
  223. </properties>
  224. <!-- [END properties] -->
  225.  
  226. <dependencies>
  227. <!-- ENDPOINTS -->
  228. <dependency>
  229. <groupId>com.google.endpoints</groupId>
  230. <artifactId>endpoints-framework</artifactId>
  231. <version>${endpoints.framework.version}</version>
  232. </dependency>
  233. <dependency>
  234. <groupId>com.google.endpoints</groupId>
  235. <artifactId>endpoints-management-control-appengine-all</artifactId>
  236. <version>1.0.5</version>
  237. </dependency>
  238.  
  239. <!-- Parent POM defines ${appengine.sdk.version} (updates frequently). -->
  240. <dependency>
  241. <groupId>com.google.appengine</groupId>
  242. <artifactId>appengine-api-1.0-sdk</artifactId>
  243. <version>1.9.57</version>
  244. </dependency>
  245.  
  246. <dependency>
  247. <groupId>javax.servlet</groupId>
  248. <artifactId>javax.servlet-api</artifactId>
  249. <version>3.1.0</version>
  250. <type>jar</type>
  251. <scope>provided</scope>
  252. </dependency>
  253.  
  254. <dependency>
  255. <groupId>com.google.api-client</groupId>
  256. <artifactId>google-api-client-appengine</artifactId>
  257. <version>1.23.0</version>
  258. </dependency>
  259.  
  260. <!-- [START dependencies] -->
  261. <!-- Driver injected at runtime by the use of <use-google-connector-j> in appengine-web.xml -->
  262. <dependency> <!-- Only used locally -->
  263. <groupId>mysql</groupId>
  264. <artifactId>mysql-connector-java</artifactId>
  265. <version>5.1.42</version> <!-- v5.x.x is for production, v6.x.x EAP X DevAPI -->
  266. </dependency>
  267. <dependency>
  268. <groupId>com.google.cloud.sql</groupId>
  269. <artifactId>mysql-socket-factory</artifactId> <!-- mysql-socket-factory-connector-j-6 if using 6.x.x -->
  270. <version>1.0.4</version>
  271. </dependency>
  272. <!-- [END dependencies] -->
  273. </dependencies>
  274. <build>
  275. <!-- for hot reload of the web application -->
  276. <outputDirectory>${project.build.directory}/${project.build.finalName}/WEB-INF/classes</outputDirectory>
  277. <plugins>
  278. <plugin>
  279. <groupId>org.apache.maven.plugins</groupId>
  280. <artifactId>maven-war-plugin</artifactId>
  281. <version>3.0.0</version>
  282. <configuration>
  283. <webResources>
  284. <!-- in order to interpolate version from pom into appengine-web.xml -->
  285. <resource>
  286. <directory>${basedir}/src/main/webapp/WEB-INF</directory>
  287. <filtering>true</filtering>
  288. <targetPath>WEB-INF</targetPath>
  289. </resource>
  290. </webResources>
  291. </configuration>
  292. </plugin>
  293.  
  294. <plugin>
  295. <groupId>com.google.cloud.tools</groupId>
  296. <artifactId>appengine-maven-plugin</artifactId>
  297. <version>1.3.1</version>
  298. <configuration>
  299. <deploy.promote>true</deploy.promote>
  300. <deploy.stopPreviousVersion>true</deploy.stopPreviousVersion>
  301. </configuration>
  302. </plugin>
  303.  
  304. <!-- ENDPOINTS -->
  305. <plugin>
  306. <groupId>com.google.cloud.tools</groupId>
  307. <artifactId>endpoints-framework-maven-plugin</artifactId>
  308. <version>1.0.1</version>
  309. <configuration>
  310. <!-- plugin configuration -->
  311. <hostname>${endpoints.project.id}.appspot.com</hostname>
  312. </configuration>
  313. </plugin>
  314.  
  315. </plugins>
  316. </build>
  317. </project>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement