首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何在使用tycho- p2 -附加文件镜像eclipse p2存储库时获取源包

如何在使用tycho- p2 -附加文件镜像eclipse p2存储库时获取源包
EN

Stack Overflow用户
提问于 2019-08-05 15:09:49
回答 1查看 257关注 0票数 1

我想要创建eclipse p2存储库的镜像,其中包含构建rcp应用程序所需的ius。镜像确实起作用了,所需的包是本地存储的。我可以从我的tycho构建和我的eclipse ide中引用它们。它可以工作,但是目标定义文件(包含eclipse p2镜像的文件夹)会抱怨缺少的源包。

我读过并试用了Tycho-p2-附加的开关,但似乎没有开关可以解决这个问题。

代码语言:javascript
复制
<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>
EN

回答 1

Stack Overflow用户

发布于 2022-01-05 19:15:38

据我所知,在tycho-p2-extras-plugin:mirror目标中没有这样的选项,因为插件所依赖的Eclipse镜像应用程序中没有这样的选项。

您必须自己镜像相应的源特性(这将自动反映包含的包的相关源)。

但是,有些项目提供了自动包含所有源的特性,例如org.eclipse.emf.sdk.feature.group。如果您镜像这样的功能,您还将镜像所有的源。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/57361405

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档