Tycho cannot resolve dependency to bundle although present in the target file

前端 未结 3 1797
情话喂你
情话喂你 2021-01-22 16:34

I set up a Tycho build for multiple plug-ins, a feature, a site and a target defined within the pom.xmls.

I can run my application from within the Eclipse I

相关标签:
3条回答
  • 2021-01-22 16:42

    Also a possibility is like :

    1. You have created your target platform.
    2. Publish it to your local maven p2 repo.
    3. Added ca.odell.glazedlists to target platform (But forgot to publish target platform again).
    4. Now from within Eclipse, your bundle is currently inside the acquired target platform. However, from outside Eclipse, the mvn clean package command is still referring to the old target definition published in the beginning.
    5. So, try publishing the target platform again and then mvn clean package.
    0 讨论(0)
  • 2021-01-22 17:02

    in the tycho configuration, if you are configuring this way:

    <plugin>
                <groupId>org.eclipse.tycho</groupId>
                <artifactId>target-platform-configuration</artifactId>
                <configuration>
                    <pomDependencies>consider</pomDependencies>
                </configuration>
            </plugin>
    

    it will resolve dependencies from the dependencies configured in your pom. Otherwise, it will resolved dependencies from the entries in your MANIFEST file

    0 讨论(0)
  • 2021-01-22 17:03

    It seems that your target platform contains ca.odell.glazedlists in Eclipse but not in Tycho because that bundle is included via a mechanism which is not supported by Tycho. There is a warning in the log that tells you so:

    [WARNING] Target location type: Directory is not supported
    [WARNING] Target location type: Profile is not supported
    [WARNING] Target location type: Directory is not supported
    

    You need to change your target definition file so that it only uses "Software Site" locations.

    0 讨论(0)
提交回复
热议问题