|
27 | 27 | <relativePath>../..</relativePath>
|
28 | 28 | </parent>
|
29 | 29 |
|
| 30 | +<!-- [START properties] --> |
| 31 | + <properties> |
| 32 | +<!-- INSTANCE_CONNECTION_NAME from Cloud Console > SQL > Instance Details > Properties |
| 33 | + or gcloud sql instances describe <instance> |
| 34 | + project:region:instance for Cloud SQL v2 or |
| 35 | + project:instance for Cloud SQL v1 |
| 36 | +--> |
| 37 | + <INSTANCE_CONNECTION_NAME></INSTANCE_CONNECTION_NAME> |
| 38 | + <user>root</user> |
| 39 | + <password></password> |
| 40 | + <database></database> |
| 41 | + |
| 42 | +<!-- [START_EXCLUDE] --> |
| 43 | + <appengine.maven.plugin>1.0.0</appengine.maven.plugin> |
| 44 | + <maven.compiler.target>1.7</maven.compiler.target> |
| 45 | + <maven.compiler.source>1.7</maven.compiler.source> |
| 46 | +<!-- [END_EXCLUDE] --> |
| 47 | + </properties> |
| 48 | +<!-- [END properties] --> |
30 | 49 | <dependencies>
|
31 |
| - <dependency> |
32 |
| - <groupId>com.google.cloud.sql</groupId> |
33 |
| - <artifactId>mysql-socket-factory</artifactId> |
34 |
| - <version>1.0.2</version> |
35 |
| - </dependency> |
36 | 50 | <dependency>
|
37 | 51 | <groupId>javax.servlet</groupId>
|
38 |
| - <artifactId>javax.servlet-api</artifactId> |
39 |
| - <version>3.1.0</version> |
40 |
| - <type>jar</type> |
| 52 | + <artifactId>servlet-api</artifactId> |
| 53 | + <version>2.5</version> |
41 | 54 | <scope>provided</scope>
|
42 | 55 | </dependency>
|
43 |
| - <!-- [START dependencies] --> |
44 |
| - <dependency> |
45 |
| - <groupId>mysql</groupId> |
46 |
| - <artifactId>mysql-connector-java</artifactId> |
47 |
| - <version>6.0.5</version> |
48 |
| - </dependency> |
| 56 | + |
49 | 57 | <!-- Parent POM defines ${appengine.sdk.version} (updates frequently). -->
|
50 | 58 | <dependency>
|
51 | 59 | <groupId>com.google.appengine</groupId>
|
52 | 60 | <artifactId>appengine-api-1.0-sdk</artifactId>
|
53 | 61 | </dependency>
|
| 62 | + |
| 63 | + <!-- [START dependencies] --> |
| 64 | + <dependency> <!-- ONLY USED LOCALY --> |
| 65 | + <groupId>mysql</groupId> |
| 66 | + <artifactId>mysql-connector-java</artifactId> |
| 67 | + <version>5.1.40</version> <!-- v5.x.x is Java 7, v6.x.x is Java 8 --> |
| 68 | + </dependency> |
54 | 69 | <!-- [END dependencies] -->
|
55 | 70 | </dependencies>
|
56 | 71 | <build>
|
57 | 72 | <!-- for hot reload of the web application -->
|
58 | 73 | <outputDirectory>${project.build.directory}/${project.build.finalName}/WEB-INF/classes</outputDirectory>
|
| 74 | + <resources> |
| 75 | + <resource> |
| 76 | + <directory>src/webapp/WEB-INF</directory> |
| 77 | + <filtering>true</filtering> |
| 78 | + </resource> |
| 79 | + </resources> |
59 | 80 | <plugins>
|
| 81 | + <plugin> |
| 82 | + <groupId>com.google.cloud.tools</groupId> |
| 83 | + <artifactId>appengine-maven-plugin</artifactId> |
| 84 | + <version>${appengine.maven.plugin}</version> |
| 85 | + </plugin> |
| 86 | +<!-- |
60 | 87 | <plugin>
|
61 | 88 | <groupId>com.google.appengine</groupId>
|
62 | 89 | <artifactId>appengine-maven-plugin</artifactId>
|
63 | 90 | <version>${appengine.sdk.version}</version>
|
64 | 91 | </plugin>
|
| 92 | + --> |
65 | 93 | </plugins>
|
66 | 94 | </build>
|
67 | 95 | </project>
|
0 commit comments