How to change qualifier in plugin and function file names

I am trying to rename my artifacts in the repository folder of my eclipse-repository module. At the moment, they are automatically generated, like ... 1.0.0.v20130315-1927.jar .

I did not find any configuration option that works. I tried using the qualifier setting in the configuration (see tycho-p2-repository-plugin ), but this will not work.

<?xml version="1.0" encoding="UTF-8"?> <project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <modelVersion>4.0.0</modelVersion> <parent> <groupId>development.statTool</groupId> <artifactId>Application</artifactId> <version>0.0.1-SNAPSHOT</version> </parent> <groupId>development.statTool</groupId> <artifactId>development.statTool.p2</artifactId> <version>1.0.0-SNAPSHOT</version> <packaging>eclipse-repository</packaging> <properties> <tycho-version>0.16.0</tycho-version> </properties> <build> <plugins> <plugin> <groupId>org.eclipse.tycho</groupId> <artifactId>tycho-p2-repository-plugin</artifactId> <version>${tycho-version}</version> <configuration> <qualifier>abcd</qualifier> </configuration> </plugin> </plugins> </build> </project> 
+4
source share
2 answers

My solution is to use tycho-packaging-plugin. Only a flaw that changes the assembly qualifier must rebuild all the modules contained in the repository.

Here is part of my parent pom.xml:

 <plugin> <groupId>org.eclipse.tycho</groupId> <artifactId>tycho-packaging-plugin</artifactId> <version>${tycho.version}</version> <dependencies> <dependency> <groupId>org.eclipse.tycho.extras</groupId> <artifactId>tycho-buildtimestamp-jgit</artifactId> <version>${tycho-extras.version}</version> </dependency> </dependencies> <configuration> <strictBinIncludes>false</strictBinIncludes> <format>'rev${rev}-'yyyyMMdd-HHmm</format> </configuration> </plugin> 
+3
source

try the following:

 mvn -Dtycho.mode=maven org.eclipse.tycho:tycho-versions-plugin:set-version -DnewVersion=13.3.0.1-SNAPSHOT 

or just find the text β€œ1.0.0-SNAPSHOT” and replace it with β€œ13.3.0.1" using the Actual Search and Replace tool.

0
source

All Articles