Advertisement
Guest User

Untitled

a guest
Mar 19th, 2018
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 20.48 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" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
  3.     <modelVersion>4.0.0</modelVersion>
  4.     <groupId>cr.go.recope.alfresco</groupId>
  5.     <artifactId>expediente-electronico</artifactId>
  6.     <version>1.0-SNAPSHOT</version>
  7.     <name>AIO - SDK 3.0</name>
  8.     <description>All-In-One (AIO) project for SDK 3.0</description>
  9.     <packaging>pom</packaging>
  10.  
  11.     <properties>
  12.         <!-- Alfresco Maven Plugin version to use -->
  13.         <alfresco.sdk.version>3.0.1</alfresco.sdk.version>
  14.  
  15.         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  16.  
  17.         <!-- Alfresco Data directory, which will contain:
  18.              Content Store (i.e. the files we upload)
  19.              Database (i.e. the metadata for the uploaded files)
  20.              Search index (i.e. the indexed content and metadata)
  21.             Configured in alfresco-global.properties with the 'dir.root' property.
  22.              -->
  23.         <alfresco.data.location>${session.executionRootDirectory}/alf_data_dev</alfresco.data.location>
  24.  
  25.         <!-- Duplicated with alfresco.solrHome in the plugin, we need them out here to do filtering -->
  26.         <solr.home>${alfresco.data.location}/solr</solr.home>
  27.         <solr.model.dir>${solr.home}/alfrescoModels</solr.model.dir>
  28.         <solr.content.dir>${solr.home}/index</solr.content.dir>
  29.  
  30.         <!-- Properties used in dependency declarations, you don't need to change these -->
  31.         <alfresco.groupId>org.alfresco</alfresco.groupId>
  32.  
  33.         <!-- Alfresco Platform and Share webapp versions, these are the original Alfresco webapps that will be
  34.             customized and then deployed and run by the tomcat maven plugin when
  35.             executing for example $ mvn clean install alfresco:run -->
  36.         <alfresco.platform.version>5.2.f</alfresco.platform.version>
  37.         <alfresco.share.version>5.2.e</alfresco.share.version>
  38.  
  39.         <!-- Default is to run with a Community edition, change to 'enterprise' if using Enterprise edition -->
  40.         <maven.alfresco.edition>community</maven.alfresco.edition>
  41.  
  42.         <!-- Alfresco Surf version, if you change Share version you might need to change Surf version -->
  43.         <alfresco.surf.version>6.11</alfresco.surf.version>
  44.  
  45.         <!-- JRebel Hot reloading of classpath stuff and web resource stuff -->
  46.         <jrebel.version>1.1.6</jrebel.version>
  47.  
  48.         <!-- Environment to use, Alfresco Maven Plugin will
  49.             copy alfresco-global-*.properties files from this directory, such as src/test/properties/local -->
  50.         <env>local</env>
  51.  
  52.         <!-- Compile with Java 7, default is 5 -->
  53.         <maven.compiler.source>1.7</maven.compiler.source>
  54.         <maven.compiler.target>1.7</maven.compiler.target>
  55.     </properties>
  56.  
  57.     <!-- Libs used in Unit and Integration tests -->
  58.     <!-- IMPORTANT - Test dependencies need to be here in the top parent POM as
  59.                     the Alfresco Maven IT Mojo runs as part of the parent project ... -->
  60.     <dependencies>
  61.         <dependency>
  62.             <groupId>junit</groupId>
  63.             <artifactId>junit</artifactId>
  64.             <version>4.12</version>
  65.             <scope>test</scope>
  66.         </dependency>
  67.         <dependency>
  68.             <groupId>org.mockito</groupId>
  69.             <artifactId>mockito-all</artifactId>
  70.             <version>1.9.5</version>
  71.             <scope>test</scope>
  72.         </dependency>
  73.         <dependency>
  74.             <groupId>org.apache.httpcomponents</groupId>
  75.             <artifactId>httpclient</artifactId>
  76.             <version>4.5.2</version>
  77.             <scope>test</scope>
  78.         </dependency>
  79.  
  80.         <!-- The main Alfresco Repo dependency for compiling Java code in src/main/java -->
  81.         <dependency>
  82.             <groupId>${alfresco.groupId}</groupId>
  83.             <artifactId>alfresco-repository</artifactId>
  84.         </dependency>
  85.  
  86.         <!-- Bring in Spring Context so we can use ApplicationContext, ApplicationContextAware etc -->
  87.         <dependency>
  88.             <groupId>org.springframework</groupId>
  89.             <artifactId>spring-context</artifactId>
  90.             <version>3.2.17.RELEASE</version>
  91.             <scope>test</scope>
  92.         </dependency>
  93.  
  94.         <!-- Bring in Alfresco RAD so we get access to AlfrescoTestRunner classes -->
  95.         <dependency>
  96.             <groupId>org.alfresco.maven</groupId>
  97.             <artifactId>alfresco-rad</artifactId>
  98.             <version>${alfresco.sdk.version}</version>
  99.             <scope>test</scope>
  100.         </dependency>
  101.     </dependencies>
  102.  
  103.     <dependencyManagement>
  104.         <dependencies>
  105.             <!-- This will import the dependencyManagement for all artifacts in the selected Alfresco platform.
  106.                 NOTE: You still need to define dependencies in your POM, but you can omit version as
  107.                       it's enforced by this dependencyManagement.
  108.                 NOTE: It defaults to the latest version this SDK pom has been tested with,
  109.                       but alfresco version can/should be overridden in your project's pom
  110.            -->
  111.             <dependency>
  112.                 <groupId>${alfresco.groupId}</groupId>
  113.                 <artifactId>alfresco-platform-distribution</artifactId>
  114.                 <version>${alfresco.platform.version}</version>
  115.                 <type>pom</type>
  116.                 <scope>import</scope>
  117.             </dependency>
  118.             <!-- Redefine the following Share dependencies as they have different version numbers than platform.
  119.                 They are defined in alfresco-platform-distribution... -->
  120.             <dependency>
  121.                 <groupId>${alfresco.groupId}</groupId>
  122.                 <artifactId>share</artifactId>
  123.                 <version>${alfresco.share.version}</version>
  124.                 <type>war</type>
  125.                 <scope>provided</scope>
  126.             </dependency>
  127.             <dependency>
  128.                 <groupId>${alfresco.groupId}</groupId>
  129.                 <artifactId>share</artifactId>
  130.                 <version>${alfresco.share.version}</version>
  131.                 <classifier>classes</classifier>
  132.                 <scope>provided</scope>
  133.             </dependency>
  134.             <dependency>
  135.                 <groupId>${alfresco.groupId}</groupId>
  136.                 <artifactId>alfresco-web-framework-commons</artifactId>
  137.                 <version>${alfresco.share.version}</version>
  138.                 <classifier>classes</classifier>
  139.                 <scope>provided</scope>
  140.             </dependency>
  141.  
  142.             <!-- Redefine the following surf dependencies as they have no resolvable version in the
  143.                 alfresco-platform-distribution artifact -->
  144.             <dependency>
  145.                 <groupId>org.alfresco.surf</groupId>
  146.                 <artifactId>spring-surf</artifactId>
  147.                 <version>${alfresco.surf.version}</version>
  148.                 <scope>provided</scope>
  149.             </dependency>
  150.             <dependency>
  151.                 <groupId>org.alfresco.surf</groupId>
  152.                 <artifactId>spring-surf-api</artifactId>
  153.                 <version>${alfresco.surf.version}</version>
  154.                 <scope>provided</scope>
  155.             </dependency>
  156.         </dependencies>
  157.     </dependencyManagement>
  158.  
  159.     <build>
  160.         <pluginManagement>
  161.             <plugins>
  162.                 <!--
  163.                    Build an AMP if 3rd party libs are needed by the extensions
  164.                    JARs are the default artifact produced in your modules, if you want to build an amp for each module
  165.                    you have to enable this plugin and inspect the src/main/assembly.xml file if you want to customize
  166.                    the layout of your AMP. The end result is that Maven will produce both a JAR file and an AMP with your
  167.                    module.
  168.                -->
  169.                 <!--
  170.                <plugin>
  171.                    <groupId>org.apache.maven.plugins</groupId>
  172.                    <artifactId>maven-assembly-plugin</artifactId>
  173.                    <version>2.6</version>
  174.                    <executions>
  175.                        <execution>
  176.                            <id>build-amp-file</id>
  177.                            <phase>package</phase>
  178.                            <goals>
  179.                                <goal>single</goal>
  180.                            </goals>
  181.                            <configuration>
  182.                                <appendAssemblyId>false</appendAssemblyId>
  183.                                <descriptor>src/main/assembly/amp.xml</descriptor>
  184.                            </configuration>
  185.                        </execution>
  186.                    </executions>
  187.                    <dependencies>
  188.                        <dependency>
  189.                            <groupId>org.alfresco.maven.plugin</groupId>
  190.                            <artifactId>alfresco-maven-plugin</artifactId>
  191.                            <version>${alfresco.sdk.version}</version>
  192.                        </dependency>
  193.                    </dependencies>
  194.                </plugin>
  195.                -->
  196.  
  197.                 <!-- Filter resources in any sub-project with this config -->
  198.                 <plugin>
  199.                     <groupId>org.apache.maven.plugins</groupId>
  200.                     <artifactId>maven-resources-plugin</artifactId>
  201.                     <version>3.0.1</version>
  202.                     <configuration>
  203.                         <encoding>UTF-8</encoding>
  204.                         <nonFilteredFileExtensions> <!-- jpg, jpeg, gif, bmp and png are added automatically -->
  205.                             <nonFilteredFileExtension>ftl</nonFilteredFileExtension>
  206.                             <nonFilteredFileExtension>acp</nonFilteredFileExtension>
  207.                             <nonFilteredFileExtension>svg</nonFilteredFileExtension>
  208.                             <nonFilteredFileExtension>pdf</nonFilteredFileExtension>
  209.                             <nonFilteredFileExtension>doc</nonFilteredFileExtension>
  210.                             <nonFilteredFileExtension>docx</nonFilteredFileExtension>
  211.                             <nonFilteredFileExtension>xls</nonFilteredFileExtension>
  212.                             <nonFilteredFileExtension>xlsx</nonFilteredFileExtension>
  213.                             <nonFilteredFileExtension>ppt</nonFilteredFileExtension>
  214.                             <nonFilteredFileExtension>pptx</nonFilteredFileExtension>
  215.                             <nonFilteredFileExtension>bin</nonFilteredFileExtension>
  216.                             <nonFilteredFileExtension>lic</nonFilteredFileExtension>
  217.                             <nonFilteredFileExtension>swf</nonFilteredFileExtension>
  218.                             <nonFilteredFileExtension>zip</nonFilteredFileExtension>
  219.                             <nonFilteredFileExtension>msg</nonFilteredFileExtension>
  220.                             <nonFilteredFileExtension>jar</nonFilteredFileExtension>
  221.                             <nonFilteredFileExtension>ttf</nonFilteredFileExtension>
  222.                             <nonFilteredFileExtension>eot</nonFilteredFileExtension>
  223.                             <nonFilteredFileExtension>woff</nonFilteredFileExtension>
  224.                             <nonFilteredFileExtension>woff2</nonFilteredFileExtension>
  225.                             <nonFilteredFileExtension>css</nonFilteredFileExtension>
  226.                             <nonFilteredFileExtension>ico</nonFilteredFileExtension>
  227.                             <nonFilteredFileExtension>psd</nonFilteredFileExtension>
  228.                             <nonFilteredFileExtension>js</nonFilteredFileExtension>
  229.                         </nonFilteredFileExtensions>
  230.                     </configuration>
  231.                 </plugin>
  232.             </plugins>
  233.         </pluginManagement>
  234.  
  235.         <!-- Make sure resources in sub-projects are filtered -->
  236.         <resources>
  237.             <resource>
  238.                 <directory>src/main/resources</directory>
  239.                 <filtering>true</filtering>
  240.             </resource>
  241.         </resources>
  242.  
  243.  
  244.         <plugins>
  245.             <!-- Filter the test resource files in the AIO parent project, and do property substitutions.
  246.                 We need this config so this is done before the Alfresco Maven Plugin 'run' is executed. -->
  247.             <plugin>
  248.                 <groupId>org.apache.maven.plugins</groupId>
  249.                 <artifactId>maven-resources-plugin</artifactId>
  250.                 <version>3.0.1</version>
  251.                 <inherited>false</inherited>
  252.                 <!-- Run only for the AIO parent Project -->
  253.                 <executions>
  254.                     <execution>
  255.                         <id>copy-and-filter-test-resources</id>
  256.                         <phase>validate</phase>
  257.                         <goals>
  258.                             <goal>copy-resources</goal>
  259.                         </goals>
  260.                         <configuration>
  261.                             <outputDirectory>${project.build.testOutputDirectory}</outputDirectory>
  262.                             <resources>
  263.                                 <testResource>
  264.                                     <directory>src/test/resources</directory>
  265.                                     <filtering>true</filtering>
  266.                                 </testResource>
  267.                             </resources>
  268.                         </configuration>
  269.                     </execution>
  270.                 </executions>
  271.             </plugin>
  272.  
  273.             <!--
  274.                The Alfresco Maven Plugin contains all the logic to run the extension
  275.                in an embedded Tomcat with the H2 database.
  276.            -->
  277.             <plugin>
  278.                 <groupId>org.alfresco.maven.plugin</groupId>
  279.                 <artifactId>alfresco-maven-plugin</artifactId>
  280.                 <version>${alfresco.sdk.version}</version>
  281.                 <configuration>
  282.  
  283.                     <!-- We need the flat file H2 database to run the Repo -->
  284.                     <enableH2>true</enableH2>
  285.                     <!-- We always need the Platform/Repo webapp - alfresco.war -->
  286.                     <enablePlatform>true</enablePlatform>
  287.                     <!-- Enable Solr webapp so we can use search -->
  288.                     <enableSolr>true</enableSolr>
  289.                     <!-- We need Share webapp, so we got a UI for working with the Repo -->
  290.                     <enableShare>true</enableShare>
  291.                     <!-- Enable the REST API Explorer -->
  292.                     <enableApiExplorer>true</enableApiExplorer>
  293.  
  294.                     <!--
  295.                        JARs and AMPs that should be overlayed/applied to the Platform/Repository WAR
  296.                        (i.e. alfresco.war)
  297.                    -->
  298.                     <platformModules>
  299.                         <!-- Share Services will be ignored if you are on Platform earlier than 5.1 -->
  300.                         <moduleDependency>
  301.                             <groupId>${alfresco.groupId}</groupId>
  302.                             <artifactId>alfresco-share-services</artifactId>
  303.                             <version>${alfresco.share.version}</version>
  304.                             <type>amp</type>
  305.                         </moduleDependency>
  306.  
  307.                         <!-- Bring in custom Modules -->
  308.                         <moduleDependency>
  309.                             <groupId>${project.groupId}</groupId>
  310.                             <artifactId>expediente-electronico-platform-jar</artifactId>
  311.                             <version>${project.version}</version>
  312.                         </moduleDependency>
  313.                         <moduleDependency>
  314.                             <groupId>com.itextpdf</groupId>
  315.                             <artifactId>itextpdf</artifactId>
  316.                             <version>5.5.9</version>
  317.                         </moduleDependency>
  318.                         <moduleDependency>
  319.                             <groupId>com.itextpdf</groupId>
  320.                             <artifactId>itext-pdfa</artifactId>
  321.                             <version>5.5.9</version>
  322.                         </moduleDependency>
  323.                        
  324.                         <!-- Bring in the integration tests -->
  325.                         <moduleDependency>
  326.                             <groupId>${project.groupId}</groupId>
  327.                             <artifactId>integration-tests</artifactId>
  328.                             <version>${project.version}</version>
  329.                             <classifier>tests</classifier>
  330.                         </moduleDependency>
  331.  
  332.                     </platformModules>
  333.  
  334.                     <!--
  335.                        JARs and AMPs that should be overlayed/applied to the Share WAR (i.e. share.war)
  336.                    -->
  337.                     <shareModules>
  338.                         <!-- Bring in custom Modules -->
  339.                         <moduleDependency>
  340.                             <groupId>${project.groupId}</groupId>
  341.                             <artifactId>expediente-electronico-share-jar</artifactId>
  342.                             <version>${project.version}</version>
  343.                         </moduleDependency>
  344.                     </shareModules>
  345.                 </configuration>
  346.             </plugin>
  347.  
  348.             <!-- Hot reloading with JRebel -->
  349.             <plugin>
  350.                 <groupId>org.zeroturnaround</groupId>
  351.                 <artifactId>jrebel-maven-plugin</artifactId>
  352.                 <version>${jrebel.version}</version>
  353.                 <executions>
  354.                     <execution>
  355.                         <id>generate-rebel-xml</id>
  356.                         <phase>process-resources</phase>
  357.                         <goals>
  358.                             <goal>generate</goal>
  359.                         </goals>
  360.                     </execution>
  361.                 </executions>
  362.                 <configuration>
  363.                     <!-- For more information about how to configure JRebel plugin see:
  364.                         http://manuals.zeroturnaround.com/jrebel/standalone/maven.html#maven-rebel-xml -->
  365.                     <classpath>
  366.                         <fallback>all</fallback>
  367.                         <resources>
  368.                             <resource>
  369.                                 <directory>${project.build.outputDirectory}</directory>
  370.                                 <directory>${project.build.testOutputDirectory}</directory>
  371.                             </resource>
  372.                         </resources>
  373.                     </classpath>
  374.  
  375.                     <!--
  376.                      alwaysGenerate - default is false
  377.                      If 'false' - rebel.xml is generated if timestamps of pom.xml and the current rebel.xml file are not equal.
  378.                      If 'true' - rebel.xml will always be generated
  379.                    -->
  380.                     <alwaysGenerate>true</alwaysGenerate>
  381.                 </configuration>
  382.             </plugin>
  383.         </plugins>
  384.     </build>
  385.  
  386.     <!--
  387.        Alfresco Maven Repositories
  388.        -->
  389.     <repositories>
  390.         <repository>
  391.             <id>alfresco-public</id>
  392.             <url>https://artifacts.alfresco.com/nexus/content/groups/public</url>
  393.         </repository>
  394.         <repository>
  395.             <id>alfresco-public-snapshots</id>
  396.             <url>https://artifacts.alfresco.com/nexus/content/groups/public-snapshots</url>
  397.             <snapshots>
  398.                 <enabled>true</enabled>
  399.                 <updatePolicy>daily</updatePolicy>
  400.             </snapshots>
  401.         </repository>
  402.         <!-- Alfresco Enterprise Edition Artifacts, put username/pwd for server in settings.xml -->
  403.         <repository>
  404.             <id>alfresco-private-repository</id>
  405.             <url>https://artifacts.alfresco.com/nexus/content/groups/private</url>
  406.         </repository>
  407.     </repositories>
  408.     <pluginRepositories>
  409.         <pluginRepository>
  410.             <id>alfresco-plugin-public</id>
  411.             <url>https://artifacts.alfresco.com/nexus/content/groups/public</url>
  412.         </pluginRepository>
  413.         <pluginRepository>
  414.             <id>alfresco-plugin-public-snapshots</id>
  415.             <url>https://artifacts.alfresco.com/nexus/content/groups/public-snapshots</url>
  416.             <snapshots>
  417.                 <enabled>true</enabled>
  418.                 <updatePolicy>daily</updatePolicy>
  419.             </snapshots>
  420.         </pluginRepository>
  421.     </pluginRepositories>
  422.   <modules>
  423.     <module>expediente-electronico-platform-jar</module>
  424.     <module>expediente-electronico-share-jar</module>
  425.     <module>integration-tests</module>
  426.   </modules>
  427. </project>%
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement