4 Replies Latest reply on Apr 19, 2007 5:21 PM by Scott Stark

    how the hell do I build this project?

    Bill Burke Master

      checked out microcontainer.
      $ cd build
      $ mvn

      
      [INFO] Scanning for projects...
      Downloading: http://repository.jboss.com/maven2//jboss/jboss-parent/2-SNAPSHOT/jboss-parent-2-SNAPSHOT.pom
      [WARNING] Unable to get resource from repository jboss (http://repository.jboss.com/maven2/)
      [INFO] ------------------------------------------------------------------------
      [ERROR] FATAL ERROR
      [INFO] ------------------------------------------------------------------------
      [INFO] Failed to resolve artifact.
      
      GroupId: jboss
      ArtifactId: jboss-parent
      Version: 2-SNAPSHOT
      
      Reason: Unable to download the artifact from any repository
      
       jboss:jboss-parent:pom:2-SNAPSHOT
      
      from the specified remote repositories:
       central (http://repo1.maven.org/maven2),
       jboss (http://repository.jboss.com/maven2/)
      
      
      [INFO] ------------------------------------------------------------------------
      [INFO] Trace
      org.apache.maven.reactor.MavenExecutionException: Cannot find parent: jboss:jboss-parent for project: null:jboss-microco
      ntainer:pom:2.0.0-SNAPSHOT
       at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:365)
       at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:278)
       at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
       at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
       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:585)
       at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
       at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
       at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
       at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
      Caused by: org.apache.maven.project.ProjectBuildingException: Cannot find parent: jboss:jboss-parent for project: null:j
      boss-microcontainer:pom:2.0.0-SNAPSHOT
       at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMavenProjectBuilder.java:1161)
       at org.apache.maven.project.DefaultMavenProjectBuilder.buildInternal(DefaultMavenProjectBuilder.java:674)
       at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFileInternal(DefaultMavenProjectBuilder.ja
      va:416)
       at org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMavenProjectBuilder.java:192)
       at org.apache.maven.DefaultMaven.getProject(DefaultMaven.java:515)
       at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:447)
       at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:351)
       ... 11 more
      Caused by: org.apache.maven.project.ProjectBuildingException: POM 'jboss:jboss-parent' not found in repository: Unable t
      o download the artifact from any repository
      
       jboss:jboss-parent:pom:2-SNAPSHOT
      
      from the specified remote repositories:
       central (http://repo1.maven.org/maven2),
       jboss (http://repository.jboss.com/maven2/)
      
       at org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:5
      13)
       at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMavenProjectBuilder.java:1157)
       ... 17 more
      Caused by: org.apache.maven.artifact.resolver.ArtifactNotFoundException: Unable to download the artifact from any reposi
      tory
      
       jboss:jboss-parent:pom:2-SNAPSHOT
      
      from the specified remote repositories:
       central (http://repo1.maven.org/maven2),
       jboss (http://repository.jboss.com/maven2/)
      
       at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:136)
       at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:63)
       at org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:4
      67)
       ... 18 more
      Caused by: org.apache.maven.wagon.ResourceDoesNotExistException: Unable to download the artifact from any repository
       at org.apache.maven.artifact.manager.DefaultWagonManager.getArtifact(DefaultWagonManager.java:260)
       at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:124)
       ... 20 more
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: < 1 second
      [INFO] Finished at: Thu Apr 19 15:06:00 EDT 2007
      [INFO] Final Memory: 1M/2M
      [INFO] ------------------------------------------------------------------------
      
      C:\jboss\microcontainer\build>xemacs pom.xml
      



        • 1. Re: how the hell do I build this project?
          Bill Burke Master

          i changed jboss-parent from 2-snapshot to 2

          I went to the top level directory of microcontainer/

          $ mvn install

          Got fatal error.

          [INFO] Building jar: C:\jboss\microcontainer\kernel\target\jboss-kernel-tests.jar
          [INFO] [assembly:attached {execution: make-assembly}]
          [INFO] Reading assembly descriptor: C:\jboss\microcontainer\kernel\src\assembly\spi.xml
          [INFO] Reading assembly descriptor: C:\jboss\microcontainer\kernel\src\assembly\plugins.xml
          [INFO] ------------------------------------------------------------------------
          [ERROR] FATAL ERROR
          [INFO] ------------------------------------------------------------------------
          [INFO] null
          [INFO] ------------------------------------------------------------------------
          [INFO] Trace
          java.lang.NullPointerException
           at org.apache.maven.plugin.assembly.archive.ManifestCreationFinalizer.getVirtualFiles(ManifestCreationFinalizer.
          java:99)
           at org.codehaus.plexus.archiver.AbstractArchiver.hasVirtualFiles(AbstractArchiver.java:546)
           at org.codehaus.plexus.archiver.zip.AbstractZipArchiver.createArchiveMain(AbstractZipArchiver.java:258)
           at org.codehaus.plexus.archiver.zip.AbstractZipArchiver.execute(AbstractZipArchiver.java:242)
           at org.codehaus.plexus.archiver.AbstractArchiver.createArchive(AbstractArchiver.java:513)
           at org.apache.maven.plugin.assembly.archive.DefaultAssemblyArchiver.createArchive(DefaultAssemblyArchiver.java:1
          03)
           at org.apache.maven.plugin.assembly.mojos.AbstractAssemblyMojo.execute(AbstractAssemblyMojo.java:278)
           at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:412)
           at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534)
           at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:47
          5)
           at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:454)
           at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.jav
          a:306)
           at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273)
           at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140)
           at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
           at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
           at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
           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:585)
           at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
           at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
           at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
           at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
          [INFO] ------------------------------------------------------------------------
          [INFO] Total time: 1 minute 42 seconds
          [INFO] Finished at: Thu Apr 19 15:15:51 EDT 2007
          [INFO] Final Memory: 19M/54M
          [INFO] ------------------------------------------------------------------------
          


          • 2. Re: how the hell do I build this project?
            Paul Gier Master

            I updated the repositories, so that the pom can now pick up snapshots, and updated the parent version to 2 (same thing you did). That takes care of the first issue.

            The second issue look like a problem with the assembly plugin. If you comment out the assembly plugin config in kernel/pom.xml you will be able to build the project.

            I'll try to figure out why the plugin is failing.

            • 3. Re: how the hell do I build this project?
              Paul Gier Master

              It should be fixed now if you get the latest from svn. It looks like the maven guys released a new version of the assembly plugin that doesn't like an empty assembly. The assembly descriptors are fixed, and the build seems ok now.

              • 4. Re: how the hell do I build this project?
                Scott Stark Master

                You know what we need to do ...