Project

General

Profile

Download (6.69 KB) Statistics
| Branch: | Tag: | Revision:
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
  <parent>
4
    <groupId>eu.etaxonomy</groupId>
5
    <artifactId>taxeditor-parent</artifactId>
6
    <version>3.5.0-SNAPSHOT</version>
7
  </parent>
8

    
9
  <modelVersion>4.0.0</modelVersion>
10
  <artifactId>eu.etaxonomy.taxeditor</artifactId>
11
  <packaging>eclipse-repository</packaging>
12

    
13
  <name>EDIT Taxonomic Editor Product</name>
14
  <description>The EDIT Taxonomic Desktop Editor</description>
15
  <url>http://wp5.e-taxonomy.eu/taxeditor</url>
16
  <properties>
17
    <jre.vm>-vm jre/bin</jre.vm>
18
    <product.id>eu.etaxonomy.taxeditor.product</product.id>
19
  </properties>
20
  <build>
21
    <plugins>
22
      <plugin>
23
        <groupId>org.eclipse.tycho</groupId>
24
        <artifactId>tycho-p2-director-plugin</artifactId>
25
        <version>${tycho.version}</version>
26
        <executions>
27
          <execution>
28
            <id>materialize-products</id>
29
            <goals>
30
              <goal>materialize-products</goal>
31
            </goals>
32
          </execution>
33
          <execution>
34
            <id>archive-products</id>
35
            <goals>
36
              <goal>archive-products</goal>
37
            </goals>
38
          </execution>
39
        </executions>
40
        <configuration>
41
          <products>
42
            <product>
43
              <id>${product.id}</id>
44
              <rootFolder>EDIT Taxonomic Editor</rootFolder>
45
            </product>
46
          </products>
47
        </configuration>
48
      </plugin>
49
      <plugin>
50
        <groupId>org.apache.maven.plugins</groupId>
51
        <artifactId>maven-antrun-plugin</artifactId>
52
        <version>1.8</version>
53
        <executions>
54
          <execution>
55
            <id>setProductWithoutJRE</id>
56
            <phase>validate</phase>
57
            <configuration>
58
              <target>
59
                <copy overwrite="true" force="true"
60
                  file="${basedir}/eu.etaxonomy.taxeditor.product.wo.jre"
61
                  tofile="${basedir}/eu.etaxonomy.taxeditor.product" />
62
              </target>
63
            </configuration>
64
            <goals>
65
              <goal>run</goal>
66
            </goals>
67
          </execution>
68
        </executions>
69
      </plugin>
70
    </plugins>
71
  </build>
72
  <profiles>
73
    <profile>
74
      <id>signJars</id>
75
      <build>
76
        <plugins>
77
          <plugin>
78
            <groupId>org.apache.maven.plugins</groupId>
79
            <artifactId>maven-jarsigner-plugin</artifactId>
80
            <version>1.3.2</version>
81
            <configuration>
82
              <alias>editor</alias>
83
              <removeExistingSignatures>true</removeExistingSignatures>
84
              <!-- keystore properties should be set in the ~/.m2/settings.xml -->
85
              <keystore>${keystore.path}</keystore>
86
              <storepass>${keystore.store.password}</storepass>
87
              <keypass>${keystore.key.password}</keypass>
88

    
89
              <archiveDirectory>${project.build.directory}/repository</archiveDirectory>
90
              <!-- Following two settings are to ensure that the product 
91
                .zip files are not signed -->
92
              <processMainArtifact>false</processMainArtifact>
93
              <processAttachedArtifacts>false</processAttachedArtifacts>
94
              <includes>
95
                <include>plugins/eu.etaxonomy.taxeditor*.jar</include>
96
                <include>features/eu.etaxonomy.taxeditor*.jar</include>
97
              </includes>
98
              <arguments>
99
                <!-- Due to bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=378155 
100
                  we need to force the signature / digest algorithm to SHA1 since this is the 
101
                  only one which plays well with Eclipse 3.x -->
102
                <argument>-sigalg</argument>
103
                <argument>SHA1withDSA</argument>
104
                <argument>-digestalg</argument>
105
                <argument>SHA1</argument>
106
              </arguments>
107
            </configuration>
108
            <executions>
109
              <execution>
110
                <id>sign</id>
111
                <goals>
112
                  <goal>sign</goal>
113
                </goals>
114
              </execution>
115
            </executions>
116
          </plugin>
117
        </plugins>
118
      </build>
119
    </profile>
120
    <profile>
121
      <!-- Upload the repo to the server -->
122
      <!-- ATTENTION : This does not work well currently since the file permissions 
123
        are set with read permission set to off after upload -->
124
      <id>uploadRepo</id>
125
      <build>
126
        <plugins>
127
          <plugin>
128
            <groupId>org.codehaus.mojo</groupId>
129
            <artifactId>wagon-maven-plugin</artifactId>
130
            <version>1.0-beta-3</version>
131
            <!-- Problems with the wagon-maven-plugin have been encounterd 
132
              on Windows, it should work properly on linux though. -->
133
            <executions>
134
              <execution>
135
                <phase>package</phase>
136
                <goals>
137
                  <goal>upload</goal>
138
                </goals>
139
              </execution>
140
            </executions>
141
            <configuration>
142
              <fromDir>${project.build.directory}/repository</fromDir>
143
              <url>scpexe://wp5.e-taxonomy.eu/var/www/download/taxeditor/update/${update.dir}</url>
144
              <includes>
145
                binary/*,content.jar,artifacts.jar,**/eu.etaxonomy.*.jar
146
              </includes>
147
              <!-- Comment out the above and uncomment the below to upload 
148
                all jars -->
149
              <!-- <includes>**/*</includes> -->
150
              <serverId>wp5.e-taxonomy.eu</serverId>
151
            </configuration>
152
          </plugin>
153
        </plugins>
154
      </build>
155
    </profile>
156
    <profile>
157
      <!-- Configures the editor to lanuch using the packaged jre by adding 
158
        the '-vm jre/bin' option the eu.etaxonomy.taxeditor/eu.etaxonomy.taxeditor.product -->
159
      <id>bundleJre</id>
160
      <build>
161
        <plugins>
162
          <plugin>
163
            <groupId>org.apache.maven.plugins</groupId>
164
            <artifactId>maven-antrun-plugin</artifactId>
165
            <version>1.8</version>
166
            <executions>
167
              <execution>
168
                <id>setProductWithJRE</id>
169
                <phase>validate</phase>
170
                <configuration>
171
                  <target>
172
                    <copy overwrite="true" force="true"
173
                      file="${basedir}/eu.etaxonomy.taxeditor.product.with.jre"
174
                      tofile="${basedir}/eu.etaxonomy.taxeditor.product" />
175
                  </target>
176
                </configuration>
177
                <goals>
178
                  <goal>run</goal>
179
                </goals>
180
              </execution>
181
            </executions>
182
          </plugin>
183
        </plugins>
184
      </build>
185
    </profile>
186
  </profiles>
187

    
188
</project>
(9-9/10)