6 Replies Latest reply on Apr 28, 2011 6:39 AM by Gábor Farkas

    Weld 1.1.0 final examples deployment

    Alex Manrique Newbie

      Hi,


      when I try to deploy the examples like numberguess with ant(like it's explained in the documentation) I get the following error:


      "check.jboss.home:

      package:
           [java] [INFO] Scanning for projects...
           [java] Downloading: http://repo1.maven.org/maven2/org/jboss/weld/weld-core-parent/1.1.0.Final/weld-core-parent-1.1.0.Final.pom
           [java] [INFO] ------------------------------------------------------------------------
           [java] [ERROR] FATAL ERROR
           [java] [INFO] ------------------------------------------------------------------------
           [java] [INFO] Error building POM (may not be this project's POM).
           [java]
           [java]
           [java] Project ID: org.jboss.weld.examples:weld-examples-parent:pom:1.1.0.Final
           [java]
           [java] Reason: Cannot find parent: org.jboss.weld:weld-core-parent for project: org.jboss.weld.examples:weld-examples-parent:pom:1.1.0.Final for project org.jboss.weld.examples:weld-examples-parent:pom:1.1.0.Final
           [java]
           [java]
           [java] [INFO] ------------------------------------------------------------------------
           [java] [INFO] Trace
           [java] org.apache.maven.reactor.MavenExecutionException: Cannot find parent: org.jboss.weld:weld-core-parent for project: org.jboss.weld.examples:weld-examples-parent:pom:1.1.0.Final for project org.jboss.weld.examples:weld-examples-parent:pom:1.1.0.Final"



      I think that the reason is that http://repo1.maven.org/maven2/org/jboss/weld/weld-core-parent/1.1.0.Final/weld-core-parent-1.1.0.Final.pom doesn't exists so ant cannot find the requested .pom
      The correct .pom is http://repo1.maven.org/maven2/org/jboss/weld/weld-core-parent/1.0.1-Final/weld-core-parent-1.0.1-Final.pom (it exists)


      you're going to fix it or we would have to change the requested .pom??


      thanks for your time!


        • 1. Re: Weld 1.1.0 final examples deployment
          Sebastian Sachtleben Novice

          Try to add the jboss repository:


             ...
             </properties> 
             
             <repositories>
                <repository>
                   <id>jboss-public-repository</id>
                   <name>JBoss Repository</name>
                   <url>https://repository.jboss.org/nexus/content/groups/public</url>
                   <releases>
                      <enabled>true</enabled>
                   </releases>
                   <snapshots>
                      <enabled>true</enabled>
                      <updatePolicy>never</updatePolicy>
                   </snapshots>
                </repository>
             </repositories>
          
             <pluginRepositories>
                <pluginRepository>
                   <id>jboss-public-repository</id>
                   <name>JBoss Repository</name>
                   <url>https://repository.jboss.org/nexus/content/groups/public</url>
                   <releases>
                      <enabled>true</enabled>
                   </releases>
                   <snapshots>
                      <enabled>true</enabled>
                      <updatePolicy>never</updatePolicy>
                   </snapshots>
                </pluginRepository>
             </pluginRepositories>
          
             <dependencyManagement>
               ...



          • 2. Re: Weld 1.1.0 final examples deployment
            Alex Manrique Newbie

            I added the repository that you told me but I get another error...




            |check.jboss.home:
            
            package:
                 [java] [INFO] Scanning for projects...
                 [java] [INFO] -------------------------------------------------------------
            -----------
                 [java] [INFO] Building Weld Examples: Numberguess (JSF)
                 [java] [INFO]    task-segment: [install]
                 [java] [INFO] -------------------------------------------------------------
            -----------
                 [java] Downloading: http://repository.jboss.org/nexus/content/groups/public
            /org/apache/maven/plugins/maven-surefire-plugin/2.6/maven-surefire-plugin-2.6.ja
            r
                 [java] Downloading: https://repository.jboss.org/nexus/content/groups/publi
            c/org/apache/maven/plugins/maven-surefire-plugin/2.6/maven-surefire-plugin-2.6.j
            ar
                 [java] Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/
            maven-surefire-plugin/2.6/maven-surefire-plugin-2.6.jar
                 [java] [INFO] -------------------------------------------------------------
            -----------
                 [java] [ERROR] BUILD FAILURE
                 [java] [INFO] -------------------------------------------------------------
            -----------
                 [java] [INFO] A required plugin was not found: Plugin could not be found -
            check that the goal name is correct: Unable to download the artifact from any re
            pository
                 [java]
                 [java] Try downloading the file manually from the project website.
                 [java]
                 [java] Then, install it using the command:
                 [java]     mvn install:install-file -DgroupId=org.apache.maven.plugins -Dar
            tifactId=maven-surefire-plugin -Dversion=2.6 -Dpackaging=maven-plugin -Dfile=/pa
            th/to/file
                 [java]
                 [java] Alternatively, if you host your own repository you can deploy the fi
            le there:
                 [java]     mvn deploy:deploy-file -DgroupId=org.apache.maven.plugins -Darti
            factId=maven-surefire-plugin -Dversion=2.6 -Dpackaging=maven-plugin -Dfile=/path
            /to/file -Durl=[url] -DrepositoryId=[id]
                 [java]
                 [java]
                 [java]   org.apache.maven.plugins:maven-surefire-plugin:maven-plugin:2.6
                 [java]
                 [java] from the specified remote repositories:
                 [java]   jboss-snapshots-repository (http://repository.jboss.org/nexus/cont
            ent/groups/public),
                 [java]   jboss-public-repository-group (http://repository.jboss.org/nexus/c
            ontent/groups/public),
                 [java]   jboss-public-repository (https://repository.jboss.org/nexus/conten
            t/groups/public),
                 [java]   central (http://repo1.maven.org/maven2)
                 [java]
                 [java]
                 [java]   org.apache.maven.plugins:maven-surefire-plugin:maven-plugin:2.6
                 [java]
                 [java] from the specified remote repositories:
                 [java]   jboss-snapshots-repository (http://repository.jboss.org/nexus/cont
            ent/groups/public),
                 [java]   jboss-public-repository-group (http://repository.jboss.org/nexus/c
            ontent/groups/public),
                 [java]   jboss-public-repository (https://repository.jboss.org/nexus/conten
            t/groups/public),
                 [java]   central (http://repo1.maven.org/maven2)
                 [java]
                 [java]
                 [java] [INFO] -------------------------------------------------------------
            -----------
                 [java] [INFO] For more information, run Maven with the -e switch
                 [java] [INFO] -------------------------------------------------------------
            -----------
                 [java] [INFO] Total time: 1 minute 4 seconds
                 [java] [INFO] Finished at: Wed Feb 02 09:36:07 CET 2011
                 [java] [INFO] Final Memory: 4M/15M
                 [java] [INFO] -------------------------------------------------------------
            -----------
            
            BUILD FAILED
            C:\weld-1.1.0.Final\examples\jsf\numberguess\build.xml:9: The following error oc
            curred while executing this line:
            C:\weld-1.1.0.Final\examples\build.xml:154: Java returned: 1|








            It's a plugin that its missing or something like that. Adding another repository could fix it??


            thank you


            • 3. Re: Weld 1.1.0 final examples deployment
              Sebastian Sachtleben Novice

              Mhmm..... your build log says:


              Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-surefire-plugin/2.6/maven-surefire-plugin-2.6.jar


              If I click on that link I can download the jar file. Maybe the maven repository was down did you tried it again?

              • 4. Re: Weld 1.1.0 final examples deployment
                Alex Manrique Newbie

                I tried it several times but the error is always the same (as I posted yesterday)


                any suggestions?¿


                thanks Sebastian!

                • 5. Re: Weld 1.1.0 final examples deployment
                  Flavio Oliva Newbie

                  I have been having the same problem, any solution for it?

                  • 6. Re: Weld 1.1.0 final examples deployment
                    Gábor Farkas Newbie

                    I had the same problem here. Adding the jboss repo (in examples/pom.xml) as mentioned above solved the issue for me.
                    (Now I'm out for a lunch, I hope maven will finish building my example soon ...)