Advertisement
Guest User

Untitled

a guest
Sep 27th, 2017
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.29 KB | None | 0 0
  1. <plugin>
  2. <groupId>org.codehaus.cargo</groupId>
  3. <artifactId>cargo-maven2-plugin</artifactId>
  4. <version>1.6.4</version>
  5. <configuration>
  6. <container>
  7. <containerId>tomee7x</containerId>
  8. <dependencies>
  9. <dependency>
  10. <!-- It seems the dependency must also be present,
  11. with version, in the main dependency section of the pom.
  12. -->
  13. <groupId>org.postgresql</groupId>
  14. <artifactId>postgresql</artifactId>
  15. </dependency>
  16. </dependencies>
  17. </container>
  18. <!-- The two nested configuration elements cause much confusion -->
  19. <configuration>
  20. <datasources>
  21. <datasource>
  22. <jndiName>jdbc/foo</jndiName>
  23. <driverClass>org.postgresql.Driver</driverClass>
  24. <url>localhost:5432/foo</url>
  25. <username>foo</username>
  26. <password>foo</password>
  27. <id>foo</id>
  28. </datasource>
  29. </datasources>
  30. <!-- Alternative (equivalent?) way of specifying datasources. -->
  31. <!--
  32. <properties>
  33. <cargo.datasource.datasource.foo1>
  34. cargo.datasource.driver=org.postgresql.Driver|
  35. cargo.datasource.url=localhost:5432/foo|
  36. cargo.datasource.jndi=jdbc/foo|
  37. cargo.datasource.username=foo|
  38. cargo.datasource.password=foo
  39. </cargo.datasource.datasource.foo1>
  40. </properties>
  41. -->
  42. </configuration>
  43. <deployables>
  44. </deployables>
  45. </configuration>
  46. </plugin>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement