使用Maven Tycho构建Eclipse产品失败求助
用Tycho构建Eclipse产品失败问题
- 已搭建完整POM结构:根目录为父POM,product、plugin、feature目录对应各自子POM
- 执行
mvn clean verify或mvn install命令时构建失败,核心问题为依赖无法解析 - 尝试过的解决方法:
- 在父POM中添加仓库配置,未生效
- 在Eclipse中配置对应仓库,问题依旧
以下是父pom.xml代码:
<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> <groupId>com.sisnet.ide</groupId> <artifactId>ParentSISnetRCP</artifactId> <version>1.0.0-SNAPSHOT</version> <packaging>pom</packaging> <properties> <tycho.version>2.7.5</tycho.version> <project.build.sourceEncoding>ISO-8859-15</project.build.sourceEncoding> <eclipse-repo.url>https://download.eclipse.org/releases/latest</eclipse-repo.url> </properties> <build> <pluginManagement> <plugins> <plugin> <groupId>org.eclipse.tycho</groupId> <artifactId>tycho-p2-director-plugin</artifactId> <version>${tycho.version}</version> </plugin> </plugins> </pluginManagement> <plugins> <plugin> <groupId>org.eclipse.tycho</groupId> <artifactId>tycho-maven-plugin</artifactId> <version>${tycho.version}</version> <extensions>true</extensions> </plugin> <!--Enable the replacement of the SNAPSHOT version in the final product configuration--> <plugin> <groupId>org.eclipse.tycho</groupId> <artifactId>tycho-packaging-plugin</artifactId> <version>${tycho.version}</version> <executions> <execution> <phase>package</phase> <id>package-feature</id> <configuration> <finalName> ${project.artifactId}_${unqualifiedVersion}.${buildQualifier}</finalName> </configuration> </execution> </executions> </plugin> <plugin> <groupId>org.eclipse.tycho</groupId> <artifactId>target-platform-configuration</artifactId> <version>${tycho.version}</version> <configuration> <!-- Optional set the Java version you are using--> <!-- <executionEnvironment>JavaSE-17</executionEnvironment>--> <environments> <environment> <os>linux</os> <ws>gtk</ws> <arch>x86_64</arch> </environment> <environment> <os>win32</os> <ws>win32</ws> <arch>x86_64</arch> </environment> <environment> <os>macosx</os> <ws>cocoa</ws> <arch>x86_64</arch> </environment> </environments> </configuration> </plugin> </plugins> </build> <modules> <!--TODO ADD YOUR MODULES HERE--> <module>com.sisnet.ide.target</module> <module>com.sisnet.ide.feature</module> <module>com.sisnet.ide.plugin</module> <module>com.sisnet.ide.product</module> </modules> </project>
内容的提问来源于stack exchange,提问作者HD3S
相关产品推荐
相关产品推荐

