5 Replies Latest reply on Sep 7, 2010 4:30 PM by tedgoddard

    Seam 3 source code (core) build fails

    isonisak
           I have tried to build Seam 3 core with instructions in page http://www.seamframework.org/Seam3/CheckOutAndBuildSeam
           The instruction in page instructs to use SVN : http://anonsvn.jboss.org/repos/seam
           
           Java-version = 1.6.017
           Mavan version = apache-maven-3.0-beta-1 
                => I changed to this version from 2.2.1 ( Pete Muir requested)

           The error appears in maven download that don't download org.jboss.spec /  javeee 6 artifacts
           that are required in build phase two ( run ./dist/trunk/pom.xml) in dependency
           
                 <dependency>
                    <groupId>org.jboss.spec</groupId>
                    <artifactId>jboss-javaee-6.0</artifactId>
                    <version>${jboss.javaee.version}</version>
                    <scope>import</scope>
                    <type>pom</type>
                 </dependency>
           
           
           The error messages are:
           
                Downloading: http://repo1.maven.org/maven2/org/jboss/spec/jboss-javaee-6.0/1.0.0.Beta4/jboss-javaee-6.0-1.0.0.Beta4.pom
                [ERROR] The build could not read 1 project -> [Help 1]
                [ERROR]   The project org.jboss.seam:seam-bom:3.0.0-SNAPSHOT (C:\Programs\Seam\V3\20100604_2\dist\trunk\pom.xml) has 1 e
                rror
                [ERROR]     Non-resolvable import POM org.jboss.spec:jboss-javaee-6.0:1.0.0.Beta4: Failed to resolve POM for org.jboss.s
                pec:jboss-javaee-6.0:1.0.0.Beta4 due to Missing:
                ----------
                1) org.jboss.spec:jboss-javaee-6.0:pom:1.0.0.Beta4
                ----------
                1 required artifact is missing.


           I suppose that the solutin is to change the repository to more current one ?
           but don't know how to do it and what to change in POMs.
        • 1. Re: Seam 3 source code (core) build fails
          nickarls

          You need to set up your repositories according to this

          • 2. Re: Seam 3 source code (core) build fails
            isonisak

            Hello

            - Added the elements "repositories" and "repositories" like instructed in page
            http://community.jboss.org/wiki/MavenGettingStarted-Developers
            to ./build/trunk/parent/pom.xml and /dist/trunk/pom.xml

            - Cleaned local maven repository (./m3)  ( apache-maven-3.0-beta-1 )
            - Ran (mvn install) ./build/trunk/parent/pom.xml  => OK
               Now the org.jboss.spec stuf were downloaded.
            - Ran (mvn install) ./dist/trunk/pom.xml  => Error below

            Shoul I download the required artifact (org.apache.maven.plugins:maven-shade-plugin:maven-plugin:1.3.3 ) manyally as requested and rerun build ?

            Seam source code is probably not the cause ( Revision "2010.06.08" ).

            // --------------------------

            [INFO] ------------------------------------------------------------------------
            [INFO] Reactor Summary:
            [INFO]
            [INFO] Seam BOM .......................................... SUCCESS [4.047s]
            [INFO] Seam .............................................. FAILURE [32:40.315s]
            [INFO] ------------------------------------------------------------------------
            [INFO] BUILD FAILURE
            [INFO] ------------------------------------------------------------------------
            [INFO] Total time: 32:54.362s
            [INFO] Finished at: Thu Jun 10 13:23:15 EEST 2010
            [INFO] Final Memory: 15M/38M
            [INFO] ------------------------------------------------------------------------
            [ERROR] Failed to execute goal org.apache.maven.plugins:maven-shade-plugin:1.3.3:shade (uber-jar) on project seam: Execu
            tion uber-jar of goal org.apache.maven.plugins:maven-shade-plugin:1.3.3:shade failed: Plugin org.apache.maven.plugins:ma
            ven-shade-plugin:1.3.3 or one of its dependencies could not be resolved: Missing:
            ----------
            1) org.jboss.seam.build:seam-maven-tools:jar:1.0.0-SNAPSHOT

              Try downloading the file manually from the project website.

              Then, install it using the command:
                  mvn install:install-file -DgroupId=org.jboss.seam.build -DartifactId=seam-maven-tools -Dversion=1.0.0-SNAPSHOT -Dp
            ackaging=jar -Dfile=/path/to/file

              Alternatively, if you host your own repository you can deploy the file there:
                  mvn deploy:deploy-file -DgroupId=org.jboss.seam.build -DartifactId=seam-maven-tools -Dversion=1.0.0-SNAPSHOT -Dpac
            kaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

              Path to dependency:
                    1) org.apache.maven.plugins:maven-shade-plugin:maven-plugin:1.3.3
                    2) org.jboss.seam.build:seam-maven-tools:jar:1.0.0-SNAPSHOT

            ----------
            1 required artifact is missing.

            for artifact:
              org.apache.maven.plugins:maven-shade-plugin:maven-plugin:1.3.3

            from the specified remote repositories:
              jboss-public-repository-group (http://repository.jboss.org/nexus/content/groups/public/, releases=true, snapshots=true
            ),
              twdata-m2-repository.googlecode.com (http://twdata-m2-repository.googlecode.com/svn, releases=true, snapshots=false),
              download.java.net/glassfish (http://download.java.net/maven/glassfish, releases=true, snapshots=false),
              repository.jboss.org (http://repository.jboss.org/maven2, releases=true, snapshots=false),
              central (http://repo1.maven.org/maven2, releases=true, snapshots=false)
            -> [Help 1]
            [ERROR]
            [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
            [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 read the following articles:
            [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException
            [ERROR]
            [ERROR] After correcting the problems, you can resume the build with the command
            [ERROR]   mvn <goals> -rf :seam
            • 3. Re: Seam 3 source code (core) build fails
              nickarls

              Hmm, Pete added that dep. You could add the repo http://oss.sonatype.org/content/repositories/jboss-snapshots/ until someone gives a better solution.

              • 4. Re: Seam 3 source code (core) build fails
                isonisak

                Thanks,

                But this repo didn't correct the error and

                     Had to manually download and install seam-maven-tools-1.0.0-20100604.171109-2.jar
                          ( mvn install:install-file -DgroupId=org.jboss.seam.build
                                    -DartifactId=seam-maven-tools -Dversion=1.0.0-SNAPSHOT
                                    -Dpackaging=jar -Dfile=.../Java/temp/seam-maven-tools-1.0.0-20100604.171109-2.jar )

                Then Seam build succeeded.

                Also Faces module build went OK.

                387 jars were downloaded from diffrent repositories !

                "Gathered explenations" that should be updated to page http://seamframework.org/Seam3/CheckOutAndBuildSeam

                   - Add the elements "repositories" and "repositories" like instructed in page
                            http://community.jboss.org/wiki/MavenGettingStarted-Developers
                            to ./build/trunk/parent/pom.xml and /dist/trunk/pom.xml

                   - If build fails,
                           - - add  repo http://oss.sonatype.org/content/repositories/jboss-snapshots/
                           - - install rest manually

                Next task is to try the examples ( .\examples\trunk )

                Proper documentation is badly needed.

                I made another ticket from this matter to this forum / how to build the docs from sources.


                • 5. Re: Seam 3 source code (core) build fails
                  tedgoddard

                  Should this directory contain a .jar file as well as the signature files?


                  http://repository.jboss.org/nexus/content/groups/public/org/jboss/seam/build/seam-maven-tools/1.0.0-SNAPSHOT/