Project

General

Profile

Download (5.08 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" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
2
  <parent>
3
    <groupId>eu.etaxonomy</groupId>
4
    <artifactId>taxeditor-parent</artifactId>
5
    <version>4.11.0</version>
6
  </parent>
7

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

    
12
  <name>EDIT Taxonomic Editor Product</name>
13
  <description>The EDIT Taxonomic Desktop Editor</description>
14
  <url>http://wp5.e-taxonomy.eu/taxeditor</url>
15
  <properties>
16
    <product.id>eu.etaxonomy.taxeditor.product</product.id>
17
  </properties>
18

    
19
  <profiles>
20
    <profile>
21
      <id>buildProducts</id>
22
      <build>
23
        <plugins>
24
          <plugin>
25
            <groupId>org.eclipse.tycho</groupId>
26
            <artifactId>tycho-p2-director-plugin</artifactId>
27
            <version>${tycho.version}</version>
28
            <executions>
29
              <execution>
30
                <id>materialize-products</id>
31
                <goals>
32
                  <goal>materialize-products</goal>
33
                </goals>
34
              </execution>
35
              <execution>
36
                <id>archive-products</id>
37
                <goals>
38
                  <goal>archive-products</goal>
39
                </goals>
40
              </execution>
41
            </executions>
42
            <configuration>
43
              <products>
44
                <product>
45
                  <id>${product.id}</id>
46
                  <rootFolder>EDIT Taxonomic Editor</rootFolder>
47
                </product>
48
              </products>
49
            </configuration>
50
          </plugin>
51
        </plugins>
52
      </build>
53
    </profile>
54
    <profile>
55
      <id>signJars</id>
56
      <build>
57
        <plugins>
58
          <plugin>
59
            <groupId>org.apache.maven.plugins</groupId>
60
            <artifactId>maven-jarsigner-plugin</artifactId>
61
            <version>1.3.2</version>
62
            <configuration>
63
              <alias>editor</alias>
64
              <removeExistingSignatures>true</removeExistingSignatures>
65
              <!-- keystore properties should be set in the ~/.m2/settings.xml -->
66
              <keystore>${keystore.path}</keystore>
67
              <storepass>${keystore.store.password}</storepass>
68
              <keypass>${keystore.key.password}</keypass>
69

    
70
              <archiveDirectory>${project.build.directory}/repository</archiveDirectory>
71
              <!-- Following two settings are to ensure that the product 
72
                .zip files are not signed -->
73
              <processMainArtifact>false</processMainArtifact>
74
              <processAttachedArtifacts>false</processAttachedArtifacts>
75
              <includes>
76
                <include>plugins/eu.etaxonomy.taxeditor*.jar</include>
77
                <include>features/eu.etaxonomy.taxeditor*.jar</include>
78
              </includes>
79
              <arguments>
80
                <!-- Due to bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=378155 
81
                  we need to force the signature / digest algorithm to SHA1 since this is the 
82
                  only one which plays well with Eclipse 3.x -->
83
                <argument>-sigalg</argument>
84
                <argument>SHA1withDSA</argument>
85
                <argument>-digestalg</argument>
86
                <argument>SHA1</argument>
87
              </arguments>
88
            </configuration>
89
            <executions>
90
              <execution>
91
                <id>sign</id>
92
                <goals>
93
                  <goal>sign</goal>
94
                </goals>
95
              </execution>
96
            </executions>
97
          </plugin>
98
        </plugins>
99
      </build>
100
    </profile>
101
    <profile>
102
      <!-- Upload the repo to the server -->
103
      <!-- ATTENTION : This does not work well currently since the file permissions 
104
        are set with read permission set to off after upload -->
105
      <id>uploadRepo</id>
106
      <build>
107
        <plugins>
108
          <plugin>
109
            <groupId>org.codehaus.mojo</groupId>
110
            <artifactId>wagon-maven-plugin</artifactId>
111
            <version>1.0-beta-3</version>
112
            <!-- Problems with the wagon-maven-plugin have been encounterd 
113
              on Windows, it should work properly on linux though. -->
114
            <executions>
115
              <execution>
116
                <phase>package</phase>
117
                <goals>
118
                  <goal>upload</goal>
119
                </goals>
120
              </execution>
121
            </executions>
122
            <configuration>
123
              <fromDir>${project.build.directory}/repository</fromDir>
124
              <url>scpexe://wp5.e-taxonomy.eu/var/www/download/taxeditor/update/${update.dir}</url>
125
              <includes>
126
                binary/*,content.jar,artifacts.jar,**/eu.etaxonomy.*.jar
127
              </includes>
128
              <!-- Comment out the above and uncomment the below to upload 
129
                all jars -->
130
              <!-- <includes>**/*</includes> -->
131
              <serverId>wp5.e-taxonomy.eu</serverId>
132
            </configuration>
133
          </plugin>
134
        </plugins>
135
      </build>
136
    </profile>
137
  </profiles>
138

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