1 2 Previous Next 16 Replies Latest reply on Jul 18, 2008 4:38 AM by jbarrez

    jBPM3 switched to maven

    thomas.diesler

      The build for the jBPM3 code base is now based on maven

      http://jira.jboss.com/jira/browse/JBPM-1196

      svn co https://svn.jboss.org/repos/jbpm/tempranillo/jpdl/branches/jbpm3
      
      [tdiesler@tddell jbpm3]$ mvn package
      [INFO] Scanning for projects...
      [INFO] Reactor build order:
      [INFO] JBoss jBPM
      [INFO] JBoss jBPM - API
      [INFO] JBoss jBPM - jPDL
      [INFO] JBoss jBPM - jPDL Core
      [INFO] JBoss jBPM - jPDL Database
      [INFO] JBoss jBPM - jPDL Examples
      [INFO] JBoss jBPM - jPDL Identity
      [INFO] JBoss jBPM - jPDL Simulation
      [INFO] JBoss jBPM - jPDL Userguide
      [INFO] JBoss jBPM - jPDL Webservice
      [INFO] JBoss jBPM - 4JSF
      [INFO] JBoss jBPM - Console
      [INFO] JBoss jBPM - Enterprise
      [INFO] JBoss jBPM - BAM Console
      [INFO] JBoss jBPM - BAM Console Ejb
      [INFO] JBoss jBPM - BAM Console War
      [INFO] JBoss jBPM - BAM Console Ear
      [INFO] JBoss jBPM - Testsuite
      [INFO] ------------------------------------------------------------------------
      [INFO] Building JBoss jBPM
      [INFO] task-segment: [package]
      [INFO] ------------------------------------------------------------------------
      
      ...
      
      [INFO] ------------------------------------------------------------------------
      [INFO] Reactor Summary:
      [INFO] ------------------------------------------------------------------------
      [INFO] JBoss jBPM ............................................ SUCCESS [3.839s]
      [INFO] JBoss jBPM - API ...................................... SUCCESS [6.033s]
      [INFO] JBoss jBPM - jPDL ..................................... SUCCESS [0.019s]
      [INFO] JBoss jBPM - jPDL Core ................................ SUCCESS [2:00.398s]
      [INFO] JBoss jBPM - jPDL Database ............................ SUCCESS [23.799s]
      [INFO] JBoss jBPM - jPDL Examples ............................ SUCCESS [4.712s]
      [INFO] JBoss jBPM - jPDL Identity ............................ SUCCESS [24.965s]
      [INFO] JBoss jBPM - jPDL Simulation .......................... SUCCESS [5.132s]
      [INFO] JBoss jBPM - jPDL Userguide ........................... SUCCESS [0.021s]
      [INFO] JBoss jBPM - jPDL Webservice .......................... SUCCESS [2.107s]
      [INFO] JBoss jBPM - 4JSF ..................................... SUCCESS [13.298s]
      [INFO] JBoss jBPM - Console .................................. SUCCESS [1.177s]
      [INFO] JBoss jBPM - Enterprise ............................... SUCCESS [0.840s]
      [INFO] JBoss jBPM - BAM Console .............................. SUCCESS [0.009s]
      [INFO] JBoss jBPM - BAM Console Ejb .......................... SUCCESS [0.528s]
      [INFO] JBoss jBPM - BAM Console War .......................... SUCCESS [2.094s]
      [INFO] JBoss jBPM - BAM Console Ear .......................... SUCCESS [3.913s]
      [INFO] JBoss jBPM - Testsuite ................................ SUCCESS [4.664s]
      [INFO] ------------------------------------------------------------------------
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD SUCCESSFUL
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 3 minutes 40 seconds
      [INFO] Finished at: Wed Jun 25 19:25:20 CEST 2008
      [INFO] Final Memory: 46M/116M
      [INFO] ------------------------------------------------------------------------
      


        • 1. Re: jBPM3 status after switch to maven
          jbarrez

          Thomas,

          This is extremely good news!

          Does this mean that there also will be a maven artifact for jBPM so that we can easily use jBPM in our maven builds?

          • 2. Re: jBPM3 status after switch to maven
            thomas.diesler

            Yes you can.

            Snapshots can already be consumed from

            http://snapshots.jboss.org/maven2/org/jboss/jbpm/

            • 3. Re: jBPM3 switched to maven
              kukeltje

              cool... kudos... if someone could place 3.2.3 in http://repository.jboss.com/maven2/org/jbpm/jbpm-jpdl/ that would be even better ;-)

              • 4. Re: jBPM3 switched to maven
                thomas.diesler

                The generated POM would have no dependencies defined.
                Do you need it in that case?

                • 5. Re: jBPM3 switched to maven
                  tom.baeyens

                  i didn't realize that our community missed it so much.

                  great move, Thomas !

                  • 6. Re: jBPM3 switched to maven
                    camunda

                    jbpm 3 moved to SVN? Since when? I still have the CVS access and thought only the PVM and jbpm 4 will move to SVN?

                    By the way: Good news, that a lot of improvements are made. But at the moment it is maybe already too much? I can not work on jBPM full time and have other stuff to do. If everything changes in the development environment it is hard to keep track and commit small patches and stuff...

                    • 7. Re: jBPM3 switched to maven
                      aguizar

                      Note for starters: you need to add the snapshots repository or your fresh maven build will not work.

                      <repositories>
                       <repository>
                       <id>jboss-snapshots</id>
                       <url>http://snapshots.jboss.org/maven2/</url>
                       </repository>
                       </repositories>


                      Thomas: is this intentional? I saw the following snippet in the POM which doesn't look quite right...
                      <distributionManagement>
                       <site>
                       <id>jbws.dyndns.org</id>
                       <url>file:///home/tdiesler/workspace/jbpm-site</url>
                       </site>
                       </distributionManagement>


                      • 8. Re: jBPM3 switched to maven
                        thomas.diesler

                        Hi Alejandro,

                        so far we have not setup a public jbmp maven site. I use the above to generate the site locally and then push is manually to

                        http://jbpm.dyndns.org/jbpm-site/

                        This is maily to give access to the API javadocs

                        • 9. Re: jBPM3 switched to maven
                          aguizar

                          I get it now. Thank you for the explanation, Thomas.

                          • 10. Re: jBPM3 switched to maven
                            jbarrez

                            Thomas,

                            I've not been able to build the trunk of jbpm3. Any ideas why?

                            - JBoss snapshot repo added to settings.xml
                            - run mvn package

                            This is the stacktrace :



                            Listening for transport dt_socket at address: 8000
                            [INFO] Scanning for projects...
                            Downloading: http://snapshots.jboss.org/maven2/org/jboss/jbpm/jbpm-parent/1.0.0-SNAPSHOT/jbpm-parent-1.0.0-SNAPSHOT.pom
                            [INFO] ------------------------------------------------------------------------
                            [ERROR] FATAL ERROR
                            [INFO] ------------------------------------------------------------------------
                            [INFO] Failed to resolve artifact.
                            
                            GroupId: org.jboss.jbpm
                            ArtifactId: jbpm-parent
                            Version: 1.0.0-SNAPSHOT
                            
                            Reason: Unable to download the artifact from any repository
                            
                             org.jboss.jbpm:jbpm-parent:pom:1.0.0-SNAPSHOT
                            
                            from the specified remote repositories:
                             jboss-snapshots (http://snapshots.jboss.org/maven2),
                             central (http://repo1.maven.org/maven2)
                            
                            
                            [INFO] ------------------------------------------------------------------------
                            [INFO] Trace
                            org.apache.maven.reactor.MavenExecutionException: Cannot find parent: org.jboss.jbpm:jbpm-parent for project: org.jboss.jbpm:jbpm:pom:3.2.4-SNAPSHOT for project org.jboss.jbpm:jbpm:pom:3.2.4-SNAPSHOT
                             at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:378)
                             at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:292)
                             at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
                             at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
                             at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                             at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                             at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                             at java.lang.reflect.Method.invoke(Method.java:585)
                             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.jbpm:jbpm-parent for project: org.jboss.jbpm:jbpm:pom:3.2.4-SNAPSHOT for project org.jboss.jbpm:jbpm:pom:3.2.4-SNAPSHOT
                             at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMavenProjectBuilder.java:1370)
                             at org.apache.maven.project.DefaultMavenProjectBuilder.buildInternal(DefaultMavenProjectBuilder.java:821)
                             at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFileInternal(DefaultMavenProjectBuilder.java:506)
                             at org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMavenProjectBuilder.java:198)
                             at org.apache.maven.DefaultMaven.getProject(DefaultMaven.java:583)
                             at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:461)
                             at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:365)
                             ... 11 more
                            Caused by: org.apache.maven.project.ProjectBuildingException: POM 'org.jboss.jbpm:jbpm-parent' not found in repository: Unable to download the artifact from any repository
                            
                             org.jboss.jbpm:jbpm-parent:pom:1.0.0-SNAPSHOT
                            
                            from the specified remote repositories:
                             jboss-snapshots (http://snapshots.jboss.org/maven2),
                             central (http://repo1.maven.org/maven2)
                             for project org.jboss.jbpm:jbpm-parent
                             at org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:603)
                             at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMavenProjectBuilder.java:1366)
                             ... 17 more
                            Caused by: org.apache.maven.artifact.resolver.ArtifactNotFoundException: Unable to download the artifact from any repository
                            
                             org.jboss.jbpm:jbpm-parent:pom:1.0.0-SNAPSHOT
                            
                            from the specified remote repositories:
                             jboss-snapshots (http://snapshots.jboss.org/maven2),
                             central (http://repo1.maven.org/maven2)
                            
                             at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:212)
                             at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:74)
                             at org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:556)
                             ... 18 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:331)
                             at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:200)
                             ... 20 more
                            [INFO] ------------------------------------------------------------------------
                            [INFO] Total time: 3 seconds
                            [INFO] Finished at: Thu Jul 17 22:00:54 CEST 2008
                            [INFO] Final Memory: 1M/2M
                            [INFO] ------------------------------------------------------------------------
                            
                            


                            It seems that maven searches the wrong file (see line 3) in the correct folder http://snapshots.jboss.org/maven2/org/jboss/jbpm/jbpm-parent/1.0.0-SNAPSHOT/. Any ideas why?

                            • 11. Re: jBPM3 switched to maven
                              thomas.diesler

                              The snapshots are there - line is correct. Sorry, I don't really know why you see this.

                              • 12. Re: jBPM3 switched to maven
                                jbarrez

                                Thomas,

                                I'm talking about this line:

                                http://snapshots.jboss.org/maven2/org/jboss/jbpm/jbpm-parent/1.0.0-SNAPSHOT/jbpm-parent-1.0.0-SNAPSHOT.pom


                                This file does not exists: in the folder the pom's are of the form 'jbpm-parent-1.0.0-20080625.070619-3.pom'

                                • 13. Re: jBPM3 switched to maven
                                  heiko.braun

                                  It's because the parent declares the jboss repositories. A chicken and egg problem.

                                  • 14. Re: jBPM3 switched to maven
                                    heiko.braun

                                    Ah, sorry. I didn't see you've added that to your settings.xml already. Please forget my previous post.

                                    1 2 Previous Next