Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <plugin>
- <groupId>org.codehaus.cargo</groupId>
- <artifactId>cargo-maven2-plugin</artifactId>
- <version>1.6.4</version>
- <configuration>
- <container>
- <containerId>tomee7x</containerId>
- <dependencies>
- <dependency>
- <!-- It seems the dependency must also be present,
- with version, in the main dependency section of the pom.
- -->
- <groupId>org.postgresql</groupId>
- <artifactId>postgresql</artifactId>
- </dependency>
- </dependencies>
- </container>
- <!-- The two nested configuration elements cause much confusion -->
- <configuration>
- <datasources>
- <datasource>
- <jndiName>jdbc/foo</jndiName>
- <driverClass>org.postgresql.Driver</driverClass>
- <url>localhost:5432/foo</url>
- <username>foo</username>
- <password>foo</password>
- <id>foo</id>
- </datasource>
- </datasources>
- <!-- Alternative (equivalent?) way of specifying datasources. -->
- <!--
- <properties>
- <cargo.datasource.datasource.foo1>
- cargo.datasource.driver=org.postgresql.Driver|
- cargo.datasource.url=localhost:5432/foo|
- cargo.datasource.jndi=jdbc/foo|
- cargo.datasource.username=foo|
- cargo.datasource.password=foo
- </cargo.datasource.datasource.foo1>
- </properties>
- -->
- </configuration>
- <deployables>
- </deployables>
- </configuration>
- </plugin>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement