简体   繁体   English

Eclipse和第谷-$ {tycho-version}

[英]Eclipse and Tycho - ${tycho-version}

Looking at Tycho tutorials and answers here at Stackoverflow a lot of then contain the variable ${tycho-version} example: 在Stackoverflow上查看Tycho的教程和答案,然后包含变量${tycho-version}示例:

<plugin>
    <groupId>org.eclipse.tycho</groupId>
    <artifactId>tycho-maven-plugin</artifactId>
    <version>${tycho-version}</version>
    <extensions>true</extensions>
</plugin>

What is nowhere described is who is responsible for resolving this variable. 没有描述的是谁负责解决此变量。 Is it done automatically by Eclipse/M2Eclipse plugin or does this variable means the developer is responsible for specifying the version? 它是由Eclipse / M2Eclipse插件自动完成的,还是此变量意味着开发人员负责指定版本?

If the developer is responsible where to get the list of versions? 如果开发人员负责在哪里获取版本列表?

This is a standard idiom for ensuring all Tycho plug-ins are from the same version: if plug-ins from multiple versions clash, it can result in very hard to debug issues. 这是确保所有Tycho插件都来自同一版本的标准习惯用法:如果多个版本的插件发生冲突,则可能导致很难调试的问题。 If this is the only place you enter a tycho version, this might seem unnecessary, but if you have to provide configuration for multiple elements, this will be responsible. 如果这是您输入tycho版本的唯一位置,则似乎没有必要,但是如果必须提供多个元素的配置,则将负责。

In other words, the build configuration should include a value for this property (or it should be set via the -D property syntax, eg mvn clean install -Dtycho-version=1.0.0 ). 换句话说,构建配置应包含此属性的值(或应通过-D属性语法设置,例如mvn clean install -Dtycho-version=1.0.0 )。

In order to find out the possible versions, you could execute a search on maven central ; 为了找出可能的版本,您可以在maven central上执行搜索 where you can see the latest version as of today (3rd Apr, 2017) is 1.0.0. 在这里您可以看到今天(2017年4月3日)的最新版本为1.0.0。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM