Eclipse rcp 如何在使用tycho-p2-extras镜像eclipsep2存储库时获取源捆绑包

Eclipse rcp 如何在使用tycho-p2-extras镜像eclipsep2存储库时获取源捆绑包,eclipse-rcp,tycho,p2,Eclipse Rcp,Tycho,P2,我想创建EclipseP2存储库的镜像,其中包含构建rcp应用程序所需的ius。镜像工作正常,所需的捆绑包在本地存储。我可以从我的tycho构建和EclipseIDE中引用它们。它可以工作,但是包含EclipseP2镜像文件夹的targetdefinition文件抱怨缺少源包 我阅读并尝试了tycho-p2-extras提供的开关,但似乎没有任何开关能解决这个问题 <build> <plugins> <plugin>

我想创建EclipseP2存储库的镜像,其中包含构建rcp应用程序所需的ius。镜像工作正常,所需的捆绑包在本地存储。我可以从我的tycho构建和EclipseIDE中引用它们。它可以工作,但是包含EclipseP2镜像文件夹的targetdefinition文件抱怨缺少源包

我阅读并尝试了tycho-p2-extras提供的开关,但似乎没有任何开关能解决这个问题

<build>
    <plugins>
        <plugin>
            <groupId>org.eclipse.tycho.extras</groupId>
            <artifactId>tycho-p2-extras-plugin</artifactId>
            <version>${tycho.version}</version>
            <executions>
                <execution>
                    <phase>prepare-package</phase>
                    <goals>
                        <goal>mirror</goal>
                    </goals>
                </execution>
            </executions>
            <configuration>
                <source>
                    <!-- source repositories to mirror from -->
                    <!-- supported layouts are "p2-metadata", "p2-artifacts", and "p2" 
                            (for joint repositories; default) -->
                    <repository>
                        <id>eclipse-2018-09</id>
                        <url>http://download.eclipse.org/releases/2018-09</url>
                        <layout>p2</layout>
                    </repository>
                    <repository>
                        <id>eclipse-2018-09-tech</id>
                        <url>https://download.eclipse.org/technology/epp/packages/2018-09/</url>
                        <layout>p2</layout>
                    </repository>
                </source>

                <!-- List of IUs to mirror. If omitted, allIUs will be mirrored. -->
                <!-- Omitted IU version element means latest version of the IU -->
                <ius>
                    <iu>
                        <id>org.eclipse.e4.rcp.feature.group</id>
                    </iu>
                    <iu>
                        <id>org.eclipse.emf.common.feature.group</id>
                    </iu>
                    <iu>
                        <id>org.eclipse.emf.ecore.feature.group</id>
                    </iu>
                    <iu>
                        <id>org.eclipse.equinox.executable.feature.group</id>
                    </iu>
                    <iu>
                        <id>org.eclipse.ui.themes</id>
                    </iu>
                    <iu>
                        <id>org.objectweb.asm</id>
                    </iu>
                    <iu>
                        <id>org.eclipse.swt</id>
                    </iu>
                </ius>
                <!-- The destination directory to mirror to. -->
                <destination>${project.build.directory}/repository</destination>
                <!-- Whether only strict dependencies should be followed. -->
                <!-- "strict" means perfect version match -->
                <followStrictOnly>false</followStrictOnly>
                <!-- Whether or not to follow optional requirements. -->
                <includeOptional>true</includeOptional>
                <!-- Whether or not to follow non-greedy requirements. -->
                <includeNonGreedy>true</includeNonGreedy>
                <!-- Filter properties. E.g. filter only one platform -->
                <!-- 
                <filter>
                    <osgi.os>win32</osgi.os>
                    <osgi.ws>win32</osgi.ws>
                    <osgi.arch>x86_64</osgi.arch>
                </filter>
                 -->
                <!-- Whether to filter the resulting set of IUs to only -->
                <!-- include the latest version of each IU -->
                <latestVersionOnly>false</latestVersionOnly>
                <!-- don't mirror artifacts, only metadata -->
                <mirrorMetadataOnly>false</mirrorMetadataOnly>
                <!-- whether to compress the content.xml/artifacts.xml -->
                <compress>false</compress>
                <!-- whether to append to the target repository content -->
                <append>true</append>
                <!-- whether to mirror pack200 artifacts also. Available since tycho-extras 
                    0.17.0 -->
                <includePacked>true</includePacked>
            </configuration>
        </plugin>
    </plugins>
</build>

org.eclipse.tycho.extras
tycho-p2-extras-plugin
${tycho.version}
准备包装
镜子
eclipse-2018-09
http://download.eclipse.org/releases/2018-09
p2
eclipse-2018-09-tech
https://download.eclipse.org/technology/epp/packages/2018-09/
p2
org.eclipse.e4.rcp.feature.group
org.eclipse.emf.common.feature.group
org.eclipse.emf.ecore.feature.group
org.eclipse.equinox.executable.feature.group
org.eclipse.ui.themes
org.objectweb.asm
org.eclipse.swt
${project.build.directory}/repository
假的
真的
真的
假的
假的
假的
真的
真的