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

    Maven 2 Support

    Cesar Izurieta Newbie

      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?