Sunday, May 8, 2011

pom.xml for webapp with spring, vaadin and junit.

1.
use: mvn archetype:generate
then select quick start or 106
2.
convert the package into eclipse project.
3.
create a /src/main/resources folder - the maven will put this data to classes
4.  pom.xml

    UTF-8
    4.8.2
    20040902.021138
    1.1.1
    20040616
    2.2
    1.1
    1.0.1
    1.2.0_rc2-dev
    3.6.4.Final
    3.0.5.RELEASE
    1.0
    2.1.2
    1.6.10
    1.3.1
    1.0.0.GA
    20030825.184428
    20030825.183949
    4.1.0.Beta1
 
  
 
 
            JBoss Repo
            https://repository.jboss.org/nexus/content/repositories/releases
            JBoss Repo
              
 

 
   
      junit
      junit
      ${junit.version}
      test
   
 org.hibernate
      hibernate-core
      ${hibernate.version}
   
 org.hibernate
      hibernate-entitymanager
      ${hibernate.version}
   
    org.springframework
    spring-core
    ${spring.version}
 
 
   org.springframework
   spring-beans
   ${spring.version}
 
   org.springframework
    spring-context
    ${spring.version}
 
 
  org.springframework
  spring-aspects
  ${spring.version}
  org.springframework
  spring-aop
  ${spring.version}  
org.springframework
spring-tx
${spring.version}
   org.apache.sling
   org.apache.sling.commons.log
${org.apache.sling.commons.log.version}
            org.hsqldb
            hsqldb
            2.0.0
            test
   
    org.aspectj
    aspectjrt
    ${aspectjrt.version}
 
javax.validation
validation-api
${validation-api.version}
   commons-dbcp
    commons-dbcp
    ${commons-dbcp.version}
   org.springframework
   spring-orm
   ${spring.version}
   commons-pool
   commons-pool
   ${commons-pool.version}
  org.hibernate
  hibernate-validator-annotation-processor
  ${hibernate-validator-annotation-processor.version}
     
 
 
 
 
          org.codehaus.mojo
    aspectj-maven-plugin
    ${org.codehaus.mojo.version}
 
   
     
        compile
test-compile
     
   
 
 
        1.6
        UTF-8
       
           
              org.springframework
              spring-aspects
           
       
     
org.apache.maven.plugins
maven-war-plugin
2.1-beta-1
org.apache.maven.plugins
maven-compiler-plugin
2.1
1.6
1.6
org.apache.maven.plugins
maven-resources-plugin
2.4.2
UTF-8
org.apache.maven.plugins
maven-assembly-plugin
2.2-beta-5
jar-with-dependencies
org.apache.maven.plugins
maven-deploy-plugin
2.5
org.codehaus.mojo
tomcat-maven-plugin
1.0
                org.apache.maven.plugins
                maven-jar-plugin
                2.3.1
               
                   
                        **/persistence.xml
**/applicationContext.xml
**/database.properties
**/log4j.properties
                   
               
           
        maven-antrun-plugin
         
          process-classes
           
              run
           
         
       
       
         
           
             
               
               
             
           
           
             
               
             
           
         
       
     
     
       org.apache.maven.plugins
       maven-checkstyle-plugin
       2.6
       
         dynobjx_checks.xml
       
   
   
org.apache.maven.plugins
maven-pmd-plugin
2.5
true
ISO-8859-1
30
1.6
 
 
 

applicationContext.xml

xmlns:aop="http://www.springframework.org/schema/aop" 
xmlns:context="http://www.springframework.org/schema/context" 
xmlns:jee="http://www.springframework.org/schema/jee" 
xmlns:tx="http://www.springframework.org/schema/tx" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xsi:schemaLocation="http://www.springframework.org/schema/aop 
http://www.springframework.org/schema/aop/spring-aop-3.0.xsd   
http://www.springframework.org/schema/beans 
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd   
http://www.springframework.org/schema/context 
http://www.springframework.org/schema/context/spring-context-3.0.xsd   
http://www.springframework.org/schema/jee 
http://www.springframework.org/schema/jee/spring-jee-3.0.xsd   
http://www.springframework.org/schema/tx 
http://www.springframework.org/schema/tx/spring-tx-3.0.xsd">

   
   

   
   

   
       
       
       
       
   
    
   
       
   
    
   
    
   
       
       
create-drop
   


persistence.xml

        org.hibernate.ejb.HibernatePersistence
       
           
           
           
           
           
           
           

           
value="com.informatics.GenericEntityPersistEventListener"/>
 

value="com.informatics.GenericEntityMergeEventListener"/>
       
   

No comments:

Post a Comment