I figured out what my problem was. I stop trying to use maven-assembly-plugin:2.1 and started used maven-assembly-plugin:2.2-beta-4. Which gave me an error saying I need to set at least one file. I set the scope in my dependency set to runtime and all works fine.
From: Tonté Pouncil/Dallas/Aviall To: wagon-dev@maven.apache.org Date: 09/08/2009 10:30 AM Subject: Get the following error from wagon-ssh-external-1.0-beta-2.jar I am trying to run maven-assembly-plugin:2.1 with my custom assembler and I get the following error: [INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [INFO] Building aviall-ws-ubl-assembly-distribution [INFO] [INFO] Id: com.aviall.ws.commons.schemas.ubl:aviall-ws-ubl-assembly-distribution:jar:1.0-SNAPSHOT [INFO] task-segment: [package] [INFO] ------------------------------------------------------------------------ [INFO] [resources:resources] [INFO] Using default encoding to copy filtered resources. [INFO] [compiler:compile] [INFO] No sources to compile [INFO] [resources:testResources] [INFO] Using default encoding to copy filtered resources. [INFO] [compiler:testCompile] [INFO] No sources to compile [INFO] [surefire:test] [INFO] Tests are skipped. [INFO] [jar:jar] [INFO] Building jar: C:\Dev\aviall_ws_ubl_workspace\ubl-schemas\aviall-ws-ubl-assembly-distribution\target\aviall-ws-ubl-assembly-distribution-1.0-SNAPSHOT.jar [INFO] [assembly:single] --------------------------------------------------- constituent[0]: file:/C:/Dev/IDE/eclipse/eclipse-jee-ganymede-SR1-win32_new/eclipse/plugins/org.maven.ide.components.maven_embedder_2.1.0.20080530-2300/jars/aspectjrt-1.5.3.jar constituent[1]: file:/C:/Dev/IDE/eclipse/eclipse-jee-ganymede-SR1-win32_new/eclipse/plugins/org.maven.ide.components.maven_embedder_2.1.0.20080530-2300/jars/commons-cli-1.0.jar constituent[2]: file:/C:/Dev/IDE/eclipse/eclipse-jee-ganymede-SR1-win32_new/eclipse/plugins/org.maven.ide.components.maven_embedder_2.1.0.20080530-2300/jars/doxia-sink-api-1.0-alpha-9.jar constituent[3]: file:/C:/Dev/IDE/eclipse/eclipse-jee-ganymede-SR1-win32_new/eclipse/plugins/org.maven.ide.components.maven_embedder_2.1.0.20080530-2300/jars/jsch-0.1.27.jar constituent[4]: file:/C:/Dev/IDE/eclipse/eclipse-jee-ganymede-SR1-win32_new/eclipse/plugins/org.maven.ide.components.maven_embedder_2.1.0.20080530-2300/jars/jtidy-4aug2000r7-dev.jar constituent[5]: file:/C:/Dev/IDE/eclipse/eclipse-jee-ganymede-SR1-win32_new/eclipse/plugins/org.maven.ide.components.maven_embedder_2.1.0.20080530-2300/jars/maven-artifact-3.0-SNAPSHOT.jar constituent[6]: file:/C:/Dev/IDE/eclipse/eclipse-jee-ganymede-SR1-win32_new/eclipse/plugins/org.maven.ide.components.maven_embedder_2.1.0.20080530-2300/jars/maven-core-2.1-SNAPSHOT.jar constituent[7]: file:/C:/Dev/IDE/eclipse/eclipse-jee-ganymede-SR1-win32_new/eclipse/plugins/org.maven.ide.components.maven_embedder_2.1.0.20080530-2300/jars/maven-embedder-2.1-SNAPSHOT.jar constituent[8]: file:/C:/Dev/IDE/eclipse/eclipse-jee-ganymede-SR1-win32_new/eclipse/plugins/org.maven.ide.components.maven_embedder_2.1.0.20080530-2300/jars/maven-lifecycle-2.1-SNAPSHOT.jar constituent[9]: file:/C:/Dev/IDE/eclipse/eclipse-jee-ganymede-SR1-win32_new/eclipse/plugins/org.maven.ide.components.maven_embedder_2.1.0.20080530-2300/jars/maven-model-2.1-SNAPSHOT.jar constituent[10]: file:/C:/Dev/IDE/eclipse/eclipse-jee-ganymede-SR1-win32_new/eclipse/plugins/org.maven.ide.components.maven_embedder_2.1.0.20080530-2300/jars/maven-plugin-api-2.1-SNAPSHOT.jar constituent[11]: file:/C:/Dev/IDE/eclipse/eclipse-jee-ganymede-SR1-win32_new/eclipse/plugins/org.maven.ide.components.maven_embedder_2.1.0.20080530-2300/jars/maven-profile-2.1-SNAPSHOT.jar constituent[12]: file:/C:/Dev/IDE/eclipse/eclipse-jee-ganymede-SR1-win32_new/eclipse/plugins/org.maven.ide.components.maven_embedder_2.1.0.20080530-2300/jars/maven-project-2.1-SNAPSHOT.jar constituent[13]: file:/C:/Dev/IDE/eclipse/eclipse-jee-ganymede-SR1-win32_new/eclipse/plugins/org.maven.ide.components.maven_embedder_2.1.0.20080530-2300/jars/maven-reporting-api-2.1-SNAPSHOT.jar constituent[14]: file:/C:/Dev/IDE/eclipse/eclipse-jee-ganymede-SR1-win32_new/eclipse/plugins/org.maven.ide.components.maven_embedder_2.1.0.20080530-2300/jars/maven-toolchain-2.1-SNAPSHOT.jar constituent[15]: file:/C:/Dev/IDE/eclipse/eclipse-jee-ganymede-SR1-win32_new/eclipse/plugins/org.maven.ide.components.maven_embedder_2.1.0.20080530-2300/jars/maven-workspace-2.1-SNAPSHOT.jar constituent[16]: file:/C:/Dev/IDE/eclipse/eclipse-jee-ganymede-SR1-win32_new/eclipse/plugins/org.maven.ide.components.maven_embedder_2.1.0.20080530-2300/jars/plexus-container-default-1.0-alpha-44.jar constituent[17]: file:/C:/Dev/IDE/eclipse/eclipse-jee-ganymede-SR1-win32_new/eclipse/plugins/org.maven.ide.components.maven_embedder_2.1.0.20080530-2300/jars/plexus-interactivity-api-1.0-alpha-6.jar constituent[18]: file:/C:/Dev/IDE/eclipse/eclipse-jee-ganymede-SR1-win32_new/eclipse/plugins/org.maven.ide.components.maven_embedder_2.1.0.20080530-2300/jars/plexus-interpolation-1.0-SNAPSHOT.jar constituent[19]: file:/C:/Dev/IDE/eclipse/eclipse-jee-ganymede-SR1-win32_new/eclipse/plugins/org.maven.ide.components.maven_embedder_2.1.0.20080530-2300/jars/plexus-utils-1.5.1.jar constituent[20]: file:/C:/Dev/IDE/eclipse/eclipse-jee-ganymede-SR1-win32_new/eclipse/plugins/org.maven.ide.components.maven_embedder_2.1.0.20080530-2300/jars/wagon-file-1.0-beta-2.jar constituent[21]: file:/C:/Dev/IDE/eclipse/eclipse-jee-ganymede-SR1-win32_new/eclipse/plugins/org.maven.ide.components.maven_embedder_2.1.0.20080530-2300/jars/wagon-http-lightweight-1.0-beta-2.jar constituent[22]: file:/C:/Dev/IDE/eclipse/eclipse-jee-ganymede-SR1-win32_new/eclipse/plugins/org.maven.ide.components.maven_embedder_2.1.0.20080530-2300/jars/wagon-http-shared-1.0-beta-2.jar constituent[23]: file:/C:/Dev/IDE/eclipse/eclipse-jee-ganymede-SR1-win32_new/eclipse/plugins/org.maven.ide.components.maven_embedder_2.1.0.20080530-2300/jars/wagon-provider-api-1.0-beta-2.jar constituent[24]: file:/C:/Dev/IDE/eclipse/eclipse-jee-ganymede-SR1-win32_new/eclipse/plugins/org.maven.ide.components.maven_embedder_2.1.0.20080530-2300/jars/wagon-ssh-1.0-beta-2.jar constituent[25]: file:/C:/Dev/IDE/eclipse/eclipse-jee-ganymede-SR1-win32_new/eclipse/plugins/org.maven.ide.components.maven_embedder_2.1.0.20080530-2300/jars/wagon-ssh-common-1.0-beta-2.jar constituent[26]: file:/C:/Dev/IDE/eclipse/eclipse-jee-ganymede-SR1-win32_new/eclipse/plugins/org.maven.ide.components.maven_embedder_2.1.0.20080530-2300/jars/wagon-ssh-external-1.0-beta-2.jar --------------------------------------------------- java.lang.NumberFormatException: For input string: "" at java.lang.NumberFormatException.forInputString( NumberFormatException.java:48) at java.lang.Integer.parseInt(Integer.java:468) at org.apache.maven.plugin.assembly.AbstractAssemblyMojo.processDependencySets( AbstractAssemblyMojo.java:983) at org.apache.maven.plugin.assembly.AbstractAssemblyMojo.createArchive( AbstractAssemblyMojo.java:322) at org.apache.maven.plugin.assembly.AbstractAssemblyMojo.createAssembly( AbstractAssemblyMojo.java:261) at org.apache.maven.plugin.assembly.AbstractAssemblyMojo.execute( AbstractAssemblyMojo.java:241) at org.apache.maven.plugin.DefaultPluginManager.executeMojo( DefaultPluginManager.java:579) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures( DefaultLifecycleExecutor.java:498) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmentForProject( DefaultLifecycleExecutor.java:265) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments( DefaultLifecycleExecutor.java:191) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute( DefaultLifecycleExecutor.java:149) at org.apache.maven.DefaultMaven.execute_aroundBody0( DefaultMaven.java:223) at org.apache.maven.DefaultMaven.execute_aroundBody1$advice( DefaultMaven.java:304) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:1) at org.apache.maven.embedder.MavenEmbedder.execute_aroundBody2( MavenEmbedder.java:904) at org.apache.maven.embedder.MavenEmbedder.execute_aroundBody3$advice( MavenEmbedder.java:304) at org.apache.maven.embedder.MavenEmbedder.execute( MavenEmbedder.java:1) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:176) at org.apache.maven.cli.MavenCli.main(MavenCli.java:63) 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:289) at org.codehaus.plexus.classworlds.launcher.Launcher.launch( Launcher.java:229) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode( Launcher.java:408) at org.codehaus.plexus.classworlds.launcher.Launcher.main( Launcher.java:351) at org.codehaus.classworlds.Launcher.main(Launcher.java:31) Here is my assembly.xml <?xml version="1.0" encoding="UTF-8"?> <assembly xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation=" http://maven.apache.org/POM/4.0.0 ../../../../../aviall-ws-ubl-assembly/src/main/resources/assembly/xsd/assembly-1.0.0.xsd "> <id>ubl-schema-distribution-1.0.0</id> <formats> <format>jar</format> </formats> <includeBaseDirectory>false</includeBaseDirectory> <includeSiteDirectory/> <moduleSets/> <fileSets/> <files/> <dependencySets> <dependencySet> <outputFileNameMapping /> <unpack>true</unpack> <scope /> <outputDirectory>modules/${artifactId}</ outputDirectory> <includes> <!--include>*-xml-schemas</include--> <include>com.aviall.ws.commons.schemas.ubl .codes:acknowledgement-response-code-xml-schemas</include> <include>com.aviall.ws.commons.schemas.ubl .codes:allowance-charge-reason-code-xml-schemas</include> <include>com.aviall.ws.commons.schemas.ubl .codes:channel-code-xml-schemas</include> <include>com.aviall.ws.commons.schemas.ubl .codes:chip-code-xml-schemas</include> <include>com.aviall.ws.commons.schemas.ubl .codes:country-identification-code-xml-schemas</include> <include>com.aviall.ws.commons.schemas.ubl .codes:currency-code-xml-schemas</include> <include>com.aviall.ws.commons.schemas.ubl .codes:document-status-code-xml-schemas</include> <include>com.aviall.ws.commons.schemas.ubl .codes:latitude-direction-code-xml-schemas</include> <include>com.aviall.ws.commons.schemas.ubl .codes:line-status-code-xml-schemas</include> <include>com.aviall.ws.commons.schemas.ubl .codes:longitude-direction-code-xml-schemas</include> <include>com.aviall.ws.commons.schemas.ubl .codes:operator-code-xml-schemas</include> <include>com.aviall.ws.commons.schemas.ubl .codes:payment-means-code-xml-schemas</include> <include>com.aviall.ws.commons.schemas.ubl .codes:substitution-status-code-xml-schemas</include> <include>com.aviall.ws.commons.schemas.ubl .components:core-params-xml-schemas</include> <include>com.aviall.ws.commons.schemas.ubl .components:core-types-xml-schemas</include> <include>com.aviall.ws.commons.schemas.ubl .components:unspecialized-datatypes-xml-schemas</include> <include>com.aviall.ws.commons.schemas.ubl .components:specialized-datatypes-xml-schemas</include> <include>com.aviall .ws.commons.schemas.ubl.components:common-basic-xml-schemas</include> <include> com.aviall.ws.commons.schemas.ubl.components:common-aggregate-xml-schemas </include> </includes> <excludes /> <fileMode /> <directoryMode /> </dependencySet> </dependencySets> <repositories/> <componentDescriptors/> </assembly> Here is my pom.xml: <?xml version="1.0" encoding="UTF-8"?> <project> <parent> <artifactId>ubl-schemas</artifactId> <groupId>com.aviall.ws.commons.schemas.ubl </groupId> <version>1.0-SNAPSHOT</version> </parent> <modelVersion>4.0.0</modelVersion> <groupId>com.aviall.ws.commons.schemas.ubl </groupId> <artifactId>aviall-ws-ubl-assembly-distribution </artifactId> <name>aviall-ws-ubl-assembly-distribution </name> <version>1.0-SNAPSHOT</version> <url>http://maven.apache.org</url> <build> <plugins> <plugin> <artifactId>maven-assembly-plugin</ artifactId> <version>2.1</version> <!-- dependencies> <dependency> <groupId>com.aviall.ws .commons.schemas.ubl</groupId> <artifactId>aviall-ws-ubl -assembly</artifactId> <version>0.0.1-SNAPSHOT</version> </dependency> </dependencies --> <configuration> <descriptors> <!--descriptor>src /main/resources/assemblies/ubl-schema-distribution-assembly1.1.0.xsd.xml </descriptor--> <!--descriptor>src /main/resources/assemblies/ubl-schema-distribution.xml</descriptor--> <descriptor>src /main/resources/assembly/ubl-schema-distribution-assembly.xml</descriptor> </descriptors> <!--descriptorRefs--> <!--descriptorRef>ubl -schema-distribution-1.0.0</descriptorRef--> <!--descriptorRef>jar-with-dependencies</descriptorRef--> <!--/descriptorRefs--> </configuration> <executions> <execution> <id>assemble-ubl -schema-distribution</id> <phase>package</phase> <goals> <goal>single</goal > </goals> </execution> </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId > <artifactId>maven-surefire-plugin</ artifactId> <!--version>2.4.2</version--> <configuration> <skipTests>true</skipTests> </configuration> </plugin> </plugins> </build> <dependencies> <dependency> <groupId>com.aviall.ws.commons.schemas.ubl.codes </groupId> <artifactId>acknowledgement-response-code-xml -schemas </artifactId> <version>1.0-SNAPSHOT</version> </dependency> <dependency> <groupId>com.aviall.ws.commons.schemas.ubl.codes </groupId> <artifactId>allowance-charge-reason-code-xml -schemas </artifactId> <version>1.0-SNAPSHOT</version> </dependency> <dependency> <groupId>com.aviall.ws.commons.schemas.ubl.codes </groupId> <artifactId>channel-code-xml-schemas </artifactId> <version>1.0-SNAPSHOT</version> </dependency> <dependency> <groupId>com.aviall.ws.commons.schemas.ubl.codes </groupId> <artifactId>chip-code-xml-schemas</artifactId> <version>1.0-SNAPSHOT</version> </dependency> <dependency> <groupId>com.aviall.ws.commons.schemas.ubl.codes </groupId> <artifactId>country-identification-code-xml -schemas </artifactId> <version>1.0-SNAPSHOT</version> </dependency> <dependency> <groupId>com.aviall.ws.commons.schemas.ubl.codes </groupId> <artifactId>currency-code-xml-schemas </artifactId> <version>1.0-SNAPSHOT</version> </dependency> <dependency> <groupId>com.aviall.ws.commons.schemas.ubl.codes </groupId> <artifactId>document-status-code-xml-schemas </artifactId> <version>1.0-SNAPSHOT</version> </dependency> <dependency> <groupId>com.aviall.ws.commons.schemas.ubl.codes </groupId> <artifactId>latitude-direction-code-xml-schemas </artifactId> <version>1.0-SNAPSHOT</version> </dependency> <dependency> <groupId>com.aviall.ws.commons.schemas.ubl.codes </groupId> <artifactId>line-status-code-xml-schemas </artifactId> <version>1.0-SNAPSHOT</version> </dependency> <dependency> <groupId>com.aviall.ws.commons.schemas.ubl.codes </groupId> <artifactId>longitude-direction-code-xml-schemas </artifactId> <version>1.0-SNAPSHOT</version> </dependency> <dependency> <groupId>com.aviall.ws.commons.schemas.ubl.codes </groupId> <artifactId>operator-code-xml-schemas </artifactId> <version>1.0-SNAPSHOT</version> </dependency> <dependency> <groupId>com.aviall.ws.commons.schemas.ubl.codes </groupId> <artifactId>payment-means-code-xml-schemas </artifactId> <version>1.0-SNAPSHOT</version> </dependency> <dependency> <groupId>com.aviall.ws.commons.schemas.ubl.codes </groupId> <artifactId>substitution-status-code-xml-schemas </artifactId> <version>1.0-SNAPSHOT</version> </dependency> <dependency> <groupId> com.aviall.ws.commons.schemas.ubl.components </groupId> <artifactId>common-aggregate-xml-schemas </artifactId> <version>1.0-SNAPSHOT</version> </dependency> <dependency> <groupId> com.aviall.ws.commons.schemas.ubl.components </groupId> <artifactId>common-basic-xml-schemas </artifactId> <version>1.0-SNAPSHOT</version> </dependency> <dependency> <groupId> com.aviall.ws.commons.schemas.ubl.components </groupId> <artifactId>core-params-xml-schemas </artifactId> <version>1.0-SNAPSHOT</version> </dependency> <dependency> <groupId> com.aviall.ws.commons.schemas.ubl.components </groupId> <artifactId>core-types-xml-schemas</artifactId> <version>1.0-SNAPSHOT</version> </dependency> <dependency> <groupId> com.aviall.ws.commons.schemas.ubl.components </groupId> <artifactId>specialized-datatypes-xml-schemas </artifactId> <version>1.0-SNAPSHOT</version> </dependency> <dependency> <groupId> com.aviall.ws.commons.schemas.ubl.components </groupId> <artifactId>unspecialized-datatypes-xml-schemas </artifactId> <version>1.0-SNAPSHOT</version> </dependency> </dependencies> </project> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ This e-mail message, including attachments, may contain confidential, proprietary, or export controlled information. Any unauthorized disclosure, distribution, or other use is prohibited, unless expressly authorized. If you receive this e-mail in error, please notify the sender, and delete all copies of the original message from your systems.