【问题标题】:Tycho build fails with "No content specified for p2 repository" although there is a category.xml尽管有 category.xml,但 Tycho 构建失败并显示“没有为 p2 存储库指定内容”
【发布时间】:2013-10-25 10:40:03
【问题描述】:

Eclipse 插件Markdown-Editor 不使用 Maven/Tycho 构建。构建失败并显示消息

[ERROR] Failed to execute goal org.eclipse.tycho:tycho-p2-repository-plugin:0.18.1:assemble-repository (default-assemble-repository)
 on project markdown.editor.site: No content specified for p2 repository -> [Help 1]

类似的配置StartExplorer plugin工作正常:

category.xml:

<?xml version="1.0" encoding="UTF-8"?>
<site>
   <feature url="features/markdown.editor.feature_1.0.0.jar" id="markdown.editor.feature" version="1.0.0">
      <category name="markdowneditor"/>
   </feature>
   <category-def name="markdowneditor" label="Markdown Editor">
      <description>
         Extend the text editor to provide good Markdown support.
      </description>
   </category-def>
</site>

pom.xml

<?xml version="1.0" encoding="UTF-8"?>
<project
    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
    xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <modelVersion>4.0.0</modelVersion>

    <parent>
        <groupId>com.winterwell.markdown</groupId>
        <artifactId>markdown.editor.parent</artifactId>
        <version>1.0.0-SNAPSHOT</version>
    </parent>

    <artifactId>markdown.editor.site</artifactId>
    <packaging>eclipse-repository</packaging>

    <name>Markdown Editor (site)</name>
    <description>Markdown Editor (site)</description>

</project>

tycho-p2-repository-plugin fails with "No content specified for p2 repository"相关
How to correctly specify eclipse-plugins in category.xml of tycho eclipse-repository?

【问题讨论】:

  • 日志中的错误消息会很有帮助。
  • 原来是No content specified for p2 repository -&gt; 问题解决了。
  • 我只是想让其他人也从你的学习中受益。

标签: eclipse maven eclipse-plugin tycho p2


【解决方案1】:

如果版本是用-SNAPSHOT``, then incategory.xmlversion should have.qualifier`定义的

&lt;feature url="features/markdown.editor.feature_1.0.0.jar" id="markdown.editor.feature" version="1.0.0.qualifier"&gt;

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2018-10-25
    • 2016-09-29
    • 1970-01-01
    • 2019-10-09
    • 1970-01-01
    • 2016-05-22
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多