corrected target definition
[taxeditor.git] / eu.etaxonomy.taxeditor / pom.xml
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.2-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 <product.id>eu.etaxonomy.taxeditor.product</product.id>
18 </properties>
19 <build>
20 <plugins>
21 <plugin>
22 <groupId>org.eclipse.tycho</groupId>
23 <artifactId>tycho-p2-director-plugin</artifactId>
24 <version>${tycho.version}</version>
25 <executions>
26 <execution>
27 <id>materialize-products</id>
28 <goals>
29 <goal>materialize-products</goal>
30 </goals>
31 </execution>
32 <execution>
33 <id>archive-products</id>
34 <goals>
35 <goal>archive-products</goal>
36 </goals>
37 </execution>
38 </executions>
39 <configuration>
40 <products>
41 <product>
42 <id>${product.id}</id>
43 <rootFolder>EDIT Taxonomic Editor</rootFolder>
44 </product>
45 </products>
46 </configuration>
47 </plugin>
48 </plugins>
49 </build>
50 <profiles>
51 <profile>
52 <id>signJars</id>
53 <build>
54 <plugins>
55 <plugin>
56 <groupId>org.apache.maven.plugins</groupId>
57 <artifactId>maven-jarsigner-plugin</artifactId>
58 <version>1.3.2</version>
59 <configuration>
60 <alias>editor</alias>
61 <removeExistingSignatures>true</removeExistingSignatures>
62 <!-- keystore properties should be set in the ~/.m2/settings.xml -->
63 <keystore>${keystore.path}</keystore>
64 <storepass>${keystore.store.password}</storepass>
65 <keypass>${keystore.key.password}</keypass>
66
67 <archiveDirectory>${project.build.directory}/repository</archiveDirectory>
68 <!-- Following two settings are to ensure that the product
69 .zip files are not signed -->
70 <processMainArtifact>false</processMainArtifact>
71 <processAttachedArtifacts>false</processAttachedArtifacts>
72 <includes>
73 <include>plugins/eu.etaxonomy.taxeditor*.jar</include>
74 <include>features/eu.etaxonomy.taxeditor*.jar</include>
75 </includes>
76 <arguments>
77 <!-- Due to bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=378155
78 we need to force the signature / digest algorithm to SHA1 since this is the
79 only one which plays well with Eclipse 3.x -->
80 <argument>-sigalg</argument>
81 <argument>SHA1withDSA</argument>
82 <argument>-digestalg</argument>
83 <argument>SHA1</argument>
84 </arguments>
85 </configuration>
86 <executions>
87 <execution>
88 <id>sign</id>
89 <goals>
90 <goal>sign</goal>
91 </goals>
92 </execution>
93 </executions>
94 </plugin>
95 </plugins>
96 </build>
97 </profile>
98 <profile>
99 <!-- Upload the repo to the server -->
100 <!-- ATTENTION : This does not work well currently since the file permissions
101 are set with read permission set to off after upload -->
102 <id>uploadRepo</id>
103 <build>
104 <plugins>
105 <plugin>
106 <groupId>org.codehaus.mojo</groupId>
107 <artifactId>wagon-maven-plugin</artifactId>
108 <version>1.0-beta-3</version>
109 <!-- Problems with the wagon-maven-plugin have been encounterd
110 on Windows, it should work properly on linux though. -->
111 <executions>
112 <execution>
113 <phase>package</phase>
114 <goals>
115 <goal>upload</goal>
116 </goals>
117 </execution>
118 </executions>
119 <configuration>
120 <fromDir>${project.build.directory}/repository</fromDir>
121 <url>scpexe://wp5.e-taxonomy.eu/var/www/download/taxeditor/update/${update.dir}</url>
122 <includes>
123 binary/*,content.jar,artifacts.jar,**/eu.etaxonomy.*.jar
124 </includes>
125 <!-- Comment out the above and uncomment the below to upload
126 all jars -->
127 <!-- <includes>**/*</includes> -->
128 <serverId>wp5.e-taxonomy.eu</serverId>
129 </configuration>
130 </plugin>
131 </plugins>
132 </build>
133 </profile>
134 </profiles>
135
136 </project>