Will close the guess, and bootstrap-build from my home system tomorrow not sitting behind a firewall using proxy info to reach out to central!
Josef -----Ursprüngliche Nachricht----- Von: [email protected] [mailto:[email protected]] Im Auftrag von Anders Hammar Gesendet: Donnerstag, 1. November 2012 17:23 An: Maven Users List Betreff: Re: AW: [maven-3/trunk] bootstrap-build failing I'm guessing there's a missing proxy configuration here. /Anders On Thu, Nov 1, 2012 at 4:42 PM, Stuart McCulloch <[email protected]> wrote: > On 1 Nov 2012, at 15:06, Stadelmann Josef wrote: > > > OK Stuart, > > at my Vista System, it fails. Just downloaded and installed ant > > 1.8.4 > > > > $ java -version > > java version "1.6.0_30" > > Java(TM) SE Runtime Environment (build 1.6.0_30-b12) Java > > HotSpot(TM) Client VM (build 20.5-b03, mixed mode) > > > > C770817@C036357 /e/asf/maven/maven-3/trunk > > > > $ ant -version > > Apache Ant(TM) version 1.8.4 compiled on May 22 2012 > > > > $ ant -d -f build.xml > > ... > > BUILD FAILED > > E:\asf\maven\maven-3\trunk\build.xml:250: Java returned: 1 > > at org.apache.tools.ant.taskdefs.Java.execute(Java.java:111) > > at > org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291) > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.j > ava:39) > > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccess > orImpl.java:25) > > at java.lang.reflect.Method.invoke(Method.java:597) > > at > org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java > :106) > > at org.apache.tools.ant.Task.perform(Task.java:348) > > at org.apache.tools.ant.Target.execute(Target.java:392) > > at org.apache.tools.ant.Target.performTasks(Target.java:413) > > at > org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399) > > at org.apache.tools.ant.Project.executeTarget(Project.java:1368) > > at > org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExec > utor.java:41) > > at org.apache.tools.ant.Project.executeTargets(Project.java:1251) > > at org.apache.tools.ant.Main.runBuild(Main.java:809) > > at org.apache.tools.ant.Main.startAnt(Main.java:217) > > at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280) > > at > > org.apache.tools.ant.launch.Launcher.main(Launcher.java:109) > > > > Total time: 2 minutes 7 seconds > > > > E:\asf\maven\maven-3\trunk> > > > > So I have no clue why this ant bootstrap-build fails on my Vista > > System > which is a clean as many other systems used to develop code. > > The line build.xml(250) is where ...MavenCLI class gets > > invoked/forked > by a java command. I have no clue why 1 is returned to/by Java. > > Line 250 in build.xml is where it forks the JVM - if you capture the > output from running "ant -d -f build.xml" and look for "maven-compile:" > then it should show the actual command it forks (ie. the one that > returns error code 1). You could copy that command and all its > arguments (ie. java -classpath ...<snip>... > org.apache.maven.cli.MavenCli ...<etc>...) and try it from the > command-line to see if there's an error message that's not getting > passed on. Perhaps also add '-X' after 'org.apache.maven.cli.MavenCli' to > enable full debug output. > > > OK - we sit behind a firewall , if that makes a difference? > > The bootstrap build should use your local settings.xml just like > Maven, so as long this is configured with any proxy needed to access > Maven Central then it should be fine. > > > Josef > > > > -----Ursprüngliche Nachricht----- > > Von: Stuart McCulloch [mailto:[email protected]] > > Gesendet: Donnerstag, 1. November 2012 14:52 > > An: Maven Users List > > Betreff: Re: [maven-3/trunk] bootstrap-build failing > > > > On 1 November 2012 10:29, Stadelmann Josef < > [email protected]> wrote: > > > >> How can I cure best the problems shown below? it occurs during a > >> bootstrap-build of maven-3/trunk on my Vista System. > >> (see red lines, which are of interesst to me). > >> > >> I have successfully build from sources SLF4J é all. Where does this > >> bootstrap-build.xml expect this files now? > >> where do I have to copy the SLF4J-*.jars and maybe others to make > >> the maven-3/trunk build.xml (bootstrap-build) happy? > >> > > > > SLF4J should be downloaded by the [artifact:dependencies] task, just > like all the other bootstrap dependencies - you shouldn't need to > build it yourself. > > > > Has the final error shown below, (which makes the bootstrap-build > > fail?) > to > >> do with the absence of SLF4J-*.jar's or what does it indicate? > >> > > > > The SLF4J messages about 'Failed to load class' and 'Defaulting to > no-operation' are informational and should not fail the build. It > means that it couldn't find a backend implementation (the current > build does not specify a particular backend on purpose) so it's > telling you about this in case you had meant to choose a backend but forgot: > > http://www.slf4j.org/codes.html#StaticLoggerBinder > > > > The final error just says that Java returned 1 on exit, but doesn't > > say > why > > - you could try running "ant -d -f build.xml" to see if that gives > > more > information about the failure at the end. > > > > FWIW, I just tried the bootstrap build on a clean system (OSX, Java > 1.6.0_37, Ant 1.8.4) and it built without errors - note that I still > saw the SLF4J messages, but those are expected at the moment > > > > This on a Windows Vista System > >> Josef > >> > >> ant -f E:\\asf\\maven\\maven-3\\trunk all > >> clean-bootstrap: > >> initTaskDefs: > >> Building Apache Maven ... > >> isMavenHomeSet: > >> init: > >> maven.home = E:\Users\C770817\SW-UMGEBUNG\apache-maven-3.1 > >> maven.repo.local = /E:/Users/C770817/.m2/repository distributionId > >> = apache-maven distributionName = Apache Maven > >> distributionDirectory = apache-maven > >> prompt-maven-home-exists: > >> pull: > >> Copying 1 file to E:\asf\maven\maven-3\trunk > >> Deleting: E:\asf\maven\maven-3\trunk\dependencies.xml > >> generate-sources: > >> Created dir: E:\asf\maven\maven-3\trunk\bootstrap\target > >> Created dir: > >> E:\asf\maven\maven-3\trunk\bootstrap\target\generated-sources > >> Generating sources for maven-model/src/main/mdo/maven.mdo > >> Generating sources for maven-plugin-api/src/main/mdo/lifecycle.mdo > >> Generating sources for > >> maven-model-builder/src/main/mdo/profiles.mdo > >> Generating sources for maven-settings/src/main/mdo/settings.mdo > >> Generating sources for maven-core/src/main/mdo/toolchains.mdo > >> Generating sources for > >> maven-repository-metadata/src/main/mdo/metadata.mdo > >> Generating sources for maven-compat/src/main/mdo/profiles.mdo > >> Generating sources for maven-compat/src/main/mdo/paramdoc.mdo > >> compile-boot: > >> Created dir: E:\asf\maven\maven-3\trunk\bootstrap\target\classes > >> Compiling 719 source files to > >> E:\asf\maven\maven-3\trunk\bootstrap\target\classes > >> Note: Some input files use or override a deprecated API. > >> Note: Recompile with -Xlint:deprecation for details. > >> Note: Some input files use unchecked or unsafe operations. > >> Note: Recompile with -Xlint:unchecked for details. > >> Copying 1 file to > >> E:\asf\maven\maven-3\trunk\bootstrap\target\classes > >> process-classes: > >> Using plexus version 1.5.5 > >> SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". > >> SLF4J: Defaulting to no-operation (NOP) logger implementation > >> SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for > >> further details. > >> [INFO] Discovered 129 component descriptors(s) > >> maven-compile: > >> SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". > >> SLF4J: Defaulting to no-operation (NOP) logger implementation > >> SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for > >> further details. > >> null 3.1-SNAPSHOT > >> ${distributionShortName} home: <unknown maven home> Java version: > >> 1.6.0_30, vendor: Sun Microsystems Inc. > >> Java home: C:\Program Files\Java\jdk1.6.0_30\jre Default locale: > >> de_CH, platform encoding: Cp1252 OS name: "windows vista", version: > >> "6.0", arch: "x86", family: > >> "windows"[debug] execute contextualize [debug] execute > >> contextualize > >> > >> ------------------------------------------------------- > >> T E S T S > >> ------------------------------------------------------- > >> Running org.apache.maven.model.ActivationFileTest > >> Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: > >> 0.016 sec Running org.apache.maven.model.ActivationOSTest > >> Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 > >> sec Running org.apache.maven.model.ActivationPropertyTest > >> Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 > >> sec Running org.apache.maven.model.ActivationTest > >> Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 > >> sec Running org.apache.maven.model.BuildTest Tests run: 4, > >> Failures: 0, > >> Errors: 0, Skipped: 0, Time elapsed: 0.016 sec Running > >> org.apache.maven.model.CiManagementTest > >> Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 > >> sec Running org.apache.maven.model.ContributorTest > >> Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 > >> sec Running org.apache.maven.model.DependencyManagementTest > >> Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 > >> sec Running org.apache.maven.model.DependencyTest > >> Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 > >> sec Running org.apache.maven.model.DeploymentRepositoryTest > >> Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 > >> sec Running org.apache.maven.model.DeveloperTest > >> Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 > >> sec Running org.apache.maven.model.DistributionManagementTest > >> Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 > >> sec Running org.apache.maven.model.ExclusionTest > >> Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 > >> sec Running org.apache.maven.model.ExtensionTest > >> Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 > >> sec Running org.apache.maven.model.IssueManagementTest > >> Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 > >> sec Running org.apache.maven.model.LicenseTest > >> Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 > >> sec Running org.apache.maven.model.MailingListTest > >> Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 > >> sec Running org.apache.maven.model.ModelTest Tests run: 4, > >> Failures: 0, > >> Errors: 0, Skipped: 0, Time elapsed: 0 sec Running > >> org.apache.maven.model.NotifierTest > >> Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 > >> sec Running org.apache.maven.model.OrganizationTest > >> Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 > >> sec Running org.apache.maven.model.ParentTest Tests run: 4, > >> Failures: 0, > >> Errors: 0, Skipped: 0, Time elapsed: 0 sec Running > >> org.apache.maven.model.PluginConfigurationTest > >> Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 > >> sec Running org.apache.maven.model.PluginContainerTest > >> Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 > >> sec Running org.apache.maven.model.PluginExecutionTest > >> Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 > >> sec Running org.apache.maven.model.PluginManagementTest > >> Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 > >> sec Running org.apache.maven.model.PluginTest Tests run: 4, > >> Failures: 0, > >> Errors: 0, Skipped: 0, Time elapsed: 0 sec Running > >> org.apache.maven.model.PrerequisitesTest > >> Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 > >> sec Running org.apache.maven.model.ProfileTest > >> Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 > >> sec Running org.apache.maven.model.RelocationTest > >> Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 > >> sec Running org.apache.maven.model.ReportingTest > >> Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 > >> sec Running org.apache.maven.model.ReportPluginTest > >> Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 > >> sec Running org.apache.maven.model.ReportSetTest > >> Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 > >> sec Running org.apache.maven.model.RepositoryPolicyTest > >> Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: > >> 0.016 sec Running org.apache.maven.model.RepositoryTest > >> Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 > >> sec Running org.apache.maven.model.ResourceTest > >> Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: > >> 0.016 sec Running org.apache.maven.model.ScmTest Tests run: 4, > >> Failures: 0, > >> Errors: 0, Skipped: 0, Time elapsed: 0 sec Running > >> org.apache.maven.model.SiteTest Tests run: 4, Failures: 0, Errors: > >> 0, > >> Skipped: 0, Time elapsed: 0 sec > >> > >> Results : > >> > >> Tests run: 148, Failures: 0, Errors: 0, Skipped: 0 > >> > >> [debug] execute contextualize > >> [debug] execute contextualize > >> > >> ------------------------------------------------------- > >> T E S T S > >> ------------------------------------------------------- > >> Running org.apache.maven.artifact.versioning.ComparableVersionTest > >> Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: > >> 0.046 sec Running > >> org.apache.maven.artifact.versioning.DefaultArtifactVersionTest > >> Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: > >> 0.016 sec Running > >> org.apache.maven.artifact.versioning.VersionRangeTest > >> Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 > >> sec > >> > >> Results : > >> > >> Tests run: 21, Failures: 0, Errors: 0, Skipped: 0 > >> > >> [debug] execute contextualize > >> [debug] execute contextualize > >> > >> ------------------------------------------------------- > >> T E S T S > >> ------------------------------------------------------- > >> Running > >> org.apache.maven.plugin.descriptor.PluginDescriptorBuilderTest > >> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: > >> 0.078 sec Running > >> org.apache.maven.plugin.lifecycle.LifecycleXpp3ReaderTest > >> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 > >> sec > >> > >> Results : > >> > >> Tests run: 2, Failures: 0, Errors: 0, Skipped: 0 > >> > >> [debug] execute contextualize > >> [debug] execute contextualize > >> > >> ------------------------------------------------------- > >> T E S T S > >> ------------------------------------------------------- > >> Running > >> org.apache.maven.model.building.DefaultModelBuilderFactoryTest > >> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: > >> 0.203 sec Running > >> org.apache.maven.model.inheritance.DefaultInheritanceAssemblerTest > >> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: > >> 0.671 sec Running > >> org.apache.maven.model.interpolation.StringSearchModelInterpolatorT > >> est Tests run: 28, Failures: 0, Errors: 0, Skipped: 0, Time > >> elapsed: 0.593 sec Running > >> org.apache.maven.model.path.DefaultUrlNormalizerTest > >> Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 > >> sec Running > >> org.apache.maven.model.profile.activation.JdkVersionProfileActivato > >> rTe st Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time > >> elapsed: > >> 0.078 sec Running > >> org.apache.maven.model.profile.activation.PropertyProfileActivatorT > >> est Tests run: 10, Failures: 0, Errors: 0, Skipped: 0, Time > >> elapsed: 0.11 sec Running > >> org.apache.maven.model.validation.DefaultModelValidatorTest > >> Tests run: 43, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: > >> 0.967 sec > >> > >> Results : > >> > >> Tests run: 94, Failures: 0, Errors: 0, Skipped: 0 > >> > >> [debug] execute contextualize > >> [debug] execute contextualize > >> > >> ------------------------------------------------------- > >> T E S T S > >> ------------------------------------------------------- > >> > >> Results : > >> > >> Tests run: 0, Failures: 0, Errors: 0, Skipped: 0 > >> > >> [debug] execute contextualize > >> [debug] execute contextualize > >> > >> ------------------------------------------------------- > >> T E S T S > >> ------------------------------------------------------- > >> Running > >> org.apache.maven.settings.building.DefaultSettingsBuilderFactoryTes > >> t Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: > >> 0.109 sec Running > >> org.apache.maven.settings.validation.DefaultSettingsValidatorTest > >> Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 > >> sec > >> > >> Results : > >> > >> Tests run: 7, Failures: 0, Errors: 0, Skipped: 0 > >> > >> [debug] execute contextualize > >> [debug] execute contextualize > >> > >> ------------------------------------------------------- > >> T E S T S > >> ------------------------------------------------------- > >> > >> Results : > >> > >> Tests run: 0, Failures: 0, Errors: 0, Skipped: 0 > >> > >> [debug] execute contextualize > >> [debug] execute contextualize > >> > >> ------------------------------------------------------- > >> T E S T S > >> ------------------------------------------------------- > >> Running > >> org.apache.maven.repository.internal.DefaultServiceLocatorTest > >> Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: > >> 0.187 sec Running > >> org.apache.maven.repository.internal.DefaultVersionResolverTest > >> Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: > >> 0.764 sec Running > >> org.apache.maven.repository.internal.RepositorySystemTest > >> Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: > >> 0.281 sec > >> > >> Results : > >> > >> Tests run: 6, Failures: 0, Errors: 0, Skipped: 0 > >> > >> E:\asf\maven\maven-3\trunk\build.xml:250: Java returned: 1 BUILD > >> FAILED (total time: 1 minute 21 seconds) > >> > > > > -- > > Cheers, Stuart > > > > -------------------------------------------------------------------- > > - 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] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
