|
9 | 9 | <artifactId>airline</artifactId> |
10 | 10 | <packaging>war</packaging> |
11 | 11 | <name>Spring WS Airline Sample</name> |
| 12 | + <profiles> |
| 13 | + <profile> |
| 14 | + <id>hsqldb</id> |
| 15 | + <activation> |
| 16 | + <activeByDefault>true</activeByDefault> |
| 17 | + </activation> |
| 18 | + <dependencies> |
| 19 | + <dependency> |
| 20 | + <groupId>hsqldb</groupId> |
| 21 | + <artifactId>hsqldb</artifactId> |
| 22 | + <version>1.8.0.7</version> |
| 23 | + <scope>runtime</scope> |
| 24 | + </dependency> |
| 25 | + </dependencies> |
| 26 | + <properties> |
| 27 | + <!-- Change these properties to reflect your HSQLDB connection settings --> |
| 28 | + <jdbc.driverClassName>org.hsqldb.jdbcDriver</jdbc.driverClassName> |
| 29 | + <jdbc.username>sa</jdbc.username> |
| 30 | + <jdbc.password></jdbc.password> |
| 31 | + <jdbc.url>jdbc:hsqldb:hsql://localhost/airline</jdbc.url> |
| 32 | + <hibernate.dialect>org.hibernate.dialect.HSQLDialect</hibernate.dialect> |
| 33 | + </properties> |
| 34 | + <build> |
| 35 | + <plugins> |
| 36 | + <plugin> |
| 37 | + <groupId>org.codehaus.mojo</groupId> |
| 38 | + <artifactId>sql-maven-plugin</artifactId> |
| 39 | + <dependencies> |
| 40 | + <dependency> |
| 41 | + <groupId>hsqldb</groupId> |
| 42 | + <artifactId>hsqldb</artifactId> |
| 43 | + <version>1.8.0.7</version> |
| 44 | + </dependency> |
| 45 | + </dependencies> |
| 46 | + <configuration> |
| 47 | + <driver>${jdbc.driverClassName}</driver> |
| 48 | + <url>${jdbc.url}</url> |
| 49 | + <username>${jdbc.username}</username> |
| 50 | + <password>${jdbc.password}</password> |
| 51 | + <srcFiles> |
| 52 | + <srcFile>${basedir}/src/main/sql/hsqldb/airline-schema.sql</srcFile> |
| 53 | + <srcFile>${basedir}/src/main/sql/airline-dataload.sql</srcFile> |
| 54 | + </srcFiles> |
| 55 | + </configuration> |
| 56 | + </plugin> |
| 57 | + </plugins> |
| 58 | + </build> |
| 59 | + </profile> |
| 60 | + <profile> |
| 61 | + <id>mysql</id> |
| 62 | + <dependencies> |
| 63 | + <dependency> |
| 64 | + <groupId>mysql</groupId> |
| 65 | + <artifactId>mysql-connector-java</artifactId> |
| 66 | + <version>5.0.4</version> |
| 67 | + </dependency> |
| 68 | + </dependencies> |
| 69 | + <properties> |
| 70 | + <!-- Change these properties to reflect your MySQL connection settings --> |
| 71 | + <jdbc.driverClassName>com.mysql.jdbc.Driver</jdbc.driverClassName> |
| 72 | + <jdbc.username>airline</jdbc.username> |
| 73 | + <jdbc.password>airline</jdbc.password> |
| 74 | + <jdbc.url>jdbc:mysql://localhost/airline</jdbc.url> |
| 75 | + <hibernate.dialect>org.hibernate.dialect.MySQLInnoDBDialect</hibernate.dialect> |
| 76 | + </properties> |
| 77 | + <build> |
| 78 | + <plugins> |
| 79 | + <plugin> |
| 80 | + <groupId>org.codehaus.mojo</groupId> |
| 81 | + <artifactId>sql-maven-plugin</artifactId> |
| 82 | + <dependencies> |
| 83 | + <dependency> |
| 84 | + <groupId>mysql</groupId> |
| 85 | + <artifactId>mysql-connector-java</artifactId> |
| 86 | + <version>5.0.4</version> |
| 87 | + </dependency> |
| 88 | + </dependencies> |
| 89 | + <configuration> |
| 90 | + <driver>${jdbc.driverClassName}</driver> |
| 91 | + <url>${jdbc.url}</url> |
| 92 | + <username>${jdbc.username}</username> |
| 93 | + <password>${jdbc.password}</password> |
| 94 | + <srcFiles> |
| 95 | + <srcFile>${basedir}/src/main/sql/mysql/airline-schema.sql</srcFile> |
| 96 | + <srcFile>${basedir}/src/main/sql/airline-dataload.sql</srcFile> |
| 97 | + </srcFiles> |
| 98 | + </configuration> |
| 99 | + </plugin> |
| 100 | + </plugins> |
| 101 | + </build> |
| 102 | + </profile> |
| 103 | + <profile> |
| 104 | + <id>postgresql</id> |
| 105 | + <dependencies> |
| 106 | + <dependency> |
| 107 | + <groupId>postgresql</groupId> |
| 108 | + <artifactId>postgresql</artifactId> |
| 109 | + <version>8.1-407.jdbc3</version> |
| 110 | + </dependency> |
| 111 | + </dependencies> |
| 112 | + <properties> |
| 113 | + <!-- Change these properties to reflect your PostgreSQL connection settings --> |
| 114 | + <jdbc.driverClassName>org.postgresql.Driver</jdbc.driverClassName> |
| 115 | + <jdbc.username>airline</jdbc.username> |
| 116 | + <jdbc.password>airline</jdbc.password> |
| 117 | + <jdbc.url>jdbc:postgresql://localhost/airline</jdbc.url> |
| 118 | + <hibernate.dialect>org.hibernate.dialect.PostgreSQLDialect</hibernate.dialect> |
| 119 | + </properties> |
| 120 | + <build> |
| 121 | + <plugins> |
| 122 | + <plugin> |
| 123 | + <groupId>org.codehaus.mojo</groupId> |
| 124 | + <artifactId>sql-maven-plugin</artifactId> |
| 125 | + <dependencies> |
| 126 | + <dependency> |
| 127 | + <groupId>postgresql</groupId> |
| 128 | + <artifactId>postgresql</artifactId> |
| 129 | + <version>8.1-407.jdbc3</version> |
| 130 | + </dependency> |
| 131 | + </dependencies> |
| 132 | + <configuration> |
| 133 | + <driver>${jdbc.driverClassName}</driver> |
| 134 | + <url>${jdbc.url}</url> |
| 135 | + <username>${jdbc.username}</username> |
| 136 | + <password>${jdbc.password}</password> |
| 137 | + <srcFiles> |
| 138 | + <srcFile>${basedir}/src/main/sql/postgresql/airline-schema.sql</srcFile> |
| 139 | + <srcFile>${basedir}/src/main/sql/airline-dataload.sql</srcFile> |
| 140 | + </srcFiles> |
| 141 | + </configuration> |
| 142 | + </plugin> |
| 143 | + </plugins> |
| 144 | + </build> |
| 145 | + </profile> |
| 146 | + </profiles> |
12 | 147 | <build> |
| 148 | + <resources> |
| 149 | + <resource> |
| 150 | + <directory>src/main/resources</directory> |
| 151 | + <filtering>true</filtering> |
| 152 | + </resource> |
| 153 | + </resources> |
13 | 154 | <plugins> |
14 | 155 | <plugin> |
15 | 156 | <groupId>org.apache.maven.plugins</groupId> |
|
155 | 296 | </exclusions> |
156 | 297 | </dependency> |
157 | 298 | <dependency> |
158 | | - <groupId>mysql</groupId> |
159 | | - <artifactId>mysql-connector-java</artifactId> |
160 | | - <version>5.0.4</version> |
| 299 | + <groupId>hsqldb</groupId> |
| 300 | + <artifactId>hsqldb</artifactId> |
| 301 | + <version>1.8.0.7</version> |
| 302 | + <scope>test</scope> |
161 | 303 | </dependency> |
162 | 304 | <!-- Various dependencies --> |
163 | 305 | <dependency> |
|
0 commit comments