繁体   English   中英

无法解析MavenProject的依赖项

[英]Cannot resolve dependencies of MavenProject

我的问题很具体,因为我不知道从哪里开始解决问题。 我希望您指向特定的“关键字”或代码点,我可以使用它们来分析问题。

我能够部署Eclipse捆绑包和Eclipse功能并将其部署到我自己的存储库中

mvnrepo.company.de

当我开始部署(安装)日食产品时,确实有一个依赖项解决问题。 部署产品的pom除了创建产品外没有其他事情。 我试图遵循http://www.vogella.com/tutorials/EclipseTycho/article.html#exercise-tycho-build-for-products

有问题的捆绑包部署在

mvnrepo.company.de/p2/eal-global-software-trunk/

我自己编译/部署了该捆绑包。

日志文件中列出了包含捆绑软件的存储库。

[INFO] Fetching p2.index from http://mvnrepo.company.de/p2/eal-3pp/
[INFO] Fetching p2.index from http://mvnrepo.company.de/p2/eal-3pp/
[INFO] Adding repository http://mvnrepo.company.de/p2/eal-3pp

!ENTRY org.eclipse.equinox.p2.metadata.repository 2 0 2018-04-26 14:02:16.634
!MESSAGE Error parsing metadata repository
!SUBENTRY 1 org.eclipse.equinox.p2.core 2 0 2018-04-26 14:02:16.634
!MESSAGE Error in file:/C:/Users/lm/.m2/repository/.cache/tycho/p2-repository-metadata/content-405500690.jar at line 17416, column 51: Missing required attribute in "property": value
[INFO] Fetching p2.index from http://mvnrepo.company.de/p2/common/
[INFO] Fetching p2.index from http://mvnrepo.company.de/p2/common/
[INFO] Adding repository http://mvnrepo.company.de/p2/common
[INFO] Fetching p2.index from http://mvnrepo.company.de/p2/eal-core-trunk/
[INFO] Fetching p2.index from http://mvnrepo.company.de/p2/eal-core-trunk/
[INFO] Adding repository http://mvnrepo.company.de/p2/eal-core-trunk
[INFO] Fetching p2.index from http://mvnrepo.company.de/p2/eal-rts-trunk/
[INFO] Fetching p2.index from http://mvnrepo.company.de/p2/eal-rts-trunk/
[INFO] Adding repository http://mvnrepo.company.de/p2/eal-rts-trunk
[INFO] Fetching p2.index from http://mvnrepo.company.de/p2/eal-software-trunk/
[INFO] Fetching p2.index from http://mvnrepo.company.de/p2/eal-software-trunk/
[INFO] Adding repository http://mvnrepo.company.de/p2/eal-software-trunk
[INFO] Fetching p2.index from http://mvnrepo.company.de/p2/eal-global-software-trunk/
[INFO] Fetching p2.index from http://mvnrepo.company.de/p2/eal-global-software-trunk/
[INFO] Adding repository http://mvnrepo.company.de/p2/eal-global-software-trunk
[DEBUG] Added 505 locally built units to the target platform
[INFO] Resolving dependencies of MavenProject: de.eal:de.global.runtime.product:0.0.1-SNAPSHOT @ M:\Entwicklung\Runtime-New-SVN\workspace\checkout\software\my_product\global.runtime\products\software.product\pom.xml
[DEBUG] No solution found because the problem is unsatisfiable.: [Unable to satisfy dependency from de.global.runtime.feature.feature.group 0.0.1 to de.global.runtime [0.0.1.201804260929].; No solution found because the problem is unsatisfiable.]
[INFO] {osgi.os=win32, osgi.ws=win32, org.eclipse.update.install.features=true, osgi.arch=x86}
[ERROR] Cannot resolve project dependencies:
[ERROR]   Software being installed: de.global.runtime 0.0.1.qualifier
[ERROR]   Missing requirement: de.global.runtime.feature.feature.group 0.0.1 requires 'de.global.runtime [0.0.1.201804260929]' but it could not be found
[ERROR]   Cannot satisfy dependency: de.global.runtime 0.0.1.qualifier depends on: de.global.runtime.feature.feature.group [0.0.1,0.0.2)
[ERROR] 
[ERROR] See http://wiki.eclipse.org/Tycho/Dependency_Resolution_Troubleshooting for help.
[ERROR] Cannot resolve dependencies of MavenProject: de.eal:de.global.runtime.product:0.0.1-SNAPSHOT @ M:\Entwicklung\Runtime-New-SVN\workspace\checkout\software\my_product\global.runtime\products\software.product\pom.xml: See log for details -> [Help 1]
org.apache.maven.MavenExecutionException: Cannot resolve dependencies of MavenProject: de.eal:de.global.runtime.product:0.0.1-SNAPSHOT @ M:\Entwicklung\Runtime-New-SVN\workspace\checkout\software\my_product\global.runtime\products\software.product\pom.xml
    at org.eclipse.tycho.core.maven.TychoMavenLifecycleParticipant.afterProjectsRead (TychoMavenLifecycleParticipant.java:100)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:264)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:956)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:290)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:194)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:498)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:289)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:229)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:415)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:356)
Caused by: org.eclipse.tycho.artifacts.DependencyResolutionException: Cannot resolve dependencies of MavenProject: de.eal:de.global.runtime.product:0.0.1-SNAPSHOT @ M:\Entwicklung\Runtime-New-SVN\workspace\checkout\software\my_product\global.runtime\products\software.product\pom.xml
    at org.eclipse.tycho.p2.resolver.P2ResolverImpl.resolveDependencies (P2ResolverImpl.java:201)
    at org.eclipse.tycho.p2.resolver.P2ResolverImpl.resolveDependencies (P2ResolverImpl.java:115)
    at org.eclipse.tycho.p2.resolver.P2DependencyResolver.doResolveDependencies (P2DependencyResolver.java:367)
    at org.eclipse.tycho.p2.resolver.P2DependencyResolver.resolveDependencies (P2DependencyResolver.java:335)
    at org.eclipse.tycho.core.resolver.DefaultTychoResolver.resolveProject (DefaultTychoResolver.java:117)
    at org.eclipse.tycho.core.maven.TychoMavenLifecycleParticipant.afterProjectsRead (TychoMavenLifecycleParticipant.java:95)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:264)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:956)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:290)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:194)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:498)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:289)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:229)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:415)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:356)
Caused by: org.eclipse.tycho.p2.util.resolution.ResolverException: See log for details
    at org.eclipse.tycho.p2.util.resolution.ProjectorResolutionStrategy.resolve (ProjectorResolutionStrategy.java:88)
    at org.eclipse.tycho.p2.util.resolution.AbstractResolutionStrategy.resolve (AbstractResolutionStrategy.java:42)
    at org.eclipse.tycho.p2.resolver.P2ResolverImpl.resolveDependencies (P2ResolverImpl.java:194)
    at org.eclipse.tycho.p2.resolver.P2ResolverImpl.resolveDependencies (P2ResolverImpl.java:115)
    at org.eclipse.tycho.p2.resolver.P2DependencyResolver.doResolveDependencies (P2DependencyResolver.java:367)
    at org.eclipse.tycho.p2.resolver.P2DependencyResolver.resolveDependencies (P2DependencyResolver.java:335)
    at org.eclipse.tycho.core.resolver.DefaultTychoResolver.resolveProject (DefaultTychoResolver.java:117)
    at org.eclipse.tycho.core.maven.TychoMavenLifecycleParticipant.afterProjectsRead (TychoMavenLifecycleParticipant.java:95)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:264)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:956)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:290)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:194)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:498)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:289)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:229)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:415)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:356)
[ERROR] 
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MavenExecutionException

我在用tycho

<tycho.version>1.1.0</tycho.version>

产品pom片段

<packaging>eclipse-repository</packaging>
    <version>0.0.1-SNAPSHOT</version>

    <build>
        <plugins>
            <plugin>
                <groupId>org.eclipse.tycho</groupId>
                <artifactId>tycho-p2-repository-plugin</artifactId>
                <version>${tycho.version}</version>
                <configuration>
                    <includeAllDependencies>true</includeAllDependencies>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.eclipse.tycho</groupId>
                <artifactId>tycho-p2-director-plugin</artifactId>
                <version>${tycho.version}</version>
                <executions>
                    <execution>
                        <id>materialize-products</id>
                        <goals>
                            <goal>materialize-products</goal>
                        </goals>
                    </execution>
                    <execution>
                        <id>archive-products</id>
                        <goals>
                            <goal>archive-products</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>

我的* .product中的UID在我的功能中像捆绑一样命名

“ de.global.runtime.product”是我的* .product文件的一部分

产品名称=“ XXX” uid =“ de.global.runtime.product” id =“ ......

和插件的名称

de.eal:de.global.runtime.product:0.0.1-SNAPSHOT

将UID重命名为

UID = “de.global.runtime.product.tycho”

有效

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM