Align with CDS 1.16 api/schema changes
[federation.git] / gateway / toscalab.xml
1 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2   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
5   <groupId>org.acumos</groupId>
6   <artifactId>dcae-toscalab</artifactId>
7   <version>1.0.0-SNAPSHOT</version>
8   <packaging>pom</packaging>
9
10   <name>dcae-toscalab</name>
11
12         <profiles>
13                 <profile>
14                         <id>clone</id>
15                         <activation>
16         <file>
17                                         <!-- <missing>${project.build.directory}/TOSCA_Lab</missing> -->
18                                         <missing>target/TOSCA_Lab</missing>
19                 <!-- <missing>target/pyyaml</missing> -->
20                                 </file>
21       </activation>
22                 <build>
23                                 <plugins>
24                                         <plugin>
25                                 <groupId>org.codehaus.mojo</groupId>
26                                   <artifactId>exec-maven-plugin</artifactId>
27                                 <version>1.6.0</version>
28
29                                                 <executions>
30                                                         <execution>
31                                                                 <id>toscalab-clone</id>
32                                                                 <goals>
33                                                                         <goal>exec</goal>
34                                                                 </goals>
35                                                                 <phase>generate-resources</phase>
36
37                                                                 <configuration>
38                                                                         <executable>git</executable>
39                                                                         <arguments>
40                                                                                 <argument>clone</argument>
41                                                                                 <argument>-b</argument>
42                                                                                 <!-- <argument>master</argument> -->
43                                                                                 <argument>acumos</argument>
44                                                                                 <argument>--single-branch</argument>
45                                                                                 <argument>https://gitlab.research.att.com/shushi/TOSCA_Lab</argument>
46                                                                                 <argument>${project.build.directory}/TOSCA_Lab</argument>
47                                                                         </arguments>
48                                                                 </configuration>
49                                                         </execution>
50
51                                                         <execution>
52                                                                 <id>pyyaml-clone</id>
53                                                                 <goals>
54                                                                         <goal>exec</goal>
55                                                                 </goals>
56                                                                 <phase>generate-resources</phase>
57         
58                                                                 <configuration>
59                                                                         <executable>git</executable>
60                                                                         <arguments>
61                                                                                 <argument>clone</argument>
62                                                                                 <argument>-b</argument>
63                                                                                 <argument>master</argument>
64                                                                                 <argument>https://github.com/yaml/pyyaml.git</argument>
65                                                                                 <argument>${project.build.directory}/pyyaml</argument>
66                                                                         </arguments>
67                                                                 </configuration>
68                                                         </execution>
69
70                                                         <execution>
71                                                                 <id>setuptools-clone</id>
72                                                                 <goals>
73                                                                         <goal>exec</goal>
74                                                                 </goals>
75                                                                 <phase>generate-resources</phase>
76         
77                                                                 <configuration>
78                                                                         <executable>git</executable>
79                                                                         <arguments>
80                                                                                 <argument>clone</argument>
81                                                                                 <argument>-b</argument>
82                                                                                 <argument>master</argument>
83                                                                                 <argument>https://github.com/pypa/setuptools.git</argument>
84                                                                                 <argument>${project.build.directory}/setuptools</argument>
85                                                                         </arguments>
86                                                                 </configuration>
87                                                         </execution>
88         
89
90                                                 </executions>
91                                         </plugin>
92
93                                 </plugins>
94                         </build>
95                 </profile>
96
97                 <profile>
98                         <id>pull</id>
99                         <activation>
100         <file><exists>target/TOSCA_lab</exists></file>
101         <!-- <file><exists>${project.build.directory}/TOSCA_lab</exists></file> 
102 [WARNING] 'profiles.profile[pull].activation.file.exists' Failed to interpolate file location ${project.build.directory}/TOSCA_lab for profile pull: ${project.*} expressions are not supported during profile activation
103 -->
104         <!-- <file><exists>target/pyyaml</exists></file> -->
105       </activation>
106                 <build>
107                                 <plugins>
108                                         <plugin>
109                                 <groupId>org.codehaus.mojo</groupId>
110                                   <artifactId>exec-maven-plugin</artifactId>
111                                 <version>1.6.0</version>
112
113                                                 <executions>
114                                                         <execution>
115                                                                 <id>toscalab-pull</id>
116                                                                 <goals>
117                                                                         <goal>exec</goal>
118                                                                 </goals>
119                                                                 <phase>generate-resources</phase>
120
121                                                                 <configuration>
122                                                                         <executable>git</executable>
123                                                                         <workingDirectory>${project.build.directory}/TOSCA_Lab</workingDirectory>
124                                                                         <arguments>
125                                                                                 <argument>pull</argument>
126                                                                         </arguments>
127                                                                 </configuration>
128                                                         </execution>
129
130                                                         <execution>
131                                                                 <id>pyyaml-pull</id>
132                                                                 <goals>
133                                                                         <goal>exec</goal>
134                                                                 </goals>
135                                                                 <phase>generate-resources</phase>
136         
137                                                                 <configuration>
138                                                                         <executable>git</executable>
139                                                                         <workingDirectory>${project.build.directory}/pyyaml</workingDirectory>
140                                                                         <arguments>
141                                                                                 <argument>pull</argument>
142                                                                         </arguments>
143                                                                 </configuration>
144                                                         </execution>
145                                                 </executions>
146                                         </plugin>
147
148                                 </plugins>
149                         </build>
150                 </profile>
151
152         </profiles>
153         
154         <build>
155                 <plugins>
156
157                         <plugin>
158                                 <artifactId>maven-resources-plugin</artifactId>
159                                 <version>3.0.2</version>
160                                 <executions>
161                                         <execution>
162             <id>copy-yaml</id>
163             <phase>package</phase>
164             <goals>
165               <goal>copy-resources</goal>
166             </goals>
167             <configuration>
168               <outputDirectory>${project.build.directory}/TOSCA_Lab/yaml</outputDirectory>
169               <resources>          
170                 <resource>
171                   <directory>${project.build.directory}/pyyaml/lib/yaml</directory>
172                   <filtering>true</filtering>
173                 </resource>
174               </resources>              
175             </configuration>            
176           </execution>
177         </executions>
178       </plugin>
179
180                         <plugin>
181                                 <artifactId>maven-resources-plugin</artifactId>
182                                 <version>3.0.2</version>
183                                 <executions>
184                                         <execution>
185             <id>copy-pkg-resources</id>
186             <phase>package</phase>
187             <goals>
188               <goal>copy-resources</goal>
189             </goals>
190             <configuration>
191               <outputDirectory>${project.build.directory}/TOSCA_Lab/pkg_resources</outputDirectory>
192               <resources>          
193                 <resource>
194                   <directory>${project.build.directory}/setuptools/pkg_resources</directory>
195                   <filtering>true</filtering>
196                 </resource>
197               </resources>              
198             </configuration>            
199           </execution>
200         </executions>
201       </plugin>
202
203                         <plugin>
204         <groupId>org.apache.maven.plugins</groupId>
205         <artifactId>maven-jar-plugin</artifactId>
206         <version>3.0.2</version>
207         <executions>
208           <execution>
209                                                 <id>package-toscalab</id>
210             <phase>package</phase>
211             <goals>
212               <goal>jar</goal>
213             </goals>
214             <configuration>
215               <classifier>toscalab</classifier>
216               <classesDirectory>${project.build.directory}/TOSCA_Lab</classesDirectory>
217               <!-- <finalName>toscalab.jar</finalName> -->
218                         <includes>
219                         <include>**/*.py</include>
220                         <include>**/meta_model/**/*</include>
221                         <include>**/tosca_model/**/*</include>
222                         <include>**/shared_model/**/*</include>
223                         </includes>
224             </configuration>
225           </execution>
226         </executions>
227       </plugin>
228
229                 </plugins>      
230         </build>
231
232 </project>
233