2013-10-25 20 views
1

Eclipse插件Markdown-Editor未使用Maven/Tycho构建。构建失败消息尽管存在category.xml,但Tycho构建失败,并显示“没有为p2存储库指定内容”

[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?

+0

从日志中的错误信息会有所帮助定义。 – oberlies

+0

这是'没有为p2存储库指定内容 - >'问题已解决。 –

+0

我只是想让别人也从你的学习中受益。 – oberlies

回答

3

如果版本与-SNAPSHOT``, then in category.xml version should have .qualifier`

<feature url="features/markdown.editor.feature_1.0.0.jar" id="markdown.editor.feature" version="1.0.0.qualifier">

相关问题