Here ya go:

[DEBUG]   (f) mavenSession = org.apache.maven.execution.mavensess...@6691da
[DEBUG] (s) outputDirectory = /home/abcdefg/build/20101228-REFACTOR-DEPS/BPM/bpm-dist/target [DEBUG] (f) project = MavenProject: com.whatever:bpm-dist:0.0.3-SNAPSHOT @ /home/abcdefg/build/20101228-REFACTOR-DEPS/BPM/bpm-dist/pom.xml [DEBUG] (s) reactorProjects = [MavenProject: com.whatever:Module001:0.0.3-SNAPSHOT @ /home/abcdefg/build/20101228-REFACTOR-DEPS/Module001/pom.xml, MavenProject: com.whatever:Module002:0.0.3-SNAPSHOT @ /home/abcdefg/build/20101228-REFACTOR-DEPS/Module002/pom.xml, MavenProject: com.whatever:HibernateWrapper:0.0.3-SNAPSHOT @ /home/abcdefg/build/20101228-REFACTOR-DEPS/HibernateWrapper/pom.xml, MavenProject: com.whatever:Module003:0.0.3-SNAPSHOT @ /home/abcdefg/build/20101228-REFACTOR-DEPS/Module003/pom.xml, MavenProject: com.whatever:WXYZClient:0.0.3-SNAPSHOT @ /home/abcdefg/build/20101228-REFACTOR-DEPS/WXYZClient/pom.xml, MavenProject: com.whatever:BatchProcessManager:0.0.3-SNAPSHOT @ /home/abcdefg/build/20101228-REFACTOR-DEPS/BatchProcessManager/pom.xml, MavenProject: com.whatever:BPM:0.0.3-SNAPSHOT @ /home/abcdefg/build/20101228-REFACTOR-DEPS/BPM/pom.xml, MavenProject: com.whatever:bpm-dist:0.0.3-SNAPSHOT @ /home/abcdefg/build/20101228-REFACTOR-DEPS/BPM/bpm-dist/pom.xml]
[DEBUG]   (f) remoteRepositories = [       id: central
      url: http://repo1.maven.org/maven2
   layout: default
snapshots: [enabled => false, update => daily]
 releases: [enabled => true, update => daily]
]
[DEBUG]   (f) runOnlyAtExecutionRoot = false
[DEBUG] (s) siteDirectory = /home/abcdefg/build/20101228-REFACTOR-DEPS/BPM/bpm-dist/target/site
[DEBUG]   (f) skipAssembly = false
[DEBUG]   (s) tarLongFileMode = warn
[DEBUG] (s) tempRoot = /home/abcdefg/build/20101228-REFACTOR-DEPS/BPM/bpm-dist/target/archive-tmp
[DEBUG]   (f) updateOnly = false
[DEBUG]   (f) useJvmChmod = false
[DEBUG] (s) workDirectory = /home/abcdefg/build/20101228-REFACTOR-DEPS/BPM/bpm-dist/target/assembly/work
[DEBUG] -- end configuration --
[INFO] Reading assembly descriptor: ../src/main/assembly/zip.xml
[DEBUG] Before assembly is interpolated:

<?xml version="1.0" encoding="UTF-8"?>
<assembly>
  <id>BPM</id>
  <formats>
    <format>zip</format>
  </formats>
  <baseDirectory>bpm</baseDirectory>
  <moduleSets>
    <moduleSet>
      <useAllReactorProjects>true</useAllReactorProjects>
      <includes>
        <include>com.whatever:Module001</include>
        <include>com.whatever:Module002</include>
        <include>com.whatever:HibernateWrapper</include>
        <include>com.whatever:Module003</include>
        <include>com.whatever:WXYZClient</include>
        <include>com.whatever:BatchProcessManager</include>
      </includes>
      <binaries>
        <outputDirectory>lib</outputDirectory>
        <dependencySets>
          <dependencySet>
            <outputDirectory>lib</outputDirectory>
          </dependencySet>
        </dependencySets>
        <unpack>false</unpack>
      </binaries>
    </moduleSet>
  </moduleSets>
  <fileSets>
    <fileSet>
      <outputDirectory>config</outputDirectory>
      <includes>
        <include>**</include>
      </includes>
      <directory>../../BatchProcessManager/unpackaged/config</directory>
    </fileSet>
  </fileSets>
</assembly>



[DEBUG] After assembly is interpolated:

<?xml version="1.0" encoding="UTF-8"?>
<assembly>
  <id>BPM</id>
  <formats>
    <format>zip</format>
  </formats>
  <baseDirectory>bpm</baseDirectory>
  <moduleSets>
    <moduleSet>
      <useAllReactorProjects>true</useAllReactorProjects>
      <includes>
        <include>com.whatever:Module001</include>
        <include>com.whatever:Module002</include>
        <include>com.whatever:HibernateWrapper</include>
        <include>com.whatever:Module003</include>
        <include>com.whatever:WXYZClient</include>
        <include>com.whatever:BatchProcessManager</include>
      </includes>
      <binaries>
        <outputDirectory>lib</outputDirectory>
        <dependencySets>
          <dependencySet>
            <outputDirectory>lib</outputDirectory>
          </dependencySet>
        </dependencySets>
        <unpack>false</unpack>
      </binaries>
    </moduleSet>
  </moduleSets>
  <fileSets>
    <fileSet>
      <outputDirectory>config</outputDirectory>
      <includes>
        <include>**</include>
      </includes>
      <directory>../../BatchProcessManager/unpackaged/config</directory>
    </fileSet>
  </fileSets>
</assembly>



[DEBUG] All known ContainerDescritporHandler components: [metaInf-services, file-aggregator, plexus, metaInf-spring] [WARNING] The following patterns were never triggered in this artifact inclusion filter:
o  'com.whatever:Module001'
o  'com.whatever:Module002'
o  'com.whatever:HibernateWrapper'
o  'com.whatever:Module003'
o  'com.whatever:WXYZClient'
o  'com.whatever:BatchProcessManager'

[DEBUG] Resolving project dependencies transitively.
[DEBUG] While resolving dependencies of com.whatever:bpm-dist:pom:0.0.3-SNAPSHOT: [DEBUG] Statistics for Scope filter [null-scope=true, compile=true, runtime=true, test=false, provided=false, system=false]

[DEBUG] The following scope filters were not used:
o [Null Scope]
o Compile
o Runtime
o Test
o Provided
o System
[DEBUG] FileSet[config/] dir perms: -1 file perms: -1
[DEBUG] The archive base directory is 'null'
[DEBUG] NOT reformatting any files in /home/abcdefg/build/20101228-REFACTOR-DEPS/BPM/bpm-dist/../../BatchProcessManager/unpackaged/config [DEBUG] Adding file-set from directory: '/home/abcdefg/build/20101228-REFACTOR-DEPS/BPM/bpm-dist/../../BatchProcessManager/unpackaged/config'
assembly output directory is: 'config/'
[DEBUG] Adding file-set in: /home/abcdefg/build/20101228-REFACTOR-DEPS/BPM/bpm-dist/../../BatchProcessManager/unpackaged/config to archive location: bpm/config/
[DEBUG] No dependency sets specified.
[DEBUG] Cannot find ArtifactResolver with hint: project-cache-aware
org.codehaus.plexus.component.repository.exception.ComponentLookupException: java.util.NoSuchElementException
      role: org.apache.maven.artifact.resolver.ArtifactResolver
  roleHint: project-cache-aware
at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:251) at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:227) at org.apache.maven.shared.repository.DefaultRepositoryAssembler.contextualize(DefaultRepositoryAssembler.java:721) at org.codehaus.plexus.PlexusLifecycleManager.contextualize(PlexusLifecycleManager.java:247) at org.codehaus.plexus.PlexusLifecycleManager.manageLifecycle(PlexusLifecycleManager.java:223) at org.codehaus.plexus.PlexusLifecycleManager.manageDeferredLifecycles(PlexusLifecycleManager.java:199) at org.codehaus.plexus.PlexusLifecycleManager.manage(PlexusLifecycleManager.java:124) at org.sonatype.guice.plexus.binders.PlexusBeanBinder.afterInjection(PlexusBeanBinder.java:79) at com.google.inject.internal.MembersInjectorImpl.notifyListeners(MembersInjectorImpl.java:97) at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:95) at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:253)
        at 
com.google.inject.internal.InjectorImpl$4$1.call(InjectorImpl.java:949)
at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1002)
        at com.google.inject.internal.InjectorImpl$4.get(InjectorImpl.java:945)
at com.google.inject.internal.InjectorImpl.getInstance(InjectorImpl.java:984) at org.sonatype.guice.bean.reflect.AbstractDeferredClass.get(AbstractDeferredClass.java:48) at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:40) at com.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:46) at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1002) at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
        at com.google.inject.Scopes$1$1.get(Scopes.java:59)
at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:40)
        at 
com.google.inject.internal.InjectorImpl$4$1.call(InjectorImpl.java:949)
at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:995)
        at com.google.inject.internal.InjectorImpl$4.get(InjectorImpl.java:945)
at org.sonatype.guice.bean.locators.LazyQualifiedBean.getValue(LazyQualifiedBean.java:66) at org.sonatype.guice.plexus.locators.LazyPlexusBean.getValue(LazyPlexusBean.java:54) at org.sonatype.guice.bean.locators.EntryListAdapter$ValueIterator.next(EntryListAdapter.java:129) at org.apache.maven.plugin.assembly.archive.DefaultAssemblyArchiver.createArchive(DefaultAssemblyArchiver.java:187) at org.apache.maven.plugin.assembly.mojos.AbstractAssemblyMojo.execute(AbstractAssemblyMojo.java:409) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:107) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:195) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:148) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:140) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59) at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:316)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:153)
        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:451)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:188)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:134)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: java.util.NoSuchElementException
        at java.util.AbstractList$Itr.next(AbstractList.java:350)
at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:247)
        ... 50 more
[WARNING] The following patterns were never triggered in this artifact inclusion filter:
o  'com.whatever:Module001'
o  'com.whatever:Module002'
o  'com.whatever:HibernateWrapper'
o  'com.whatever:Module003'
o  'com.whatever:WXYZClient'
o  'com.whatever:BatchProcessManager'

[WARNING] NOTE: Currently, inclusion of module dependencies may produce unpredictable results if a version conflict occurs. [INFO] Building zip: /home/abcdefg/build/20101228-REFACTOR-DEPS/BPM/bpm-dist/target/20101228-REFACTOR-DEPS.zip
[DEBUG] adding directory bpm/
[DEBUG] adding directory bpm/config/
[DEBUG] adding entry bpm/config/job_scheduling_data_1_8.xsd
[DEBUG] adding entry bpm/config/prod-db.connection.properties
[DEBUG] adding entry bpm/config/BatchProcessManager-junit.properties
[DEBUG] adding entry bpm/config/log4j.dtd
[DEBUG] adding entry bpm/config/log4j-junit.xml
[DEBUG] adding entry bpm/config/backup-db.connection.properties
[DEBUG] adding entry bpm/config/local-db.connection.properties
[DEBUG] adding entry bpm/config/jobs.xml
[DEBUG] adding entry bpm/config/BatchProcessManager-dev.properties
[DEBUG] adding entry bpm/config/junit-db.connection.properties
[DEBUG] adding entry bpm/config/log4j.xml
[DEBUG] adding entry bpm/config/dev-db.connection.properties
[DEBUG] adding entry bpm/config/BatchProcessManager-prod.properties
[DEBUG] adding entry bpm/config/BatchProcessManager-backup.properties
[DEBUG] adding entry bpm/config/BatchProcessManager-local.properties
[INFO]
[INFO] --- maven-install-plugin:2.3.1:install (default-install) @ bpm-dist --- [DEBUG] Configuring mojo org.apache.maven.plugins:maven-install-plugin:2.3.1:install from plugin realm ClassRealm[plugin>org.apache.maven.plugins:maven-install-plugin:2.3.1, parent: sun.misc.launcher$appclassloa...@16f0472] [DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-install-plugin:2.3.1:install' with basic configurator -->
[DEBUG]   (f) artifact = com.whatever:bpm-dist:pom:0.0.3-SNAPSHOT
[DEBUG]   (f) attachedArtifacts = [com.whatever:bpm-dist:zip:0.0.3-SNAPSHOT]
[DEBUG]   (f) createChecksum = false
[DEBUG]   (f) localRepository =        id: local
      url: file:///home/abcdefg/.m2/repository/
   layout: none

[DEBUG]   (f) packaging = pom
[DEBUG] (f) pomFile = /home/abcdefg/build/20101228-REFACTOR-DEPS/BPM/bpm-dist/pom.xml
[DEBUG]   (f) updateReleaseInfo = false
[DEBUG] -- end configuration --
[INFO] Installing /home/abcdefg/build/20101228-REFACTOR-DEPS/BPM/bpm-dist/pom.xml to /home/abcdefg/.m2/repository/com/whatever/bpm-dist/0.0.3-SNAPSHOT/bpm-dist-0.0.3-SNAPSHOT.pom [DEBUG] Reading resolution tracking file /home/abcdefg/.m2/repository/com/whatever/bpm-dist/0.0.3-SNAPSHOT/_maven.repositories [DEBUG] Writing resolution tracking file /home/abcdefg/.m2/repository/com/whatever/bpm-dist/0.0.3-SNAPSHOT/_maven.repositories [DEBUG] Installing com.whatever:bpm-dist:0.0.3-SNAPSHOT/maven-metadata.xml to /home/abcdefg/.m2/repository/com/whatever/bpm-dist/0.0.3-SNAPSHOT/maven-metadata-local.xml [DEBUG] Installing com.whatever:bpm-dist/maven-metadata.xml to /home/abcdefg/.m2/repository/com/whatever/bpm-dist/maven-metadata-local.xml [INFO] Installing /home/abcdefg/build/20101228-REFACTOR-DEPS/BPM/bpm-dist/target/20101228-REFACTOR-DEPS.zip to /home/abcdefg/.m2/repository/com/whatever/bpm-dist/0.0.3-SNAPSHOT/bpm-dist-0.0.3-SNAPSHOT.zip [DEBUG] Reading resolution tracking file /home/abcdefg/.m2/repository/com/whatever/bpm-dist/0.0.3-SNAPSHOT/_maven.repositories [DEBUG] Writing resolution tracking file /home/abcdefg/.m2/repository/com/whatever/bpm-dist/0.0.3-SNAPSHOT/_maven.repositories [DEBUG] Installing com.whatever:bpm-dist:0.0.3-SNAPSHOT/maven-metadata.xml to /home/abcdefg/.m2/repository/com/whatever/bpm-dist/0.0.3-SNAPSHOT/maven-metadata-local.xml [DEBUG] Installing com.whatever:bpm-dist/maven-metadata.xml to /home/abcdefg/.m2/repository/com/whatever/bpm-dist/maven-metadata-local.xml [INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Module001 ......................................... SUCCESS [0.346s]
[INFO] Module002 ......................................... SUCCESS [1.637s]
[INFO] HibernateWrapper .................................. SUCCESS [1.026s]
[INFO] Module003 ......................................... SUCCESS [15.062s]
[INFO] WXYZClient ........................................ SUCCESS [1.687s]
[INFO] BatchProcessManager ............................... SUCCESS [26.303s]
[INFO] BPM ............................................... SUCCESS [0.007s]
[INFO] bpm-dist .......................................... SUCCESS [0.653s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 46.956s
[INFO] Finished at: Wed Dec 29 10:26:30 EST 2010
[INFO] Final Memory: 34M/315M
[INFO] ------------------------------------------------------------------------





On 12/29/2010 12:38 PM, Jon Paynter wrote:
What error messages are you seeing?
running mvn -X should give much more detailed messages.   I know that helped
me a lot when debugging assembly problems.

On Wed, Dec 29, 2010 at 7:45 AM, Steve Cohen<[email protected]>  wrote:

On 12/29/2010 09:21 AM, Steve Cohen wrote:

Aargh!

Following the pattern outlined here:


http://maven.apache.org/plugins/maven-assembly-plugin/examples/multimodule/module-binary-inclusion-simple.html


I create POM's and assembly descriptors fitting that model.

All of the submodules are built and installed in a local repository. The
parts of maven that do that have no problem finding this local
repository or knowing that that's where they should be installed to.

But when the assembly plugin goes to build the final assembly, it isn't
finding these modules in the local repository WHICH ARE THERE!

Must I specify the local repository in the assembly descriptor?

This was NOT necessary when I built the same thing with m2eclipse.

Shoot me now and get it over with!

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]




Perhaps shedding some light on the above is this detail:

I see in the maven debug output, the following:

[DEBUG] Reading resolution tracking file
/home/.../.m2/repository/com/whatever/bpm-dist/0.0.3-SNAPSHOT/_maven.repositories
[DEBUG] Writing resolution tracking file
/home/.../.m2/repository/com/whatever/bpm-dist/0.0.3-SNAPSHOT/_maven.repositories

This _maven.repositories file has the following content:

#NOTE: This is an internal implementation file, its format can be changed
without prior notice.
#Wed Dec 29 10:26:30 EST 2010
bpm-dist-0.0.3-SNAPSHOT.zip>=
bpm-dist-0.0.3-SNAPSHOT.pom>=

I don't know what this means, but it seems to significant that when this
thing built successfully under m2eclipse, this file was NOT present in that
machine's local repository.

What am I doing wrong?


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]





---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to