Project

General

Profile

Download (4.84 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.4.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

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

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

    
134
</project>
(6-6/7)