簡體   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