Building the distribution module when not connnected to the internet doesn't work unless the -o option is explicitly specified. This is because of missing pom files. The following error is produced:
[INFO] [resources:resources] [INFO] Using default encoding to copy filtered resources. Downloading: http://people.apache.org/repo/m2-incubating-repository/wsdl4j/wsdl4j/1.6.2/wsdl4j-1.6.2.pom [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Error building POM (may not be this project's POM). Project ID: wsdl4j:wsdl4j Reason: Error getting POM for 'wsdl4j:wsdl4j' from the repository: Error transferring file wsdl4j:wsdl4j:pom:1.6.2 from the specified remote repositories: central (http://repo1.maven.org/maven2), apache.incubator (http://people.apache.org/repo/m2-incubating-repository), apache.snapshots (http://people.apache.org/repo/m2-snapshot-repository) [INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ When running the same build with an internet connection, the poms are still missing but this does not create a fatal error. Here's the output: [INFO] [resources:resources] [INFO] Using default encoding to copy filtered resources. Downloading: http://people.apache.org/repo/m2-incubating-repository/wsdl4j/wsdl4j/1.6.2/wsdl4j-1.6.2.pom [WARNING] Unable to get resource from repository apache.incubator (http://people.apache.org/repo/m2-incubating-repository) Downloading: http://repo1.maven.org/maven2/wsdl4j/wsdl4j/1.6.2/wsdl4j-1.6.2.pom [WARNING] Unable to get resource from repository central (http://repo1.maven.org/maven2) Downloading: http://people.apache.org/repo/m2-incubating-repository/org/apache/neethi/neethi/2.0.1/neethi-2.0.1.pom [WARNING] Unable to get resource from repository apache.incubator (http://people.apache.org/repo/m2-incubating-repository) Downloading: http://repo1.maven.org/maven2/org/apache/neethi/neethi/2.0.1/neethi-2.0.1.pom [WARNING] Unable to get resource from repository central (http://repo1.maven.org/maven2) Downloading: http://people.apache.org/repo/m2-incubating-repository/jaxen/jaxen/1.1-beta-10/jaxen-1.1-beta-10.pom [WARNING] Unable to get resource from repository apache.incubator (http://people.apache.org/repo/m2-incubating-repository) Downloading: http://repo1.maven.org/maven2/jaxen/jaxen/1.1-beta-10/jaxen-1.1-beta-10.pom [WARNING] Unable to get resource from repository central (http://repo1.maven.org/maven2) Downloading: http://people.apache.org/repo/m2-incubating-repository/org/apache/woden/woden/1.0-incubating-M7a/woden-1.0-incubating-M7a.pom [WARNING] Unable to get resource from repository apache.incubator (http://people.apache.org/repo/m2-incubating-repository) Downloading: http://repo1.maven.org/maven2/org/apache/woden/woden/1.0-incubating-M7a/woden-1.0-incubating-M7a.pom [WARNING] Unable to get resource from repository central (http://repo1.maven.org/maven2) Downloading: http://people.apache.org/repo/m2-incubating-repository/groovy/groovy-all/1.0/groovy-all-1.0.pom [WARNING] Unable to get resource from repository apache.incubator (http://people.apache.org/repo/m2-incubating-repository) Downloading: http://repo1.maven.org/maven2/groovy/groovy-all/1.0/groovy-all-1.0.pom [WARNING] Unable to get resource from repository central (http://repo1.maven.org/maven2) So when running with an internet connection, these poms can't be downloaded but the build continues anyway. When running without an internet connection (but not the -o option), these poms can't be downloaded and the build stops with a fatal error. It seems strange that in both cases the poms can't be found, but in one case the build recovers and continues, and in the other case it stops. The workaround is to always use -o when building without an internet connection. Simon --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
