Hi, I would like to test and build my Felix Dependency Manager commands for Equinox using Pax Construct. Building works fine using the artifact names of the build, that is <dependencies> <dependency> <groupId>org.apache.felix</groupId> <artifactId>org.apache.felix.dependencymanager</artifactId> <version>0.9.0-incubator-SNAPSHOT</version> <scope>provided</scope> </dependency> <dependency> <groupId>org.eclipse</groupId> <artifactId>osgi</artifactId> <version>3.2.1.R32x_v20060919</version> <scope>provided</scope> </dependency> </dependencies>
However, when I try to import the dep man using mvn pax:import-bundle -DgroupId=org.apache.felix -DartifactId=org.apache.felix.dependencymanager -Dversion=0.9.0-incubator-SNAPSHOT I get the first log. Then , doing mvn pax:provision I get the following upon ss: Working Dir: /Users/peter/code/ops4j/laboratory/users/peter/depman-commands/target/runner/work Starting: org.ops4j.depman.depman-commands, runner, 0.1.0-SNAPSHOT Name: Simple OSGi project Description: Build layout for a simple OSGi application Starting: org.ops4j.depman.depman-commands, runner, 0.1.0-SNAPSHOT Platform: equinox osgi> 21:06:43.217 EVENT Starting Jetty/4.2.22 21:06:43.240 EVENT Started SocketListener on 0.0.0.0:8080 21:06:43.241 EVENT Started [EMAIL PROTECTED] ss Framework is launched. id State Bundle 0 ACTIVE system.bundle_3.2.1.R32x_v20060717 1 ACTIVE javax.servlet.servlet_api_2.5.0 2 ACTIVE org.ungoverned.osgi.bundle.http_1.1.2 3 ACTIVE [EMAIL PROTECTED]:file:../apache/felix/org.apache.felix.dependencymanager_0.9.0-incubator-SNAPSHOT.jar/ [3] 5 RESOLVED org.ops4j.pax.depman.commands.equinox_org.ops4j.pax.depman.commands.equinox_0.1.0.SNAPSHOT 6 ACTIVE org.eclipse.osgi.services_3.1.100.v20060601 7 ACTIVE org.eclipse.osgi.util_3.1.100.v20060601 osgi> [EMAIL PROTECTED] refers to a non existing folder and it should be referring to a jar instead, not a folder. Not what I expected. I wonder if thre is any mismatch beween the bundles symbolic name and the conversion PaxConstruct makes because of the imported version and name? Thanks for any hints! /peter peter-mbp:~/code/ops4j/laboratory/users/peter/depman-commands peter$ mvn pax:import-bundle -DgroupId=org.apache.felix -DartifactId=org.apache.felix.dependencymanager -Dversion=0.9.0-incubator-SNAPSHOT [INFO] Scanning for projects... [INFO] Reactor build order: [INFO] Simple OSGi project [INFO] [INFO] OSGi wrappers for third-party jar(s) [INFO] org.apache.felix.dependencymanager (wrapped) [INFO] OSGi bundles imported from Maven/OBR [INFO] org.apache.felix.dependencymanager (imported) [INFO] org.apache.felix.dependencymanager (imported) [INFO] OSGi bundles compiled from source [INFO] org.apache.felix.dependencymanager [org.ops4j.pax.depman.commands.equinox] [INFO] Searching repository for plugin with prefix: 'pax'. [INFO] ---------------------------------------------------------------------------- [INFO] Building Simple OSGi project [INFO] task-segment: [pax:import-bundle] [INFO] ---------------------------------------------------------------------------- [INFO] Setting property: classpath.resource.loader.class => 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'. [INFO] Setting property: velocimacro.messages.on => 'false'. [INFO] Setting property: resource.loader => 'classpath'. [INFO] Setting property: resource.manager.logwhenfound => 'false'. [INFO] ************************************************************** [INFO] Starting Jakarta Velocity v1.4 [INFO] RuntimeInstance initializing. [INFO] Default Properties File: org/apache/velocity/runtime/defaults/velocity.properties [INFO] Default ResourceManager initializing. (class org.apache.velocity.runtime.resource.ResourceManagerImpl) [INFO] Resource Loader Instantiated: org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader [INFO] ClasspathResourceLoader : initialization starting. [INFO] ClasspathResourceLoader : initialization complete. [INFO] ResourceCache : initialized. (class org.apache.velocity.runtime.resource.ResourceCacheImpl) [INFO] Default ResourceManager initialization complete. [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Literal [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Macro [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Parse [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Include [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Foreach [INFO] Created: 20 parsers. [INFO] Velocimacro : initialization starting. [INFO] Velocimacro : adding VMs from VM library template : VM_global_library.vm [ERROR] ResourceManager : unable to find resource 'VM_global_library.vm' in any resource loader. [INFO] Velocimacro : error using VM library template VM_global_library.vm : org.apache.velocity.exception.ResourceNotFoundException: Unable to find resource 'VM_global_library.vm' [INFO] Velocimacro : VM library template macro registration complete. [INFO] Velocimacro : allowInline = true : VMs can be defined inline in templates [INFO] Velocimacro : allowInlineToOverride = false : VMs defined inline may NOT replace previous VM definitions [INFO] Velocimacro : allowInlineLocal = false : VMs defined inline will be global in scope if allowed. [INFO] Velocimacro : initialization complete. [INFO] Velocity successfully started. [INFO] [pax:import-bundle] [INFO] ---------------------------------------------------------------------------- [INFO] Building [INFO] task-segment: [pax:import-bundle] [INFO] ---------------------------------------------------------------------------- [INFO] [pax:import-bundle] [INFO] ---------------------------------------------------------------------------- [INFO] Building OSGi wrappers for third-party jar(s) [INFO] task-segment: [pax:import-bundle] [INFO] ---------------------------------------------------------------------------- [INFO] [pax:import-bundle] [INFO] ---------------------------------------------------------------------------- [INFO] Building org.apache.felix.dependencymanager (wrapped) [INFO] task-segment: [pax:import-bundle] [INFO] ---------------------------------------------------------------------------- [INFO] [pax:import-bundle] [INFO] ---------------------------------------------------------------------------- [INFO] Building OSGi bundles imported from Maven/OBR [INFO] task-segment: [pax:import-bundle] [INFO] ---------------------------------------------------------------------------- [INFO] [pax:import-bundle] [INFO] We are using command line specified remote repositories: http://repository.ops4j.org/maven2 [INFO] artifact org.ops4j.pax.construct:maven-archetype-osgi-import: checking for updates from id0 [INFO] ---------------------------------------------------------------------------- [INFO] Using following parameters for creating Archetype: maven-archetype-osgi-import:RELEASE [INFO] ---------------------------------------------------------------------------- [INFO] Parameter: groupId, Value: org.ops4j.depman.depman-commands.imports [INFO] Parameter: packageName, Value: -org.apache.felix [INFO] Parameter: basedir, Value: /Users/peter/code/ops4j/laboratory/users/peter/depman-commands/bundles/imported [INFO] Parameter: package, Value: -org.apache.felix [INFO] Parameter: version, Value: 0.9.0-incubator-SNAPSHOT [INFO] Parameter: artifactId, Value: org.apache.felix.dependencymanager [INFO] ********************* End of debug info from resources from generated POM *********************** [INFO] Archetype created in dir: /Users/peter/code/ops4j/laboratory/users/peter/depman-commands/bundles/imported/org.apache.felix.dependencymanager [INFO] ---------------------------------------------------------------------------- [INFO] Building org.apache.felix.dependencymanager (imported) [INFO] task-segment: [pax:import-bundle] [INFO] ---------------------------------------------------------------------------- [INFO] [pax:import-bundle] [INFO] ---------------------------------------------------------------------------- [INFO] Building org.apache.felix.dependencymanager (imported) [INFO] task-segment: [pax:import-bundle] [INFO] ---------------------------------------------------------------------------- [INFO] [pax:import-bundle] [INFO] ---------------------------------------------------------------------------- [INFO] Building OSGi bundles compiled from source [INFO] task-segment: [pax:import-bundle] [INFO] ---------------------------------------------------------------------------- [INFO] [pax:import-bundle] [INFO] ---------------------------------------------------------------------------- [INFO] Building org.apache.felix.dependencymanager [org.ops4j.pax.depman.commands.equinox] [INFO] task-segment: [pax:import-bundle] [INFO] ---------------------------------------------------------------------------- [INFO] [pax:import-bundle] [INFO] [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] ------------------------------------------------------------------------ [INFO] Simple OSGi project ................................... SUCCESS [2.204s] [INFO] ...................................................... SUCCESS [0.002s] [INFO] OSGi wrappers for third-party jar(s) .................. SUCCESS [0.002s] [INFO] org.apache.felix.dependencymanager (wrapped) .......... SUCCESS [0.002s] [INFO] OSGi bundles imported from Maven/OBR .................. SUCCESS [0.341s] [INFO] org.apache.felix.dependencymanager (imported) ......... SUCCESS [0.002s] [INFO] org.apache.felix.dependencymanager (imported) ......... SUCCESS [0.003s] [INFO] OSGi bundles compiled from source ..................... SUCCESS [0.002s] [INFO] org.apache.felix.dependencymanager [org.ops4j.pax.depman.commands.equinox] SUCCESS [0.002s] [INFO] ------------------------------------------------------------------------ [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESSFUL [INFO] ------------------------------------------------------------------------ [INFO] Total time: 3 seconds [INFO] Finished at: Sat Apr 21 21:04:34 CEST 2007 [INFO] Final Memory: 8M/15M [INFO] ------------------------------------------------------------------------ _______________________________________________ general mailing list general@lists.ops4j.org http://lists.ops4j.org/mailman/listinfo/general