Revision 0c737257
Added by Cherian Mathew over 8 years ago
eu.etaxonomy.taxeditor.feature/pom.xml | ||
---|---|---|
1 | 1 |
<?xml version="1.0" encoding="UTF-8"?> |
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 |
<parent> |
|
4 |
<groupId>eu.etaxonomy</groupId> |
|
5 |
<artifactId>taxeditor-parent</artifactId> |
|
6 |
<version>3.5.0-SNAPSHOT</version> |
|
7 |
</parent> |
|
8 |
<modelVersion>4.0.0</modelVersion> |
|
9 |
<artifactId>eu.etaxonomy.taxeditor.feature</artifactId> |
|
10 |
<packaging>eclipse-feature</packaging> |
|
11 |
|
|
12 |
<name>Taxonomic Editor Feature</name> |
|
13 |
<description/> |
|
14 |
<url>http://dev.e-taxonomy.eu/trac/wiki/TaxonomicEditorEditorBundle</url> |
|
2 |
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
|
3 |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
|
4 |
<parent> |
|
5 |
<groupId>eu.etaxonomy</groupId> |
|
6 |
<artifactId>taxeditor-parent</artifactId> |
|
7 |
<version>3.5.0-SNAPSHOT</version> |
|
8 |
</parent> |
|
9 |
<modelVersion>4.0.0</modelVersion> |
|
10 |
<artifactId>eu.etaxonomy.taxeditor.feature</artifactId> |
|
11 |
<packaging>eclipse-feature</packaging> |
|
12 |
|
|
13 |
<name>Taxonomic Editor Feature</name> |
|
14 |
<description /> |
|
15 |
<url>http://dev.e-taxonomy.eu/trac/wiki/TaxonomicEditorEditorBundle</url> |
|
16 |
<build> |
|
17 |
<plugins> |
|
18 |
<plugin> |
|
19 |
<groupId>org.apache.maven.plugins</groupId> |
|
20 |
<artifactId>maven-antrun-plugin</artifactId> |
|
21 |
<version>1.8</version> |
|
22 |
<executions> |
|
23 |
<execution> |
|
24 |
<id>setPropertiesWithoutJRE</id> |
|
25 |
<phase>validate</phase> |
|
26 |
<configuration> |
|
27 |
<target> |
|
28 |
<copy overwrite="true" force="true" |
|
29 |
file="${basedir}/build.properties.wo.jre" tofile="${basedir}/build.properties" /> |
|
30 |
</target> |
|
31 |
</configuration> |
|
32 |
<goals> |
|
33 |
<goal>run</goal> |
|
34 |
</goals> |
|
35 |
</execution> |
|
36 |
</executions> |
|
37 |
</plugin> |
|
38 |
</plugins> |
|
39 |
</build> |
|
40 |
<profiles> |
|
41 |
<profile> |
|
42 |
<!-- Installs the jre bundle, which is done by 1) setting up symbolic |
|
43 |
links in the feature to the jre directories as set in the ~/.m2/settings.xml |
|
44 |
2) copying a properties file which contains the jre settings --> |
|
45 |
<id>bundleJre</id> |
|
46 |
<build> |
|
47 |
<plugins> |
|
48 |
<plugin> |
|
49 |
<groupId>org.apache.maven.plugins</groupId> |
|
50 |
<artifactId>maven-antrun-plugin</artifactId> |
|
51 |
<version>1.8</version> |
|
52 |
<executions> |
|
53 |
<execution> |
|
54 |
<id>linkJREDirs</id> |
|
55 |
<phase>validate</phase> |
|
56 |
<configuration> |
|
57 |
<target> |
|
58 |
<echo>Recreating links to various OS JREs</echo> |
|
59 |
<symlink action="delete" link="${basedir}/${linux.64.dir}" /> |
|
60 |
<symlink link="${basedir}/${linux.64.dir}" |
|
61 |
resource="${jre.root.dir}/${linux.64.dir}" /> |
|
62 |
<symlink action="delete" link="${basedir}/${linux.32.dir}" /> |
|
63 |
<symlink link="${basedir}/${linux.32.dir}" |
|
64 |
resource="${jre.root.dir}/${linux.32.dir}" /> |
|
65 |
<symlink action="delete" link="${basedir}/${win.64.dir}" /> |
|
66 |
<symlink link="${basedir}/${win.64.dir}" |
|
67 |
resource="${jre.root.dir}/${win.64.dir}" /> |
|
68 |
<symlink action="delete" link="${basedir}/${win.32.dir}" /> |
|
69 |
<symlink link="${basedir}/${win.32.dir}" |
|
70 |
resource="${jre.root.dir}/${win.32.dir}" /> |
|
71 |
<symlink action="delete" link="${basedir}/${mac.64.dir}" /> |
|
72 |
<symlink link="${basedir}/${mac.64.dir}" |
|
73 |
resource="${jre.root.dir}/${mac.64.dir}" /> |
|
74 |
</target> |
|
75 |
</configuration> |
|
76 |
<goals> |
|
77 |
<goal>run</goal> |
|
78 |
</goals> |
|
79 |
</execution> |
|
80 |
<execution> |
|
81 |
<id>deleteJRESymLinks</id> |
|
82 |
<phase>clean</phase> |
|
83 |
<configuration> |
|
84 |
<target> |
|
85 |
<echo>Deleting sym links to various OS JREs</echo> |
|
86 |
<symlink action="delete" link="${basedir}/${linux.64.dir}" /> |
|
87 |
<symlink action="delete" link="${basedir}/${linux.32.dir}" /> |
|
88 |
<symlink action="delete" link="${basedir}/${win.64.dir}" /> |
|
89 |
<symlink action="delete" link="${basedir}/${win.32.dir}" /> |
|
90 |
<symlink action="delete" link="${basedir}/${mac.64.dir}" /> |
|
91 |
</target> |
|
92 |
</configuration> |
|
93 |
<goals> |
|
94 |
<goal>run</goal> |
|
95 |
</goals> |
|
96 |
</execution> |
|
97 |
<execution> |
|
98 |
<id>setPropertiesWithJRE</id> |
|
99 |
<phase>validate</phase> |
|
100 |
<configuration> |
|
101 |
<target> |
|
102 |
<copy overwrite="true" force="true" |
|
103 |
file="${basedir}/build.properties.with.jre" |
|
104 |
tofile="${basedir}/build.properties" /> |
|
105 |
</target> |
|
106 |
</configuration> |
|
107 |
<goals> |
|
108 |
<goal>run</goal> |
|
109 |
</goals> |
|
110 |
</execution> |
|
111 |
</executions> |
|
112 |
</plugin> |
|
113 |
</plugins> |
|
114 |
</build> |
|
115 |
</profile> |
|
116 |
</profiles> |
|
15 | 117 |
</project> |
Also available in: Unified diff
eu.etaxonomy.taxeditor/pom.xml, eu.etaxonomy.taxeditor.product.with.jre/wo.jre : configuration for product bundled with jre
eu.etaxonomy.taxeditor.feature/pom.xml, build.properties.with.jre/wo.jre : configuration for jre dir symlinks and root dir properties
removing jre dir since they will be created dynamically
pom.xml : added check to make sure that the jre bundle can only be done on linux