[英]Pomless Tycho build + maven release plugin
我有一个没有pom的tycho版本,我想与maven release插件一起发布。 我遇到的问题是,即使生成的.polyglot.build.properties
不包含在git-add
目标的配置中,我也会从git插件中获取错误。
父pom.xml:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>2.5.3</version>
<configuration>
<autoVersionSubmodules>true</autoVersionSubmodules>
<localCheckout>true</localCheckout>
<preparationGoals>
org.eclipse.tycho:tycho-versions-plugin:${tycho.version}:update-eclipse-metadata
build-helper:parse-version
org.apache.maven.plugins:maven-scm-plugin:1.9.5:add
org.apache.maven.plugins:maven-scm-plugin:1.9.5:checkin
</preparationGoals>
<completionGoals>
org.eclipse.tycho:tycho-versions-plugin:${tycho.version}:update-eclipse-metadata
build-helper:parse-version
org.apache.maven.plugins:maven-scm-plugin:1.9.5:add
org.apache.maven.plugins:maven-scm-plugin:1.9.5:checkin
</completionGoals>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-scm-plugin</artifactId>
<version>1.9.5</version>
<executions>
<execution>
<id>default-cli</id>
<goals>
<goal>add</goal>
<goal>checkin</goal>
</goals>
<configuration>
<includes>**/META-INF/MANIFEST.MF,**/feature.xml,**/*.product,**/category.xml,release.properties</includes>
<excludes>**/target/**</excludes>
<message>Changing the version to reflect the pom versions for the release</message>
<pushChanges>false</pushChanges>
</configuration>
</execution>
</executions>
</plugin>
我得到的错误:
致命的:pathspec'my.plugin / .polyglot.build.properties'与任何文件都不匹配
在查看了tycho-pomless,polyglot和maven-release的源代码之后,我得出结论,pomless构建无法与maven版本一起使用。 我需要添加pom.xml
原因是:
因此,总而言之,在存在准备目标的情况下,看起来像无typo-pomless(或实际上是任何多语言版本)和maven-release不兼容,并且似乎没有解决方法。 在同一JVM中执行准备目标的可执行方法似乎不可用。 所以解决方案是添加pom.xml
首先检查是否类似于此问题 ,插件确实在其中找到应添加的文件,但是在创建命令行时,它不遵循正确的根目录。
查看pathspec 'my.plugin/.polyglot.build.properties'
提到的路径是否正确。
仔细检查您的POM和文件夹层次结构是否在正确的位置,即项目根文件夹中。
OP kutschkem 在注释中引用:
.polyglot.build.properties
是一个临时文件,由release:prepare
子进程出口删除。
但是发布插件将其作为要检入的项目的pom。
这可能就是为什么我在第谷/可复制版本限定词中看到的原因
<jgit.ignore>
pom.xml
.polyglot.build.properties
</jgit.ignore>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.