Project

General

Profile

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

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

    
135
</project>
(8-8/9)