Revision 0d291022
Added by Cherian Mathew about 9 years ago
eu.etaxonomy.taxeditor.application/src/main/java/eu/etaxonomy/taxeditor/update/P2Util.java | ||
---|---|---|
44 | 44 |
*/ |
45 | 45 |
public class P2Util { |
46 | 46 |
|
47 |
//private static String LOCAL_UPDATE_SITE = "file:///home/cmathew/Development/EDIT/taxeditor/eu.etaxonomy.taxeditor/target/repository/";
|
|
47 |
//private static String LOCAL_UPDATE_SITE = "file:///path/.../to/Development/EDIT/taxeditor/eu.etaxonomy.taxeditor/target/repository/";
|
|
48 | 48 |
private static String EDIT_NIGHTLY_UPDATE_SITE = "http://cybertaxonomy.eu/download/taxeditor/update/nightly/"; |
49 |
private static String EDIT_SNAPSHOT_UPDATE_SITE = "http://cybertaxonomy.eu/download/taxeditor/update/snapshot/"; |
|
49 | 50 |
private static String EDIT_STABLE_UPDATE_SITE = "http://cybertaxonomy.eu/download/taxeditor/update/stable/"; |
50 | 51 |
|
51 | 52 |
public static void setUpdateRepositories(UpdateOperation operation) throws URISyntaxException { |
eu.etaxonomy.taxeditor.feature.platform/feature.xml | ||
---|---|---|
300 | 300 |
version="0.0.0" |
301 | 301 |
unpack="false"/> |
302 | 302 |
|
303 |
<plugin |
|
304 |
id="org.eclipse.update.configurator" |
|
305 |
download-size="0" |
|
306 |
install-size="0" |
|
307 |
version="0.0.0" |
|
308 |
unpack="false"/> |
|
309 |
|
|
310 | 303 |
<plugin |
311 | 304 |
id="org.eclipse.update.core" |
312 | 305 |
download-size="0" |
eu.etaxonomy.taxeditor/pom.xml | ||
---|---|---|
1 | 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.3.8-SNAPSHOT</version>
|
|
7 |
</parent>
|
|
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.3.8-SNAPSHOT</version>
|
|
7 |
</parent>
|
|
8 | 8 |
|
9 |
<modelVersion>4.0.0</modelVersion>
|
|
10 |
<artifactId>eu.etaxonomy.taxeditor</artifactId>
|
|
11 |
<packaging>eclipse-repository</packaging>
|
|
9 |
<modelVersion>4.0.0</modelVersion>
|
|
10 |
<artifactId>eu.etaxonomy.taxeditor</artifactId>
|
|
11 |
<packaging>eclipse-repository</packaging>
|
|
12 | 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>
|
|
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 | 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> |
|
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 |
<keystore>${keystore.path}</keystore> |
|
59 |
<storepass>${keystore.store.password}</storepass> |
|
60 |
<alias>editor</alias> |
|
61 |
<keypass>${keystore.key.password}</keypass> |
|
62 |
<removeExistingSignatures>true</removeExistingSignatures> |
|
63 |
<archiveDirectory>${project.build.directory}/repository</archiveDirectory> |
|
64 |
<includes> |
|
65 |
<include>**/eu.etaxonomy.taxeditor*.jar</include> |
|
66 |
</includes> |
|
67 |
<excludes> |
|
68 |
<exclude>**/*.zip</exclude> |
|
69 |
</excludes> |
|
70 |
<arguments> |
|
71 |
<!-- Due to bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=378155 |
|
72 |
we need to force the signature / digest algorithm to SHA1 since |
|
73 |
this is the only one which plays well with Eclipse 3.x --> |
|
74 |
<argument>-sigalg</argument><argument>SHA1withDSA</argument> |
|
75 |
<argument>-digestalg</argument><argument>SHA1</argument> |
|
76 |
</arguments> |
|
77 |
</configuration> |
|
78 |
<executions> |
|
79 |
<execution> |
|
80 |
<id>sign</id> |
|
81 |
<goals> |
|
82 |
<goal>sign</goal> |
|
83 |
</goals> |
|
84 |
</execution> |
|
85 |
</executions> |
|
86 |
</plugin> |
|
87 |
</plugins> |
|
88 |
</build> |
|
89 |
</profile> |
|
90 |
<profile> |
|
91 |
<!-- Upload the repo to the server --> |
|
92 |
<id>uploadRepo</id> |
|
93 |
<build> |
|
94 |
<plugins> |
|
95 |
<plugin> |
|
96 |
<groupId>org.codehaus.mojo</groupId> |
|
97 |
<artifactId>wagon-maven-plugin</artifactId> |
|
98 |
<version>1.0-beta-3</version> |
|
99 |
<!-- Problems with the wagon-maven-plugin have been encounterd |
|
100 |
on Windows, it should work properly on linux though. --> |
|
101 |
<executions> |
|
102 |
<execution> |
|
103 |
<phase>package</phase> |
|
104 |
<goals> |
|
105 |
<goal>upload</goal> |
|
106 |
</goals> |
|
107 |
</execution> |
|
108 |
</executions> |
|
109 |
<configuration> |
|
110 |
<fromDir>${project.build.directory}/repository</fromDir> |
|
111 |
<url>scpexe://wp5.e-taxonomy.eu/var/www/download/taxeditor/update/${update.dir}</url> |
|
112 |
<includes>binary/*,content.jar,artifacts.jar,**/eu.etaxonomy.*.jar</includes> |
|
113 |
<!-- Comment out the above and uncomment the below to upload |
|
114 |
all jars --> |
|
115 |
<!-- <includes>**/*</includes> --> |
|
116 |
<serverId>wp5.e-taxonomy.eu</serverId> |
|
117 |
</configuration> |
|
118 |
</plugin> |
|
119 |
</plugins> |
|
120 |
</build> |
|
121 |
</profile> |
|
122 |
</profiles> |
|
48 | 123 |
|
49 | 124 |
</project> |
pom.xml | ||
---|---|---|
9 | 9 |
<artifactId>taxeditor-parent</artifactId> |
10 | 10 |
<version>3.3.8-SNAPSHOT</version> |
11 | 11 |
<name>EDIT Taxonomic Editor</name> |
12 |
<description>The Taxonomic Editor for EDIT's platform for cybertaxonomy</description> |
|
12 |
<description>The Taxonomic Editor for EDIT's platform for |
|
13 |
cybertaxonomy</description> |
|
13 | 14 |
<url>http://cybertaxonomy.eu/taxeditor//taxeditor//taxeditor//taxeditor//taxeditor//taxeditor//taxeditor/</url> |
14 | 15 |
<inceptionYear>2007</inceptionYear> |
15 | 16 |
<packaging>pom</packaging> |
... | ... | |
45 | 46 |
<mailingList> |
46 | 47 |
<name>EDIT Taxonomic Editor</name> |
47 | 48 |
<subscribe> |
48 |
edit-taxonomic-editor+subscribe@googlegroups.com
|
|
49 |
</subscribe>
|
|
49 |
edit-taxonomic-editor+subscribe@googlegroups.com
|
|
50 |
</subscribe>
|
|
50 | 51 |
<unsubscribe> |
51 |
edit-taxonomic-editor+unsubscribe@googlegroups.com
|
|
52 |
</unsubscribe>
|
|
52 |
edit-taxonomic-editor+unsubscribe@googlegroups.com
|
|
53 |
</unsubscribe>
|
|
53 | 54 |
<post>edit-taxonomic-editor@googlegroups.com</post> |
54 | 55 |
<archive>http://groups.google.com/group/edit-taxonomic-editor/topics</archive> |
55 | 56 |
</mailingList> |
... | ... | |
66 | 67 |
<!-- your SVN account id please! --> |
67 | 68 |
<id>a.kohlbecker</id> |
68 | 69 |
<name> |
69 |
Andreas Kohlbecker
|
|
70 |
</name>
|
|
70 |
Andreas Kohlbecker
|
|
71 |
</name>
|
|
71 | 72 |
<email>a.kohlbecker [at] bgbm.org</email> |
72 | 73 |
<organization> |
73 |
Botanic Garden Botanical Museum Berlin
|
|
74 |
</organization>
|
|
74 |
Botanic Garden Botanical Museum Berlin
|
|
75 |
</organization>
|
|
75 | 76 |
<organizationUrl>http://www.bgbm.org/BioDivInf/</organizationUrl> |
76 | 77 |
<timezone>+1</timezone> |
77 | 78 |
<roles> |
... | ... | |
84 | 85 |
<!-- your SVN account id please! --> |
85 | 86 |
<id>a.mueller</id> |
86 | 87 |
<name> |
87 |
Andreas Müller
|
|
88 |
</name>
|
|
88 |
Andreas Müller
|
|
89 |
</name>
|
|
89 | 90 |
<email>a.mueller [at] bgbm.org</email> |
90 | 91 |
<organization> |
91 |
Botanic Garden Botanical Museum Berlin
|
|
92 |
</organization>
|
|
92 |
Botanic Garden Botanical Museum Berlin
|
|
93 |
</organization>
|
|
93 | 94 |
<organizationUrl>http://www.bgbm.org/BioDivInf/</organizationUrl> |
94 | 95 |
<timezone>+1</timezone> |
95 | 96 |
<roles> |
... | ... | |
131 | 132 |
</repository> |
132 | 133 |
</repositories> |
133 | 134 |
</profile> |
134 |
<profile> |
|
135 |
<!-- Upload the repo to the server --> |
|
136 |
<id>uploadRepo</id> |
|
137 |
<build> |
|
138 |
<plugins> |
|
139 |
<plugin> |
|
140 |
<groupId>org.codehaus.mojo</groupId> |
|
141 |
<artifactId>wagon-maven-plugin</artifactId> |
|
142 |
<version>1.0-beta-3</version> |
|
143 |
<!-- Problems with the wagon-maven-plugin have been encounterd |
|
144 |
on Windows, it should work properly on linux though. --> |
|
145 |
<executions> |
|
146 |
<execution> |
|
147 |
<phase>package</phase> |
|
148 |
<goals> |
|
149 |
<goal>upload</goal> |
|
150 |
</goals> |
|
151 |
</execution> |
|
152 |
</executions> |
|
153 |
<configuration> |
|
154 |
<fromDir>eu.etaxonomy.taxeditor/target/repository</fromDir> |
|
155 |
<url>scpexe://wp5.e-taxonomy.eu/var/www/download/taxeditor/update/${update.dir}</url> |
|
156 |
<includes>binary/*,content.jar,artifacts.jar,**/eu.etaxonomy.*.jar</includes> |
|
157 |
<!-- Comment out the above and uncomment the below to upload |
|
158 |
all jars --> |
|
159 |
<!-- <includes>**/*</includes> --> |
|
160 |
<serverId>wp5.e-taxonomy.eu</serverId> |
|
161 |
</configuration> |
|
162 |
</plugin> |
|
163 |
</plugins> |
|
164 |
</build> |
|
165 |
</profile> |
|
166 | 135 |
</profiles> |
167 | 136 |
<repositories> |
168 | 137 |
<!-- the cdm internal repository --> |
Also available in: Unified diff
adding signing of jars to maven package phase
P2Util : added snapshot dir to list of hardocded sites
eu.etaxonomy.taxeditor/pom.xml : added signJars and uploadRepo (from parent pom) profiles
pom.xml : removed uploadRepo (from parent pom) profile
feature.xml : removed update configurator plugin as it clashes with simple configurator