widana

POM BO

Feb 3rd, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 10.80 KB | None | 0 0
  1. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  2.     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  3.     <modelVersion>4.0.0</modelVersion>
  4.  
  5.     <!-- TODO#1 Cek kembali  <artifactId>, <version>, <name>, <parent>, <scm>
  6.         apakah sudah sesuai dengan yang seharusnya -->
  7.  
  8.     <parent>
  9.         <groupId>org.jleaf.erp</groupId>
  10.         <artifactId>mobile-commerce-parent-pom</artifactId>
  11.         <version>1.0.0</version>
  12.     </parent>
  13.     <artifactId>mobile-commerce-bo</artifactId>
  14.     <version>1.0.0-SNAPSHOT</version>
  15.     <name>Moblie Commerce BO</name>
  16.    
  17.     <scm>
  18.         <url>svn://jleaf.org:9011/erp/erp-enterprise/mobile-commerce-bo/trunk</url>
  19.         <connection>scm:svn:svn://jleaf.org:9011/erp/erp-enterprise/mobile-commerce-bo/trunk</connection>
  20.         <developerConnection>scm:svn:svn://jleaf.org:9011/erp/erp-enterprise/mobile-commerce-bo/trunk</developerConnection>
  21.     </scm>
  22.  
  23.     <dependencies>
  24.         <!-- TODO#2 Tambahkan Dependency ERP BO lain -->
  25.         <!-- Jangan lupa tambahkan <scope>provided</scope> -->     
  26.         <!-- Sample
  27.         <dependency>
  28.             <groupId>org.jleaf.erp</groupId>
  29.             <artifactId>master-bo</artifactId>
  30.             <scope>provided</scope>
  31.         </dependency>
  32.         -->
  33.  
  34.         <!-- END ERP BO Dependency -->
  35.        
  36.         <!-- TODO#3 Tambahkan dependency JLEAF disini -->
  37.         <dependency>
  38.             <groupId>org.jleaf</groupId>
  39.             <artifactId>jleaf-core</artifactId>
  40.             <scope>provided</scope>
  41.         </dependency>
  42.         <dependency>
  43.             <groupId>org.jleaf</groupId>
  44.             <artifactId>jleaf-common</artifactId>
  45.             <scope>provided</scope>
  46.         </dependency>
  47.         <dependency>
  48.             <groupId>org.jleaf</groupId>
  49.             <artifactId>jleaf-workflow</artifactId>
  50.             <scope>provided</scope>
  51.         </dependency>
  52.        
  53.         <!-- END JLEAF library dependency -->
  54.        
  55.         <!-- TODO#4 Tambahkan dependency 3rd Party disini -->
  56.         <!-- Sample
  57.         <dependency>
  58.             <groupId>net.sf.opencsv</groupId>
  59.             <artifactId>opencsv</artifactId>
  60.         </dependency>
  61.         -->
  62.  
  63.         <!-- END 3rd Party library dependency -->
  64.        
  65.         <!-- FOR TEST -->
  66.         <dependency>
  67.             <groupId>org.dbunit</groupId>
  68.             <artifactId>dbunit</artifactId>
  69.             <exclusions>
  70.                 <exclusion>
  71.                     <artifactId>junit-addons</artifactId>
  72.                     <groupId>junit-addons</groupId>
  73.                 </exclusion>
  74.                 <exclusion>
  75.                     <artifactId>poi</artifactId>
  76.                     <groupId>poi</groupId>
  77.                 </exclusion>
  78.                 <exclusion>
  79.                     <artifactId>slf4j-nop</artifactId>
  80.                     <groupId>org.slf4j</groupId>
  81.                 </exclusion>
  82.             </exclusions>
  83.         </dependency>
  84.         <dependency>
  85.             <groupId>junit</groupId>
  86.             <artifactId>junit</artifactId>
  87.             <scope>test</scope>
  88.         </dependency>
  89.         <dependency>
  90.             <groupId>org.hamcrest</groupId>
  91.             <artifactId>hamcrest-all</artifactId>
  92.             <scope>test</scope>
  93.         </dependency>
  94.         <dependency>
  95.             <groupId>org.easymock</groupId>
  96.             <artifactId>easymock</artifactId>
  97.             <scope>test</scope>
  98.         </dependency>
  99.         <dependency>
  100.             <groupId>com.carbonfive</groupId>
  101.             <artifactId>test-support</artifactId>
  102.             <scope>test</scope>
  103.         </dependency>
  104.         <!-- Spring Core -->
  105.         <!-- Core utilities used by other modules. Define this if you use Spring
  106.             Utility APIs (org.springframework.core.*/org.springframework.util.*) -->
  107.         <dependency>
  108.             <groupId>org.springframework</groupId>
  109.             <artifactId>spring-core</artifactId>
  110.         </dependency>
  111.         <!-- Expression Language (depends on spring-core) Define this if you use
  112.             Spring Expression APIs (org.springframework.expression.*) -->
  113.         <dependency>
  114.             <groupId>org.springframework</groupId>
  115.             <artifactId>spring-expression</artifactId>
  116.         </dependency>
  117.         <!-- Bean Factory and JavaBeans utilities (depends on spring-core) Define
  118.             this if you use Spring Bean APIs (org.springframework.beans.*) -->
  119.         <dependency>
  120.             <groupId>org.springframework</groupId>
  121.             <artifactId>spring-beans</artifactId>
  122.         </dependency>
  123.         <!-- Aspect Oriented Programming (AOP) Framework (depends on spring-core,
  124.             spring-beans) Define this if you use Spring AOP APIs (org.springframework.aop.*) -->
  125.         <dependency>
  126.             <groupId>org.springframework</groupId>
  127.             <artifactId>spring-aop</artifactId>
  128.         </dependency>
  129.         <!-- Application Context (depends on spring-core, spring-expression, spring-aop,
  130.             spring-beans) This is the central artifact for Spring's Dependency Injection
  131.             Container and is generally always defined -->
  132.         <dependency>
  133.             <groupId>org.springframework</groupId>
  134.             <artifactId>spring-context</artifactId>
  135.         </dependency>
  136.         <!-- Various Application Context utilities, including EhCache, JavaMail,
  137.             Quartz, and Freemarker integration Define this if you need any of these integrations -->
  138.         <dependency>
  139.             <groupId>org.springframework</groupId>
  140.             <artifactId>spring-context-support</artifactId>
  141.         </dependency>
  142.         <!-- Transaction Management Abstraction (depends on spring-core, spring-beans,
  143.             spring-aop, spring-context) Define this if you use Spring Transactions or
  144.             DAO Exception Hierarchy (org.springframework.transaction.*/org.springframework.dao.*) -->
  145.         <dependency>
  146.             <groupId>org.springframework</groupId>
  147.             <artifactId>spring-tx</artifactId>
  148.         </dependency>
  149.         <!-- JDBC Data Access Library (depends on spring-core, spring-beans, spring-context,
  150.             spring-tx) Define this if you use Spring's JdbcTemplate API (org.springframework.jdbc.*) -->
  151.         <dependency>
  152.             <groupId>org.springframework</groupId>
  153.             <artifactId>spring-jdbc</artifactId>
  154.         </dependency>
  155.         <!-- Object-to-Relation-Mapping (ORM) integration with Hibernate, JPA,
  156.             and iBatis. (depends on spring-core, spring-beans, spring-context, spring-tx)
  157.             Define this if you need ORM (org.springframework.orm.*) -->
  158.         <dependency>
  159.             <groupId>org.springframework</groupId>
  160.             <artifactId>spring-orm</artifactId>
  161.         </dependency>
  162.         <!-- Object-to-XML Mapping (OXM) abstraction and integration with JAXB,
  163.             JiBX, Castor, XStream, and XML Beans. (depends on spring-core, spring-beans,
  164.             spring-context) Define this if you need OXM (org.springframework.oxm.*) -->
  165.         <dependency>
  166.             <groupId>org.springframework</groupId>
  167.             <artifactId>spring-oxm</artifactId>
  168.         </dependency>
  169.         <!-- Support for testing Spring applications with tools such as JUnit and
  170.             TestNG This artifact is generally always defined with a 'test' scope for
  171.             the integration testing framework and unit testing stubs -->
  172.         <dependency>
  173.             <groupId>org.springframework</groupId>
  174.             <artifactId>spring-test</artifactId>
  175.             <scope>test</scope>
  176.         </dependency>
  177.         <!-- Web application development utilities applicable to both Servlet and
  178.             Portlet Environments (depends on spring-core, spring-beans, spring-context)
  179.             Define this if you use Spring MVC, or wish to use Struts, JSF, or another
  180.             web framework with Spring (org.springframework.web.*) -->
  181.         <dependency>
  182.             <groupId>org.springframework</groupId>
  183.             <artifactId>spring-web</artifactId>
  184.         </dependency>
  185.         <!-- Spring MVC for Servlet Environments (depends on spring-core, spring-beans,
  186.             spring-context, spring-web) Define this if you use Spring MVC with a Servlet
  187.             Container such as Apache Tomcat (org.springframework.web.servlet.*) -->
  188.         <dependency>
  189.             <groupId>org.springframework</groupId>
  190.             <artifactId>spring-webmvc</artifactId>
  191.         </dependency>
  192.         <!-- Spring MVC for Portlet Environments (depends on spring-core, spring-beans,
  193.             spring-context, spring-web) Define this if you use Spring MVC with a Portlet
  194.             Container (org.springframework.web.portlet.*) -->
  195.         <dependency>
  196.             <groupId>org.springframework</groupId>
  197.             <artifactId>spring-webmvc-portlet</artifactId>
  198.         </dependency>
  199.         <dependency>
  200.             <groupId>org.eclipse.persistence</groupId>
  201.             <artifactId>javax.persistence</artifactId>
  202.         </dependency>
  203.         <dependency>
  204.             <groupId>javax.transaction</groupId>
  205.             <artifactId>com.springsource.javax.transaction</artifactId>
  206.             <scope>compile</scope>
  207.         </dependency>
  208.         <dependency>
  209.             <groupId>org.slf4j</groupId>
  210.             <artifactId>slf4j-api</artifactId>
  211.             <scope>provided</scope>
  212.         </dependency>
  213.         <dependency>
  214.             <groupId>org.slf4j</groupId>
  215.             <artifactId>slf4j-log4j12</artifactId>
  216.         </dependency>
  217.         <!-- Hibernate -->
  218.         <dependency>
  219.             <groupId>org.hibernate</groupId>
  220.             <artifactId>hibernate-core</artifactId>
  221.             <scope>provided</scope>
  222.         </dependency>
  223.         <dependency>
  224.             <groupId>org.hibernate</groupId>
  225.             <artifactId>hibernate-entitymanager</artifactId>
  226.             <scope>provided</scope>
  227.         </dependency>
  228.         <dependency>
  229.             <groupId>postgresql</groupId>
  230.             <artifactId>postgresql</artifactId>
  231.             <scope>compile</scope>
  232.         </dependency>
  233.         <dependency>
  234.             <groupId>javax.annotation</groupId>
  235.             <artifactId>jsr250-api</artifactId>
  236.         </dependency>
  237.         <!-- Oro PerlUtil -->
  238.         <dependency>
  239.             <groupId>oro</groupId>
  240.             <artifactId>oro</artifactId>
  241.         </dependency>
  242.     </dependencies>
  243.     <build>
  244.         <plugins>
  245.             <plugin>
  246.                 <artifactId>maven-surefire-plugin</artifactId>
  247.                 <configuration>
  248.                     <skip>true</skip>
  249.                 </configuration>
  250.             </plugin>
  251.             <plugin>
  252.                 <groupId>org.jleaf</groupId>
  253.                 <artifactId>jleaf-maven-plugin</artifactId>
  254.                 <dependencies>
  255.                     <dependency>
  256.                         <groupId>org.jleaf.erp</groupId>
  257.                         <artifactId>server-config</artifactId>
  258.                         <version>${server-config.version}</version>
  259.                     </dependency>
  260.                 </dependencies>
  261.                 <configuration>
  262.                     <generateEntityDaoConfig>
  263.                         <!-- TODO#5 Cek dan sesuaikan path file persistence <persistenceXml> -->
  264.                         <persistenceXml>${project.basedir}/src/main/resources/META-INF/commerce-persistence.xml</persistenceXml>
  265.                         <serverConfig>
  266.                             <groupId>org.jleaf.erp</groupId>
  267.                             <artifactId>server-config</artifactId>
  268.                             <version>${server-config.version}</version>
  269.                             <file>
  270.                                 <source>server-config-local.properties</source>
  271.                             </file>
  272.                         </serverConfig>
  273.                         <target>
  274.                             <forClass>${project.basedir}/src/main/java</forClass>
  275.                         </target>
  276.                     </generateEntityDaoConfig>
  277.                     <generateBasicBfConfig>
  278.                         <target>
  279.                             <forClass>${project.basedir}/src/main/java</forClass>
  280.                             <forTestClass>${project.basedir}/src/test/java</forTestClass>
  281.                             <forTestResource>${project.basedir}/src/test/resources</forTestResource>
  282.                         </target>
  283.                         <resource>
  284.                             <!-- TODO#6 Cek dan sesuaikan class BoConstant <exceptionConstantFile> -->
  285.                             <exceptionConstantFile>${project.basedir}/src/main/java/org/jleaf/erp/commerce/CommerceExceptionConstants.java</exceptionConstantFile>
  286.                         </resource>
  287.                     </generateBasicBfConfig>
  288.                 </configuration>
  289.             </plugin>
  290.         </plugins>
  291.     </build>
  292.     <profiles>
  293.         <profile>
  294.             <id>test</id>
  295.             <activation>
  296.                 <activeByDefault>false</activeByDefault>
  297.             </activation>
  298.             <build>
  299.                 <plugins>
  300.                     <plugin>
  301.                         <artifactId>maven-surefire-plugin</artifactId>
  302.                         <configuration>
  303.                             <skip>false</skip>
  304.                         </configuration>
  305.                     </plugin>
  306.                 </plugins>
  307.             </build>
  308.         </profile>
  309.     </profiles>
  310. </project>
Advertisement
Add Comment
Please, Sign In to add comment