avatar
Rosa has added e3e995ba14
Automatic import for version 3.2.3-0.43.el6ev
... ... --- /dev/null
... ... +++ b/.abf.yml
... ... @@ -0,0 +1,3 @@
1
sources:
2
  "engine-notifier-resources-3.2.0.zip": 4585dc2ac3985f06e7f03ca734f9588b6abb380d
3
  "root-3.2.0-scm-sources.zip": 1d6e29beb556256bebbcd069b9ba9521f7bd13ed
... ... --- /dev/null
... ... +++ b/api-3.2.0.pom
... ... @@ -0,0 +1,26 @@
1
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
2
  <modelVersion>4.0.0</modelVersion>
3
4
  <parent>
5
    <groupId>org.ovirt.engine.ui</groupId>
6
    <artifactId>frontend-all</artifactId>
7
    <version>3.2.0</version>
8
  </parent>
9
10
  <artifactId>api</artifactId>
11
  <packaging>pom</packaging>
12
  <name>oVirt APIs</name>
13
14
  <modules>
15
    <module>genericapi</module>
16
  </modules>
17
18
  <build>
19
    <plugins>
20
      <plugin>
21
        <artifactId>maven-checkstyle-plugin</artifactId>
22
      </plugin>
23
    </plugins>
24
  </build>
25
26
</project>
view file @ e3e995ba14
... ... --- /dev/null
... ... +++ b/backend-3.2.0.pom
... ... @@ -0,0 +1,26 @@
1
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
2
  <modelVersion>4.0.0</modelVersion>
3
4
  <parent>
5
    <groupId>org.ovirt.engine</groupId>
6
    <artifactId>root</artifactId>
7
    <version>3.2.0</version>
8
  </parent>
9
10
  <artifactId>backend</artifactId>
11
  <groupId>org.ovirt.engine.core</groupId>
12
  <packaging>pom</packaging>
13
14
  <name>oVirt Modules - backend</name>
15
  <description>parent POM for all oVirt modules</description>
16
17
  <modules>
18
    <module>manager</module>
19
  </modules>
20
21
  <properties>
22
    <engine.groupId>org.ovirt.engine.core</engine.groupId>
23
    <engine.version>3.2.0</engine.version>
24
  </properties>
25
26
</project>
view file @ e3e995ba14
... ... --- /dev/null
... ... +++ b/beans-3.2.0.pom
... ... @@ -0,0 +1,19 @@
1
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
2
  <modelVersion>4.0.0</modelVersion>
3
4
  <parent>
5
    <groupId>org.ovirt.engine.core</groupId>
6
    <artifactId>manager-modules</artifactId>
7
    <version>3.2.0</version>
8
  </parent>
9
10
  <artifactId>beans</artifactId>
11
  <packaging>pom</packaging>
12
13
  <name>engine beans</name>
14
15
  <modules>
16
    <module>scheduler</module>
17
  </modules>
18
19
</project>
view file @ e3e995ba14
... ... --- /dev/null
... ... +++ b/bll-3.2.0.pom
... ... @@ -0,0 +1,256 @@
1
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
2
  <modelVersion>4.0.0</modelVersion>
3
4
  <parent>
5
    <groupId>org.ovirt.engine.core</groupId>
6
    <artifactId>manager-modules</artifactId>
7
    <version>3.2.0</version>
8
  </parent>
9
10
  <artifactId>bll</artifactId>
11
  <packaging>ejb</packaging>
12
13
  <name>Backend Logic @Service bean</name>
14
15
  <properties>
16
    <engine.ejb3.connector.port>3873</engine.ejb3.connector.port>
17
    <engine.bisocket.connector.port>4457</engine.bisocket.connector.port>
18
    <engine.db>postgres</engine.db>
19
    <engine.schema>engine</engine.schema>
20
  </properties>
21
22
  <dependencies>
23
    <dependency>
24
      <groupId>${engine.groupId}</groupId>
25
      <artifactId>compat</artifactId>
26
      <version>${engine.version}</version>
27
    </dependency>
28
29
    <dependency>
30
      <groupId>${engine.groupId}</groupId>
31
      <artifactId>common</artifactId>
32
      <version>${engine.version}</version>
33
    </dependency>
34
35
    <dependency>
36
      <groupId>${engine.groupId}</groupId>
37
      <artifactId>utils</artifactId>
38
      <version>${engine.version}</version>
39
    </dependency>
40
41
    <dependency>
42
      <groupId>${engine.groupId}</groupId>
43
      <artifactId>utils</artifactId>
44
      <version>${engine.version}</version>
45
      <type>test-jar</type>
46
      <scope>test</scope>
47
    </dependency>
48
49
    <dependency>
50
      <groupId>${engine.groupId}</groupId>
51
      <artifactId>dal</artifactId>
52
      <version>${engine.version}</version>
53
    </dependency>
54
55
    <dependency>
56
      <groupId>${engine.groupId}</groupId>
57
      <artifactId>searchbackend</artifactId>
58
      <version>${engine.version}</version>
59
    </dependency>
60
   
61
    <dependency>
62
      <groupId>${engine.groupId}</groupId>
63
      <artifactId>vdsbroker</artifactId>
64
      <version>${engine.version}</version>
65
    </dependency>
66
67
    <!--
68
    <dependency>
69
      <groupId>${engine.groupId}</groupId>
70
      <artifactId>licensecominstaller</artifactId>
71
      <version>${engine.version}</version>
72
    </dependency>
73
    <dependency>
74
      <groupId>${engine.groupId}</groupId>
75
      <artifactId>licensemanager</artifactId>
76
      <version>${engine.version}</version>
77
    </dependency>
78
    -->
79
    <dependency>
80
      <groupId>${engine.groupId}</groupId>
81
      <artifactId>scheduler</artifactId>
82
      <version>${engine.version}</version>
83
      <scope>provided</scope>
84
      <type>ejb</type>
85
    </dependency>
86
87
    <dependency>
88
      <groupId>org.jboss.spec.javax.ejb</groupId>
89
      <artifactId>jboss-ejb-api_3.1_spec</artifactId>
90
    </dependency>
91
92
    <dependency>
93
      <groupId>commons-collections</groupId>
94
      <artifactId>commons-collections</artifactId>
95
    </dependency>
96
97
    <dependency>
98
      <groupId>javax.transaction</groupId>
99
      <artifactId>jta</artifactId>
100
    </dependency>
101
102
    <dependency>
103
      <groupId>javassist</groupId>
104
      <artifactId>javassist</artifactId>
105
      <scope>test</scope>
106
    </dependency>
107
108
    <!-- logging implementation used for unit tests -->
109
    <dependency>
110
      <groupId>org.slf4j</groupId>
111
      <artifactId>slf4j-log4j12</artifactId>
112
      <version>${slf4j-jdk14.version}</version>
113
      <scope>test</scope>
114
    </dependency>
115
116
    <dependency>
117
      <groupId>org.jboss.embedded</groupId>
118
      <artifactId>jboss-embedded-all</artifactId>
119
      <version>beta3.SP9</version>
120
      <scope>test</scope>
121
    </dependency>
122
123
    <dependency>
124
      <groupId>org.jboss.logging</groupId>
125
      <artifactId>jboss-logging-log4j</artifactId>
126
      <version>2.1.0.GA</version> 
127
      <scope>test</scope>
128
    </dependency>
129
130
131
    <dependency>
132
      <groupId>org.jboss.embedded</groupId>
133
      <artifactId>jboss-embedded</artifactId>
134
      <version>beta3.SP9</version>
135
      <scope>test</scope>
136
    </dependency>
137
138
    <dependency>
139
      <groupId>org.jboss.embedded</groupId>
140
      <artifactId>hibernate-all</artifactId>
141
      <version>beta3.SP9</version>
142
      <scope>test</scope>
143
    </dependency>
144
145
    <dependency>
146
      <groupId>org.jboss.embedded</groupId>
147
      <artifactId>thirdparty-all</artifactId>
148
      <version>beta3.SP9</version>
149
      <scope>test</scope>
150
    </dependency>
151
152
    <dependency>
153
      <groupId>postgresql</groupId>
154
      <artifactId>postgresql</artifactId>
155
      <scope>test</scope>
156
    </dependency>
157
158
    <dependency>
159
      <groupId>commons-configuration</groupId>
160
      <artifactId>commons-configuration</artifactId>
161
      <version>1.6</version>
162
      <scope>test</scope>
163
    </dependency>
164
165
     <dependency>
166
       <groupId>org.jboss.spec.javax.ejb</groupId>
167
       <artifactId>jboss-ejb-api_3.1_spec</artifactId>
168
       <version>${javax.ejb.api.version}</version>
169
     </dependency>
170
171
  </dependencies>
172
173
  <build>
174
175
   <testResources>
176
      <testResource>
177
        <directory>src/test/resources</directory>
178
        <filtering>true</filtering>
179
 	 <includes>
180
          <include>log4j.xml</include>
181
        </includes>
182
      </testResource>
183
      <testResource>
184
        <directory>src/test/resources</directory>
185
        <filtering>false</filtering>
186
        <excludes>
187
          <exclude>log4j.xml</exclude>
188
        </excludes>
189
      </testResource>
190
191
    </testResources>
192
193
194
    <plugins>
195
      <plugin>
196
        <artifactId>maven-resources-plugin</artifactId>
197
        <executions>
198
          <execution>
199
            <id>copy-resources</id>
200
            <phase>process-resources</phase>
201
            <goals>
202
              <goal>copy-resources</goal>
203
            </goals>
204
            <configuration>
205
	      <outputDirectory>${project.build.testOutputDirectory}/deploy/</outputDirectory>
206
              <resources>
207
                <resource>
208
                  <directory>src/test/${engine.db}-resources/</directory>
209
                </resource>
210
              </resources>
211
212
            </configuration>
213
          </execution>
214
        </executions>
215
      </plugin>
216
217
      <plugin>
218
        <artifactId>maven-surefire-plugin</artifactId>
219
        <configuration>
220
          <systemProperties>
221
            <property>
222
	      <name>jboss.server.log.dir</name>
223
	      <value>${project.build.directory}/logs/engine/</value>
224
            </property>
225
	    <property>
226
              <name>postgres.schema.name</name>
227
              <value>${engine.schema}</value>
228
            </property>
229
	 </systemProperties>
230
          <argLine>-Dengine.ejb3.connector.port=${engine.ejb3.connector.port} -Dengine.bisocket.connector.port=${engine.bisocket.connector.port} -Dsun.lang.ClassLoader.allowArraySyntax=true -Djava.endorsed.dirs="${settings.localRepository}/org/codehaus/woodstox/wstx-asl/3.2.9/"</argLine>
231
          <additionalClasspathElements>
232
            <additionalClasspathElement>${basedir}/src/test/java</additionalClasspathElement>
233
          </additionalClasspathElements>
234
          <excludes>
235
	    <exclude>**/TestHelper*.java</exclude>
236
          </excludes>
237
        </configuration>
238
      </plugin>
239
        <plugin>
240
          <artifactId>maven-ejb-plugin</artifactId>
241
          <configuration>
242
            <ejbVersion>3.1</ejbVersion>
243
            <generateClient>true</generateClient>
244
            <archive>
245
              <manifest>
246
                <addClasspath>false</addClasspath>
247
              </manifest>
248
              <manifestEntries>
249
                <Dependencies>org.slf4j, javax.interceptor.api, javax.ejb.api, sun.jdk</Dependencies>
250
              </manifestEntries>
251
            </archive>
252
          </configuration>
253
        </plugin>
254
    </plugins>
255
  </build>
256
</project>
view file @ e3e995ba14
... ... --- /dev/null
... ... +++ b/build-tools-root-3.2.0.pom
... ... @@ -0,0 +1,17 @@
1
<?xml version="1.0"?>
2
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
3
  <modelVersion>4.0.0</modelVersion>
4
  <parent>
5
    <groupId>org.ovirt.engine</groupId>
6
    <artifactId>root</artifactId>
7
    <version>3.2.0</version>
8
  </parent>
9
  <artifactId>build-tools-root</artifactId>
10
  <packaging>pom</packaging>
11
  <name>oVirt Build Tools root</name>
12
  <description>Parent pom of build tools available for use by oVirt modules</description>
13
  <modules>
14
    <module>checkstyles</module>
15
    <module>ovirt-checkstyle-extension</module>
16
  </modules>
17
</project>
view file @ e3e995ba14
view file @ e3e995ba14
view file @ e3e995ba14
... ... --- /dev/null
... ... +++ b/checkstyles-3.2.0.pom
... ... @@ -0,0 +1,13 @@
1
<?xml version="1.0"?>
2
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
3
  <modelVersion>4.0.0</modelVersion>
4
  <parent>
5
    <groupId>org.ovirt.engine</groupId>
6
    <artifactId>build-tools-root</artifactId>
7
    <version>3.2.0</version>
8
  </parent>
9
  <artifactId>checkstyles</artifactId>
10
  <packaging>jar</packaging>
11
  <name>oVirt checkstyle</name>
12
  <description>Checkstyle available for use by oVirt modules</description>
13
</project>
view file @ e3e995ba14
view file @ e3e995ba14
view file @ e3e995ba14
view file @ e3e995ba14
... ... --- /dev/null
... ... +++ b/common-3.2.0.pom
... ... @@ -0,0 +1,91 @@
1
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
2
  <modelVersion>4.0.0</modelVersion>
3
4
  <parent>
5
    <groupId>org.ovirt.engine.core</groupId>
6
    <artifactId>manager-modules</artifactId>
7
    <version>3.2.0</version>
8
  </parent>
9
10
  <artifactId>common</artifactId>
11
  <packaging>jar</packaging>
12
13
  <name>Common Code</name>
14
15
  <dependencies>
16
    <dependency>
17
      <groupId>${engine.groupId}</groupId>
18
      <artifactId>compat</artifactId>
19
      <version>${engine.version}</version>
20
    </dependency>
21
22
    <dependency>
23
      <groupId>org.jboss.spec.javax.ejb</groupId>
24
      <artifactId>jboss-ejb-api_3.1_spec</artifactId>
25
    </dependency>
26
27
    <dependency>
28
      <groupId>org.hibernate</groupId>
29
      <artifactId>hibernate-validator</artifactId>
30
    </dependency>
31
32
     <dependency>
33
       <groupId>org.codehaus.jackson</groupId>
34
       <artifactId>jackson-mapper-asl</artifactId>
35
    </dependency>
36
37
    <dependency>
38
      <groupId>org.slf4j</groupId>
39
      <artifactId>slf4j-jdk14</artifactId>
40
      <version>${slf4j-jdk14.version}</version>
41
      <scope>provided</scope>
42
    </dependency>
43
44
  </dependencies>
45
46
  <build>
47
    <plugins>
48
      <plugin>
49
        <artifactId>maven-source-plugin</artifactId>
50
        <executions>
51
          <execution>
52
            <id>attach-sources</id>
53
            <phase>verify</phase>
54
            <goals>
55
              <goal>jar-no-fork</goal>
56
            </goals>
57
          </execution>
58
        </executions>
59
      </plugin>
60
      <plugin>
61
        <!--
62
63
           The enforcer plugin is used to ban us from using artifacts that will fail
64
           the Frontend's gwt compilation.
65
66
      -->
67
        <groupId>org.apache.maven.plugins</groupId>
68
        <artifactId>maven-enforcer-plugin</artifactId>
69
        <version>1.1.1</version>
70
        <executions>
71
          <execution>
72
            <id>enforce-banned-dependencies</id>
73
            <goals>
74
              <goal>enforce</goal>
75
            </goals>
76
          </execution>
77
        </executions>
78
        <configuration>
79
          <rules>
80
            <bannedDependencies>
81
              <excludes>
82
                <exclude>commons-lang</exclude>
83
              </excludes>
84
            </bannedDependencies>
85
          </rules>
86
          <fail>true</fail>
87
        </configuration>
88
      </plugin>
89
    </plugins>
90
  </build>
91
</project>
view file @ e3e995ba14
... ... --- /dev/null
... ... +++ b/common-parent-3.2.0.pom
... ... @@ -0,0 +1,19 @@
1
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
2
  <modelVersion>4.0.0</modelVersion>
3
4
  <parent>
5
    <groupId>org.ovirt.engine.api</groupId>
6
    <artifactId>interface</artifactId>
7
    <version>3.2.0</version>
8
  </parent>
9
10
  <artifactId>common-parent</artifactId>
11
  <packaging>pom</packaging>
12
13
  <name>oVirt Engine API Commom Parent POM</name>
14
15
  <modules>
16
    <module>jaxrs</module>
17
  </modules>
18
19
</project>
view file @ e3e995ba14
view file @ e3e995ba14
view file @ e3e995ba14
view file @ e3e995ba14
... ... --- /dev/null
... ... +++ b/compat-3.2.0.pom
... ... @@ -0,0 +1,32 @@
1
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
2
  <modelVersion>4.0.0</modelVersion>
3
4
  <parent>
5
    <groupId>org.ovirt.engine.core</groupId>
6
    <artifactId>manager-modules</artifactId>
7
    <version>3.2.0</version>
8
  </parent>
9
10
  <artifactId>compat</artifactId>
11
  <packaging>jar</packaging>
12
13
  <name>CSharp Compatibility</name>
14
15
  <build>
16
    <plugins>
17
      <plugin>
18
        <artifactId>maven-source-plugin</artifactId>
19
        <executions>
20
          <execution>
21
            <id>attach-sources</id>
22
            <phase>verify</phase>
23
            <goals>
24
              <goal>jar-no-fork</goal>
25
            </goals>
26
          </execution>
27
        </executions>
28
      </plugin>
29
    </plugins>
30
  </build>
31
32
</project>
view file @ e3e995ba14
... ... --- /dev/null
... ... +++ b/dal-3.2.0.pom
... ... @@ -0,0 +1,198 @@
1
<?xml version="1.0"?>
2
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3
  <modelVersion>4.0.0</modelVersion>
4
  <parent>
5
    <groupId>org.ovirt.engine.core</groupId>
6
    <artifactId>manager-modules</artifactId>
7
    <version>3.2.0</version>
8
  </parent>
9
  <artifactId>dal</artifactId>
10
  <packaging>jar</packaging>
11
  <name>Data Access Layer</name>
12
  <properties>
13
    <engine.dao>jdbc</engine.dao>
14
    <engine.db>pgsql</engine.db>
15
    <engine.db.username>postgres</engine.db.username>
16
    <engine.db.schema>engine</engine.db.schema>
17
    <version.info.dir>/etc/engine</version.info.dir>
18
    <skip.db.checksum.check>true</skip.db.checksum.check>
19
    <skip.db.checksum.store>true</skip.db.checksum.store>
20
  </properties>
21
  <dependencies>
22
    <dependency>
23
      <groupId>commons-collections</groupId>
24
      <artifactId>commons-collections</artifactId>
25
      <version>${commons-collections}</version>
26
      <scope>provided</scope>
27
    </dependency>
28
    <dependency>
29
      <groupId>${engine.groupId}</groupId>
30
      <artifactId>compat</artifactId>
31
      <version>${engine.version}</version>
32
    </dependency>
33
    <dependency>
34
      <groupId>${engine.groupId}</groupId>
35
      <artifactId>utils</artifactId>
36
      <version>${engine.version}</version>
37
    </dependency>
38
    <dependency>
39
      <groupId>${engine.groupId}</groupId>
40
      <artifactId>engineencryptutils</artifactId>
41
      <version>${engine.version}</version>
42
    </dependency>
43
    <dependency>
44
      <groupId>${engine.groupId}</groupId>
45
      <artifactId>common</artifactId>
46
      <version>${engine.version}</version>
47
    </dependency>
48
    <dependency>
49
      <groupId>org.springframework</groupId>
50
      <artifactId>spring-jdbc</artifactId>
51
    </dependency>
52
    <dependency>
53
      <groupId>postgresql</groupId>
54
      <artifactId>postgresql</artifactId>
55
      <scope>test</scope>
56
    </dependency>
57
    <dependency>
58
      <groupId>org.dbunit</groupId>
59
      <artifactId>dbunit</artifactId>
60
      <version>2.4.8</version>
61
      <scope>test</scope>
62
    </dependency>
63
    <dependency>
64
      <groupId>org.springframework</groupId>
65
      <artifactId>spring-test</artifactId>
66
    </dependency>
67
    <dependency>
68
      <groupId>org.slf4j</groupId>
69
      <artifactId>slf4j-nop</artifactId>
70
      <version>${slf4j-jdk14.version}</version>
71
      <scope>test</scope>
72
    </dependency>
73
    <dependency>
74
      <groupId>javax.transaction</groupId>
75
      <artifactId>jta</artifactId>
76
    </dependency>
77
    <dependency>
78
      <groupId>org.springframework.ldap</groupId>
79
      <artifactId>spring-ldap-core</artifactId>
80
    </dependency>
81
    <dependency>
82
      <groupId>javassist</groupId>
83
      <artifactId>javassist</artifactId>
84
      <scope>test</scope>
85
    </dependency>
86
  </dependencies>
87
  <build>
88
    <filters>
89
      <filter>src/test/filters/${engine.db}.properties</filter>
90
    </filters>
91
    <testResources>
92
      <testResource>
93
        <directory>src/test/resources</directory>
94
        <filtering>true</filtering>
95
        <excludes>
96
          <exclude>**/key.p12</exclude>
97
        </excludes>
98
      </testResource>
99
    </testResources>
100
    <resources>
101
      <resource>
102
        <directory>src/main/java</directory>
103
      </resource>
104
      <resource>
105
        <directory>src/main/resources</directory>
106
        <filtering>true</filtering>
107
      </resource>
108
      <resource>
109
        <directory>src/test/resources</directory>
110
        <filtering>true</filtering>
111
        <excludes>
112
          <exclude>**/key.p12</exclude>
113
        </excludes>
114
      </resource>
115
      <resource>
116
        <directory>src/test/resources</directory>
117
        <filtering>false</filtering>
118
        <includes>
119
          <include>**/key.p12</include>
120
        </includes>
121
      </resource>
122
    </resources>
123
    <plugins>
124
      <plugin>
125
        <artifactId>maven-resources-plugin</artifactId>
126
        <executions>
127
          <execution>
128
            <id>copy-resources</id>
129
            <phase>process-resources</phase>
130
            <goals>
131
              <goal>copy-resources</goal>
132
            </goals>
133
            <configuration>
134
              <outputDirectory>${project.build.outputDirectory}</outputDirectory>
135
              <resources>
136
                <resource>
137
                  <directory>src/main/${engine.dao}-resources</directory>
138
                </resource>
139
              </resources>
140
            </configuration>
141
          </execution>
142
        </executions>
143
      </plugin>
144
      <plugin>
145
        <artifactId>exec-maven-plugin</artifactId>
146
          <groupId>org.codehaus.mojo</groupId>
147
          <executions>
148
            <execution>
149
              <id>check_db_schema</id>
150
              <phase>test</phase>
151
              <goals>
152
                <goal>exec</goal>
153
              </goals>
154
              <configuration>
155
                <skip>${skip.db.checksum.check}</skip>
156
                <executable>${basedir}/../../dbscripts/db_schema_version_check/check_db_schema_checksum.sh</executable>
157
                <arguments>
158
                  <argument>-u</argument>
159
                  <argument>${engine.db.username}</argument>
160
                  <argument>-d</argument>
161
                  <argument>${engine.db.schema}</argument>
162
                  <argument>-f</argument>
163
                  <argument>${version.info.dir}</argument>
164
               </arguments>
165
              </configuration>
166
           </execution>
167
           <execution>
168
              <id>store_db_schema_checksum</id>
169
              <phase>test</phase>
170
              <goals>
171
                <goal>exec</goal>
172
              </goals>
173
              <configuration>
174
                <skip>${skip.db.checksum.store}</skip>
175
                <executable>${basedir}/../../dbscripts/db_schema_version_check/store_db_schema_checksum.sh</executable>
176
              </configuration>
177
           </execution>
178
        </executions>
179
      </plugin>
180
      <plugin>
181
        <artifactId>maven-surefire-plugin</artifactId>
182
        <configuration>
183
          <excludes>
184
            <exclude>**/*D??Test*.java</exclude>
185
          </excludes>
186
        </configuration>
187
      </plugin>
188
    </plugins>
189
  </build>
190
  <profiles>
191
    <profile>
192
      <id>enable-dao-tests</id>
193
      <properties>
194
        <test>*D??Test.java</test>
195
      </properties>
196
    </profile>
197
  </profiles>
198
</project>
view file @ e3e995ba14
... ... --- /dev/null
... ... +++ b/dbscripts-3.2.0.pom
... ... @@ -0,0 +1,44 @@
1
<?xml version="1.0"?>
2
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
3
  <modelVersion>4.0.0</modelVersion>
4
  <parent>
5
    <groupId>org.ovirt.engine.core</groupId>
6
    <artifactId>manager</artifactId>
7
    <version>3.2.0</version>
8
  </parent>
9
  <artifactId>dbscripts</artifactId>
10
  <packaging>pom</packaging>
11
  <name>oVirt DB Scripts</name>
12
  <description>parent POM for all oVirt Database scripts</description>
13
  <profiles>
14
    <profile>
15
      <id>unix</id>
16
      <activation>
17
        <os>
18
          <family>unix</family>
19
        </os>
20
      </activation>
21
         <build>
22
           <plugins>
23
             <plugin>
24
               <groupId>org.codehaus.mojo</groupId>
25
               <artifactId>exec-maven-plugin</artifactId>
26
               <version>1.2</version>
27
               <executions>
28
                 <execution>
29
                   <id>Check For Duplicate Upgrade Scripts</id>
30
                   <phase>package</phase>
31
                   <goals>
32
                     <goal>exec</goal>
33
                   </goals>
34
                 </execution>
35
               </executions>
36
               <configuration>
37
                 <executable>${project.basedir}/check_for_duplicate_upgrade_scripts.sh</executable>
38
               </configuration>
39
             </plugin>
40
           </plugins>
41
         </build>
42
    </profile>
43
  </profiles>
44
</project>
view file @ e3e995ba14
view file @ e3e995ba14
view file @ e3e995ba14
... ... --- /dev/null
... ... +++ b/engine-config-3.2.0.pom
... ... @@ -0,0 +1,66 @@
1
<?xml version="1.0"?>
2
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3
  <modelVersion>4.0.0</modelVersion>
4
  <parent>
5
    <groupId>org.ovirt.engine.core</groupId>
6
    <artifactId>manager-tools</artifactId>
7
    <version>3.2.0</version>
8
  </parent>
9
  <artifactId>engine-config</artifactId>
10
  <packaging>jar</packaging>
11
  <name>oVirt Configuration Tool</name>
12
  <dependencies>
13
    <dependency>
14
      <groupId>${engine.groupId}</groupId>
15
      <artifactId>engine-tools-common</artifactId>
16
      <version>${engine.version}</version>
17
    </dependency>
18
    <dependency>
19
      <groupId>commons-configuration</groupId>
20
      <artifactId>commons-configuration</artifactId>
21
      <version>${commons-configuration.version}</version>
22
      <scope>provided</scope>
23
    </dependency>
24
    <dependency>
25
      <groupId>commons-collections</groupId>
26
      <artifactId>commons-collections</artifactId>
27
      <scope>provided</scope>
28
    </dependency>
29
    <dependency>
30
      <groupId>commons-jxpath</groupId>
31
      <artifactId>commons-jxpath</artifactId>
32
      <version>${commons-jxpath.version}</version>
33
      <scope>provided</scope>
34
    </dependency>
35
    <dependency>
36
      <groupId>log4j</groupId>
37
      <artifactId>log4j</artifactId>
38
      <scope>provided</scope>
39
    </dependency>
40
  </dependencies>
41
  <build>
42
    <resources>
43
      <resource>
44
        <directory>src/main/resources</directory>
45
        <excludes>
46
          <exclude>log4j.xml</exclude>
47
        </excludes>
48
      </resource>
49
    </resources>
50
    <plugins>
51
      <plugin>
52
        <artifactId>maven-assembly-plugin</artifactId>
53
        <configuration>
54
          <archive>
55
            <manifest>
56
              <mainClass>org.ovirt.engine.core.config.EngineConfig</mainClass>
57
            </manifest>
58
          </archive>
59
          <descriptorRefs>
60
            <descriptorRef>jar-with-dependencies</descriptorRef>
61
          </descriptorRefs>
62
        </configuration>
63
      </plugin>
64
    </plugins>
65
  </build>
66
</project>
view file @ e3e995ba14
... ... --- /dev/null
... ... +++ b/engine-notifier-3.2.0.pom
... ... @@ -0,0 +1,18 @@
1
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
2
  <modelVersion>4.0.0</modelVersion>
3
4
  <parent>
5
    <groupId>org.ovirt.engine.core</groupId>
6
    <artifactId>manager-tools</artifactId>
7
    <version>3.2.0</version>
8
  </parent>
9
10
  <artifactId>engine-notifier</artifactId>
11
  <packaging>pom</packaging>
12
  <name>Notifier Service package</name>
13
14
  <modules>
15
    <module>engine-notifier-service</module>
16
    <module>engine-notifier-resources</module>
17
  </modules>
18
</project>
view file @ e3e995ba14
... ... --- /dev/null
... ... +++ b/engine-notifier-resources-3.2.0.pom
... ... @@ -0,0 +1,38 @@
1
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
2
  <modelVersion>4.0.0</modelVersion>
3
4
  <parent>
5
    <groupId>org.ovirt.engine.core</groupId>
6
    <artifactId>engine-notifier</artifactId>
7
    <version>3.2.0</version>
8
  </parent>
9
10
  <artifactId>engine-notifier-resources</artifactId>
11
  <packaging>pom</packaging>
12
  <name>Notifier Service Resources</name>
13
14
  <build>
15
16
    <plugins>
17
      <plugin>
18
        <artifactId>maven-assembly-plugin</artifactId>
19
        <executions>
20
          <execution>
21
            <id>make-assembly</id>
22
            <phase>process-resources</phase>
23
            <goals><goal>single</goal></goals>
24
          </execution>
25
        </executions>
26
        <configuration>
27
          <descriptors>
28
            <descriptor>src/main/assembly/assembly.xml</descriptor>
29
          </descriptors>
30
          <appendAssemblyId>false</appendAssemblyId>
31
        </configuration>
32
      </plugin>
33
    </plugins>
34
35
  </build>
36
37
</project>
38
view file @ e3e995ba14
view file @ e3e995ba14
view file @ e3e995ba14
... ... --- /dev/null
... ... +++ b/engine-notifier-service-3.2.0.pom
... ... @@ -0,0 +1,82 @@
1
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
2
  <modelVersion>4.0.0</modelVersion>
3
4
  <parent>
5
    <groupId>org.ovirt.engine.core</groupId>
6
    <artifactId>engine-notifier</artifactId>
7
    <version>3.2.0</version>
8
  </parent>
9
10
  <artifactId>engine-notifier-service</artifactId>
11
  <packaging>jar</packaging>
12
  <name>Notifier Service</name>
13
14
  <dependencies>
15
    <dependency>
16
      <groupId>${engine.groupId}</groupId>
17
      <artifactId>compat</artifactId>
18
      <version>${engine.version}</version>
19
    </dependency>
20
21
    <dependency>
22
      <groupId>${engine.groupId}</groupId>
23
      <artifactId>common</artifactId>
24
      <version>${engine.version}</version>
25
    </dependency>
26
27
    <dependency>
28
      <groupId>${engine.groupId}</groupId>
29
      <artifactId>utils</artifactId>
30
      <version>${engine.version}</version>
31
    </dependency>
32
33
    <dependency>
34
      <groupId>${engine.groupId}</groupId>
35
      <artifactId>engine-tools-common</artifactId>
36
      <version>${engine.version}</version>
37
    </dependency>
38
39
    <dependency>
40
       <groupId>commons-lang</groupId>
41
       <artifactId>commons-lang</artifactId>
42
    </dependency>
43
44
    <dependency>
45
        <groupId>javax.mail</groupId>
46
        <artifactId>mail</artifactId>
47
        <scope>provided</scope>
48
    </dependency>
49
50
    <dependency>
51
      <groupId>commons-configuration</groupId>
52
      <artifactId>commons-configuration</artifactId>
53
      <version>${commons-configuration.version}</version>
54
      <scope>provided</scope>
55
    </dependency>
56
    <dependency>
57
      <groupId>commons-collections</groupId>
58
      <artifactId>commons-collections</artifactId>
59
      <scope>provided</scope>
60
    </dependency>
61
    <dependency>
62
      <groupId>commons-jxpath</groupId>
63
      <artifactId>commons-jxpath</artifactId>
64
      <version>${commons-jxpath.version}</version>
65
      <scope>provided</scope>
66
    </dependency>
67
68
  </dependencies>
69
70
  <build>
71
    <testResources>
72
      <testResource>
73
        <directory>src/test/resources</directory>
74
        <includes>
75
          <include>log4j.xml</include>
76
        </includes>
77
        <filtering>true</filtering>
78
      </testResource>
79
    </testResources>
80
  </build>
81
82
</project>
view file @ e3e995ba14
view file @ e3e995ba14
... ... --- /dev/null
... ... +++ b/engine-server-ear-3.2.0.pom
... ... @@ -0,0 +1,458 @@
1
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
2
  <modelVersion>4.0.0</modelVersion>
3
4
  <parent>
5
    <groupId>org.ovirt.engine</groupId>
6
    <artifactId>root</artifactId>
7
    <version>3.2.0</version>
8
  </parent>
9
10
  <artifactId>engine-server-ear</artifactId>
11
  <packaging>ear</packaging>
12
13
  <name>oVirt Server EAR</name>
14
  <description>oVirt server EAR</description>
15
16
  <distributionManagement>
17
    <repository>
18
      <id>local</id>
19
      <url>file://${maven.repository.root}</url>
20
    </repository>
21
  </distributionManagement>
22
23
  <properties>
24
    <earDirectory>${project.build.directory}/${project.build.finalName}</earDirectory>
25
    <backendConfFiles>${project.parent.basedir}/backend/manager/conf</backendConfFiles>
26
  </properties>
27
28
  <dependencies>
29
    <!-- Internal Deps -->
30
    <!-- ** JARs -->
31
    <dependency>
32
      <groupId>org.ovirt.engine.core</groupId>
33
      <artifactId>compat</artifactId>
34
      <version>${engine.version}</version>
35
      <type>jar</type>
36
    </dependency>
37
38
    <dependency>
39
      <groupId>org.ovirt.engine.core</groupId>
40
      <artifactId>common</artifactId>
41
      <version>${engine.version}</version>
42
      <type>jar</type>
43
    </dependency>
44
45
    <dependency>
46
      <groupId>org.ovirt.engine.core</groupId>
47
      <artifactId>dal</artifactId>
48
      <version>${engine.version}</version>
49
      <type>jar</type>
50
    </dependency>
51
52
    <dependency>
53
      <groupId>org.ovirt.engine.core</groupId>
54
      <artifactId>vdsbroker</artifactId>
55
      <version>${engine.version}</version>
56
      <type>jar</type>
57
    </dependency>
58
59
    <!-- WARS -->
60
    <dependency>
61
      <groupId>org.ovirt.engine.core</groupId>
62
      <artifactId>root-war</artifactId>
63
      <version>${engine.version}</version>
64
      <type>war</type>
65
    </dependency>
66
67
    <dependency>
68
      <groupId>org.ovirt.engine.ui</groupId>
69
      <artifactId>rmw-war</artifactId>
70
      <version>${engine.version}</version>
71
      <type>war</type>
72
    </dependency>
73
74
    <dependency>
75
      <groupId>org.ovirt.engine.api</groupId>
76
      <artifactId>restapi-webapp</artifactId>
77
      <version>${engine.version}</version>
78
      <type>war</type>
79
    </dependency>
80
81
    <dependency>
82
      <groupId>org.ovirt.engine.ui</groupId>
83
      <artifactId>userportal</artifactId>
84
      <version>${engine.version}</version>
85
      <type>war</type>
86
    </dependency>
87
88
    <dependency>
89
      <groupId>org.ovirt.engine.ui</groupId>
90
      <artifactId>webadmin</artifactId>
91
      <version>${engine.version}</version>
92
      <type>war</type>
93
    </dependency>
94
95
    <!-- ** EJB-JARs -->
96
    <dependency>
97
      <groupId>org.ovirt.engine.ui</groupId>
98
      <artifactId>genericapi</artifactId>
99
      <version>${engine.version}</version>
100
      <type>ejb</type>
101
    </dependency>
102
103
    <dependency>
104
      <groupId>org.ovirt.engine.core</groupId>
105
      <artifactId>scheduler</artifactId>
106
      <version>${engine.version}</version>
107
      <type>ejb</type>
108
    </dependency>
109
110
    <dependency>
111
      <groupId>org.ovirt.engine.core</groupId>
112
      <artifactId>bll</artifactId>
113
      <version>${engine.version}</version>
114
      <type>ejb</type>
115
    </dependency>
116
117
    <!-- ** JARs -->
118
	 <dependency>
119
		<groupId>org.springframework</groupId>
120
		<artifactId>spring-core</artifactId>
121
		<version>${spring.version}</version>
122
	</dependency>
123
	<dependency>
124
		<groupId>org.springframework</groupId>
125
		<artifactId>spring-beans</artifactId>
126
		<version>${spring.version}</version>
127
	</dependency>
128
	<dependency>
129
		<groupId>org.springframework</groupId>
130
		<artifactId>spring-context</artifactId>
131
		<version>${spring.version}</version>
132
	</dependency>
133
134
    <!-- Set the scope of depedencies provided by JBoss so that
135
         they are not included in the resulting archive: -->
136
    <dependency>
137
      <groupId>org.codehaus.jackson</groupId>
138
      <artifactId>jackson-core-asl</artifactId>
139
      <scope>provided</scope>
140
    </dependency>
141
142
    <dependency>
143
      <groupId>org.codehaus.jackson</groupId>
144
      <artifactId>jackson-mapper-asl</artifactId>
145
      <scope>provided</scope>
146
    </dependency>
147
148
  </dependencies>
149
150
  <build>
151
    <finalName>engine</finalName>
152
153
    <plugins>
154
      <plugin>
155
        <artifactId>maven-ear-plugin</artifactId>
156
        <configuration>
157
          <!-- params common to ear:ear and ear:generate-application-xml -->
158
          <defaultLibBundleDir>lib</defaultLibBundleDir>
159
          <workDirectory>${earDirectory}</workDirectory>
160
          <version>1.4</version>
161
          <!-- J2EE version -->
162
163
          <!-- params for ear:ear -->
164
          <resourcesDir>${basedir}/target/classes</resourcesDir>
165
          <unpackTypes>war,ejb,sar</unpackTypes>
166
167
          <!-- params for ear:generate-application-xml -->
168
          <displayName>ENGINE</displayName>
169
170
          <modules>
171
            <!-- ** JARs -->
172
            <jarModule>
173
              <groupId>org.ovirt.engine.core</groupId>
174
              <artifactId>common</artifactId>
175
              <bundleFileName>engine-common.jar</bundleFileName>
176
            </jarModule>
177
178
            <jarModule>
179
              <groupId>org.ovirt.engine.core</groupId>
180
              <artifactId>compat</artifactId>
181
              <bundleFileName>engine-compat.jar</bundleFileName>
182
            </jarModule>
183
184
            <jarModule>
185
              <groupId>org.ovirt.engine.core</groupId>
186
              <artifactId>dal</artifactId>
187
              <bundleFileName>engine-dal.jar</bundleFileName>
188
            </jarModule>
189
190
            <jarModule>
191
              <groupId>org.ovirt.engine.core</groupId>
192
              <artifactId>utils</artifactId>
193
              <bundleFileName>engine-utils.jar</bundleFileName>
194
            </jarModule>
195
196
            <jarModule>
197
              <groupId>org.ovirt.engine.core</groupId>
198
              <artifactId>engineencryptutils</artifactId>
199
              <bundleFileName>engine-encryptutils.jar</bundleFileName>
200
            </jarModule>
201
202
            <jarModule>
203
              <groupId>org.ovirt.engine.core</groupId>
204
              <artifactId>vdsbroker</artifactId>
205
              <bundleFileName>engine-vdsbroker.jar</bundleFileName>
206
            </jarModule>
207
208
            <!-- ** WARs -->
209
            <webModule>
210
              <groupId>org.ovirt.engine.core</groupId>
211
              <artifactId>root-war</artifactId>
212
              <bundleFileName>root.war</bundleFileName>
213
              <contextRoot>/</contextRoot>
214
            </webModule>
215
216
            <webModule>
217
              <groupId>org.ovirt.engine.ui</groupId>
218
              <artifactId>rmw-war</artifactId>
219
              <bundleFileName>ovirtengineweb.war</bundleFileName>
220
              <contextRoot>/OvirtEngineWeb</contextRoot>
221
            </webModule>
222
223
            <webModule>
224
              <groupId>org.ovirt.engine.api</groupId>
225
              <artifactId>restapi-webapp</artifactId>
226
              <bundleFileName>restapi.war</bundleFileName>
227
              <contextRoot>/api</contextRoot>
228
            </webModule>
229
230
            <webModule>
231
              <groupId>org.ovirt.engine.ui</groupId>
232
              <artifactId>userportal</artifactId>
233
              <bundleFileName>userportal.war</bundleFileName>
234
              <contextRoot>/UserPortal</contextRoot>
235
            </webModule>
236
237
            <webModule>
238
              <groupId>org.ovirt.engine.ui</groupId>
239
              <artifactId>webadmin</artifactId>
240
              <bundleFileName>webadmin.war</bundleFileName>
241
              <contextRoot>/webadmin</contextRoot>
242
            </webModule>
243
244
            <!-- ** EJB-JARs -->
245
            <ejbModule>
246
              <groupId>org.ovirt.engine.ui</groupId>
247
              <artifactId>genericapi</artifactId>
248
              <bundleFileName>engine-genericapi.jar</bundleFileName>
249
              <unpack>true</unpack>
250
            </ejbModule>
251
252
            <ejbModule>
253
              <groupId>org.ovirt.engine.core</groupId>
254
              <artifactId>scheduler</artifactId>
255
              <bundleFileName>engine-scheduler.jar</bundleFileName>
256
              <unpack>true</unpack>
257
            </ejbModule>
258
259
            <ejbModule>
260
              <groupId>org.ovirt.engine.core</groupId>
261
              <artifactId>bll</artifactId>
262
              <bundleFileName>engine-bll.jar</bundleFileName>
263
              <unpack>true</unpack>
264
            </ejbModule>
265
266
          </modules>
267
268
          <!-- Add a the manifest that contains the required dependencies
269
               for JBoss modules: -->
270
          <archive>
271
            <addMavenDescriptor>false</addMavenDescriptor>
272
            <manifestFile>src/main/resources/META-INF/MANIFEST.MF</manifestFile>
273
          </archive>
274
275
        </configuration>
276
      </plugin>
277
278
      <plugin>
279
        <artifactId>maven-dependency-plugin</artifactId>
280
        <executions>
281
          <execution>
282
            <id>copy-quartz-jar</id>
283
            <phase>package</phase>
284
            <goals>
285
              <goal>copy</goal>
286
            </goals>
287
            <configuration>
288
              <artifactItems>
289
                <artifactItem>
290
                  <groupId>org.quartz-scheduler</groupId>
291
                  <artifactId>quartz</artifactId>
292
                  <version>${quartz.version}</version>
293
                  <type>jar</type>
294
                  <overWrite>true</overWrite>
295
                  <destFileName>quartz-${quartz.version}.jar</destFileName>
296
                  <outputDirectory>${project.build.directory}/quartz</outputDirectory>
297
                </artifactItem>
298
              </artifactItems>
299
            </configuration>
300
          </execution>
301
        </executions>
302
      </plugin>
303
    </plugins>
304
  </build>
305
306
  <profiles>
307
308
    <profile>
309
      <id>dep</id>
310
311
      <properties>
312
        <engine.rootDir>..</engine.rootDir>
313
        <engine.deploymentName>${project.build.finalName}.ear</engine.deploymentName>
314
        <engine.deploymentsDir>${jbossServer}/deployments</engine.deploymentsDir>
315
        <engine.deploymentDir>${engine.deploymentsDir}/${engine.deploymentName}</engine.deploymentDir>
316
      </properties>
317
318
      <build>
319
        <plugins>
320
          <plugin>
321
            <artifactId>maven-antrun-plugin</artifactId>
322
            <executions>
323
              <execution>
324
                <id>deploy</id>
325
                <phase>package</phase>
326
327
                <configuration>
328
                  <tasks>
329
                    <property name="deployment.dir" location="${engine.deploymentDir}"/>
330
                    <echo>*** Copying updated files from target${file.separator}${project.build.finalName}${file.separator} to ${deployment.dir}${file.separator}...</echo>
331
                    <copy todir="${deployment.dir}" verbose="true">
332
                      <fileset dir="${basedir}/target/${project.build.finalName}"/>
333
                    </copy>
334
                    <property name="deployment.descriptor.file" location="${deployment.dir}/META-INF/application.xml"/>
335
                    <echo>*** Touching ${deployment.descriptor.file} to force redeployment of ${engine.deploymentName}...</echo>
336
                    <touch file="${deployment.descriptor.file}"/>
337
                    <echo>*** Touching ${engine.deploymentName}.dodeploy to force deployment of ${engine.deploymentName}...</echo>
338
                    <touch file="${jbossServer}/deployments/${engine.deploymentName}.dodeploy"/>
339
                  </tasks>
340
                </configuration>
341
342
                <goals>
343
                  <goal>run</goal>
344
                </goals>
345
              </execution>
346
347
              <execution>
348
                <id>deploy-ear-meta-inf</id>
349
                <phase>package</phase>
350
351
                <configuration>
352
                  <tasks>
353
                    <unjar src="${project.build.directory}/${project.build.finalName}.ear" dest="${engine.deploymentDir}">
354
                      <patternset>
355
                        <include name="META-INF/**"/>
356
                      </patternset>
357
                    </unjar>
358
                  </tasks>
359
                </configuration>
360
361
                <goals>
362
                  <goal>run</goal>
363
                </goals>
364
              </execution>
365
366
              <execution>
367
                <id>undeploy</id>
368
                <phase>clean</phase>
369
370
                <configuration>
371
                  <tasks>
372
                    <property name="deployment.dir" location="${engine.deploymentDir}"/>
373
                    <echo>*** Deleting ${deployment.dir}${file.separator}...</echo>
374
                    <delete dir="${deployment.dir}"/>
375
                  </tasks>
376
                </configuration>
377
378
                <goals>
379
                  <goal>run</goal>
380
                </goals>
381
              </execution>
382
            </executions>
383
          </plugin>
384
        </plugins>
385
      </build>
386
    </profile>
387
388
    <profile>
389
      <id>setup</id>
390
      <build>
391
        <plugins>
392
          <plugin>
393
            <artifactId>maven-antrun-plugin</artifactId>
394
            <executions>
395
              <execution>
396
                <id>setup</id>
397
                <phase>install</phase>
398
399
                <configuration>
400
                  <tasks>
401
                    <echo>*** Copying configuration file from ${backendConfFiles}/standalone.xml to ${jbossServer}/configuration</echo>
402
                    <copy overwrite="true" file="${backendConfFiles}/standalone.xml" todir="${jbossServer}/configuration"/>
403
                  </tasks>
404
                </configuration>
405
406
                <goals>
407
                  <goal>run</goal>
408
                </goals>
409
              </execution>
410
              <execution>
411
                <id>copy-module-changes</id>
412
                <phase>install</phase>
413
                <goals>
414
                  <goal>run</goal>
415
                </goals>
416
                <configuration>
417
                  <tasks>
418
                    <echo>*** Copying ${project.parent.basedir}/deployment/modules to ${jbossHome}/modules</echo>
419
                    <copy todir="${jbossHome}/modules" verbose="true" overwrite="true">
420
                      <fileset dir="${project.parent.basedir}/deployment/modules">
421
                        <include name="org/postgresql/**"/>
422
                      </fileset>
423
                    </copy>
424
                  </tasks>
425
                </configuration>
426
              </execution>
427
            </executions>
428
          </plugin>
429
          <plugin>
430
            <artifactId>maven-dependency-plugin</artifactId>
431
            <executions>
432
              <execution>
433
                <id>copy-postgresql-jdbc-jar</id>
434
                <phase>install</phase>
435
                <goals>
436
                  <goal>copy</goal>
437
                </goals>
438
                <configuration>
439
                  <artifactItems>
440
                    <artifactItem>
441
                      <groupId>postgresql</groupId>
442
                      <artifactId>postgresql</artifactId>
443
                      <version>${postgres.jdbc.version}</version>
444
                      <type>jar</type>
445
                      <overWrite>true</overWrite>
446
                      <outputDirectory>${jbossHome}/modules/org/postgresql/main</outputDirectory>
447
                      <destFileName>postgresql-jdbc.jar</destFileName>
448
                    </artifactItem>
449
                  </artifactItems>
450
                </configuration>
451
              </execution>
452
            </executions>
453
          </plugin>
454
       </plugins>
455
      </build>
456
    </profile>
457
  </profiles>
458
</project>
view file @ e3e995ba14
view file @ e3e995ba14
view file @ e3e995ba14
... ... --- /dev/null
... ... +++ b/engine-tools-common-3.2.0.pom
... ... @@ -0,0 +1,54 @@
1
<?xml version="1.0"?>
2
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3
  <modelVersion>4.0.0</modelVersion>
4
  <parent>
5
    <groupId>org.ovirt.engine.core</groupId>
6
    <artifactId>manager-tools</artifactId>
7
    <version>3.2.0</version>
8
  </parent>
9
  <artifactId>engine-tools-common</artifactId>
10
  <packaging>jar</packaging>
11
  <name>oVirt Tools Common Library</name>
12
13
  <dependencies>
14
    <dependency>
15
      <groupId>${engine.groupId}</groupId>
16
      <artifactId>engineencryptutils</artifactId>
17
      <version>${engine.version}</version>
18
    </dependency>
19
    <dependency>
20
      <groupId>commons-configuration</groupId>
21
      <artifactId>commons-configuration</artifactId>
22
      <version>${commons-configuration.version}</version>
23
      <scope>provided</scope>
24
    </dependency>
25
    <dependency>
26
      <groupId>commons-collections</groupId>
27
      <artifactId>commons-collections</artifactId>
28
      <scope>provided</scope>
29
    </dependency>
30
    <dependency>
31
      <groupId>commons-jxpath</groupId>
32
      <artifactId>commons-jxpath</artifactId>
33
      <version>${commons-jxpath.version}</version>
34
      <scope>provided</scope>
35
    </dependency>
36
    <dependency>
37
      <groupId>log4j</groupId>
38
      <artifactId>log4j</artifactId>
39
      <scope>provided</scope>
40
    </dependency>
41
  </dependencies>
42
43
  <build>
44
    <testResources>
45
      <testResource>
46
        <directory>src/test/resources</directory>
47
        <includes>
48
            <include>log4j.xml</include>
49
        </includes>
50
      </testResource>
51
    </testResources>
52
  </build>
53
54
</project>
view file @ e3e995ba14
view file @ e3e995ba14
view file @ e3e995ba14
... ... --- /dev/null
... ... +++ b/engineencryptutils-3.2.0.pom
... ... @@ -0,0 +1,35 @@
1
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
2
  <modelVersion>4.0.0</modelVersion>
3
4
  <parent>
5
    <groupId>org.ovirt.engine.core</groupId>
6
    <artifactId>manager-modules</artifactId>
7
    <version>3.2.0</version>
8
  </parent>
9
10
  <artifactId>engineencryptutils</artifactId>
11
  <packaging>jar</packaging>
12
13
  <name>Encryption Libraries</name>
14
15
  <dependencies>
16
    <dependency>
17
      <groupId>commons-codec</groupId>
18
      <artifactId>commons-codec</artifactId>
19
    </dependency>
20
  </dependencies>
21
22
  <build>
23
    <plugins>
24
      <plugin>
25
        <artifactId>maven-surefire-plugin</artifactId>
26
        <configuration>
27
          <additionalClasspathElements>
28
            <additionalClasspathElement>${basedir}/src/test/java</additionalClasspathElement>
29
          </additionalClasspathElements>
30
        </configuration>
31
      </plugin>
32
    </plugins>
33
  </build>
34
35
</project>
view file @ e3e995ba14
view file @ e3e995ba14
view file @ e3e995ba14
... ... --- /dev/null
... ... +++ b/frontend-3.2.0.pom
... ... @@ -0,0 +1,89 @@
1
<?xml version="1.0"?>
2
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3
  <modelVersion>4.0.0</modelVersion>
4
  <parent>
5
    <groupId>org.ovirt.engine.ui</groupId>
6
    <artifactId>webadmin-modules</artifactId>
7
    <version>3.2.0</version>
8
  </parent>
9
  <artifactId>frontend</artifactId>
10
  <packaging>jar</packaging>
11
  <name>Frontend for GWT UI Projects</name>
12
  <dependencies>
13
    <dependency>
14
      <groupId>com.google.gwt</groupId>
15
      <artifactId>gwt-servlet</artifactId>
16
      <version>${gwt.version}</version>
17
    </dependency>
18
    <dependency>
19
      <groupId>com.google.gwt</groupId>
20
      <artifactId>gwt-user</artifactId>
21
      <version>${gwt.version}</version>
22
    </dependency>
23
    <dependency>
24
      <groupId>org.jboss.spec.javax.servlet</groupId>
25
      <artifactId>jboss-servlet-api_3.0_spec</artifactId>
26
      <scope>provided</scope>
27
    </dependency>
28
    <dependency>
29
      <groupId>org.jboss.spec.javax.ejb</groupId>
30
      <artifactId>jboss-ejb-api_3.1_spec</artifactId>
31
      <scope>provided</scope>
32
    </dependency>
33
    <dependency>
34
      <groupId>org.jboss.spec.javax.servlet.jstl</groupId>
35
      <artifactId>jboss-jstl-api_1.2_spec</artifactId>
36
      <scope>provided</scope>
37
    </dependency>
38
    <dependency>
39
      <groupId>${engine.groupId}</groupId>
40
      <artifactId>genericapi</artifactId>
41
      <version>${engine.version}</version>
42
      <scope>provided</scope>
43
    </dependency>
44
    <dependency>
45
      <groupId>${engine.groupId}</groupId>
46
      <artifactId>uicompat</artifactId>
47
      <version>${engine.version}</version>
48
      <scope>provided</scope>
49
    </dependency>
50
  </dependencies>
51
  <build>
52
    <resources>
53
      <resource>
54
        <directory>src/main/java</directory>
55
        <includes>
56
          <include>**/*.java</include>
57
          <include>**/*.gwt.xml</include>
58
        </includes>
59
      </resource>
60
      <resource>
61
        <directory>src/main/resources</directory>
62
      </resource>
63
    </resources>
64
    <plugins>
65
      <plugin>
66
        <groupId>org.codehaus.mojo</groupId>
67
        <artifactId>gwt-maven-plugin</artifactId>
68
        <version>${gwt.plugin.version}</version>
69
        <configuration>
70
          <servicePattern>**/gwtservices/*GWTService.java</servicePattern>
71
        </configuration>
72
        <executions>
73
          <execution>
74
            <goals>
75
              <goal>generateAsync</goal>
76
              <goal>resources</goal>
77
            </goals>
78
          </execution>
79
        </executions>
80
      </plugin>
81
      <plugin>
82
        <artifactId>maven-checkstyle-plugin</artifactId>
83
        <configuration>
84
          <propertyExpansion>runNlsCheck=true</propertyExpansion>
85
        </configuration>
86
      </plugin>
87
    </plugins>
88
  </build>
89
</project>
view file @ e3e995ba14
... ... --- /dev/null
... ... +++ b/frontend-all-3.2.0.pom
... ... @@ -0,0 +1,54 @@
1
<?xml version="1.0"?>
2
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
3
  <modelVersion>4.0.0</modelVersion>
4
  <parent>
5
    <groupId>org.ovirt.engine</groupId>
6
    <artifactId>root</artifactId>
7
    <version>3.2.0</version>
8
  </parent>
9
  <artifactId>frontend-all</artifactId>
10
  <groupId>org.ovirt.engine.ui</groupId>
11
  <packaging>pom</packaging>
12
  <name>oVirt Modules :: Frontend</name>
13
  <description>An aggregator module for all frontend modules.</description>
14
  <modules>
15
    <module>webadmin</module>
16
    <module>api</module>
17
    <module>wars</module>
18
  </modules>
19
  <properties>
20
    <engine.groupId>org.ovirt.engine.ui</engine.groupId>
21
    <engine.version>3.2.0</engine.version>
22
    <aspectj.version>1.6.11</aspectj.version>
23
  </properties>
24
  <build>
25
    <pluginManagement>
26
      <plugins>
27
        <!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
28
        <plugin>
29
          <groupId>org.eclipse.m2e</groupId>
30
          <artifactId>lifecycle-mapping</artifactId>
31
          <version>1.0.0</version>
32
          <configuration>
33
            <lifecycleMappingMetadata>
34
              <pluginExecutions>
35
                <pluginExecution>
36
                  <pluginExecutionFilter>
37
                    <groupId>org.codehaus.mojo</groupId>
38
                    <artifactId>gwt-maven-plugin</artifactId>
39
                    <versionRange>[1.3.2.google,)</versionRange>
40
                    <goals>
41
                      <goal>resources</goal>
42
                      <goal>generateAsync</goal>
43
                    </goals>
44
                  </pluginExecutionFilter>
45
                  <action><ignore/></action>
46
                </pluginExecution>
47
              </pluginExecutions>
48
            </lifecycleMappingMetadata>
49
          </configuration>
50
        </plugin>
51
      </plugins>
52
    </pluginManagement>
53
  </build>
54
</project>
view file @ e3e995ba14
view file @ e3e995ba14
view file @ e3e995ba14
... ... --- /dev/null
... ... +++ b/genericapi-3.2.0.pom
... ... @@ -0,0 +1,93 @@
1
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
2
  <modelVersion>4.0.0</modelVersion>
3
4
  <parent>
5
    <groupId>org.ovirt.engine.ui</groupId>
6
    <artifactId>api</artifactId>
7
    <version>3.2.0</version>
8
  </parent>
9
10
  <artifactId>genericapi</artifactId>
11
  <packaging>ejb</packaging>
12
13
  <name>oVirt generic API</name>
14
  <!-- Fix collision in gwt-maven-plugin version -->
15
  <!-- TODO: remove the entire genericapi project from downstream -->
16
  <properties>
17
    <gwt.version>2.3.0</gwt.version>
18
    <gwt-maven-plugin.version>2.3.0-1</gwt-maven-plugin.version>
19
  </properties>
20
21
22
  <dependencies>
23
    <dependency>
24
     <groupId>org.ovirt.engine.core</groupId>
25
     <artifactId>bll</artifactId>
26
     <version>${engine.version}</version>
27
     <scope>provided</scope>
28
    </dependency>
29
    <dependency>
30
     <groupId>org.jboss.ejb3</groupId>
31
     <artifactId>jboss-ejb3-ext-api</artifactId>
32
    </dependency>
33
    <dependency>
34
      <groupId>org.ovirt.engine.core</groupId>
35
      <artifactId>common</artifactId>
36
      <version>${engine.version}</version>
37
    </dependency>
38
39
    <dependency>
40
      <groupId>org.ovirt.engine.core</groupId>
41
      <artifactId>utils</artifactId>
42
      <version>${engine.version}</version>
43
    </dependency>
44
45
    <!-- external dependencies -->
46
    <dependency>
47
      <groupId>org.jboss.spec.javax.ejb</groupId>
48
      <artifactId>jboss-ejb-api_3.1_spec</artifactId>
49
      <scope>provided</scope>
50
    </dependency>
51
  </dependencies>
52
53
  <build>
54
    <resources>
55
      <resource>
56
        <directory>src/main/java</directory>
57
        <includes>
58
          <include>**/*.java</include>
59
          <include>**/*.gwt.xml</include>
60
        </includes>
61
      </resource>
62
    </resources>
63
64
    <plugins>
65
      <plugin>
66
        <groupId>org.codehaus.mojo</groupId>
67
        <artifactId>gwt-maven-plugin</artifactId>
68
        <version>${gwt.plugin.version}</version>
69
        <configuration>
70
          <logLevel>INFO</logLevel>
71
          <extraJvmArgs>-Xms1024M -Xmx1024M -XX:PermSize=256M -XX:MaxPermSize=256M</extraJvmArgs>
72
          <localWorkers>2</localWorkers>
73
        </configuration>
74
        <executions>
75
          <execution>
76
            <goals>
77
              <goal>resources</goal>
78
            </goals>
79
          </execution>
80
        </executions>
81
      </plugin>
82
83
      <plugin>
84
        <artifactId>maven-surefire-plugin</artifactId>
85
        <configuration>
86
          <additionalClasspathElements>
87
            <additionalClasspathElement>${basedir}/src/test/java</additionalClasspathElement>
88
          </additionalClasspathElements>
89
        </configuration>
90
      </plugin>
91
    </plugins>
92
  </build>
93
</project>
view file @ e3e995ba14
view file @ e3e995ba14
view file @ e3e995ba14
... ... --- /dev/null
... ... +++ b/gwt-common-3.2.0.pom
... ... @@ -0,0 +1,148 @@
1
<?xml version="1.0"?>
2
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3
  <modelVersion>4.0.0</modelVersion>
4
  <parent>
5
    <groupId>org.ovirt.engine.ui</groupId>
6
    <artifactId>webadmin-modules</artifactId>
7
    <version>3.2.0</version>
8
  </parent>
9
  <artifactId>gwt-common</artifactId>
10
  <packaging>jar</packaging>
11
  <name>oVirt GWT UI common infrastructure</name>
12
  <properties>
13
    <!--TODO: Will be inherited from top module -->
14
    <gwt.version>2.3.0</gwt.version>
15
  </properties>
16
  <dependencies>
17
    <!-- Google Web Toolkit dependencies -->
18
    <dependency>
19
      <groupId>com.google.gwt</groupId>
20
      <artifactId>gwt-user</artifactId>
21
      <version>${gwt.version}</version>
22
      <scope>provided</scope>
23
    </dependency>
24
    <dependency>
25
      <groupId>com.google.gwt</groupId>
26
      <artifactId>gwt-dev</artifactId>
27
      <version>${gwt.version}</version>
28
      <scope>provided</scope>
29
    </dependency>
30
    <!-- GWTP MVP component -->
31
    <dependency>
32
      <groupId>com.gwtplatform</groupId>
33
      <artifactId>gwtp-mvp-client</artifactId>
34
      <version>${gwtp.version}</version>
35
      <scope>provided</scope>
36
    </dependency>
37
    <dependency>
38
      <groupId>com.gwtplatform</groupId>
39
      <artifactId>gwtp-processors</artifactId>
40
      <version>${gwtp.version}</version>
41
      <scope>provided</scope>
42
    </dependency>
43
    <!-- Guice and GIN -->
44
    <dependency>
45
      <groupId>com.google.inject</groupId>
46
      <artifactId>guice</artifactId>
47
      <version>${guice.version}</version>
48
      <scope>provided</scope>
49
    </dependency>
50
    <dependency>
51
      <groupId>com.google.inject.extensions</groupId>
52
      <artifactId>guice-assistedinject</artifactId>
53
      <version>${guice.version}</version>
54
      <scope>provided</scope>
55
    </dependency>
56
    <dependency>
57
      <groupId>com.google.gwt.inject</groupId>
58
      <artifactId>gin</artifactId>
59
      <version>${gin.version}</version>
60
      <scope>provided</scope>
61
    </dependency>
62
    <!-- oVirt dependencies -->
63
    <dependency>
64
      <groupId>${engine.groupId}</groupId>
65
      <artifactId>uicommonweb</artifactId>
66
      <version>${engine.version}</version>
67
      <scope>provided</scope>
68
    </dependency>
69
    <dependency>
70
      <groupId>${engine.groupId}</groupId>
71
      <artifactId>frontend</artifactId>
72
      <version>${engine.version}</version>
73
      <scope>provided</scope>
74
    </dependency>
75
  </dependencies>
76
  <build>
77
    <resources>
78
      <resource>
79
        <directory>src/main/java</directory>
80
        <includes>
81
          <include>**/*.ui.xml</include>
82
        </includes>
83
      </resource>
84
      <resource>
85
        <directory>src/main/resources</directory>
86
      </resource>
87
    </resources>
88
    <plugins>
89
      <plugin>
90
        <groupId>org.codehaus.mojo</groupId>
91
        <artifactId>gwt-maven-plugin</artifactId>
92
        <version>${gwt.plugin.version}</version>
93
        <executions>
94
          <!-- GWT version should be detected from dependencyManagement -->
95
          <execution>
96
            <goals>
97
              <goal>resources</goal>
98
            </goals>
99
          </execution>
100
        </executions>
101
        <configuration>
102
          <extraJvmArgs>${gwt-plugin.extraJvmArgs}</extraJvmArgs>
103
          <debugSuspend>false</debugSuspend>
104
        </configuration>
105
      </plugin>
106
      <plugin>
107
        <groupId>org.bsc.maven</groupId>
108
        <artifactId>maven-processor-plugin</artifactId>
109
        <version>${maven-processor-plugin.version}</version>
110
        <executions>
111
          <execution>
112
            <id>process</id>
113
            <goals>
114
              <goal>process</goal>
115
            </goals>
116
            <phase>generate-sources</phase>
117
          </execution>
118
        </executions>
119
      </plugin>
120
      <plugin>
121
        <groupId>org.codehaus.mojo</groupId>
122
        <artifactId>build-helper-maven-plugin</artifactId>
123
        <version>${build-helper-maven-plugin.version}</version>
124
        <executions>
125
          <execution>
126
            <id>add-apt-sources</id>
127
            <phase>generate-sources</phase>
128
            <goals>
129
              <goal>add-source</goal>
130
            </goals>
131
            <configuration>
132
              <sources>
133
                <source>${project.build.directory}/${generatedSourcesDirectory}</source>
134
                <source>${project.build.directory}/generated-sources/gwt</source>
135
              </sources>
136
            </configuration>
137
          </execution>
138
        </executions>
139
      </plugin>
140
      <plugin>
141
        <artifactId>maven-checkstyle-plugin</artifactId>
142
        <configuration>
143
          <propertyExpansion>runNlsCheck=true</propertyExpansion>
144
        </configuration>
145
      </plugin>
146
    </plugins>
147
  </build>
148
</project>
view file @ e3e995ba14
view file @ e3e995ba14
view file @ e3e995ba14
view file @ e3e995ba14
... ... --- /dev/null
... ... +++ b/gwt-extension-3.2.0.pom
... ... @@ -0,0 +1,69 @@
1
<?xml version="1.0"?>
2
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3
  <modelVersion>4.0.0</modelVersion>
4
  <parent>
5
    <groupId>org.ovirt.engine.ui</groupId>
6
    <artifactId>webadmin-modules</artifactId>
7
    <version>3.2.0</version>
8
  </parent>
9
  <artifactId>gwt-extension</artifactId>
10
  <packaging>jar</packaging>
11
  <name>Extensions for GWT</name>
12
  <properties>
13
    <sourceDir>${project.basedir}/src/main/java</sourceDir>
14
    <gwt-plugin.extraJvmArgs>-Xms1024M -Xmx1024M -XX:PermSize=256M -XX:MaxPermSize=256M</gwt-plugin.extraJvmArgs>
15
    <!-- Versions need to be inherited -->
16
    <gwt.version>2.3.0</gwt.version>
17
  </properties>
18
  <dependencies>
19
    <dependency>
20
      <groupId>com.google.gwt</groupId>
21
      <artifactId>gwt-user</artifactId>
22
      <version>${gwt.version}</version>
23
      <scope>provided</scope>
24
    </dependency>
25
    <dependency>
26
      <groupId>com.google.gwt</groupId>
27
      <artifactId>gwt-dev</artifactId>
28
      <version>${gwt.version}</version>
29
      <scope>provided</scope>
30
    </dependency>
31
    <dependency>
32
      <groupId>${engine.groupId}</groupId>
33
      <artifactId>genericapi</artifactId>
34
      <version>${engine.version}</version>
35
      <scope>provided</scope>
36
    </dependency>
37
    <dependency>
38
      <groupId>org.aspectj</groupId>
39
      <artifactId>aspectjrt</artifactId>
40
      <version>${aspectj.version}</version>
41
      <scope>provided</scope>
42
    </dependency>
43
  </dependencies>
44
  <build>
45
    <plugins>
46
      <plugin>
47
        <artifactId>maven-compiler-plugin</artifactId>
48
        <version>${maven-compiler-plugin.version}</version>
49
        <configuration>
50
          <excludes>
51
            <exclude>**/uioverrides/**/*</exclude>
52
          </excludes>
53
        </configuration>
54
      </plugin>
55
      <plugin>
56
        <artifactId>maven-source-plugin</artifactId>
57
        <executions>
58
          <execution>
59
            <id>attach-sources</id>
60
            <phase>verify</phase>
61
            <goals>
62
              <goal>jar-no-fork</goal>
63
            </goals>
64
          </execution>
65
        </executions>
66
      </plugin>
67
    </plugins>
68
  </build>
69
</project>
view file @ e3e995ba14
... ... --- /dev/null
... ... +++ b/interface-3.2.0.pom
... ... @@ -0,0 +1,20 @@
1
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://ma
2
ven.apache.org/xsd/maven-4.0.0.xsd">
3
  <modelVersion>4.0.0</modelVersion>
4
5
  <parent>
6
    <groupId>org.ovirt.engine.api</groupId>
7
    <artifactId>restapi-parent</artifactId>
8
    <version>3.2.0</version>
9
  </parent>
10
11
  <artifactId>interface</artifactId>
12
  <packaging>pom</packaging>
13
  <name>oVirt RESTful API interface</name>
14
15
  <modules>
16
    <module>common</module>
17
    <module>definition</module>
18
  </modules>
19
20
</project>
view file @ e3e995ba14
view file @ e3e995ba14
view file @ e3e995ba14
... ... --- /dev/null
... ... +++ b/interface-common-jaxrs-3.2.0.pom
... ... @@ -0,0 +1,64 @@
1
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
2
  <modelVersion>4.0.0</modelVersion>
3
4
  <parent>
5
    <groupId>org.ovirt.engine.api</groupId>
6
    <artifactId>common-parent</artifactId>
7
    <version>3.2.0</version>
8
  </parent>
9
10
  <artifactId>interface-common-jaxrs</artifactId>
11
  <packaging>jar</packaging>
12
13
  <name>oVirt Engine API Common JAX-RS</name>
14
15
  <dependencies>
16
17
    <dependency>
18
      <groupId>org.ovirt.engine.api</groupId>
19
      <artifactId>restapi-definition</artifactId>
20
      <version>${project.version}</version>
21
    </dependency>
22
23
    <dependency>
24
      <groupId>org.jboss.resteasy</groupId>
25
      <artifactId>resteasy-jaxrs</artifactId>
26
      <version>${resteasy.version}</version>
27
      <scope>provided</scope>
28
    </dependency>
29
30
    <dependency>
31
      <groupId>org.easymock</groupId>
32
      <artifactId>easymockclassextension</artifactId>
33
      <version>${easymock.version}</version>
34
      <scope>test</scope>
35
    </dependency>
36
37
    <dependency>
38
      <groupId>commons-codec</groupId>
39
      <artifactId>commons-codec</artifactId>
40
    </dependency>
41
42
    <dependency>
43
      <groupId>org.jboss.spec.javax.security.jacc</groupId>
44
      <artifactId>jboss-jacc-api_1.4_spec</artifactId>
45
      <version>1.0.1.Final</version>
46
      <scope>provided</scope>
47
    </dependency>
48
49
    <dependency>
50
      <groupId>log4j</groupId>
51
      <artifactId>log4j</artifactId>
52
    </dependency>
53
54
  </dependencies>
55
56
  <build>
57
    <plugins>
58
      <plugin>
59
        <artifactId>maven-checkstyle-plugin</artifactId>
60
      </plugin>
61
    </plugins>
62
  </build>
63
64
</project>
view file @ e3e995ba14
... ... --- /dev/null
... ... +++ b/manager-3.2.0.pom
... ... @@ -0,0 +1,18 @@
1
<?xml version="1.0"?>
2
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
3
  <modelVersion>4.0.0</modelVersion>
4
  <parent>
5
    <groupId>org.ovirt.engine.core</groupId>
6
    <artifactId>backend</artifactId>
7
    <version>3.2.0</version>
8
  </parent>
9
  <artifactId>manager</artifactId>
10
  <packaging>pom</packaging>
11
  <name>oVirt Manager</name>
12
  <description>parent POM for all oVirt Manager</description>
13
  <modules>
14
    <module>dbscripts</module>
15
    <module>modules</module>
16
    <module>tools</module>
17
  </modules>
18
</project>
view file @ e3e995ba14
... ... --- /dev/null
... ... +++ b/manager-modules-3.2.0.pom
... ... @@ -0,0 +1,47 @@
1
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
2
  <modelVersion>4.0.0</modelVersion>
3
4
  <parent>
5
    <groupId>org.ovirt.engine.core</groupId>
6
    <artifactId>manager</artifactId>
7
    <version>3.2.0</version>
8
  </parent>
9
10
  <artifactId>manager-modules</artifactId>
11
  <packaging>pom</packaging>
12
13
  <name>oVirt Modules - manager</name>
14
  <description>parent POM for all oVirt modules</description>
15
16
  <modules>
17
    <module>compat</module>
18
    <module>engineencryptutils</module>
19
    <module>utils</module>
20
    <module>common</module>
21
    <module>dal</module>
22
    <module>vdsbroker</module>
23
    <module>searchbackend</module>
24
    <module>bll</module>
25
    <module>beans</module>
26
    <module>restapi</module>
27
    <module>root</module>
28
  </modules>
29
30
  <dependencies>
31
    <dependency>
32
      <groupId>p6spy</groupId>
33
      <artifactId>p6spy</artifactId>
34
      <version>1.3</version>
35
      <scope>test</scope>
36
    </dependency>
37
  </dependencies>
38
39
  <build>
40
    <plugins>
41
      <plugin>
42
        <artifactId>maven-checkstyle-plugin</artifactId>
43
      </plugin>
44
    </plugins>
45
  </build>
46
47
</project>
view file @ e3e995ba14
... ... --- /dev/null
... ... +++ b/manager-tools-3.2.0.pom
... ... @@ -0,0 +1,48 @@
1
<?xml version="1.0"?>
2
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
3
  <modelVersion>4.0.0</modelVersion>
4
  <parent>
5
    <groupId>org.ovirt.engine.core</groupId>
6
    <artifactId>manager</artifactId>
7
    <version>3.2.0</version>
8
  </parent>
9
  <artifactId>manager-tools</artifactId>
10
  <packaging>pom</packaging>
11
  <name>oVirt Tools</name>
12
  <description>parent POM for all oVirt tools</description>
13
  <modules>
14
    <module>engine-config</module>
15
    <module>engine-notifier</module>
16
    <module>engine-tools-common</module>
17
  </modules>
18
  <build>
19
    <plugins>
20
      <plugin>
21
        <artifactId>maven-surefire-plugin</artifactId>
22
        <configuration>
23
          <additionalClasspathElements>
24
            <additionalClasspathElement>${basedir}/**/src/test/java</additionalClasspathElement>
25
          </additionalClasspathElements>
26
          <excludes>
27
            <exclude>**/*Test.java</exclude>
28
          </excludes>
29
        </configuration>
30
      </plugin>
31
    </plugins>
32
  </build>
33
  <dependencies>
34
    <dependency>
35
      <groupId>postgresql</groupId>
36
      <artifactId>postgresql</artifactId>
37
      <scope>test</scope>
38
    </dependency>
39
  </dependencies>
40
  <profiles>
41
    <profile>
42
      <id>enable-tools-itests</id>
43
      <properties>
44
        <test>**/*Test.java</test>
45
      </properties>
46
    </profile>
47
  </profiles>
48
</project>
view file @ e3e995ba14
view file @ e3e995ba14
view file @ e3e995ba14
... ... --- /dev/null
... ... +++ b/ovirt-checkstyle-extension-3.2.0.pom
... ... @@ -0,0 +1,19 @@
1
<?xml version="1.0"?>
2
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
3
  <modelVersion>4.0.0</modelVersion>
4
  <parent>
5
    <groupId>org.ovirt.engine</groupId>
6
    <artifactId>build-tools-root</artifactId>
7
    <version>3.2.0</version>
8
  </parent>
9
  <artifactId>ovirt-checkstyle-extension</artifactId>
10
  <name>oVirt Checkstyle Checks</name>
11
  <description>Extending the built-in validations of checkstyle with oVirt validations.</description>
12
  <dependencies>
13
    <dependency>
14
      <groupId>checkstyle</groupId>
15
      <artifactId>checkstyle</artifactId>
16
      <version>5.0</version>
17
    </dependency>
18
  </dependencies>
19
</project>
view file @ e3e995ba14
... ... --- /dev/null
... ... +++ b/ovirt-engine.spec
... ... @@ -0,0 +1,927 @@
1
# Settings
2
%global product_name Red Hat Enterprise Virtualization Manager
3
%global product_name_short RHEV-M
4
%global user_description oVirt Manager
5
%global install_poms 0
6
7
# Short names for engine directories:
8
%global engine_name ovirt-engine
9
%global engine_etc %{_sysconfdir}/%{engine_name}
10
%global engine_data %{_datadir}/%{engine_name}
11
%global engine_ear %{engine_data}/engine.ear
12
%global engine_java %{_javadir}/%{engine_name}
13
%global engine_pki %{_sysconfdir}/pki/%{engine_name}
14
%global engine_jboss_modules %{engine_data}/modules
15
16
%global engine_state %{_localstatedir}/lib/%{engine_name}
17
%global engine_log %{_localstatedir}/log/%{engine_name}
18
%global engine_run %{_localstatedir}/run/%{engine_name}
19
%global engine_lock %{_localstatedir}/lock/%{engine_name}
20
%global engine_cache %{_localstatedir}/cache/%{engine_name}
21
%global engine_tmp %{_localstatedir}/tmp/%{engine_name}
22
23
%global restapi_war %{engine_ear}/restapi.war
24
%global root_war %{engine_ear}/root.war
25
26
# The name and ids of the engine user and group:
27
%global engine_user ovirt
28
%global engine_group ovirt
29
%global engine_gid 108
30
%global engine_uid 108
31
32
# The name and ids of the VDSM user and group:
33
%global vdsm_description Node Virtualization Manager
34
%global vdsm_user vdsm
35
%global vdsm_group kvm
36
%global vdsm_uid 36
37
%global vdsm_gid 36
38
39
# Macro to create an user:
40
# %1 user name
41
# %2 user id
42
# %3 primary group name
43
# %4 primary group id
44
# %5 description
45
# %6 home directory
46
%global create_user() \
47
getent group %3 >/dev/null || groupadd -r -g %4 %3; \
48
getent passwd %1 >/dev/null || useradd -r -u %2 -g %3 -c %5 -s /sbin/nologin -d %6 %1
49
50
# Macro to create the engine user and group:
51
%global create_engine_user \
52
%create_user %{engine_user} %{engine_uid} %{engine_group} %{engine_gid} "%{user_description}" %{engine_state}
53
54
# Macro to create the VDSM user and group:
55
%global create_vdsm_user \
56
%create_user %{vdsm_user} %{vdsm_uid} %{vdsm_group} %{vdsm_gid} "%{vdsm_description}" /var/lib/vdsm
57
58
%global make_common_opts \\\
59
	-j1 \\\
60
	PACKAGE_NAME=%{name} \\\
61
	RPM_VERSION=%{version} \\\
62
	RPM_RELEASE=%{release} \\\
63
	DISPLAY_VERSION=%{version}-%{release} \\\
64
	ENGINE_NAME=%{engine_name} \\\
65
	LOCALSTATE_DIR=%{_localstatedir} \\\
66
	ENGINE_STATE=%{engine_state} \\\
67
	PREFIX=%{_prefix} \\\
68
	SYSCONF_DIR=%{_sysconfdir} \\\
69
	BIN_DIR=%{_bindir} \\\
70
	PID_DIR=%{_localstatedir}/run \\\
71
	DATAROOT_DIR=%{_datadir} \\\
72
	MAN_DIR=%{_mandir} \\\
73
	PYTHON=%{__python} \\\
74
	PYTHON_DIR=%{python_sitelib} \\\
75
	JAVA_DIR=%{_javadir} \\\
76
	MAVENPOM_DIR=%{_mavenpomdir} \\\
77
	PKG_JAVA_DIR=%{engine_java} \\\
78
	PKG_SYSCONF_DIR=%{engine_etc} \\\
79
	PKG_EAR_DIR=%{engine_ear} \\\
80
	PKG_PKI_DIR=%{engine_pki} \\\
81
	PKG_JBOSS_MODULES=%{engine_jboss_modules} \\\
82
	PKG_CACHE_DIR=%{engine_cache} \\\
83
	PKG_LOCK_DIR=%{engine_lock} \\\
84
	PKG_LOG_DIR=%{engine_log} \\\
85
	PKG_TMP_DIR=%{engine_tmp} \\\
86
	RPM_RELEASE_VERSION=%{release} \\\
87
	MVN=true \\\
88
	%{?BUILD_FLAGS:BUILD_FLAGS="%{BUILD_FLAGS}"} \\\
89
	%{?EXTRA_BUILD_FLAGS:EXTRA_BUILD_FLAGS="%{EXTRA_BUILD_FLAGS}"}
90
91
Name: rhevm
92
Version: 3.2.3
93
Release: 0.43%{?dist}
94
Summary: Management server for Open Virtualization
95
Group: Virtualization/Management
96
License: ASL 2.0
97
URL: http://www.redhat.com/products/virtualization
98
99
# We build RHEV-M in the MEAD environment, and that means that the
100
# sources are the artifacts previously built with maven:
101
102
Source0: root-3.2.0-scm-sources.zip
103
Source1: dbscripts-3.2.0.pom
104
Source2: compat-3.2.0.jar
105
Source3: compat-3.2.0-sources.jar
106
Source4: compat-3.2.0.pom
107
Source5: compat-3.2.0-tests.jar
108
Source6: dal-3.2.0-tests.jar
109
Source7: dal-3.2.0.jar
110
Source8: dal-3.2.0.pom
111
Source9: engine-notifier-3.2.0.pom
112
Source10: manager-tools-3.2.0.pom
113
Source11: engineencryptutils-3.2.0.jar
114
Source12: engineencryptutils-3.2.0-tests.jar
115
Source13: engineencryptutils-3.2.0.pom
116
Source14: searchbackend-3.2.0.jar
117
Source15: searchbackend-3.2.0.pom
118
Source16: searchbackend-3.2.0-tests.jar
119
Source17: searchbackend-3.2.0-sources.jar
120
Source18: common-3.2.0-tests.jar
121
Source19: common-3.2.0.pom
122
Source20: common-3.2.0.jar
123
Source21: common-3.2.0-sources.jar
124
Source22: manager-3.2.0.pom
125
Source23: bll-3.2.0.jar
126
Source24: bll-3.2.0.pom
127
Source25: bll-3.2.0-client.jar
128
Source26: engine-tools-common-3.2.0.pom
129
Source27: engine-tools-common-3.2.0.jar
130
Source28: engine-tools-common-3.2.0-tests.jar
131
Source29: manager-modules-3.2.0.pom
132
Source30: engine-config-3.2.0.pom
133
Source31: engine-config-3.2.0-tests.jar
134
Source32: engine-config-3.2.0.jar
135
Source33: utils-3.2.0-tests.jar
136
Source34: utils-3.2.0.jar
137
Source35: utils-3.2.0.pom
138
Source36: engine-notifier-resources-3.2.0.pom
139
Source37: engine-notifier-resources-3.2.0.zip
140
Source38: root-war-3.2.0.war
141
Source39: root-war-3.2.0.pom
142
Source40: beans-3.2.0.pom
143
Source41: scheduler-3.2.0.pom
144
Source42: scheduler-3.2.0.jar
145
Source43: scheduler-3.2.0-client.jar
146
Source44: engine-notifier-service-3.2.0-tests.jar
147
Source45: engine-notifier-service-3.2.0.jar
148
Source46: engine-notifier-service-3.2.0.pom
149
Source47: vdsbroker-3.2.0-tests.jar
150
Source48: vdsbroker-3.2.0.jar
151
Source49: vdsbroker-3.2.0.pom
152
Source50: backend-3.2.0.pom
153
Source51: build-tools-root-3.2.0.pom
154
Source52: ovirt-checkstyle-extension-3.2.0.jar
155
Source53: ovirt-checkstyle-extension-3.2.0.pom
156
Source54: ovirt-checkstyle-extension-3.2.0-tests.jar
157
Source55: wars-3.2.0.pom
158
Source56: rmw-war-3.2.0.pom
159
Source57: rmw-war-3.2.0.war
160
Source58: frontend-all-3.2.0.pom
161
Source59: genericapi-3.2.0.pom
162
Source60: genericapi-3.2.0.jar
163
Source61: genericapi-3.2.0-client.jar
164
Source62: userportal-3.2.0.war
165
Source63: userportal-3.2.0.pom
166
Source64: webadmin-modules-3.2.0.pom
167
Source65: webadmin-all-3.2.0.pom
168
Source66: gwt-common-3.2.0.jar
169
Source67: gwt-common-3.2.0.pom
170
Source68: gwt-common-3.2.0-tests.jar
171
Source69: uicommonweb-3.2.0-tests.jar
172
Source70: uicommonweb-3.2.0.pom
173
Source71: uicommonweb-3.2.0.jar
174
Source72: uicommonweb-3.2.0-sources.jar
175
Source73: frontend-3.2.0.pom
176
Source74: frontend-3.2.0.jar
177
Source75: frontend-3.2.0-tests.jar
178
Source76: webadmin-3.2.0.pom
179
Source77: webadmin-3.2.0.war
180
Source78: uicompat-3.2.0.pom
181
Source79: uicompat-3.2.0.jar
182
Source80: uicompat-3.2.0-tests.jar
183
Source81: api-3.2.0.pom
184
Source82: gwt-extension-3.2.0-tests.jar
185
Source83: gwt-extension-3.2.0.pom
186
Source84: gwt-extension-3.2.0-sources.jar
187
Source85: gwt-extension-3.2.0.jar
188
Source86: restapi-types-3.2.0.jar
189
Source87: restapi-types-3.2.0-tests.jar
190
Source88: restapi-types-3.2.0.pom
191
Source89: restapi-definition-3.2.0-tests.jar
192
Source90: restapi-definition-3.2.0.jar
193
Source91: restapi-definition-3.2.0.pom
194
Source92: common-parent-3.2.0.pom
195
Source93: interface-3.2.0.pom
196
Source94: restapi-parent-3.2.0.pom
197
Source95: restapi-jaxrs-3.2.0-tests.jar
198
Source96: restapi-jaxrs-3.2.0.jar
199
Source97: restapi-jaxrs-3.2.0.pom
200
Source98: interface-common-jaxrs-3.2.0.pom
201
Source99: interface-common-jaxrs-3.2.0-tests.jar
202
Source100: interface-common-jaxrs-3.2.0.jar
203
Source101: restapi-webapp-3.2.0.war
204
Source102: restapi-webapp-3.2.0.pom
205
Source103: checkstyles-3.2.0-tests.jar
206
Source104: checkstyles-3.2.0.pom
207
Source105: checkstyles-3.2.0.jar
208
Source106: engine-server-ear-3.2.0.ear
209
Source107: engine-server-ear-3.2.0.pom
210
Source108: root-3.2.0.pom
211
212
BuildArch: noarch
213
214
# Build time requirements:
215
BuildRequires: make
216
BuildRequires: unzip
217
BuildRequires: ovirt-host-deploy-java
218
BuildRequires: java-1.7.0-openjdk >= 1:1.7.0
219
220
# Run time requirements (most of these requirements should be
221
# moved to the subpackages):
222
Requires: bind-utils
223
Requires: cracklib-python
224
Requires: httpd
225
Requires: java-1.7.0-openjdk >= 1:1.7.0.9-2.3.3.2
226
Requires: jpackage-utils
227
Requires: mod_ssl
228
Requires: ntp
229
Requires: openssl
230
Requires: policycoreutils-python
231
Requires: postgresql-jdbc
232
Requires: python-configobj
233
Requires: python-cheetah
234
Requires: ovirt-host-deploy-java
235
Requires: xz
236
Requires: yum-plugin-versionlock
237
Requires: rhev-guest-tools-iso >= 3.2
238
Requires: rhevm-spice-client-x86-cab >= 3.2
239
Requires: rhevm-spice-client-x64-cab >= 3.2
240
Requires: rhevm-cli >= 3.2
241
Requires: rhevm-sdk >= 3.2
242
243
# GSS support plugin
244
Requires: redhat-support-plugin-rhev
245
246
# For local database:
247
Requires: postgresql-server >= 8.4.7
248
249
# Require JBoss EAP 6.0.1:
250
Requires: jbossas-standalone >= 0:7.1.3
251
Requires: jbossas-bundles >= 0:7.1.3
252
Requires: jbossas-modules-eap >= 0:7.1.3
253
254
# We can't require exactly the same version and release of the
255
# setup package because it needs to be updated independely as part
256
# of the update process implemented in the engine-upgrade script:
257
Requires: %{name}-setup >= %{version}-%{release}
258
259
# Require the subpackages so that everything is installed when the
260
# main package is installed:
261
Requires: %{name}-backend = %{version}-%{release}
262
Requires: %{name}-restapi = %{version}-%{release}
263
Requires: %{name}-genericapi = %{version}-%{release}
264
Requires: %{name}-userportal = %{version}-%{release}
265
Requires: %{name}-config = %{version}-%{release}
266
Requires: %{name}-notification-service = %{version}-%{release}
267
Requires: %{name}-dbscripts = %{version}-%{release}
268
Requires: %{name}-webadmin-portal = %{version}-%{release}
269
270
# Require other tool packages:
271
Requires: rhevm-iso-uploader >= 3.2
272
Requires: rhevm-image-uploader >= 3.2
273
Requires: rhevm-log-collector >= 3.2
274
275
# Require the documentation package:
276
Requires: %{name}-doc >= 3.2
277
278
# Require virtio-win as vfd resource.
279
Requires: virtio-win >= 1.6.4-1
280
281
%description
282
Red Hat Enteprise Virtualization is a feature-rich server virtualization management
283
system that provides advanced capabilities for managing Red Hat
284
virtualization infrastructure for Servers and Desktops.
285
286
287
%package backend
288
Summary: Engine core of %{product_name_short}
289
Group: Virtualization/Management
290
Requires: %{name} = %{version}-%{release}
291
292
%description backend
293
The backend engine of %{product_name_short}
294
295
296
%package restapi
297
Summary: RESTful API for %{product_name_short}
298
Group: Virtualization/Management
299
Requires: %{name} = %{version}-%{release}
300
301
%description restapi
302
The RESTful API for %{product_name_short}
303
304
305
%package genericapi
306
Summary: Generic API for %{product_name_short}
307
Group: Virtualization/Management
308
Requires: %{name} = %{version}-%{release}
309
310
%description genericapi
311
The generic API for %{product_name_short}
312
313
314
%package setup
315
Summary: Setup and upgrade scripts for %{product_name_short}
316
Group: Virtualization/Management
317
Requires: %{name}
318
Requires: yum
319
Requires: lsof
320
Requires: nfs-utils
321
Requires: python-cheetah
322
323
%description setup
324
Setup and upgrade scripts for %{product_name_short}
325
326
327
%package dbscripts
328
Summary: Database scripts for %{product_name_short}
329
Group: Virtualization/Management
330
Requires: %{name} = %{version}-%{release}
331
332
%description dbscripts
333
Database scripts for %{product_name_short}
334
335
336
%package userportal
337
Summary: User Portal of %{product_name_short}
338
Group: Virtualization/Management
339
Requires: %{name} = %{version}-%{release}
340
341
%description userportal
342
The user portal interface to %{product_name_short}
343
344
345
%package webadmin-portal
346
Summary: Web Admin Portal of %{product_name_short}
347
Group: Virtualization/Management
348
Requires: %{name} = %{version}-%{release}
349
350
%description webadmin-portal
351
The web administration interface to %{product_name_short}
352
353
354
%package tools-common
355
Summary: Common libraries for  %{product_name_short} Tools
356
Group: Virtualization/Management
357
Requires: %{name} = %{version}-%{release}
358
Requires: apache-commons-collections-eap6
359
Requires: jakarta-commons-logging
360
Requires: apache-commons-lang-eap6
361
Requires: apache-commons-codec-eap6
362
Requires: apache-commons-configuration
363
Requires: jakarta-commons-jxpath
364
Requires: log4j-eap6
365
366
%description tools-common
367
The common libraries used by %{product_name_short} Tools
368
369
370
%package notification-service
371
Summary: Notification service for %{product_name_short} Tools
372
Group: Virtualization/Management
373
Requires: %{name} = %{version}-%{release}
374
Requires: %{name}-tools-common = %{version}-%{release}
375
Requires: classpathx-mail
376
377
%description notification-service
378
The notification service used by %{product_name_short}
379
380
381
%package config
382
Summary: Configuration tool for %{product_name_short}
383
Group: Virtualization/Management
384
Requires: %{name}-tools-common = %{version}-%{release}
385
386
%description config
387
The configuration tool for %{product_name_short}
388
389
390
%package setup-plugin-allinone
391
Summary: All-in-one plugin for %{product_name_short}'s setup
392
Group: Virtualization/Management
393
Requires: %{name}-setup
394
Requires: vdsm
395
Requires: ovirt-host-deploy-offline
396
Requires: openssh-server
397
398
%description setup-plugin-allinone
399
All-in-one plugin for %{product_name_short}'s setup
400
401
402
%prep
403
404
# We build RHEV-M in the MEAD environment, and that means that the
405
# sources are archived with root based on repository name
406
407
%setup -q -T -b 0 -n ovirt-engine
408
409
%build
410
411
make %{make_common_opts}
412
413
%install
414
rm -fr "%{buildroot}"
415
416
# Use the makefile to do the normal installation, after that we
417
# will need to replace jar files with links to their actual
418
# locations:
419
make %{make_common_opts} install DESTDIR=%{buildroot} MAVEN_OUTPUT_DIR=%{_sourcedir}
420
421
# Branded version of the configuration directory and utilities
422
ln -s %{engine_name} %{buildroot}%{_sysconfdir}/rhevm
423
for f in setup upgrade check-update cleanup config manage-domains; do
424
    ln -s engine-$f %{buildroot}%{_bindir}/rhevm-$f
425
done
426
427
# Branded man pages
428
echo ".so man8/engine-setup.8" > %{buildroot}%{_mandir}/man8/rhevm-setup.8
429
echo ".so man8/engine-upgrade.8" > %{buildroot}%{_mandir}/man8/rhevm-upgrade.8
430
431
# None systemd service
432
install -dm 755 %{buildroot}%{_sysconfdir}/rc.d/init.d
433
ln -s %{engine_data}/service/engine-service.py %{buildroot}%{_sysconfdir}/rc.d/init.d/ovirt-engine
434
435
install -dm 755 %{buildroot}/%{engine_state}/deployments
436
install -dm 755 %{buildroot}/%{engine_state}/content
437
install -dm 755 %{buildroot}/%{engine_log}/{host-deploy,notifier,engine-manage-domains}
438
install -dm 755 %{buildroot}/%{engine_run}/notifier
439
install -dm 755 %{buildroot}/%{engine_lock}
440
441
# Needed for compatibility if package is different than the directory structure
442
%if "%{name}" != "%{engine_name}"
443
ln -s "%{engine_name}" "%{buildroot}%{engine_java}/../%{name}"
444
%endif
445
446
#
447
# Force TLS/SSL for selected applications.
448
#
449
for war in restapi userportal webadmin; do
450
    sed -i \
451
        's#<transport-guarantee>NONE</transport-guarantee>#<transport-guarantee>CONFIDENTIAL</transport-guarantee>#' \
452
        "%{buildroot}%{engine_ear}/${war}.war/WEB-INF/web.xml"
453
done
454
455
# Register poms
456
%if !%{install_poms}
457
rm -fr "%{buildroot}%{_mavenpomdir}"
458
%else
459
for pom in %{buildroot}%{_mavenpomdir}/*.pom
460
do
461
  pomdir=`dirname "${pom}"`
462
  pom=`basename "${pom}"`
463
  jpppom="JPP.${pom}"
464
  mv "${pomdir}/${pom}" "${pomdir}/${jpppom}"
465
  artifact_id=`echo "${pom}" | sed -e 's/^%{name}-//' -e 's/\.pom//'`
466
  if [ -f "%{buildroot}%{engine_java}/${artifact_id}.jar" ]
467
  then
468
    %add_maven_depmap "${jpppom}" "%{name}/${artifact_id}.jar"
469
  else
470
    %add_maven_depmap "${jpppom}"
471
  fi
472
done
473
%endif
474
475
# Remove the jar files that are not needed:
476
while read lib_path
477
do
478
  rm -rf %{buildroot}%{engine_ear}/lib/${lib_path}*.jar
479
done <<'.'
480
activation
481
antlr
482
aopalliance
483
c3p0
484
ejb3-persistence
485
jaxb-api
486
jaxb-impl
487
jboss-interceptors-api_1.1_spec
488
stax-api
489
xml-apis
490
.
491
492
# Replace jar files in the RESTAPI web application with links to ther
493
# actual locations, first for jar files from this package, as for these
494
# can't use build-classpath:
495
while read jar_name lib_path
496
do
497
  rm -rf %{buildroot}%{restapi_war}/WEB-INF/lib/${lib_path}*.jar
498
  ln -s %{engine_java}/${jar_name}.jar %{buildroot}%{restapi_war}/WEB-INF/lib/${lib_path}.jar
499
done <<'.'
500
interface-common-jaxrs interface-common-jaxrs
501
restapi-definition restapi-definition
502
restapi-jaxrs restapi-jaxrs
503
restapi-types restapi-types
504
.
505
506
# Remove the jar files that are not needed:
507
while read lib_path
508
do
509
  rm -rf %{buildroot}%{restapi_war}/WEB-INF/lib/${lib_path}*.jar
510
done <<'.'
511
commons-codec
512
log4j
513
.
514
515
# Copy the module definitions:
516
install -dm 755 %{buildroot}%{engine_jboss_modules}
517
cp -r deployment/modules/* %{buildroot}%{engine_jboss_modules}
518
find %{buildroot}%{engine_jboss_modules} -type d -exec chmod 755 {} \;
519
find %{buildroot}%{engine_jboss_modules} -type f -exec chmod 644 {} \;
520
521
%preun
522
if [ "$1" -eq 0 ]
523
then
524
    if [ -d "%{engine_pki}" ]; then
525
        #backup whole 'rhevm' dir into the backup dir with current date
526
        dest="%{engine_pki}/../%{engine_name}-backups/%{engine_name}-$(date +"%%Y_%%m_%%d_%%H_%%M_%%S")"
527
        mkdir -p "${dest}"
528
        cp -pR "%{engine_pki}" "${dest}"
529
    fi
530
fi
531
532
533
%postun
534
if [ "$1" -eq 0 ]
535
then
536
    rm -rf "%{engine_cache}"
537
    rm -rf "%{engine_pki}"
538
539
    if [[ -f %{_sysconfdir}/yum/pluginconf.d/versionlock.list ]]
540
    then
541
        sed -i '/%{name}/d' %{_sysconfdir}/yum/pluginconf.d/versionlock.list
542
    fi
543
fi
544
545
546
%pre
547
%create_engine_user
548
549
550
%pre backend
551
%create_engine_user
552
553
554
%pre notification-service
555
%create_engine_user
556
557
558
%pre setup
559
%create_vdsm_user
560
561
562
%files
563
564
# The main package owns most of the directories:
565
%dir %{engine_data}
566
%dir %{engine_data}/ovirt-isos
567
%dir %{engine_data}/db-backups
568
%dir %{engine_data}/scripts
569
%dir %{engine_run}
570
%dir %attr(-, %{engine_user}, %{engine_group}) %{engine_log}
571
%dir %attr(-, %{engine_user}, %{engine_group}) %{engine_lock}
572
573
# Log rotation script:
574
%{engine_data}/scripts/ovirtlogrot.sh
575
%{_sysconfdir}/cron.daily/ovirt-cron
576
577
# Misc configuration files:
578
%{engine_data}/conf
579
580
# Engine configuration files:
581
%dir %attr(-, %{engine_user}, %{engine_group}) %{engine_etc}
582
%config(noreplace) %attr(-, %{engine_user}, %{engine_group}) %{engine_etc}/engine.conf
583
%{engine_data}/conf/version
584
585
# Branded version of the configuration directory:
586
%{_sysconfdir}/rhevm
587
588
# Files needed by the service:
589
%config(noreplace) %{_sysconfdir}/security/limits.d/10-ovirt-engine.conf
590
%config(noreplace) %{_sysconfdir}/sysconfig/%{engine_name}
591
%dir %{_sysconfdir}/sysconfig/%{engine_name}.d
592
%{engine_data}/service
593
%{_bindir}/engine-service
594
%{_initddir}/ovirt-engine
595
596
# Jar files used by all the components:
597
%dir %{engine_java}
598
%{engine_java}/common.jar
599
%{engine_java}/compat.jar
600
%{engine_java}/utils.jar
601
602
# Needed for compatibility if package is different than the directory structure
603
%if "%{name}" != "%{engine_name}"
604
%{_javadir}/%{name}
605
%endif
606
607
# POM files:
608
%if %{install_poms}
609
%{_mavendepmapfragdir}/%{name}
610
%{_mavenpomdir}/JPP.%{name}-root.pom
611
%{_mavenpomdir}/JPP.%{name}-common.pom
612
%{_mavenpomdir}/JPP.%{name}-compat.pom
613
%{_mavenpomdir}/JPP.%{name}-utils.pom
614
%endif
615
616
# Documentation:
617
%doc LICENSE
618
619
620
%files backend
621
622
# Directory for binaries and scripts:
623
%dir %{engine_data}/bin
624
# Directory for ui plugins
625
%dir %{engine_data}/ui-plugins
626
627
# Jar files:
628
%{engine_java}/bll.jar
629
%{engine_java}/dal.jar
630
%{engine_java}/engine-config.jar
631
%{engine_java}/engineencryptutils.jar
632
%{engine_java}/scheduler.jar
633
%{engine_java}/searchbackend.jar
634
%{engine_java}/vdsbroker.jar
635
636
# POM files:
637
%if %{install_poms}
638
%{_mavenpomdir}/JPP.%{name}-backend.pom
639
%{_mavenpomdir}/JPP.%{name}-manager.pom
640
%{_mavenpomdir}/JPP.%{name}-manager-modules.pom
641
%{_mavenpomdir}/JPP.%{name}-manager-tools.pom
642
%{_mavenpomdir}/JPP.%{name}-bll.pom
643
%{_mavenpomdir}/JPP.%{name}-dal.pom
644
%{_mavenpomdir}/JPP.%{name}-engine-config.pom
645
%{_mavenpomdir}/JPP.%{name}-engine-notifier-resources.pom
646
%{_mavenpomdir}/JPP.%{name}-engine-notifier-service.pom
647
%{_mavenpomdir}/JPP.%{name}-engineencryptutils.pom
648
%{_mavenpomdir}/JPP.%{name}-scheduler.pom
649
%{_mavenpomdir}/JPP.%{name}-searchbackend.pom
650
%{_mavenpomdir}/JPP.%{name}-vdsbroker.pom
651
%endif
652
653
# The state directory is owned by the backend, but not recursively, as
654
# some of its subdirectories are owned by other packages (backups, for
655
# example, has to be owned by the setup package):
656
%dir %attr(-, %{engine_user}, %{engine_group}) %{engine_state}
657
658
# Directories for the deployments and content files need to be owned by
659
# the engine user because the application server needs to write to them:
660
%attr(-, %{engine_user}, %{engine_group}) %{engine_state}/content
661
%attr(-, %{engine_user}, %{engine_group}) %{engine_state}/deployments
662
663
# Host deploy logs
664
%attr(-, %{engine_user}, %{engine_group}) %{engine_log}/host-deploy
665
666
# The backend owns the directory of the ear and most of its contents,
667
# but not all, as most of the web applications are owned by other
668
# subpackages:
669
%dir %{engine_ear}
670
%{engine_ear}/META-INF
671
%{engine_ear}/lib
672
%{engine_ear}/engine-bll.jar
673
%{engine_ear}/engine-scheduler.jar
674
%{engine_ear}/ovirtengineweb.war
675
676
# Root web application:
677
%{root_war}
678
679
# Sysprep files:
680
%config(noreplace) %{engine_etc}/sysprep
681
682
# PKI directories are owned by the engine user because it needs to
683
# create files inside:
684
%dir %attr(-, %{engine_user}, %{engine_group}) %{engine_pki}
685
%dir %attr(-, %{engine_user}, %{engine_group}) %{engine_pki}/certs
686
%dir %attr(-, %{engine_user}, %{engine_group}) %{engine_pki}/keys
687
%dir %attr(-, %{engine_user}, %{engine_group}) %{engine_pki}/private
688
%dir %attr(-, %{engine_user}, %{engine_group}) %{engine_pki}/requests
689
690
# PKI scripts:
691
%{engine_pki}/*.sh
692
693
# PKI configuration files:
694
%config(noreplace) %{engine_pki}/openssl.conf
695
%config(noreplace) %{engine_pki}/cacert.template
696
%config(noreplace) %{engine_pki}/cert.template
697
698
# The certificate database files:
699
%config(noreplace) %attr(-, %{engine_user}, %{engine_group}) %{engine_pki}/database.txt
700
%config(noreplace) %attr(-, %{engine_user}, %{engine_group}) %{engine_pki}/serial.txt
701
702
# Modules:
703
%{engine_jboss_modules}
704
705
%files setup
706
707
# Links to the main programs:
708
%{_bindir}/engine-setup
709
%{_bindir}/engine-upgrade
710
%{_bindir}/engine-check-update
711
%{_bindir}/engine-cleanup
712
713
# Branded versions of the links:
714
%{_bindir}/rhevm-setup
715
%{_bindir}/rhevm-upgrade
716
%{_bindir}/rhevm-check-update
717
%{_bindir}/rhevm-cleanup
718
719
# Python scripts:
720
%{engine_data}/scripts/basedefs.py*
721
%{engine_data}/scripts/engine_validators.py*
722
%{engine_data}/scripts/engine_firewalld.py*
723
%{engine_data}/scripts/setup_params.py*
724
%{engine_data}/scripts/setup_sequences.py*
725
%{engine_data}/scripts/setup_controller.py*
726
%{engine_data}/scripts/common_utils.py*
727
%{engine_data}/scripts/miniyum.py*
728
%{engine_data}/scripts/output_messages.py*
729
%{engine_data}/scripts/nfsutils.py*
730
%{engine_data}/scripts/engine-setup.py*
731
%{engine_data}/scripts/engine-cleanup.py*
732
%{engine_data}/scripts/engine-upgrade.py*
733
%{engine_data}/scripts/post_upgrade.py*
734
%{engine_data}/scripts/async_tasks_map.py*
735
736
# DB-related tools
737
%{engine_data}/scripts/dbutils
738
739
# Firewalld configuration
740
%config(noreplace) %{_sysconfdir}/firewalld/services/ovirt.xml
741
742
# Man pages
743
%{_mandir}/man8/engine-setup.*
744
%{_mandir}/man8/engine-upgrade.*
745
%{_mandir}/man8/rhevm-setup.*
746
%{_mandir}/man8/rhevm-upgrade.*
747
748
# Plugins directory: