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


i set tycho build multiple plug-ins, feature, site , target defined within pom.xmls.

i can run application within eclipse ide. also, mvn clean package builds fine.

however, when add plug-in needs ca.odell.glazedlists (which in target definition) can still run within ide, mvn clean package build fails. ideas do? maven output , pom.xml follow.

maven output

[info] computing target platform mavenproject: lumo:microsoftsqlserver:0.0.1-snapshot @ d:\java7\lumoe4workspace\microsoftsqlserver\pom.xml [info] fetching p2.index http://download.eclipse.org/releases/kepler/ (0b @ 0b/s) [info] fetching p2.index http://download.eclipse.org/releases/kepler/ (128b @ 0b/s) [info] 1 operation remaining. [info] adding repository http://download.eclipse.org/releases/kepler [info] fetching p2.index http://download.eclipse.org/releases/kepler/201306260900/ (0b @ 0b/s) [info] 1 operation remaining. [info] fetching p2.index http://download.eclipse.org/releases/kepler/201306260900/ (365b @ 0b/s) [info] fetching p2.index http://download.eclipse.org/technology/epp/packages/kepler/ (0b @ 0b/s) [info] 1 operation remaining. [info] fetching p2.index http://download.eclipse.org/technology/epp/packages/kepler/ (116b @ 0b/s) [info] fetching p2.index http://download.eclipse.org/releases/kepler/ (0b @ 0b/s) [info] 1 operation remaining. [info] fetching p2.index http://download.eclipse.org/releases/kepler/ (128b @ 0b/s) [info] adding repository http://download.eclipse.org/releases/kepler [info] fetching p2.index http://download.eclipse.org/releases/kepler/201306260900/ (0b @ 0b/s) [info] 1 operation remaining. [info] fetching p2.index http://download.eclipse.org/releases/kepler/201306260900/ (365b @ 0b/s) [info] fetching p2.index http://download.eclipse.org/technology/epp/packages/kepler/ (0b @ 0b/s) [info] 1 operation remaining. [info] fetching p2.index http://download.eclipse.org/technology/epp/packages/kepler/ (116b @ 0b/s) [warning] target location type: directory not supported [warning] target location type: profile not supported [warning] target location type: directory not supported [warning] de-selecting bundles in target definition file not supported. see http://wiki.eclipse.org/tycho_messages_explained#target_file_include_bundles alternatives. [info] resolving dependencies of mavenproject: lumo:microsoftsqlserver:0.0.1-snapshot @ d:\java7\lumoe4workspace\microsoftsqlserver\pom.xml [info] resolving class path of mavenproject: lumo:microsoftsqlserver:0.0.1-snapshot @ d:\java7\lumoe4workspace\microsoftsqlserver\pom.xml [info] computing target platform mavenproject: lumo:org.eclipse.gemini.dbaccess.microsoftsqlserver:0.0.1-snapshot @ d:\java7\lumoe4workspace\org.eclipse.gemini.dbaccess.microsoftsqlserver\pom.xml [info] resolving dependencies of mavenproject: lumo:org.eclipse.gemini.dbaccess.microsoftsqlserver:0.0.1-snapshot @ d:\java7\lumoe4workspace\org.eclipse.gemini.dbaccess.microsoftsqlserver\pom.xml [info] resolving class path of mavenproject: lumo:org.eclipse.gemini.dbaccess.microsoftsqlserver:0.0.1-snapshot @ d:\java7\lumoe4workspace\org.eclipse.gemini.dbaccess.microsoftsqlserver\pom.xml [info] computing target platform mavenproject: lumo:lumo.settings:0.0.1-snapshot @ d:\java7\lumoe4workspace\lumo.settings\pom.xml [info] resolving dependencies of mavenproject: lumo:lumo.settings:0.0.1-snapshot @ d:\java7\lumoe4workspace\lumo.settings\pom.xml [info] resolving class path of mavenproject: lumo:lumo.settings:0.0.1-snapshot @ d:\java7\lumoe4workspace\lumo.settings\pom.xml [info] computing target platform mavenproject: lumo:lumo.components:0.0.1-snapshot @ d:\java7\lumoe4workspace\lumo.components\pom.xml [info] resolving dependencies of mavenproject: lumo:lumo.components:0.0.1-snapshot @ d:\java7\lumoe4workspace\lumo.components\pom.xml [info] resolving class path of mavenproject: lumo:lumo.components:0.0.1-snapshot @ d:\java7\lumoe4workspace\lumo.components\pom.xml [info] computing target platform mavenproject: lumo:lumo.osgi.service.dialog:0.0.1-snapshot @ d:\java7\lumoe4workspace\lumo.osgi.service.dialog\pom.xml [info] resolving dependencies of mavenproject: lumo:lumo.osgi.service.dialog:0.0.1-snapshot @ d:\java7\lumoe4workspace\lumo.osgi.service.dialog\pom.xml [info] resolving class path of mavenproject: lumo:lumo.osgi.service.dialog:0.0.1-snapshot @ d:\java7\lumoe4workspace\lumo.osgi.service.dialog\pom.xml [info] computing target platform mavenproject: lumo:lumo.osgi.service.dialog.impl:0.0.1-snapshot @ d:\java7\lumoe4workspace\lumo.osgi.service.dialog.impl\pom.xml [info] resolving dependencies of mavenproject: lumo:lumo.osgi.service.dialog.impl:0.0.1-snapshot @ d:\java7\lumoe4workspace\lumo.osgi.service.dialog.impl\pom.xml [info] cannot complete request.  generating details. [info] cannot complete request.  generating details. [info] {osgi.ws=win32, osgi.os=win32, osgi.arch=x86, org.eclipse.update.install.features=true} [error] cannot resolve project dependencies: [error]   software being installed: lumo.osgi.service.dialog.impl 0.0.1.qualifier [error]   missing requirement: lumo.core.runtime 0.0.1.qualifier requires 'bundle ca.odell.glazedlists 1.9.0' not found [error]   cannot satisfy dependency: lumo.osgi.service.dialog.impl 0.0.1.qualifier depends on: bundle lumo.core.runtime 0.0.1 [error]  [error] internal error: java.lang.runtimeexception: "no solution found because problem unsatisfiable.": ["unable satisfy dependency lumo.core.runtime 0.0.1.qualifier bundle ca.odell.glazedlists 1.9.0.", "unable satisfy dependency org.eclipse.nebula.widgets.nattable.extension.glazedlists 1.0.1.201307031725 package ca.odell.glazedlists 0.0.0.", "unable satisfy dependency org.eclipse.nebula.widgets.nattable.extension.glazedlists 1.0.1.201307031725 package ca.odell.glazedlists.event 0.0.0.", "unable satisfy dependency org.eclipse.nebula.widgets.nattable.extension.glazedlists 1.0.1.201307031725 package ca.odell.glazedlists.gui 0.0.0.", "unable satisfy dependency org.eclipse.nebula.widgets.nattable.extension.glazedlists 1.0.1.201307031725 package ca.odell.glazedlists.matchers 0.0.0.", "unable satisfy dependency org.eclipse.nebula.widgets.nattable.extension.glazedlists 1.0.1.201307031725 package ca.odell.glazedlists.util.concurrent 0.0.0.", "no solution found because problem unsatisfiable."] -> [help 1] org.apache.maven.internalerrorexception: internal error: java.lang.runtimeexception: "no solution found because problem unsatisfiable.": ["unable satisfy dependency lumo.core.runtime 0.0.1.qualifier bundle ca.odell.glazedlists 1.9.0.", "unable satisfy dependency org.eclipse.nebula.widgets.nattable.extension.glazedlists 1.0.1.201307031725 package ca.odell.glazedlists 0.0.0.", "unable satisfy dependency org.eclipse.nebula.widgets.nattable.extension.glazedlists 1.0.1.201307031725 package ca.odell.glazedlists.event 0.0.0.", "unable satisfy dependency org.eclipse.nebula.widgets.nattable.extension.glazedlists 1.0.1.201307031725 package ca.odell.glazedlists.gui 0.0.0.", "unable satisfy dependency org.eclipse.nebula.widgets.nattable.extension.glazedlists 1.0.1.201307031725 package ca.odell.glazedlists.matchers 0.0.0.", "unable satisfy dependency org.eclipse.nebula.widgets.nattable.extension.glazedlists 1.0.1.201307031725 package ca.odell.glazedlists.util.concurrent 0.0.0.", "no solution found because problem unsatisfiable."]     @ org.apache.maven.defaultmaven.execute(defaultmaven.java:168)     @ org.apache.maven.cli.mavencli.execute(mavencli.java:537)     @ org.apache.maven.cli.mavencli.domain(mavencli.java:196)     @ org.apache.maven.cli.mavencli.main(mavencli.java:141)     @ sun.reflect.nativemethodaccessorimpl.invoke0(native method)     @ sun.reflect.nativemethodaccessorimpl.invoke(unknown source)     @ sun.reflect.delegatingmethodaccessorimpl.invoke(unknown source)     @ java.lang.reflect.method.invoke(unknown source)     @ org.codehaus.plexus.classworlds.launcher.launcher.launchenhanced(launcher.java:290)     @ org.codehaus.plexus.classworlds.launcher.launcher.launch(launcher.java:230)     @ org.codehaus.plexus.classworlds.launcher.launcher.mainwithexitcode(launcher.java:409)     @ org.codehaus.plexus.classworlds.launcher.launcher.main(launcher.java:352) caused by: java.lang.runtimeexception: "no solution found because problem unsatisfiable.": ["unable satisfy dependency lumo.core.runtime 0.0.1.qualifier bundle ca.odell.glazedlists 1.9.0.", "unable satisfy dependency org.eclipse.nebula.widgets.nattable.extension.glazedlists 1.0.1.201307031725 package ca.odell.glazedlists 0.0.0.", "unable satisfy dependency org.eclipse.nebula.widgets.nattable.extension.glazedlists 1.0.1.201307031725 package ca.odell.glazedlists.event 0.0.0.", "unable satisfy dependency org.eclipse.nebula.widgets.nattable.extension.glazedlists 1.0.1.201307031725 package ca.odell.glazedlists.gui 0.0.0.", "unable satisfy dependency org.eclipse.nebula.widgets.nattable.extension.glazedlists 1.0.1.201307031725 package ca.odell.glazedlists.matchers 0.0.0.", "unable satisfy dependency org.eclipse.nebula.widgets.nattable.extension.glazedlists 1.0.1.201307031725 package ca.odell.glazedlists.util.concurrent 0.0.0.", "no solution found because problem unsatisfiable."]     @ org.eclipse.tycho.p2.resolver.abstractresolutionstrategy.newresolutionexception(abstractresolutionstrategy.java:98)     @ org.eclipse.tycho.p2.resolver.projectorresolutionstrategy.resolve(projectorresolutionstrategy.java:88)     @ org.eclipse.tycho.p2.resolver.abstractresolutionstrategy.resolve(abstractresolutionstrategy.java:63)     @ org.eclipse.tycho.p2.impl.resolver.p2resolverimpl.resolvedependencies(p2resolverimpl.java:126)     @ org.eclipse.tycho.p2.impl.resolver.p2resolverimpl.resolvedependencies(p2resolverimpl.java:81)     @ org.eclipse.tycho.p2.resolver.p2targetplatformresolver.doresolveplatform(p2targetplatformresolver.java:374)     @ org.eclipse.tycho.p2.resolver.p2targetplatformresolver.resolvedependencies(p2targetplatformresolver.java:350)     @ org.eclipse.tycho.core.resolver.defaulttychodependencyresolver.resolveproject(defaulttychodependencyresolver.java:109)     @ org.eclipse.tycho.core.maven.tychomavenlifecycleparticipant.afterprojectsread(tychomavenlifecycleparticipant.java:82)     @ org.apache.maven.defaultmaven.doexecute(defaultmaven.java:274)     @ org.apache.maven.defaultmaven.execute(defaultmaven.java:156)     ... 11 more 

pom.xml

<?xml version="1.0" encoding="utf-8"?> <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>lumo</groupid>     <artifactid>lumo-e4</artifactid>     <version>0.0.1-snapshot</version>     <packaging>pom</packaging>      <properties>         <tycho.version>0.18.0</tycho.version>         <maven.compiler.source>1.7</maven.compiler.source>         <maven.compiler.target>1.7</maven.compiler.target>         <encoding>utf-8</encoding>     </properties>     <modules>         <module>lumo.target</module>           <module>microsoftsqlserver</module>         <module>org.eclipse.gemini.dbaccess.microsoftsqlserver</module>           <module>lumo.settings</module>         <module>lumo.components</module>         <module>lumo.osgi.service.dialog</module>         <module>lumo.osgi.service.dialog.impl</module>          <module>lumo.osgi.service.notification</module>         <module>lumo.osgi.service.notification.impl</module>           <module>lumo.core.runtime</module>         <module>lumo.rcp</module>         <module>lumo.model</module>         <module>lumo.site</module>         <module>lumo.feature</module>      </modules>     <build>         <plugins>             <plugin>                 <groupid>org.eclipse.tycho</groupid>                 <artifactid>tycho-maven-plugin</artifactid>                 <version>${tycho.version}</version>                 <extensions>true</extensions>             </plugin>              <!-- use custom target platform -->             <plugin>                 <groupid>org.eclipse.tycho</groupid>                 <artifactid>target-platform-configuration</artifactid>                 <version>${tycho.version}</version>                 <configuration>                     <target>                         <artifact>                             <groupid>${project.groupid}</groupid>                             <artifactid>lumo.target</artifactid>                             <version>${project.version}</version>                         </artifact>                     </target>                 </configuration>             </plugin>         </plugins>     </build>      <repositories>         <repository>             <id>kepler</id>             <layout>p2</layout>             <url>http://download.eclipse.org/releases/kepler</url>         </repository>     </repositories> </project> 

it seems target platform contains ca.odell.glazedlists in eclipse not in tycho because bundle included via mechanism not supported tycho. there warning in log tells so:

[warning] target location type: directory not supported [warning] target location type: profile not supported [warning] target location type: directory not supported 

you need change target definition file uses "software site" locations.


Comments