4 Replies Latest reply on Nov 13, 2009 8:54 PM by Pete Muir

    Weld and Maven for dependency management

    Arbi Sookazian Master

      So I just exec'd this cmd:


      mvn -Drun -Dname=Pete



      for hello-world SE example in Weld 1.0.0.FISH.  <-- that's for PMuir!


      And it takes this long to complete that process:


      Hello Pete
      [INFO] --------------------------------------------
      [INFO] BUILD SUCCESSFUL
      [INFO] --------------------------------------------
      [INFO] Total time: 9 minutes 54 seconds
      [INFO] Finished at: Thu Nov 12 15:42:44 PST 2009
      [INFO] Final Memory: 26M/48M
      [INFO] --------------------------------------------



      it took basically 10 min's!!!


      this is one thing I don't like about Maven.  it takes too long to do a build.


      so in this directory: C:\Documents and Settings\asookazian\.m2\repository


      I have 19 new directories as a result of the above mvn operation.


      So the advantage is the Weld distro is much smaller but the build takes much longer than Seam 2.x with ant and pre-loaded lib directory.


      Anyways, I'm getting this output in cmd prompt when I issue the specified mvn command from readme.txt:



      C:\java\weld-1.0.0\examples\se\hello-world>mvn -Drun -Dname=Pete
      [INFO] Scanning for projects...
      [INFO] ------------------------------------------------------------------------
      [INFO] Building Hello World SE
      [INFO]    task-segment: [package]
      [INFO] ------------------------------------------------------------------------
      [INFO] [enforcer:enforce {execution: enforce}]
      [INFO] [build-helper:maven-version {execution: default}]
      [INFO] [build-helper:parse-version {execution: default}]
      [INFO] [buildnumber:create {execution: set-build-properties}]
      [INFO] Checking for local modifications: skipped.
      [INFO] Updating project files from SCM: skipped.
      [INFO] Executing: cmd.exe /X /C "svn --non-interactive info"
      [INFO] Working directory: C:\java\weld-1.0.0\examples\se\hello-world
      Provider message:
      The svn command failed.
      Command output:
      svn: '.' is not a working copy
      
      [WARNING] Cannot get the revision information from the scm repository, proceedin
      g with revision of unavailable :
      Error!
      [INFO] Storing buildNumber: unavailable at timestamp: November 12, 2009 3:57:42
      PM PST
      [INFO] [resources:resources {execution: default-resources}]
      [INFO] Using 'UTF-8' encoding to copy filtered resources.
      [INFO] Copying 2 resources
      [INFO] [compiler:compile {execution: default-compile}]
      [INFO] Nothing to compile - all classes are up to date
      [INFO] [resources:testResources {execution: default-testResources}]
      [INFO] Using 'UTF-8' encoding to copy filtered resources.
      [INFO] skip non existing resourceDirectory C:\java\weld-1.0.0\examples\se\hello-
      world\src\test\resources
      [INFO] [compiler:testCompile {execution: default-testCompile}]
      [INFO] Nothing to compile - all classes are up to date
      [INFO] [surefire:test {execution: default-test}]
      [INFO] No tests to run.
      [INFO] [jar:jar {execution: default-jar}]
      [INFO] Preparing source:jar
      [WARNING] Removing: jar from forked lifecycle, to prevent recursive invocation.
      [INFO] [enforcer:enforce {execution: enforce}]
      [INFO] [build-helper:maven-version {execution: default}]
      [INFO] [build-helper:parse-version {execution: default}]
      [INFO] [buildnumber:create {execution: set-build-properties}]
      [INFO] [source:jar {execution: attach-sources}]
      [INFO] Building jar: C:\java\weld-1.0.0\examples\se\hello-world\target\weld-se-h
      ello-world-1.0.0-CR2-sources.jar
      [INFO] Preparing exec:java
      [WARNING] Removing: jar from forked lifecycle, to prevent recursive invocation.
      [WARNING] Removing: java from forked lifecycle, to prevent recursive invocation.
      
      [INFO] [enforcer:enforce {execution: enforce}]
      [INFO] [build-helper:maven-version {execution: default}]
      [INFO] [build-helper:parse-version {execution: default}]
      [INFO] [buildnumber:create {execution: set-build-properties}]
      [INFO] [exec:java {execution: run}]
      46 [org.jboss.weld.environment.se.StartMain.main()] INFO Weld/Version - WELD-000
      900 1.0 (0)
      78 [org.jboss.weld.environment.se.StartMain.main()] INFO Weld/Bootstrap - WELD-0
      00101 Transactional services not available. Injection of @Inject UserTransaction
       not available. Transactional observers will be invoked synchronously.
      328 [org.jboss.weld.environment.se.StartMain.main()] WARN org.jboss.interceptor.
      model.InterceptionTypeRegistry - Class 'javax.ejb.PostActivate' not found, inter
      ception based on it is not enabled
      328 [org.jboss.weld.environment.se.StartMain.main()] WARN org.jboss.interceptor.
      model.InterceptionTypeRegistry - Class 'javax.ejb.PrePassivate' not found, inter
      ception based on it is not enabled
      Hello Pete
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD SUCCESSFUL
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 4 seconds
      [INFO] Finished at: Thu Nov 12 15:57:44 PST 2009
      [INFO] Final Memory: 23M/42M
      [INFO] ------------------------------------------------------------------------
      C:\java\weld-1.0.0\examples\se\hello-world>



      So I see 'Hello Pete' as expected but there are some WARN level logging as well...