- <build>
- <plugins>
- <plugin>
- <groupId>org.eclipse.tycho</groupId>
- <artifactId>tycho-p2-director-plugin</artifactId>
- <version>${tycho.version}</version>
- <executions>
- <execution>
- <id>materialize-products</id>
- <goals>
- <goal>materialize-products</goal>
- </goals>
- </execution>
- <execution>
- <id>archive-products</id>
- <goals>
- <goal>archive-products</goal>
- </goals>
- </execution>
- </executions>
- <configuration>
- <products>
- <product>
- <id>eu.etaxonomy.taxeditor.product</id>
- <rootFolder>EDIT Taxonomic Editor</rootFolder>
- </product>
- </products>
- </configuration>
- </plugin>
- </plugins>
- </build>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.eclipse.tycho</groupId>
+ <artifactId>tycho-p2-director-plugin</artifactId>
+ <version>${tycho.version}</version>
+ <executions>
+ <execution>
+ <id>materialize-products</id>
+ <goals>
+ <goal>materialize-products</goal>
+ </goals>
+ </execution>
+ <execution>
+ <id>archive-products</id>
+ <goals>
+ <goal>archive-products</goal>
+ </goals>
+ </execution>
+ </executions>
+ <configuration>
+ <products>
+ <product>
+ <id>eu.etaxonomy.taxeditor.product</id>
+ <rootFolder>EDIT Taxonomic Editor</rootFolder>
+ </product>
+ </products>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ <profiles>
+ <profile>
+ <id>signJars</id>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-jarsigner-plugin</artifactId>
+ <version>1.3.2</version>
+ <configuration>
+ <keystore>${keystore.path}</keystore>
+ <storepass>${keystore.store.password}</storepass>
+ <alias>editor</alias>
+ <keypass>${keystore.key.password}</keypass>
+ <removeExistingSignatures>true</removeExistingSignatures>
+ <archiveDirectory>${project.build.directory}/repository</archiveDirectory>
+ <includes>
+ <include>**/eu.etaxonomy.taxeditor*.jar</include>
+ </includes>
+ <excludes>
+ <exclude>**/*.zip</exclude>
+ </excludes>
+ <arguments>
+ <!-- Due to bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=378155
+ we need to force the signature / digest algorithm to SHA1 since
+ this is the only one which plays well with Eclipse 3.x -->
+ <argument>-sigalg</argument><argument>SHA1withDSA</argument>
+ <argument>-digestalg</argument><argument>SHA1</argument>
+ </arguments>
+ </configuration>
+ <executions>
+ <execution>
+ <id>sign</id>
+ <goals>
+ <goal>sign</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ <profile>
+ <!-- Upload the repo to the server -->
+ <id>uploadRepo</id>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>wagon-maven-plugin</artifactId>
+ <version>1.0-beta-3</version>
+ <!-- Problems with the wagon-maven-plugin have been encounterd
+ on Windows, it should work properly on linux though. -->
+ <executions>
+ <execution>
+ <phase>package</phase>
+ <goals>
+ <goal>upload</goal>
+ </goals>
+ </execution>
+ </executions>
+ <configuration>
+ <fromDir>${project.build.directory}/repository</fromDir>
+ <url>scpexe://wp5.e-taxonomy.eu/var/www/download/taxeditor/update/${update.dir}</url>
+ <includes>binary/*,content.jar,artifacts.jar,**/eu.etaxonomy.*.jar</includes>
+ <!-- Comment out the above and uncomment the below to upload
+ all jars -->
+ <!-- <includes>**/*</includes> -->
+ <serverId>wp5.e-taxonomy.eu</serverId>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ </profiles>