2013-09-04 4 views
3

Eclipse 4 RCP 플랫폼을 기반으로 응용 프로그램을 빌드하고 Tycho로 빌드하려고합니다. 나는 PDE 대상 정의를 사용하는 기사 http://blog.vogella.com/2013/01/03/tycho-advanced/을 따라 내 프로젝트를 빌드 할 때 다음과 같은 오류가 발생합니다알 수없는 패키징 : eclipse-target-definition

[ERROR] Unknown packaging: eclipse-target-definition 
내 프로젝트의 모듈 아키텍처는 the EclipseCon 2013 Tycho Demo에서 적응 플러스 대상 모듈입니다

:

- mybundle.myproject.bundle 
- mybundle.myproject.bundle.tests 
- mybundle.myproject.feature 
- mybundle.myproject.parent 
- mybundle.myproject.target 

을 나는 티코 0.18.1을 사용하고, 오류를 생성하는 mybundle.myproject.target 모듈에서 pom.xml은 다음과 같습니다

<project xmlns="http://maven.apache.org/POM/4.0.0" 
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 
    <modelVersion>4.0.0</modelVersion> 
    <artifactId>mybundle.myproject.repository</artifactId> 
    <packaging>eclipse-repository</packaging> 
    <parent> 
    <groupId>mybundle</groupId> 
    <artifactId>mybundle.myproject.parent</artifactId> 
    <version>0.0.1-SNAPSHOT</version> 
    </parent> 
</project> 

자세한 정보는 전체 디버그 로그를 참조하십시오. http://pastebin.com/dMEckvsH

내가 빠진 것이 있습니까? eclipse-target-definition 포장은이 Tycho 버전에서 작동합니다.

답변

7

문제점의 문제점은 연결된 디버그 출력에 있습니다. 티코의 포장 유형 중 하나의 이전, 성공적인 조회의 출력과 ... 실패 전에

[DEBUG] Extension realms for project mybundle:mybundle.myproject.target:eclipse-target-definition:0.0.1-SNAPSHOT: (none) 
[DEBUG] Looking up lifecyle mappings for packaging eclipse-target-definition from ClassRealm[plexus.core, parent: null] 

을 출력 비교 : 여기

[DEBUG] Extension realms for project mybundle:mybundle.myproject.repository:eclipse-repository:0.0.1-SNAPSHOT: [ClassRealm[extension>org.eclipse.tycho:tycho-maven-plugin:0.18.1, parent: [email protected]]] 
[DEBUG] Looking up lifecyle mappings for packaging eclipse-repository from ClassRealm[project>mybundle:mybundle.myproject.parent:0.0.1-SNAPSHOT, parent: ClassRealm[maven.api, parent: null]] 

것은 당신이 할 수있다 출력에서 읽음 : 프로젝트 mybundle.myproject.target에는 빌드 확장 (즉, Tycho 빌드 확장이 아닌)이 구성되어 있지 않습니다. 디버그 출력의 두 번째 행에서 프로젝트에 다른 모듈처럼 구성된 mybundle.myproject.parent 부모가 없기 때문입니다.

+0

동일한 문제가 있지만 parant POMs Plugin Management에' true '이라는'tycho-maven-plugin'이 있습니다. – Weltraumschaf