1 2 Previous Next 18 Replies Latest reply on Mar 18, 2010 1:49 PM by christine1

    source project installation problem

    christine1

      I have tried to install the GateIn source project. I have run "mvn install" in the project root dir, but I get the following errors:

       

      [INFO] ------------------------------------------------------------------------
      [INFO] Building GateIn Portal Component Common
      [INFO]    task-segment: [install]
      [INFO] ------------------------------------------------------------------------
      [WARNING] POM for 'org.jboss:jboss-vfs:pom:2.1.0.GA:compile' is invalid.

       

      Its dependencies (if any) will NOT be available to the current build.
      [WARNING] POM for 'commons-httpclient:commons-httpclient:pom:3.0:compile' is invalid.

       

      Its dependencies (if any) will NOT be available to the current build.
      [WARNING] POM for 'org.codehaus.woodstox:wstx-asl:pom:3.2.1:compile' is invalid.

       

      Its dependencies (if any) will NOT be available to the current build.
      [WARNING] POM for 'org.reflext:reflext.api:pom:1.0.0-beta5:test' is invalid.

       

      Its dependencies (if any) will NOT be available to the current build.
      [WARNING] POM for 'org.reflext:reflext.core:pom:1.0.0-beta5:test' is invalid.

       

      Its dependencies (if any) will NOT be available to the current build.
      [WARNING] POM for 'org.reflext:reflext.spi:pom:1.0.0-beta5:test' is invalid.

       

      Its dependencies (if any) will NOT be available to the current build.
      [WARNING] POM for 'org.reflext:reflext.jlr:pom:1.0.0-beta5:test' is invalid.

       

      Its dependencies (if any) will NOT be available to the current build.
      [INFO] ------------------------------------------------------------------------
      [ERROR] BUILD ERROR
      [INFO] ------------------------------------------------------------------------
      [INFO] Error building POM (may not be this project's POM).

       


      Project ID: null:reflext.apt:jar:null

       

      Reason: Cannot find parent: org.reflext:reflext.parent for project: null:reflext.apt:jar:null for project null:reflext.apt:jar:null

       

      In eclipse, most of the dependencies are not resolved (after mvn eclipse:eclipse) because mvn apparently hasn't downloaded the proper jar files. Is there anything I can do to fix this? Is there a download containing all jars?

        • 1. Re: source project installation problem
          theute
          What do you have in:
          $M2_HOME/repository/org/reflext/reflext.apt/1.0.0-beta5/reflext.apt-1.0.0-beta5.pom ?
          Do you have other repositories defined in your global settings ?
          (There is no package with all Jars)
          Have you tried to build out of Eclipse ?
          1 of 1 people found this helpful
          • 2. Re: source project installation problem
            christine1

            this is the reflext/etc. pom:

             

            <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>

             

              <parent>
                <groupId>org.reflext</groupId>
                <artifactId>reflext.parent</artifactId>
                <version>1.0.0-beta5</version>
              </parent>

             

              <artifactId>reflext.apt</artifactId>

             

              <name>Reflext Framework Annotation Processing Tool Plugin</name>
              <description>The Reflext Framework Annotation Processing Tool Plugin</description>

             

              <dependencies>

             

                <dependency>
                  <groupId>org.reflext</groupId>
                  <artifactId>reflext.api</artifactId>
                </dependency>
                <dependency>
                  <groupId>org.reflext</groupId>
                  <artifactId>reflext.spi</artifactId>
                </dependency>

             

              </dependencies>

             

            </project>

             

            in the same folder there's a reflext.apt-1.0.0-beta5.jar

             

            in my settings.xml there's no repositories, in the archetype catalog there's the weld archetypes.

             

            I have now moved the repositories from the pom.xml to settings.xml.

            After mvn eclipse:eclipse, a lot of imports aren't resolved, like

             

            import org.exoplatform.container.ExoContainer;
            import org.exoplatform.container.component.ComponentRequestLifecycle;

             

            in the repository, there's no org.exoplatform.container directory.

            • 3. Re: source project installation problem
              theute
              Have you tried out of Eclipse ?
              • 4. Re: source project installation problem
                christine1
                no, I haven't tried running it from the command line. I prefer to have it in Eclipse because I want to have a look at the source code, I don't necessarily want to run it from the source unless I make minor changes.
                • 5. Re: source project installation problem
                  theute
                  Looks like a tool issue then. But to know, it would be nice if you could try to build out of Eclipse.
                  1 of 1 people found this helpful
                  • 6. Re: source project installation problem
                    christine1

                    "mvn install" ends with "build successful". So I guess everything's there.

                     

                    It does give a lot of warnings like these:

                         [copy] Warning: /home/christine/workspace/GateIn/src/main/webapp/WEB-INF/classes not found.
                         [copy] Warning: /home/christine/workspace/GateIn/component/src/main/webapp/WEB-INF/classes not found.
                         [copy] Warning: /home/christine/workspace/GateIn/component/test/src/main/webapp/WEB-INF/classes not found.
                         [copy] Warning: /home/christine/workspace/GateIn/component/test/core/src/main/webapp/WEB-INF/classes not found.
                         [copy] Warning: /home/christine/workspace/GateIn/component/test/jcr/src/main/webapp/WEB-INF/classes not found.

                    • 7. Re: source project installation problem
                      theute

                      Those WARNs can be safely ignored.

                      So at least we isolated your problem (Tool issue), unfortunately I'm not a guru of building things straight from Eclipse, maybe someone else can help

                      • 8. Re: source project installation problem
                        christine1

                        in Eclipse I see a lot of imports, like

                         

                        import org.exoplatform.container.PortalContainer;
                        import org.exoplatform.container.component.RequestLifeCycle;

                         

                        that don't resolve. In the maven repo there's no org/exoplatform/container folder, and in the project there's no PortalContainer class.

                        • 9. Re: source project installation problem
                          mwringe

                          those should exists in org/exoplatoform/exo.kernel.container in your local maven repo.

                           

                          I don't have any missing classes in my eclipse workspace. I setup my eclipse workspace using "checkout project from scm" and have not had any problems

                          • 10. Re: source project installation problem
                            christine1

                            right, thanks. The jar is there, but somehow eclipse doesn't see it. Adding the jar to the build path works. So now I know where to look and what to fix. Thanks for the help :-)

                            • 11. Re: source project installation problem
                              mwringe
                              you shouldn't even have to worry about a build path if you setup the project properly. It sounds to me like your maven setup in eclipse is not configured properly. I always just check out the project using the eclipse maven plugin (which creates it own project and ignores the eclipse setup files in the gatein repo) and have not had any problems.
                              • 12. Re: source project installation problem
                                christine1

                                which version did you checkout? I tried trunk and 3.0.0.CR01

                                 

                                btw, what's the correct svn url for scm? I keep getting "SCM provider is not available for scm:http://anonsvn.jboss.org/repos/gatein"

                                • 13. Re: source project installation problem
                                  mwringe

                                  for GateIn trunk it's http://anonsvn.jboss.org/repos/gatein/portal/trunk/ your other link is for all of GateIn (the location you need to add is for the actual checkout, it doesn't give you a list afterwards like checking a project out from the svn eclipse plugin).

                                   

                                  In the advanced tab on that page it allows you to either select to checkout the whole thing as one project, or to check out as individual projects per maven module (default).

                                  • 14. Re: source project installation problem
                                    christine1

                                    It's a tools issue. When I enter the url in the eclipse plugin for scm check out, the "next" button remains grayed out. When I add "scm:" in front of the url, the "scm:" part disappears, but now I can press the "next" button. But then, I get

                                     

                                    3/18/10 12:56:43 PM CET: SCM provider is not available for scm:http://anonsvn.jboss.org/repos/gatein/portal/trunk
                                    3/18/10 12:56:43 PM CET: No Maven projects to import
                                    3/18/10 12:56:43 PM CET: Project import completed 0 sec

                                     

                                    and

                                    3/18/10 2:23:50 PM CET: Missing artifact castor:castor:jar:0.9.5-xml:compile

                                     

                                    Is there a way to install the project without using maven?

                                    1 2 Previous Next