2016-04-12 13 views
0

私は "Hello、World!"タイコの0.24 POM-less build exampleに基づくOSGiバンドル。プロジェクトルートはcom.softalks.tycho.bundleと次のビルドコンフィギュレーションファイルタイコとPOMレスOSGiバンドルを構築できません

.mvn/extensions.xml

<?xml version="1.0" encoding="UTF-8"?> 
<extensions> 
    <extension> 
     <groupId>org.eclipse.tycho.extras</groupId> 
     <artifactId>tycho-pomless</artifactId> 
     <version>0.24.0</version> 
    </extension> 
</extensions> 

のpom.xml

<?xml version="1.0" encoding="UTF-8"?> 
<project> 
    <modelVersion>4.0.0</modelVersion> 
    <groupId>com.softalks.tycho</groupId> 
    <artifactId>com.softalks.tycho.parent</artifactId> 
    <version>1.0.0-SNAPSHOT</version> 
    <packaging>pom</packaging> 

    <repositories> 
     <repository> 
      <id>luna</id> 
      <url>http://download.eclipse.org/releases/luna</url> 
      <layout>p2</layout> 
     </repository> 
    </repositories> 

    <modules> 
     <module>com.softalks.tycho.bundle</module> 
    </modules> 

    <build> 
     <plugins> 
      <plugin> 
       <groupId>org.eclipse.tycho</groupId> 
       <artifactId>tycho-maven-plugin</artifactId> 
       <version>0.24.0</version> 
       <extensions>true</extensions> 
      </plugin> 
     </plugins> 
    </build> 
</project> 
という名前のバンドルコードのディレクトリを含み

私のビルド環境:

Apache Maven 3.3.9
Javaバージョン:1.7.0_95、ベンダー:Oracle Corporation
Javaホーム:/ usr/lib/jvm/java-7-openjdk-amd64/jre
OS名: "linux"、バージョン: "3.13.0-61-generic"、arch: "amd64"、family: "UNIX"

とMavenの応答:/home/runner/tycho/pom.xmlの

子供モジュール/home/runner/tycho/com.softalks.tycho.bundle/pom.xmlは存在しません。また、私は成功しません(例がないとして)私のPOMにこれを追加しようとしました

<pluginRepositories> 
     <pluginRepository> 
      <id>tycho-snapshots</id> 
      <url>https://repo.eclipse.org/content/repositories/tycho-snapshots/</url> 
      <releases> 
       <enabled>true</enabled> 
      </releases> 
      <snapshots> 
       <enabled>true</enabled> 
      </snapshots> 
     </pluginRepository> 
    </pluginRepositories> 

私は間違って何をしていますか?

答えて

0

/home/runner/tycho/com.softalks.tycho.bundle/ディレクトリにpom.xmlを用意する必要があります。そしてyes「pomless」ではなく、このディレクトリの親のpomが書かれなければなりません。

<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/maven-v4_0_0.xsd"> 

    <modelVersion>4.0.0</modelVersion> 

    <groupId>com.softalks.tycho</groupId> 
    <artifactId>bundles</artifactId> 
    <version>1.0.0-SNAPSHOT</version> 
    <packaging>pom</packaging> 

    <parent> 
     <groupId>com.softalks.tycho</groupId> 
     <artifactId>com.softalks.tycho.parent</artifactId> 
     <version>1.0.0-SNAPSHOT</version> 
    </parent> 

    <modules> 
     <module>...All your modules...</module> 
    </modules> 

</project> 

ここに記載されているモジュールディレクトリ内のすべてのpom.xmlファイルが自動的に生成されます。

関連する問題