1 Reply Latest reply on May 3, 2006 6:18 AM by tuomas_kiviaho

    Maven 2 Support

    cesarizurieta

      I'm using maven 2 in my projects. Currently there's no seam artifact in any of the standard repositories (see http://www.ibiblio.org/maven2/). Would It be possible to upload it there? I have a working pom.xml that generates the artifact. It's a really basic pom (no dependencies and no tests):

      pom.xml

      <?xml version="1.0" encoding="utf-8"?>
      <project>
       <modelVersion>4.0.0</modelVersion>
       <groupId>jboss</groupId>
       <artifactId>jboss-seam</artifactId>
       <version>1.0beta2</version>
       <description>JBoss Seam is an application framework for Java EE 5. Seam unifies the
       component models of JSF and EJB 3.0, providing a streamlined programming model for
       web-based enterprise applications.</description>
       <build>
       <finalName>jboss-seam</finalName>
       <directory>build</directory>
       <outputDirectory>build/classes</outputDirectory>
       <testOutputDirectory>build/_classes</testOutputDirectory>
       <sourceDirectory>src/main</sourceDirectory>
       <testSourceDirectory>src/_main</testSourceDirectory>
       <resources><resource><directory>src/main</directory></resource></resources>
       <testResources><testResource><directory>src/_main</directory></testResource></testResources>
       </build>
      </project>
      


      If you run first ant compile and then mvn install it installs the artifact in the local repository. This is useful if you are working with CVS version as I am. If you're working with the release versions you can issue mvn install:install-file -Dfile=jboss-seam.jar -DgroupId=jboss -DartifactId=jboss-seam -Dversion=1.0beta2 -Dpackaging=jar in the directory where the jar is and that's it.

      I would love to see more maven support in seam specially defining dependencies is usefull (so we don't have to bundle all the jars in the distributions). Any comments on this?

        • 1. Re: Maven 2 Support
          tuomas_kiviaho

          Feature request has been made <http://jira.jboss.com/jira/browse/JBSEAM-225>.

          The pom.xml presented here is missing dependencies to 3rd party jar and it's merging the jboss-seam-ui.jar to jboss-seam.jar.

          There will be needed a super pom for jboss-seam project itself and separate poms for both of the jars if current build process is to be followed. Also the maven naming convention is not followed in groupId (suggesting org.jboss.seam). I'd appreciate SNAPSHOT version numbering in cvs trunk and "real" numbers in different branches.

          Maven people have made an excellent tutorial about all this <http://www.mergere.com/m2book_download.jsp>