대상 파일을 사용하여 리포지토리를 미러링하는 경우 Tycho 확장 프로그램을 사용하고 있습니다. 그 문제는 내 .target 파일에 있습니다. 버전 0.0.0의 설치 가능한 유닛이 있습니다. 최신 버전을 가져오고 싶지만, 스크립트를 실행하여 버전을 고정시키고 싶다면, 최신 버전을 구할 수 있어야합니다. 명시 적으로 .target 파일에 번호를 넣으십시오. 그래서 앞으로 내가 가지고있는 것과 동일한 버전을 여전히 미러링 할 것입니다.이슈의 최신 버전 번호를 얻고 대상 파일에서 바꾸는 방법은 무엇입니까?
mvn org.eclipse.tycho.extras:tycho-version-bump-plugin:0.22.0:update-target -Dtarget=path/to/targetfile.target
이 명령은 메이븐/티코 프로젝트, 당신이 필요로하는, 그래서 그것을 시작해야 :
<plugin>
<groupId>org.jboss.tools.tycho-plugins</groupId>
<artifactId>target-platform-utils</artifactId>
<version>0.21.0</version>
<executions>
<execution>
<phase>compile</phase>
<goals>
<goal>mirror-target-to-repo</goal>
</goals>
</execution>
</executions>
<configuration>
<sourceTargetFile>${target-platform-file}</sourceTargetFile>
<includeSources>false</includeSources>
<outputRepository>${basedir}/target/repository</outputRepository>
</configuration>
</plugin>