Advertisement
Guest User

MuleApp pom.xml

a guest
May 2nd, 2013
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 14.08 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3.     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
  4.  
  5.     <modelVersion>4.0.0</modelVersion>
  6.     <groupId>org.jscl</groupId>
  7.     <artifactId>oort_rs</artifactId>
  8.     <packaging>mule</packaging>
  9.     <version>1.0.0-SNAPSHOT</version>
  10.  
  11.     <properties>
  12.         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  13.         <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  14.  
  15.         <mule.version>3.4.0</mule.version>
  16.         <eclipsePluginVersion>2.8</eclipsePluginVersion>
  17.         <jdkName>JavaSE-1.6</jdkName>
  18.         <jdk.version>1.6</jdk.version>
  19.         <junit.version>4.9</junit.version>
  20.     </properties>
  21.  
  22.     <build>
  23.         <!-- Use a newer version of the install plugin than what your Maven uses
  24.             by default. The older version failed to install the project if there was
  25.             no target/classes folder. Since we use mule packaging on the project we actually
  26.             create and attach the zip that must be installed. -->
  27.         <pluginManagement>
  28.             <plugins>
  29.                 <plugin>
  30.                     <groupId>org.apache.maven.plugins</groupId>
  31.                     <artifactId>maven-install-plugin</artifactId>
  32.                     <version>2.3.1</version>
  33.                 </plugin>
  34.                 <!--This plugin's configuration is used to store Eclipse m2e settings
  35.                     only. It has no influence on the Maven build itself. -->
  36.                 <plugin>
  37.                     <groupId>org.eclipse.m2e</groupId>
  38.                     <artifactId>lifecycle-mapping</artifactId>
  39.                     <version>1.0.0</version>
  40.                     <configuration>
  41.                         <lifecycleMappingMetadata>
  42.                             <pluginExecutions>
  43.                                 <pluginExecution>
  44.                                     <pluginExecutionFilter>
  45.                                         <groupId>org.mule.tools</groupId>
  46.                                         <artifactId>maven-mule-plugin</artifactId>
  47.                                         <versionRange>[1.6,)</versionRange>
  48.                                         <goals>
  49.                                             <goal>attach-test-resources</goal>
  50.                                             <goal>filter-resources      </goal>
  51.                                         </goals>
  52.                                     </pluginExecutionFilter>
  53.                                     <action>
  54.                                         <ignore></ignore>
  55.                                     </action>
  56.                                 </pluginExecution>
  57.                             </pluginExecutions>
  58.                         </lifecycleMappingMetadata>
  59.                     </configuration>
  60.                 </plugin>
  61.             </plugins>
  62.         </pluginManagement>
  63.         <plugins>
  64.             <plugin>
  65.                 <groupId>org.mule.tools</groupId>
  66.                 <artifactId>maven-mule-plugin</artifactId>
  67.                 <version>1.9</version>
  68.                 <extensions>true</extensions>
  69.                 <configuration>
  70.                     <copyToAppsDirectory>true</copyToAppsDirectory>
  71.                 </configuration>
  72.             </plugin>
  73.             <plugin>
  74.                 <groupId>org.apache.maven.plugins</groupId>
  75.                 <artifactId>maven-compiler-plugin</artifactId>
  76.                 <version>2.3.2</version>
  77.                 <configuration>
  78.                     <source>${jdk.version}</source>
  79.                     <target>${jdk.version}</target>
  80.                     <encoding>ISO-8859-1</encoding>
  81.                 </configuration>
  82.             </plugin>
  83.             <plugin>
  84.                 <artifactId>maven-assembly-plugin</artifactId>
  85.                 <version>2.2.1</version>
  86.                 <configuration>
  87.                     <descriptorRefs>
  88.                         <descriptorRef>project</descriptorRef>
  89.                     </descriptorRefs>
  90.                 </configuration>
  91.             </plugin>
  92.             <plugin>
  93.                 <groupId>org.apache.maven.plugins</groupId>
  94.                 <artifactId>maven-eclipse-plugin</artifactId>
  95.                 <version>${eclipsePluginVersion}</version>
  96.                 <configuration>
  97.                     <!-- by default download all sources when generating project files -->
  98.                     <downloadSources>true</downloadSources>
  99.                 </configuration>
  100.             </plugin>
  101.             <plugin>
  102.                 <groupId>org.codehaus.mojo</groupId>
  103.                 <artifactId>build-helper-maven-plugin</artifactId>
  104.                 <version>1.7</version>
  105.                 <executions>
  106.                     <execution>
  107.                         <id>add-resource</id>
  108.                         <phase>generate-resources</phase>
  109.                         <goals>
  110.                             <goal>add-resource</goal>
  111.                         </goals>
  112.                         <configuration>
  113.                             <resources>
  114.                                 <resource>
  115.                                     <directory>src/main/app/</directory>
  116.                                 </resource>
  117.                             </resources>
  118.                         </configuration>
  119.                     </execution>
  120.                 </executions>
  121.             </plugin>
  122.             <plugin>
  123.                 <groupId>org.codehaus.mojo</groupId>
  124.                 <artifactId>exec-maven-plugin</artifactId>
  125.                 <version>1.2.1</version>
  126.                 <executions>
  127.                   <execution>
  128.                     <goals>
  129.                       <goal>java</goal>
  130.                     </goals>
  131.                   </execution>
  132.                 </executions>
  133.                 <configuration>
  134.                   <mainClass>org.mule.MuleServer</mainClass>
  135.                   <arguments>
  136.                     <argument>-config</argument>
  137.                     <argument>src/main/app/mule-config.xml</argument>
  138.                   </arguments>
  139.                 <classpathScope>compile</classpathScope>
  140.                 </configuration>
  141.               </plugin>
  142.              
  143.               <!--Install clover-plugins-->
  144.             <plugin>
  145.                 <groupId>org.apache.maven.plugins</groupId>
  146.                 <artifactId>maven-dependency-plugin</artifactId>
  147.                 <version>2.4</version>
  148.                 <executions>
  149.                     <execution>
  150.                         <id>copy-clover-plugins</id>
  151.                         <phase>validate</phase>
  152.                         <goals>
  153.                             <goal>copy</goal>
  154.                         </goals>
  155.                         <configuration>
  156.                             <overWriteReleases>true</overWriteReleases>
  157.                             <overWriteSnapshots>true</overWriteSnapshots>
  158.                             <overWriteIfNewer>true</overWriteIfNewer>
  159.                             <stripVersion>true</stripVersion>
  160.  
  161.                             <outputDirectory>${project.build.testOutputDirectory}</outputDirectory>
  162.                             <artifactItems>
  163.                                 <artifactItem>
  164.                                     <groupId>com.cloveretl</groupId>
  165.                                     <artifactId>cloveretl-engine</artifactId>
  166.                                     <version>${mule.version}</version>
  167.                                     <type>zip</type>
  168.                                 </artifactItem>
  169.                             </artifactItems>
  170.                         </configuration>
  171.                     </execution>
  172.                 </executions>
  173.             </plugin>
  174.             <plugin>
  175.                 <artifactId>maven-antrun-plugin</artifactId>
  176.                 <version>1.7</version>
  177.                 <executions>
  178.                     <execution>
  179.                         <phase>compile</phase>
  180.                         <configuration>
  181.                             <tasks>
  182.                                 <!-- Using an ant task to deflate cloveretl-engine.zip -->
  183.                                 <unzip src="${project.build.testOutputDirectory}/cloveretl-engine.zip" dest="${project.build.testOutputDirectory}" />
  184.                             </tasks>
  185.                         </configuration>
  186.                         <goals>
  187.                             <goal>run</goal>
  188.                         </goals>
  189.                     </execution>
  190.                 </executions>
  191.             </plugin>
  192.         </plugins>
  193.     </build>
  194.  
  195.     <!-- plugins for creating site reports -->
  196.     <reporting>
  197.         <plugins>
  198.             <plugin>
  199.                 <groupId>org.apache.maven.plugins</groupId>
  200.                 <artifactId>maven-surefire-report-plugin</artifactId>
  201.                 <version>2.4.2</version>
  202.             </plugin>
  203.  
  204.             <plugin>
  205.                 <groupId>org.apache.maven.plugins</groupId>
  206.                 <artifactId>maven-checkstyle-plugin</artifactId>
  207.                 <version>2.5</version>
  208.                 <configuration>
  209.                     <configLocation>http://mulesoft.org/download/attachments/92/checkstyle.xml?version=1</configLocation>
  210.                 </configuration>
  211.             </plugin>
  212.             <plugin>
  213.                 <groupId>org.apache.maven.plugins</groupId>
  214.                 <artifactId>maven-pmd-plugin</artifactId>
  215.                 <version>2.5</version>
  216.                 <configuration>
  217.                     <targetJdk>${jdk.version}</targetJdk>
  218.                 </configuration>
  219.             </plugin>
  220.             <plugin>
  221.                 <groupId>org.codehaus.mojo</groupId>
  222.                 <artifactId>cobertura-maven-plugin</artifactId>
  223.                 <version>2.5</version>
  224.             </plugin>
  225.             <plugin>
  226.                 <groupId>org.codehaus.mojo</groupId>
  227.                 <artifactId>taglist-maven-plugin</artifactId>
  228.                 <version>2.4</version>
  229.                 <configuration>
  230.                     <tags>
  231.                         <tag>TODO</tag>
  232.                         <tag>@todo</tag>
  233.                         <tag>FIXME</tag>
  234.                         <tag>@fixme</tag>
  235.                         <tag>@deprecated</tag>
  236.                     </tags>
  237.                 </configuration>
  238.             </plugin>
  239.             <plugin>
  240.                 <groupId>org.apache.maven.plugins</groupId>
  241.                 <artifactId>maven-jxr-plugin</artifactId>
  242.                 <version>2.2</version>
  243.             </plugin>
  244.             <plugin>
  245.                 <groupId>org.apache.maven.plugins</groupId>
  246.                 <artifactId>maven-javadoc-plugin</artifactId>
  247.                 <version>2.7</version>
  248.                 <configuration>
  249.                     <source>${jdk.version}</source>
  250.                     <links>
  251.                         <link>http://java.sun.com/j2ee/1.4/docs/api</link>
  252.                         <link>http://java.sun.com/j2se/1.4.2/docs/api</link>
  253.                         <link>http://java.sun.com/j2se/1.5.0/docs/api</link>
  254.                     </links>
  255.                 </configuration>
  256.             </plugin>
  257.             <plugin>
  258.                 <groupId>org.codehaus.mojo</groupId>
  259.                 <artifactId>jdepend-maven-plugin</artifactId>
  260.                 <version>2.0-beta-2</version>
  261.             </plugin>
  262.             <plugin>
  263.                 <groupId>org.codehaus.mojo</groupId>
  264.                 <artifactId>findbugs-maven-plugin</artifactId>
  265.                 <version>2.3.2</version>
  266.             </plugin>
  267.         </plugins>
  268.     </reporting>
  269.  
  270.     <!-- Mule Dependencies -->
  271.     <dependencies>
  272.         <dependency>
  273.             <groupId>org.mule</groupId>
  274.             <artifactId>mule-core</artifactId>
  275.             <version>${mule.version}</version>
  276.             <scope>provided</scope>
  277.         </dependency>
  278.         <dependency>
  279.             <groupId>com.mulesoft.muleesb.modules</groupId>
  280.             <artifactId>mule-module-boot-ee</artifactId>
  281.             <version>${mule.version}</version>
  282.             <scope>provided</scope>
  283.         </dependency>
  284.         <!-- Xml configuration -->
  285.         <dependency>
  286.             <groupId>org.mule.modules</groupId>
  287.             <artifactId>mule-module-spring-config</artifactId>
  288.             <version>${mule.version}</version>
  289.             <scope>provided</scope>
  290.         </dependency>
  291.         <dependency>
  292.             <groupId>com.mulesoft.muleesb</groupId>
  293.             <artifactId>mule-core-ee</artifactId>
  294.             <version>${mule.version}</version>
  295.             <scope>provided</scope>
  296.         </dependency>
  297.         <dependency>
  298.             <groupId>com.mulesoft.muleesb.modules</groupId>
  299.             <artifactId>mule-module-data-mapper</artifactId>
  300.             <version>${mule.version}</version>
  301.         </dependency>
  302.         <!-- Xml configuration -->
  303.         <dependency>
  304.             <groupId>com.mulesoft.muleesb.modules</groupId>
  305.             <artifactId>mule-module-spring-config-ee</artifactId>
  306.             <version>${mule.version}</version>
  307.             <scope>provided</scope>
  308.         </dependency>
  309.  
  310.         <!-- Mule Transports -->
  311.         <dependency>
  312.             <groupId>org.mule.transports</groupId>
  313.             <artifactId>mule-transport-file</artifactId>
  314.             <version>${mule.version}</version>
  315.             <scope>provided</scope>
  316.         </dependency>
  317.         <dependency>
  318.             <groupId>org.mule.transports</groupId>
  319.             <artifactId>mule-transport-http</artifactId>
  320.             <version>${mule.version}</version>
  321.             <scope>provided</scope>
  322.         </dependency>
  323.         <dependency>
  324.             <groupId>org.mule.transports</groupId>
  325.             <artifactId>mule-transport-jdbc</artifactId>
  326.             <version>${mule.version}</version>
  327.             <scope>provided</scope>
  328.         </dependency>
  329.         <dependency>
  330.             <groupId>org.mule.transports</groupId>
  331.             <artifactId>mule-transport-jms</artifactId>
  332.             <version>${mule.version}</version>
  333.             <scope>provided</scope>
  334.         </dependency>
  335.         <dependency>
  336.             <groupId>org.mule.transports</groupId>
  337.             <artifactId>mule-transport-vm</artifactId>
  338.             <version>${mule.version}</version>
  339.             <scope>provided</scope>
  340.         </dependency>
  341.        
  342.         <!-- Mule Modules -->
  343.         <dependency>
  344.             <groupId>org.mule.modules</groupId>
  345.             <artifactId>mule-module-client</artifactId>
  346.             <version>${mule.version}</version>
  347.             <scope>provided</scope>
  348.         </dependency>
  349.         <dependency>
  350.             <groupId>org.mule.modules</groupId>
  351.             <artifactId>mule-module-cxf</artifactId>
  352.             <version>${mule.version}</version>
  353.             <scope>provided</scope>
  354.         </dependency>
  355.         <dependency>
  356.             <groupId>org.mule.modules</groupId>
  357.             <artifactId>mule-module-management</artifactId>
  358.             <version>${mule.version}</version>
  359.             <scope>provided</scope>
  360.         </dependency>
  361.         <dependency>
  362.             <groupId>org.mule.modules</groupId>
  363.             <artifactId>mule-module-scripting</artifactId>
  364.             <version>${mule.version}</version>
  365.             <scope>provided</scope>
  366.         </dependency>
  367.         <dependency>
  368.             <groupId>org.mule.modules</groupId>
  369.             <artifactId>mule-module-sxc</artifactId>
  370.             <version>${mule.version}</version>
  371.             <scope>provided</scope>
  372.         </dependency>
  373.         <dependency>
  374.             <groupId>org.mule.modules</groupId>
  375.             <artifactId>mule-module-xml</artifactId>
  376.             <version>${mule.version}</version>
  377.             <scope>provided</scope>
  378.         </dependency>
  379.  
  380.         <!-- for testing -->
  381.         <dependency>
  382.             <groupId>org.mule.tests</groupId>
  383.             <artifactId>mule-tests-functional</artifactId>
  384.             <version>${mule.version}</version>
  385.             <scope>test</scope>
  386.         </dependency>
  387.         <dependency>
  388.             <groupId>mockobjects</groupId>
  389.             <artifactId>mockobjects-core</artifactId>
  390.             <version>0.09</version>
  391.             <scope>test</scope>
  392.         </dependency>
  393.         <dependency>
  394.             <groupId>junit</groupId>
  395.             <artifactId>junit</artifactId>
  396.             <version>${junit.version}</version>
  397.             <scope>test</scope>
  398.         </dependency>
  399.     </dependencies>
  400.  
  401.     <repositories>
  402.         <repository>
  403.             <id>jboss</id>
  404.             <name>JBoss</name>
  405.             <url>http://repository.jboss.com/</url>
  406.         </repository>
  407.         <repository>
  408.             <id>mulesoft-releases</id>
  409.             <name>MuleSoft Releases</name>
  410.             <url>http://repository.mulesoft.org/releases/</url>
  411.         </repository>
  412.         <repository>
  413.             <id>oss-sonatype-snapshots</id>
  414.             <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
  415.         </repository>
  416.         <repository>
  417.             <id>codehaus-snaphosts</id>
  418.             <name>Codehaus Snapshots</name>
  419.             <url>http://snapshots.repository.codehaus.org/</url>
  420.         </repository>
  421.         <repository>
  422.             <id>codehaus-releases</id>
  423.             <name>CodeHaus Releases</name>
  424.             <url>http://repository.codehaus.org/</url>
  425.         </repository>
  426.     </repositories>
  427.     <pluginRepositories>
  428.         <pluginRepository>
  429.           <id>mulesoft-release</id>
  430.           <name>mulesoft release repository</name>
  431.           <layout>default</layout>
  432.           <url>https://repository.mulesoft.org/releases/</url>
  433.           <snapshots>
  434.             <enabled>false</enabled>
  435.           </snapshots>
  436.         </pluginRepository>
  437.       </pluginRepositories>
  438.  
  439. </project>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement