8 Replies Latest reply: Apr 4, 2014 3:15 AM by Karel Piwko RSS

    Problem with installation guide

    rune_rne Newbie

      Hi,

       

      i have some problems with the installation guide, which you can find here: http://arquillian.org/guides/getting_started/

       

      I tried both ways in the section "Create a New Project".

       

      When i use the Generate a project from a Maven archetype

       

      i get the follwoing error:

       

      [WARNING] Failure to transfer org.codehaus.mojo/maven-metadata.xml from http://r
      epo.maven.apache.org/maven2 was cached in the local repository, resolution will
      not be reattempted until the update interval of central has elapsed or updates a
      re forced. Original error: Could not transfer metadata org.codehaus.mojo/maven-m
      etadata.xml from/to central (http://repo.maven.apache.org/maven2): Connection to
       http://repo.maven.apache.org refused
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 3:09.732s
      [INFO] Finished at: Thu Apr 26 11:33:14 CEST 2012
      [INFO] Final Memory: 2M/15M
      [INFO] ------------------------------------------------------------------------
      [ERROR] No plugin found for prefix 'archetype' in the current project and in the
       plugin groups [org.apache.maven.plugins, org.codehaus.mojo] available from the
      repositories [local (D:\Data\Documents and Settings\Paul.Prescher.ext\.m2\reposi
      tory), central (http://repo.maven.apache.org/maven2)] -> [Help 1]
      [ERROR]
      [ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
      ch.
      [ERROR] Re-run Maven using the -X switch to enable full debug logging.
      [ERROR]
      [ERROR] For more information about the errors and possible solutions, please rea
      d the following articles:
      [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/NoPluginFoundF
      orPrefixException
      
      

       

       

       

      When i use the other approach Create and customize a project using JBoss Forge

      i can create the project but when i try to add the dependencies i get the following error:

       

       

      [arquillian-tutorial] aqtest $ project add-dependency org.jboss.spec:jboss-javae
      e-6.0:1.0.0.Final:pom:provided
      ***ERROR*** [project add-dependency] com/google/common/base/Strings
      
      

       

      When i try to fake the pom file and load it to my eclipse i get several errors in eclipse.

       

       

      Description
      Resource
      Path
      Location
      Type
      ArtifactDescriptorException: Failed to read artifact descriptor for junit:junit:jar:4.8.1: ArtifactResolutionException: Failure to transfer junit:junit:pom:4.8.1 from http://repository.jboss.org/nexus/content/groups/public was cached in the local repository, resolution will not be reattempted until the update interval of JBOSS_NEXUS has elapsed or updates are forced. Original error: Could not transfer artifact junit:junit:pom:4.8.1 from/to JBOSS_NEXUS (http://repository.jboss.org/nexus/content/groups/public): Connect times out
      pom.xml
      /arquillian-tutorial
      line 1
      Maven Dependency Problem
      ArtifactDescriptorException: Failed to read artifact descriptor for org.jboss.spec:jboss-javaee-6.0:provided:1.0.0.Final: ArtifactResolutionException: Failure to transfer org.jboss.spec:jboss-javaee-6.0:pom:1.0.0.Final from http://repository.jboss.org/nexus/content/groups/public was cached in the local repository, resolution will not be reattempted until the update interval of JBOSS_NEXUS has elapsed or updates are forced. Original error: Could not transfer artifact org.jboss.spec:jboss-javaee-6.0:pom:1.0.0.Final from/to JBOSS_NEXUS (http://repository.jboss.org/nexus/content/groups/public): Connect times out
      pom.xml
      /arquillian-tutorial
      line 1
      Maven Dependency Problem
      CoreException: Could not calculate build plan: Plugin org.apache.maven.plugins:maven-compiler-plugin:2.3.2 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-compiler-plugin:jar:2.3.2: ArtifactResolutionException: Failure to transfer org.apache.maven.plugins:maven-compiler-plugin:pom:2.3.2 from http://repo1.maven.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact org.apache.maven.plugins:maven-compiler-plugin:pom:2.3.2 from/to central (http://repo1.maven.org/maven2): Connect times out
      pom.xml
      /arquillian-tutorial
      line 35
      Maven Project Build Lifecycle Mapping Problem
      Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:2.4.3 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.4.3
      pom.xml
      /arquillian-tutorial
      line 1
      Maven Build Problem
      Failure to transfer org.apache.maven.plugins:maven-resources-plugin:pom:2.4.3 from http://repo1.maven.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact org.apache.maven.plugins:maven-resources-plugin:pom:2.4.3 from/to central (http://repo1.maven.org/maven2): Connect times out
      pom.xml
      /arquillian-tutorial
      line 1
      Maven Configuration Problem
      Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (execution: default-compile, phase: compile)
      pom.xml
      /arquillian-tutorial
      line 35
      Maven Project Build Lifecycle Mapping Problem
      Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-compiler-plugin:2.3.2:testCompile (execution: default-testCompile, phase: test-compile)
      pom.xml
      /arquillian-tutorial
      line 35
      Maven Project Build Lifecycle Mapping Problem
      
      
      

       

      Can someone help me?

       


        • 1. Re: Problem with installation guide
          Aslak Knutsen Master

          Try rerunning the maven archetype example but add -U, that will force a update of the dependencies. Seems like you managed to hit some downtime on the repository or something when you attempted it. Unless you are behind some corporate firewall that blocks that url or need to add a proxy or similar.

           

          Can you reach this URL from your browser? http://repo.maven.apache.org/maven2/org/codehaus/mojo/maven-metadata.xml

          • 2. Re: Problem with installation guide
            rune_rne Newbie

            i rerunned it but it is the same problem. I m behind a firewall but i already put the proxy in the maven \conf\settings.xml.

            The URL is not blocked i can access it directly.

            • 3. Re: Problem with installation guide
              rune_rne Newbie

              ok it seems to work now. i played a bit with the proxy settings.

               

              here are my current settings if the problem should occur for someone else.

                <proxies>

                  <proxy>

                    <id>optional</id>

                    <active>true</active>

                    <protocol>http</protocol>

                    <host>proxyname</host>

                    <port>81</port>

                        <nonProxyHosts></nonProxyHosts>

                  </proxy>

                 </proxies>

               

              thanks for helping

              • 4. Re: Problem with installation guide
                Lincoln Baxter III Master

                What version of Forge are you using? This works for me in the latest snapshots:

                 

                [foobar] foobar $ project add-dependency org.jboss.spec:jboss-javaee-6.0:1.0.0.Final:pom:provided

                Wrote /home/lb3/Desktop/foobar/pom.xml

                [foobar] foobar $

                 

                 

                results in:

                 

                    <dependency>

                      <groupId>org.jboss.spec</groupId>

                      <artifactId>jboss-javaee-6.0</artifactId>

                      <type>provided</type>

                      <scope>pom</scope>

                    </dependency>

                • 5. Re: Problem with installation guide
                  rune_rne Newbie

                  i m using the acutal snapshot 1.0.5 the generation of the pom file work well no.

                  but i experienced the next problem. when i want to import it into eclipse i get several errors. i tried already different thinks but it seam that something of my installation is missing but i downloaded the jboss tools.

                   

                   

                  ArtifactTransferException: Failure to transfer org.jboss.spec:jboss-javaee-6.0:provided:1.0.0.Final from http://repo1.maven.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact org.jboss.spec:jboss-javaee-6.0:provided:1.0.0.Final from/to central (http://repo1.maven.org/maven2): Connect times out     pom.xml     /arquillian-tutorial     line 26     Maven Dependency Problem

                   

                  ArtifactTransferException: Failure to transfer org.jboss.spec:jboss-javaee-6.0:provided:1.0.0.Final from http://repository.jboss.org/nexus/content/groups/public was cached in the local repository, resolution will not be reattempted until the update interval of JBOSS_NEXUS has elapsed or updates are forced. Original error: Could not transfer artifact org.jboss.spec:jboss-javaee-6.0:provided:1.0.0.Final from/to JBOSS_NEXUS (http://repository.jboss.org/nexus/content/groups/public): Connect times out     pom.xml     /arquillian-tutorial     line 26     Maven Dependency Problem

                   

                  CoreException: Could not get the value for parameter compilerId for plugin execution default-compile: PluginResolutionException: Plugin org.apache.maven.plugins:maven-compiler-plugin:2.3.2 or one of its dependencies could not be resolved: Failed to collect dependencies for org.apache.maven.plugins:maven-compiler-plugin:jar:2.3.2 (): ArtifactDescriptorException: Failed to read artifact descriptor for org.apache.maven:maven-plugin-api:jar:2.0.6: ArtifactResolutionException: Failure to transfer org.apache.maven:maven-plugin-api:pom:2.0.6 from http://repo1.maven.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact org.apache.maven:maven-plugin-api:pom:2.0.6 from/to central (http://repo1.maven.org/maven2): Connect times out     pom.xml     /arquillian-tutorial     line 47     Maven Project Build Lifecycle Mapping Problem

                   

                  CoreException: Could not get the value for parameter compilerId for plugin execution default-testCompile: PluginResolutionException: Plugin org.apache.maven.plugins:maven-compiler-plugin:2.3.2 or one of its dependencies could not be resolved: Failed to collect dependencies for org.apache.maven.plugins:maven-compiler-plugin:jar:2.3.2 (): ArtifactDescriptorException: Failed to read artifact descriptor for org.apache.maven:maven-plugin-api:jar:2.0.6: ArtifactResolutionException: Failure to transfer org.apache.maven:maven-plugin-api:pom:2.0.6 from http://repo1.maven.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact

                   

                  org.apache.maven:maven-plugin-api:pom:2.0.6 from/to central (http://repo1.maven.org/maven2): Connect times out     pom.xml     /arquillian-tutorial     line 47     Maven Project Build Lifecycle Mapping Problem

                  Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:2.4.3 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.4.3     pom.xml     /arquillian-tutorial     line 1     Maven Build Problem

                   

                  Failure to transfer org.apache.maven.plugins:maven-resources-plugin:pom:2.4.3 from http://repo1.maven.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact org.apache.maven.plugins:maven-resources-plugin:pom:2.4.3 from/to central (http://repo1.maven.org/maven2): Connect times out     pom.xml     /arquillian-tutorial     line 1     Maven Configuration Problem

                   

                  Missing artifact org.jboss.spec:jboss-javaee-6.0:provided:1.0.0.Final     pom.xml     /arquillian-tutorial     line 1     Maven Dependency Problem Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (execution: default-compile, phase: compile)     pom.xml     /arquillian-tutorial     line 47     Maven Project Build Lifecycle Mapping Problem

                   

                  Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-compiler-plugin:2.3.2:testCompile (execution: default-testCompile, phase: test-compile)     pom.xml     /arquillian-tutorial     line 47     Maven Project Build Lifecycle Mapping Problem

                  Project configuration is not up-to-date with pom.xml. Run project configuration update     arquillian-tutorial          line 1     Maven Configuration Problem

                   

                   

                  does anyone have an idea? for me it looks like some kind of networkproblem or something but i already put the proxy in and during installation i do not get any errors.

                  when i try to install the maven plugins eclipse says nothing to update

                  • 6. Re: Problem with installation guide
                    Lincoln Baxter III Master

                    Yes, it wounds like a networking problem. I'd try to make sure that your proxy is configured correctly, and that you can access these resources directly, without maven. If you can, then it's a maven issue. If you can't, it's a networking issue.

                     

                    How did you run your build?

                    • 7. Re: Problem with installation guide
                      Daniel Castro Newbie

                      I have the same problem.

                      forge-distribution-1.0.0.Final

                      Behind Proxy but with proxy configured.

                       

                      C:\Java\jbdevstudio\studio\workspace>forge

                          _____

                         |  ___|__  _ __ __ _  ___

                         | |_ / _ \| `__/ _` |/ _ \  \\

                         |  _| (_) | | | (_| |  __/  //

                         |_|  \___/|_|  \__, |\___|

                                         |___/

                       

                       

                        Windows? Really? Okay...

                       

                       

                      [no project] workspace $ new-project --named arquillian-tutorial-nomvn --topLevelPackage org.arquillian.example -U

                      new-project --named arquillian-tutorial-nomvn --topLevelPackage org.arquillian.example -U

                      ***INFO*** The command [new-project] takes [0] unnamed argument(s), but found [1].

                      ***INFO*** Swallowed unknown token [-U] for command [new-project].

                      ? Use [C:\/Java/jbdevstudio/studio/workspace/arquillian-tutorial-nomvn] as project directory? [Y/n]

                      ***SUCCESS*** Created project [arquillian-tutorial-nomvn] in new working directory [C:\/Java/jbdevstudio/studio/workspace/arquillian-tutorial-nomvn]

                      Wrote C:\/Java/jbdevstudio/studio/workspace/arquillian-tutorial-nomvn/pom.xml

                      Wrote C:\/Java/jbdevstudio/studio/workspace/arquillian-tutorial-nomvn/src/main/resources/META-INF/forge.xml

                      [arquillian-tutorial-nomvn] arquillian-tutorial-nomvn $ project add-dependency org.jboss.spec:jboss-javaee-6.0:1.0.0.Final:provided:pom

                      ***ERROR*** [project add-dependency] com/google/common/base/Strings

                      [arquillian-tutorial-nomvn] arquillian-tutorial-nomvn $ project add-dependency org.jboss.spec:jboss-javaee-6.0:1.0.0.Final:provided:pom -U

                      ***INFO*** The command [add-dependency] takes [1] unnamed argument(s), but found [2].

                      ***INFO*** Swallowed unknown token [-U] for command [add-dependency].

                      ***ERROR*** [project add-dependency] com/google/common/base/Strings

                      [arquillian-tutorial-nomvn] arquillian-tutorial-nomvn $

                      • 8. Re: Problem with installation guide
                        Karel Piwko Master

                        Hi Daniel,

                         

                        Forge 1.0.0 is quite ancient stuff. Could you try with a recent version - 1.4.4.Final, or 2.3.0.Final and raise a new thread if problem occurs?

                         

                        Thanks,

                         

                        Karel