Skip to content

Commit 4ba03ea

Browse files
author
Arun Gupta
committed
Interim capability to start the database server as well (still not working)
1 parent d31a0b1 commit 4ba03ea

1 file changed

Lines changed: 48 additions & 5 deletions

File tree

pom.xml

Lines changed: 48 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,12 @@
2525
<version>7.0</version>
2626
<scope>provided</scope>
2727
</dependency>
28+
<dependency>
29+
<groupId>org.apache.derby</groupId>
30+
<artifactId>derby</artifactId>
31+
<version>10.8.2.2</version>
32+
<scope>provided</scope>
33+
</dependency>
2834
</dependencies>
2935

3036
<build>
@@ -46,6 +52,31 @@
4652
<failOnMissingWebXml>false</failOnMissingWebXml>
4753
</configuration>
4854
</plugin>
55+
<plugin>
56+
<groupId>org.codehaus.cargo</groupId>
57+
<artifactId>cargo-maven2-plugin</artifactId>
58+
<version>1.4.5-SNAPSHOT</version>
59+
<configuration>
60+
<container>
61+
<dependencies>
62+
<dependency>
63+
<groupId>org.apache.derby</groupId>
64+
<artifactId>derby</artifactId>
65+
</dependency>
66+
</dependencies>
67+
<systemProperties>
68+
<derby.system.home>${project.build.directory}/derby</derby.system.home>
69+
</systemProperties>
70+
</container>
71+
<configuration>
72+
<properties>
73+
<cargo.datasource.datasource.derby>
74+
cargo.datasource.driver=org.apache.derby.jdbc.EmbeddedDriver| cargo.datasource.url=jdbc:derby:derbyDB;create=true| cargo.datasource.jndi=jdbc/__default| cargo.datasource.username=APP| cargo.datasource.password=APP
75+
</cargo.datasource.datasource.derby>
76+
</properties>
77+
</configuration>
78+
</configuration>
79+
</plugin>
4980
</plugins>
5081
</build>
5182

@@ -60,18 +91,30 @@
6091
<plugin>
6192
<groupId>org.codehaus.cargo</groupId>
6293
<artifactId>cargo-maven2-plugin</artifactId>
63-
<version>1.4.4</version>
94+
<version>1.4.5-SNAPSHOT</version>
6495
<inherited>true</inherited>
6596
<configuration>
6697
<container>
6798
<containerId>${cargo.container.glassfish.id}</containerId>
6899
<type>installed</type>
69100
<home>${glassfish.home}</home>
101+
<artifactInstaller>
102+
<groupId>org.glassfish.main.distributions</groupId>
103+
<artifactId>glassfish</artifactId>
104+
<version>4.0</version>
105+
</artifactInstaller>
70106
</container>
71-
<configuration>
107+
<dependencies>
108+
<dependency>
109+
<groupId>org.apache.derby</groupId>
110+
<artifactId>derby</artifactId>
111+
<classpath>none</classpath>
112+
</dependency>
113+
</dependencies>
114+
<!-- <configuration>
72115
<type>standalone</type>
73116
<home>${glassfish.home}/glassfish/domains</home>
74-
</configuration>
117+
</configuration>-->
75118
</configuration>
76119
</plugin>
77120
</plugins>
@@ -84,7 +127,7 @@
84127
<plugin>
85128
<groupId>org.codehaus.cargo</groupId>
86129
<artifactId>cargo-maven2-plugin</artifactId>
87-
<version>1.4.4</version>
130+
<version>1.4.5-SNAPSHOT</version>
88131
<inherited>true</inherited>
89132
<configuration>
90133
<container>
@@ -108,7 +151,7 @@
108151
<plugin>
109152
<groupId>org.codehaus.cargo</groupId>
110153
<artifactId>cargo-maven2-plugin</artifactId>
111-
<version>1.4.4</version>
154+
<version>1.4.5-SNAPSHOT</version>
112155
<inherited>true</inherited>
113156
<configuration>
114157
<container>

0 commit comments

Comments
 (0)