Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

taxeditor / eu.etaxonomy.taxeditor / pom.xml @ 0f388254

History | View | Annotate | Download (5.59 KB)

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>5.0.1</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>https://cybertaxonomy.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</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
              <id>delete_update_site</id>
117
              <phase>clean</phase>
118
              <goals>
119
                <goal>sshexec</goal>
120
              </goals>
121
              <configuration>
122
                <url>scp://cybertaxonomy.eu</url>
123
                <commands>
124
                  <command>rm -r /var/www/download/taxeditor/update/${update.dir}/*</command>
125
                </commands>
126
                <failOnError>false</failOnError>
127
              </configuration>
128
            </execution>
129
             <execution>
130
                <phase>package</phase>
131
                <goals>
132
                  <goal>upload</goal>
133
                </goals>
134
              </execution>
135
            </executions>
136
            <configuration>
137
              <fromDir>${project.build.directory}/repository</fromDir>
138
              <url>scpexe://cybertaxonomy.eu/var/www/download/taxeditor/update/${update.dir}</url>
139
<!--               <includes> -->
140
<!--                 binary/*,content.jar,artifacts.jar,**/eu.etaxonomy.*.jar -->
141
<!--               </includes> -->
142
              <!-- Comment out the above and uncomment the below to upload 
143
                all jars -->
144
              <includes>**/*</includes>
145
              <serverId>cybertaxonomy.eu</serverId>
146
            </configuration>
147
          </plugin>
148
        </plugins>
149
      </build>
150
    </profile>
151
  </profiles>
152

    
153
</project>
Add picture from clipboard (Maximum size: 40 MB)