OSDN Git Service

first commit
[japandigitalstudio/build-jds.git] / console.libs.pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <project
3         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
4         xmlns="http://maven.apache.org/POM/4.0.0"
5         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
6         <modelVersion>4.0.0</modelVersion>
7         <parent>
8                 <groupId>org.bonitasoft.studio.bundles</groupId>
9                 <artifactId>plugins</artifactId>
10                 <version>7.13.0</version>
11         </parent>
12         <groupId>org.bonitasoft.studio.bundles.plugins</groupId>
13         <artifactId>org.bonitasoft.studio.console.libs</artifactId>
14         <packaging>eclipse-plugin</packaging>
15
16         <properties>
17                 <tomcat.bundle.dir>${basedir}/tomcat</tomcat.bundle.dir>
18                 <lib.dir>lib</lib.dir>
19     </properties>
20
21         <dependencies>
22                 <dependency>
23                         <groupId>org.bonitasoft.engine</groupId>
24                         <artifactId>bonita-client</artifactId>
25                         <version>${engine.version}</version>
26                         <exclusions>
27                                 <exclusion>
28                                         <groupId>javax.xml.bind</groupId>
29                                         <artifactId>jsr173_api</artifactId>
30                                 </exclusion>
31                         </exclusions>
32                 </dependency>
33                 <dependency>
34                         <groupId>org.bonitasoft.engine</groupId>
35                         <artifactId>bonita-common</artifactId>
36                         <version>${engine.version}</version>
37                         <exclusions>
38                                 <exclusion>
39                                         <groupId>javax.xml.bind</groupId>
40                                         <artifactId>jsr173_api</artifactId>
41                                 </exclusion>
42                         </exclusions>
43                 </dependency>
44         </dependencies>
45         <build>
46                 <plugins>
47                         <plugin>
48                                 <groupId>org.codehaus.mojo</groupId>
49                                 <artifactId>build-helper-maven-plugin</artifactId>
50                                 <executions>
51                                         <execution>
52                                                 <id>parse-version</id>
53                                                 <goals>
54                                                         <goal>parse-version</goal>
55                                                 </goals>
56                                         </execution>
57                                         <execution>
58                                                 <id>regex-property</id>
59                                                 <goals>
60                                                         <goal>regex-property</goal>
61                                                 </goals>
62                                                 <configuration>
63                                                         <name>osgiVersion</name>
64                                                         <value>${parsedVersion.osgiVersion}</value>
65                                                         <regex>.SNAPSHOT</regex>
66                                                         <replacement>.qualifier</replacement>
67                                                         <failIfNoMatch>false</failIfNoMatch>
68                                                 </configuration>
69                                         </execution>
70                                 </executions>
71                         </plugin>
72                         <plugin>
73                                 <groupId>org.apache.maven.plugins</groupId>
74                                 <artifactId>maven-dependency-plugin</artifactId>
75                                 <executions>
76                                         <!--<execution>
77                                                 <id>Retrieve BOS Tomcat Bundle</id>
78                                                 <phase>generate-resources</phase>
79                                                 <goals>
80                                                         <goal>unpack</goal>
81                                                 </goals>
82                                                 <configuration>
83                                                         <artifactItems>
84                                                                 <artifactItem>
85                                                                         <groupId>org.bonitasoft.distrib</groupId>
86                                                                         <artifactId>bundle-tomcat</artifactId>
87                                                                         <version>${bundle.version}</version>
88                                                                         <type>zip</type>
89                                                                 </artifactItem>
90                                                         </artifactItems>
91                                                         <outputDirectory>${tomcat.bundle.dir}</outputDirectory>
92                                                         <overWriteReleases>true</overWriteReleases>
93                                                         <overWriteSnapshots>true</overWriteSnapshots>
94                                                 </configuration>
95                                         </execution>
96                                         <execution>
97                                                 <id>Retrieve Studio specific war</id>
98                                                 <phase>generate-resources</phase>
99                                                 <goals>
100                                                         <goal>copy</goal>
101                                                 </goals>
102                                                 <configuration>
103                                                         <artifactItems>
104                                                                 <artifactItem>
105                                                                         <groupId>org.bonitasoft.web.tooling</groupId>
106                                                                         <artifactId>studio-watchdog</artifactId>
107                                                                         <version>${project.version}</version>
108                                                                         <type>war</type>
109                                                                 </artifactItem>
110                                                         </artifactItems>
111                                                         <outputDirectory>${tomcat.bundle.dir}/server/webapps</outputDirectory>
112                                                         <overWriteReleases>true</overWriteReleases>
113                                                         <overWriteSnapshots>true</overWriteSnapshots>
114                                                 </configuration>
115                                         </execution>-->
116                                         <execution>
117                                                 <id>Retrieve bonita-client dependencies</id>
118                                                 <phase>process-sources</phase>
119                                                 <goals>
120                                                         <goal>copy-dependencies</goal>
121                                                 </goals>
122                                                 <configuration>
123                                                         <stripVersion>true</stripVersion>
124                                                         <stripClassifier>true</stripClassifier>
125                                                         <outputDirectory>${lib.dir}</outputDirectory>
126                                                         <overWriteReleases>true</overWriteReleases>
127                                                         <overWriteSnapshots>true</overWriteSnapshots>
128                                                         <overWriteIfNewer>true</overWriteIfNewer>
129                                                         <includeScope>runtime</includeScope>
130                                                 </configuration>
131                                         </execution>
132                                 </executions>
133                         </plugin>
134                         <plugin>
135                                 <artifactId>maven-clean-plugin</artifactId>
136                                 <configuration>
137                                         <filesets>
138                                                 <fileset>
139                                                         <directory>${lib.dir}</directory>
140                                                 </fileset>
141                                                 <!--<fileset>
142                                                         <directory>${tomcat.bundle.dir}</directory>
143                                                 </fileset>-->
144                                         </filesets>
145                                 </configuration>
146                         </plugin>
147                         <!--                    <plugin>
148                                 <groupId>org.apache.maven.plugins</groupId>
149                                 <artifactId>maven-antrun-plugin</artifactId>
150                                 <executions>
151                                         <execution>
152                                                 <id>Resources generation add-on</id>
153                                                 <phase>generate-resources</phase>
154                                                 <configuration>
155                                                         <target>
156                                                                 
157                                                                 <move todir="${tomcat.bundle.dir}">
158                                                                         <fileset
159                                                                                 dir="${tomcat.bundle.dir}/BonitaCommunity-${branding.version}/" />
160                                                                 </move>
161                                                                 <concat append="true"
162                                                                         destfile="${tomcat.bundle.dir}/server/conf/catalina.properties">java.awt.headless=true</concat>
163                                                                 <delete
164                                                                         dir="${tomcat.bundle.dir}/server/webapps/examples" />
165                                                         </target>
166                                                 </configuration>
167                                                 <goals>
168                                                         <goal>run</goal>
169                                                 </goals>
170                                         </execution>
171                                 </executions>
172                         </plugin>-->
173                         <plugin>
174                                 <groupId>org.apache.felix</groupId>
175                                 <artifactId>maven-bundle-plugin</artifactId>
176                                 <extensions>true</extensions>
177                                 <configuration>
178                                         <manifestLocation>META-INF/</manifestLocation>
179                                         <supportedProjectTypes>
180                                                 <supportedProjectType>eclipse-plugin</supportedProjectType>
181                                         </supportedProjectTypes>
182                                         <instructions>
183                                                 <_removeheaders>
184                                                         Bnd-LastModified,
185                                                         Build-Jdk,
186                                                         Built-By,
187                                                         Tool,
188                                                         Include-Resource,
189                                                         Private-Package,
190                                                         Embedded-Artifacts,
191                                                         Embed-Transitive,
192                                                         Embed-StripVersion,
193                                                         Embed-Directory,
194                                                         Embed-Dependency,
195                                                         Created-By
196                                                 </_removeheaders>
197                                                 <_exportcontents>
198                                                         !org.bonitasoft.engine.*.impl.db;version="0.0.0",
199                                                         !org.bonitasoft.engine.*.impl.db.archive;version="0.0.0",
200                                                         org.bonitasoft.engine.*;version="0.0.0",
201                                                         javax.xml.bind.*;version="2.2.0"
202                                                 </_exportcontents>
203                                                 <_nouses>true</_nouses>
204                                                 <_noee>true</_noee>
205                                                 <Bundle-SymbolicName>${project.artifactId};singleton:=true</Bundle-SymbolicName>
206                                                 <Automatic-Module-Name>${project.artifactId}</Automatic-Module-Name>
207                                                 <Bundle-Name>Bonita Community Tomcat Bundle</Bundle-Name>
208                                                 <Bundle-Vendor>Bonitasoft S.A.</Bundle-Vendor>
209                                                 <Bundle-Version>${osgiVersion}</Bundle-Version>
210                                                 <Bundle-RequiredExecutionEnvironment>JavaSE-11</Bundle-RequiredExecutionEnvironment>
211                                                 <Embed-Transitive>true</Embed-Transitive>
212                                                 <Embed-Directory>${lib.dir}</Embed-Directory>
213                                                 <Embed-StripVersion>true</Embed-StripVersion>
214                                                 <Eclipse-BundleShape>dir</Eclipse-BundleShape>
215                                                 <Include-Resource>
216                                                         {maven-resources}, {maven-dependencies}<!--,
217                                                         tomcat=tomcat-->
218                                                 </Include-Resource>
219                                                 <Bundle-ClassPath>.,{maven-dependencies}</Bundle-ClassPath>
220                                                 <Import-Package>!*</Import-Package>
221                                                 <Embed-Dependency>*;scope=compile|runtime</Embed-Dependency>
222                                                 <Require-Bundle>javax.activation;bundle-version="1.1.0"</Require-Bundle>
223                                         </instructions>
224                                         <niceManifest>true</niceManifest>
225                                 </configuration>
226                                 <executions>
227                                         <execution>
228                                                 <id>Generate bundle MANIFEST.MF</id>
229                                                 <phase>package</phase>
230                                                 <goals>
231                                                         <goal>manifest</goal>
232                                                 </goals>
233                                         </execution>
234                                 </executions>
235                         </plugin>
236                         <!--<plugin>
237                                 <groupId>org.codehaus.gmaven</groupId>
238                                 <artifactId>groovy-maven-plugin</artifactId>
239                                 <executions>
240                                         <execution>
241                                                 <id>configure-bundle</id>
242                                                 <phase>prepare-package</phase>
243                                                 <goals>
244                                                         <goal>execute</goal>
245                                                 </goals>
246                                                 <configuration>
247                                                         <source>${project.basedir}/src/script/configure-bundle.groovy</source>
248                                                 </configuration>
249                                         </execution>
250                                 </executions>
251                         </plugin>-->
252                 </plugins>
253         </build>
254
255 </project>