pax:wrap-jar doesn't create <parent> tag


pax:wrap-jar doesn't create <parent> tag, not even when using -DparentId=<groupId>:<artifactId>




September 10, 2009, 11:19 AM

You'll need to provide more info, such an example project layout (zipped up) including the details of the parent pom that you want to attach to.

Anders Storsveen
September 10, 2009, 11:56 AM

ok. here's and example:
fou178:wrapped-3rdparty wakko$ mvn pax:wrap-jar -DartifactId=ws-commons-util -Dversion=1.0.1 -DbundleVersion=1.0.1 -DparentId=org.coos:coos-parent-nogpl
[INFO] Scanning for projects...
[INFO] snapshot org.coos:coos-parent:0.3-SNAPSHOT: checking for updates from bjarne
[INFO] snapshot org.coos:coos-super-parent:0.3-SNAPSHOT: checking for updates from bjarne
[INFO] snapshot org.coos:coos-parent-nogpl:0.3-SNAPSHOT: checking for updates from bjarne
[INFO] Reactor build order:
[INFO] Messaging Wrapped Third Party
[INFO] 2.4.0 [osgi]
[INFO] 1.1 [osgi]
[INFO] 2.1.7 [osgi]
[INFO] 2.1.1 [osgi]
[INFO] 2.1.7 [osgi]
[INFO] com.springsource.javax.xml.soap 1.3.0 [osgi]
[INFO] org.jvnet.mimepull 1.3 [osgi]
[INFO] 2.1.3 [osgi]
[INFO] 2.1.3 [osgi]
[INFO] 1.4.0 [osgi]
[INFO] 1.5.8 [osgi]
[INFO] 3.1.1 [osgi]
[INFO] 3.1 [osgi]
[INFO] ------------------------------------------------------------------------ [INFO] Building Messaging Wrapped Third Party
[INFO] task-segment: [pax:wrap-jar] (aggregator-style)
[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/
[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:wrap-jar {execution: default-cli}]
[INFO] Selecting latest archetype release within version range [1,2)
[INFO] ---------------------------------------------------------------------------- [INFO] Using following parameters for creating Archetype: maven-archetype-osgi-wrapper:1.0.3
[INFO] ---------------------------------------------------------------------------- [INFO] Parameter: symbolicName, Value:
[INFO] Parameter: packageName, Value: ws-commons-util
[INFO] Parameter: archetypeVersion, Value: 1.0.3
[INFO] Parameter: groupId, Value:
[INFO] Parameter: archetypeArtifactId, Value: maven-archetype-osgi-wrapper
[INFO] Parameter: wrappedGroupId, Value:
[INFO] Parameter: version, Value: 1.0.1
[INFO] Parameter: archetypeGroupId, Value: org.ops4j.pax.construct
[INFO] Parameter: isMultiModuleProject, Value: true
[INFO] Parameter: basedir, Value: /Users/wakko/Documents/source/git/coos-messaging/wrapped-3rdparty
[INFO] Parameter: package, Value: ws-commons-util
[INFO] Parameter: artifactId, Value:
[INFO] Parameter: bundleVersion, Value: 1.0.1
[INFO] Parameter: wrappedArtifactId, Value: ws-commons-util
[INFO] ********************* End of debug info from resources from generated POM ***********************
[INFO] Archetype created in dir: /Users/wakko/Documents/source/git/coos-messaging/wrapped-3rdparty/
[INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESSFUL
[INFO] ------------------------------------------------------------------------ [INFO] Total time: 4 seconds
[INFO] Finished at: Thu Sep 10 13:25:29 CEST 2009
[INFO] Final Memory: 18M/80M
[INFO] ------------------------------------------------------------------------

This gives no errors, still there is no <parent> tag in the resulting file. the file that I'm attaching to isn't available on central (yet) but it's available to me, but via my set up repositories and my local repo.




Anders Storsveen