0 Replies Latest reply on Nov 1, 2014 12:51 AM by sj 86

    Error in Jboss bom portal in local maven repository

    sj 86 Newbie

      Hi, I am trying to execute jboss portal qucikstarts using jboss portal maven repository. But i am getting Following error


      $ mvn clean install -U -X

      + Error stacktraces are turned on.

      Apache Maven 2.2.1 (rdebian-10)

      Java version: 1.7.0_55

      Java home: /usr/lib/jvm/java-7-openjdk-amd64/jre

      Default locale: en_US, platform encoding: UTF-8

      OS name: "linux" version: "3.11.0-26-generic" arch: "amd64" Family: "unix"

      [DEBUG] Building Maven user-level plugin registry from: '/home/taashee/.m2/plugin-registry.xml'

      [DEBUG] Building Maven global-level plugin registry from: '/usr/share/maven2/conf/plugin-registry.xml'

      [INFO] Scanning for projects...

      [DEBUG] Retrieving parent-POM: org.jboss.bom:jboss-bom-parent:pom:1.0.4.Final-redhat-9 for project: org.jboss.quickstarts.portal:simplest-hello-world-portlet:war:6.1.1.build-5 from the repository.

      [DEBUG] Trying repository jboss-portal-6.1.0

      [DEBUG] Connecting to repository: 'jboss-portal-6.1.0' with url: 'file:///home/taashee/jboss-jpp-maven-repository'.

      Downloading: file:///home/taashee/jboss-jpp-maven-repository/org/jboss/bom/jboss-bom-parent/1.0.4.Final-redhat-9/jboss-bom-parent-1.0.4.Final-redhat-9.pom

      [DEBUG] File: /home/taashee/jboss-jpp-maven-repository/org/jboss/bom/jboss-bom-parent/1.0.4.Final-redhat-9/jboss-bom-parent-1.0.4.Final-redhat-9.pom does not exist

      org.apache.maven.wagon.ResourceDoesNotExistException: File: /home/taashee/jboss-jpp-maven-repository/org/jboss/bom/jboss-bom-parent/1.0.4.Final-redhat-9/jboss-bom-parent-1.0.4.Final-redhat-9.pom does not exist

        at org.apache.maven.wagon.providers.file.FileWagon.fillInputData(FileWagon.java:70)

        at org.apache.maven.wagon.StreamWagon.getInputStream(StreamWagon.java:116)

        at org.apache.maven.wagon.StreamWagon.getIfNewer(StreamWagon.java:88)

        at org.apache.maven.wagon.StreamWagon.get(StreamWagon.java:61)

        at org.apache.maven.artifact.manager.DefaultWagonManager.getRemoteFile(DefaultWagonManager.java:546)

        at org.apache.maven.artifact.manager.DefaultWagonManager.getArtifact(DefaultWagonManager.java:427)

        at org.apache.maven.artifact.manager.DefaultWagonManager.getArtifact(DefaultWagonManager.java:382)

        at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:216)

        at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:90)

        at org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:558)

        at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMavenProjectBuilder.java:1392)

        at org.apache.maven.project.DefaultMavenProjectBuilder.buildInternal(DefaultMavenProjectBuilder.java:823)

        at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFileInternal(DefaultMavenProjectBuilder.java:508)

        at org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMavenProjectBuilder.java:200)

        at org.apache.maven.DefaultMaven.getProject(DefaultMaven.java:604)

        at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:487)

        at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:391)

        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:272)

        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)

        at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)

        at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

        at java.lang.reflect.Method.invoke(Method.java:606)

        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] Unable to find resource 'org.jboss.bom:jboss-bom-parent:pom:1.0.4.Final-redhat-9' in repository jboss-portal-6.1.0 (file:///home/taashee/jboss-jpp-maven-repository)

      [DEBUG] Trying repository central

      [DEBUG] Using Wagon implementation lightweight from default mapping for protocol http

      [DEBUG] Checking for pre-existing User-Agent configuration.

      [DEBUG] Adding User-Agent configuration.

      [DEBUG] Connecting to repository: 'central' with url: 'http://repo1.maven.org/maven2'.

      Downloading: http://repo1.maven.org/maven2/org/jboss/bom/jboss-bom-parent/1.0.4.Final-redhat-9/jboss-bom-parent-1.0.4.Final-redhat-9.pom

      [DEBUG] Unable to locate resource in repository

      org.apache.maven.wagon.ResourceDoesNotExistException: Unable to locate resource in repository

        at org.apache.maven.wagon.providers.http.LightweightHttpWagon.fillInputData(LightweightHttpWagon.java:139)

        at org.apache.maven.wagon.StreamWagon.getInputStream(StreamWagon.java:116)

        at org.apache.maven.wagon.StreamWagon.getIfNewer(StreamWagon.java:88)

        at org.apache.maven.wagon.StreamWagon.get(StreamWagon.java:61)

        at org.apache.maven.artifact.manager.DefaultWagonManager.getRemoteFile(DefaultWagonManager.java:546)

        at org.apache.maven.artifact.manager.DefaultWagonManager.getArtifact(DefaultWagonManager.java:427)

        at org.apache.maven.artifact.manager.DefaultWagonManager.getArtifact(DefaultWagonManager.java:382)

        at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:216)

        at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:90)

        at org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:558)

        at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMavenProjectBuilder.java:1392)

        at org.apache.maven.project.DefaultMavenProjectBuilder.buildInternal(DefaultMavenProjectBuilder.java:823)

        at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFileInternal(DefaultMavenProjectBuilder.java:508)

        at org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMavenProjectBuilder.java:200)

        at org.apache.maven.DefaultMaven.getProject(DefaultMaven.java:604)

        at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:487)

        at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:391)

        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:272)

        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)

        at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)

        at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

        at java.lang.reflect.Method.invoke(Method.java:606)

        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: java.io.FileNotFoundException: http://repo1.maven.org/maven2/org/jboss/bom/jboss-bom-parent/1.0.4.Final-redhat-9/jboss-bom-parent-1.0.4.Final-redhat-9.pom

        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)

        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)

        at java.lang.reflect.Constructor.newInstance(Constructor.java:526)

        at sun.net.www.protocol.http.HttpURLConnection$6.run(HttpURLConnection.java:1675)

        at sun.net.www.protocol.http.HttpURLConnection$6.run(HttpURLConnection.java:1673)

        at java.security.AccessController.doPrivileged(Native Method)

        at sun.net.www.protocol.http.HttpURLConnection.getChainedException(HttpURLConnection.java:1671)

        at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1244)

        at org.apache.maven.wagon.providers.http.LightweightHttpWagon.fillInputData(LightweightHttpWagon.java:122)

        ... 28 more

      Caused by: java.io.FileNotFoundException: http://repo1.maven.org/maven2/org/jboss/bom/jboss-bom-parent/1.0.4.Final-redhat-9/jboss-bom-parent-1.0.4.Final-redhat-9.pom

        at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1624)

        at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:468)

        at org.apache.maven.wagon.providers.http.LightweightHttpWagon.fillInputData(LightweightHttpWagon.java:115)

        ... 28 more

      [DEBUG] Using Wagon implementation lightweight from default mapping for protocol http

      [INFO] Unable to find resource 'org.jboss.bom:jboss-bom-parent:pom:1.0.4.Final-redhat-9' in repository central (http://repo1.maven.org/maven2)

      [INFO] ------------------------------------------------------------------------

      [ERROR] FATAL ERROR

      [INFO] ------------------------------------------------------------------------

      [INFO] Error building POM (may not be this project's POM).

      Project ID: org.jboss.quickstarts.portal:simplest-hello-world-portlet:war:6.1.1.build-5

      Reason: Cannot find parent: org.jboss.bom:jboss-bom-parent for project: org.jboss.quickstarts.portal:simplest-hello-world-portlet:war:6.1.1.build-5 for project org.jboss.quickstarts.portal:simplest-hello-world-portlet:war:6.1.1.build-5

      [INFO] ------------------------------------------------------------------------

      [DEBUG] Trace

      org.apache.maven.reactor.MavenExecutionException: Cannot find parent: org.jboss.bom:jboss-bom-parent for project: org.jboss.quickstarts.portal:simplest-hello-world-portlet:war:6.1.1.build-5 for project org.jboss.quickstarts.portal:simplest-hello-world-portlet:war:6.1.1.build-5

        at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:404)

        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:272)

        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)

        at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)

        at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

        at java.lang.reflect.Method.invoke(Method.java:606)

        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: org.jboss.bom:jboss-bom-parent for project: org.jboss.quickstarts.portal:simplest-hello-world-portlet:war:6.1.1.build-5 for project org.jboss.quickstarts.portal:simplest-hello-world-portlet:war:6.1.1.build-5

        at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMavenProjectBuilder.java:1396)

        at org.apache.maven.project.DefaultMavenProjectBuilder.buildInternal(DefaultMavenProjectBuilder.java:823)

        at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFileInternal(DefaultMavenProjectBuilder.java:508)

        at org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMavenProjectBuilder.java:200)

        at org.apache.maven.DefaultMaven.getProject(DefaultMaven.java:604)

        at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:487)

        at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:391)

        ... 12 more

      Caused by: org.apache.maven.project.ProjectBuildingException: POM 'org.jboss.bom:jboss-bom-parent' not found in repository: Unable to download the artifact from any repository

        org.jboss.bom:jboss-bom-parent:pom:1.0.4.Final-redhat-9

      from the specified remote repositories:

        central (http://repo1.maven.org/maven2),

        jboss-portal-6.1.0 (file:///home/taashee/jboss-jpp-maven-repository)

      for project org.jboss.bom:jboss-bom-parent

        at org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:605)

        at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMavenProjectBuilder.java:1392)

        ... 18 more

      Caused by: org.apache.maven.artifact.resolver.ArtifactNotFoundException: Unable to download the artifact from any repository

        org.jboss.bom:jboss-bom-parent:pom:1.0.4.Final-redhat-9

      from the specified remote repositories:

        central (http://repo1.maven.org/maven2),

        jboss-portal-6.1.0 (file:///home/taashee/jboss-jpp-maven-repository)

        at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:228)

        at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:90)

        at org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:558)

        ... 19 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:404)

        at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:216)

        ... 21 more

      [INFO] ------------------------------------------------------------------------

      [INFO] Total time: 1 second

      [INFO] Finished at: Fri Oct 31 17:30:53 IST 2014

      [INFO] Final Memory: 5M/118M

       

      I have my pom.xml file as

       

      <?xml version="1.0" encoding="UTF-8"?>

      <project 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 http://maven.apache.org/maven-v4_0_0.xsd">

          <modelVersion>4.0.0</modelVersion>

          <artifactId>simplest-hello-world-portlet</artifactId>

          <groupId>org.jboss.quickstarts.portal</groupId>

          <name>Simplest Hello World Portlet</name>

          <version>6.1.1.build-5</version>

          <packaging>war</packaging>

          <description>The very essence of every possible portlet.</description>

          <url>file:///home/taashee/jboss-jpp-maven-repository</url>

          <licenses>

              <license>

                  <name>Apache License, Version 2.0</name>

                  <distribution>repo</distribution>

                  <url>http://www.apache.org/licenses/LICENSE-2.0.html</url>

              </license>

          </licenses>

          <properties>

              <!-- JBoss Portal Bill of Materials (BOM) version -->

              <version.jboss.portal.bom>6.1.1-redhat-1</version.jboss.portal.bom>

              <!-- maven-compiler-plugin -->

              <maven.compiler.plugin.version>2.3.2</maven.compiler.plugin.version>

              <maven.compiler.target>1.6</maven.compiler.target>

              <maven.compiler.source>1.6</maven.compiler.source>

              <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

              <!--

                  JBoss Tools and JBoss Developer Studio use m2eclipse.wtp.contextRoot as a part

                  of the URL which they display in a browser after this portlet has been deployed.

                  Do not forget to invoke

                context menu over this project > Maven > Update Project...

                  after changing this value.

              -->

              <m2eclipse.wtp.contextRoot>/portal/classic</m2eclipse.wtp.contextRoot>

              <version.surefire.plugin>2.10</version.surefire.plugin>

              <version.jboss.maven.plugin>7.4.Final</version.jboss.maven.plugin>

          </properties>

          <dependencyManagement>

              <dependencies>

                  <!--

                      Define the version of JBoss Portal we build for. In its dependencyManagement,

                      JBoss Portal Bill of Materials (BOM) specifies the versions

                      of dependencies which are granted to be compatible with (or indeed

                      in many cases provided by) JBoss Portal.

                  -->

                  <dependency>

                    <groupId>org.jboss.bom.portal</groupId>

               <artifactId>jboss-portal-bom</artifactId>

                    <version>6.1.1-redhat-1</version>

                      <type>pom</type>

                      <scope>import</scope>

                  </dependency>

      <!--

                  <dependency>

                      <groupId>org.jboss.component.management</groupId>

                      <artifactId>jboss-component-version-master</artifactId>

                      <version>6.0.1-redhat-1</version>

                      <type>pom</type>

                      <scope>import</scope>

                  </dependency>

      -->

              </dependencies>

          </dependencyManagement>

          <dependencies>

              <!--

                  The versions of these dependencies are managed in jboss-portal-bom.

                  Note that artifacts managed in jboss-portal-bom are <scope>provided</scope> in most cases.

                  Name only those artifacts you refer to in your code.

                  Look at jboss-portal-bom POM file for the complete list of available artifacts.

              -->

              <dependency>

                  <groupId>javax.portlet</groupId>

                  <artifactId>portlet-api</artifactId>

           <version>2.0</version>

                  <scope>provided</scope>

              </dependency>

          </dependencies>

          <build>

              <finalName>JBoss BOM Parent</finalName>

              <pluginManagement>

                  <plugins>

                <!--

                The Maven Surefire plugin tests your application. Here we ensure we are using a version compatible with Arquillian

                -->

                      <plugin>

                          <groupId>org.apache.maven.plugins</groupId>

                          <artifactId>maven-surefire-plugin</artifactId>

                          <version>${version.surefire.plugin}</version>

                      </plugin>

                  </plugins>

              </pluginManagement>

              <plugins>

                  <plugin>

                      <groupId>org.jboss.as.plugins</groupId>

                      <artifactId>jboss-as-maven-plugin</artifactId>

                      <version>${version.jboss.maven.plugin}</version>

                  </plugin>

                  <plugin>

                      <groupId>org.apache.maven.plugins</groupId>

                      <artifactId>maven-compiler-plugin</artifactId>

                      <version>${maven.compiler.plugin.version}</version>

                      <configuration>

                          <source>${maven.compiler.source}</source>

                          <target>${maven.compiler.target}</target>

                      </configuration>

                  </plugin>

              </plugins>

          </build>

      <repositories>

              <repository>

                <id>jboss-portal-6.1.0</id>

                <url>file:///home/taashee/jboss-jpp-maven-repository</url>

                <releases>

                  <enabled>true</enabled>

                </releases>

                <snapshots>

                  <enabled>false</enabled>

                </snapshots>

              </repository>

            </repositories>

      <pluginRepositories>

              <pluginRepository>

                <id>jboss-portal-6.1.0</id>

                <url>file:///home/taashee/jboss-jpp-maven-repository</url>

                <releases>

                  <enabled>true</enabled>

                </releases>

                <snapshots>

                  <enabled>false</enabled>

                </snapshots>

              </pluginRepository>

            </pluginRepositories>

      </project>

       

      Can any one help me out where i am going wrong it would be a great help.