"Fossies" - the Fresh Open Source Software Archive

Member "META-INF/maven/org.fcrepo/fcrepo-webapp/pom.xml" (22 Jul 2020, 19729 Bytes) of package /linux/www/fcrepo-webapp-5.1.1.war:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) XML source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 <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">
    2   <modelVersion>4.0.0</modelVersion>
    3   <parent>
    4     <groupId>org.fcrepo</groupId>
    5     <artifactId>fcrepo</artifactId>
    6     <version>5.1.1</version>
    7   </parent>
    8 
    9   <artifactId>fcrepo-webapp</artifactId>
   10   <name>Fedora Repository Deployable Web Application</name>
   11   <description>The Fedora web application</description>
   12   <packaging>war</packaging>
   13 
   14   <properties>
   15     <!-- integration test properties -->
   16     <fcrepo.test.context.path>/</fcrepo.test.context.path>
   17     
   18     <!-- sonar -->
   19     <sonar.artifact.path>${project.build.directory}${file.separator}${project.artifactId}-${project.version}.war</sonar.artifact.path>
   20 
   21     <build.timestamp>${maven.build.timestamp}</build.timestamp>
   22     <maven.build.timestamp.format>yyyy-MM-dd</maven.build.timestamp.format>
   23     <!-- for standalone operation -->
   24     <jetty.users.file>${project.build.directory}/test-classes/jetty-users.properties</jetty.users.file>
   25     <fcrepo.modeshape.configuration>classpath:/config/servlet-auth/repository.json</fcrepo.modeshape.configuration>
   26     <jetty-console.version>1.61</jetty-console.version>
   27   </properties>
   28 
   29   <dependencies>
   30     <dependency>
   31       <groupId>ch.qos.logback</groupId>
   32       <artifactId>logback-classic</artifactId>
   33     </dependency>
   34     <dependency>
   35       <groupId>org.fcrepo</groupId>
   36       <artifactId>fcrepo-kernel-modeshape</artifactId>
   37       <version>${project.version}</version>
   38     </dependency>
   39     <dependency>
   40       <groupId>org.fcrepo</groupId>
   41       <artifactId>fcrepo-jms</artifactId>
   42       <version>${project.version}</version>
   43     </dependency>
   44     <dependency>
   45       <groupId>org.fcrepo</groupId>
   46       <artifactId>fcrepo-http-api</artifactId>
   47       <version>${project.version}</version>
   48     </dependency>
   49     <dependency>
   50       <groupId>org.fcrepo</groupId>
   51       <artifactId>fcrepo-configs</artifactId>
   52       <version>${project.version}</version>
   53       <scope>test</scope>
   54     </dependency>
   55     <dependency>
   56       <groupId>org.fcrepo</groupId>
   57       <artifactId>fcrepo-auth-common</artifactId>
   58       <version>${project.version}</version>
   59     </dependency>
   60     <dependency>
   61       <groupId>org.fcrepo</groupId>
   62       <artifactId>fcrepo-auth-webac</artifactId>
   63       <version>${project.version}</version>
   64     </dependency>
   65     <dependency>
   66       <groupId>org.eclipse.jetty</groupId>
   67       <artifactId>jetty-webapp</artifactId>
   68       <version>${jetty.version}</version>
   69       <exclusions>
   70         <exclusion>
   71           <groupId>org.eclipse.jetty.orbit</groupId>
   72           <artifactId>javax.servlet</artifactId>
   73         </exclusion>
   74       </exclusions>
   75     </dependency>
   76 
   77     <dependency>
   78       <groupId>org.eclipse.jetty</groupId>
   79       <artifactId>jetty-servlets</artifactId>
   80       <version>${jetty.version}</version>
   81     </dependency>
   82     <dependency>
   83       <groupId>org.eclipse.jetty</groupId>
   84       <artifactId>jetty-deploy</artifactId>
   85       <version>${jetty.version}</version>
   86     </dependency>
   87     <dependency>
   88       <groupId>org.eclipse.jetty</groupId>
   89       <artifactId>jetty-jmx</artifactId>
   90       <version>${jetty.version}</version>
   91     </dependency>
   92 
   93     <dependency>
   94       <groupId>org.glassfish.jersey.ext</groupId>
   95       <artifactId>jersey-spring3</artifactId>
   96       <version>${jersey.version}</version>
   97     </dependency>
   98     <dependency>
   99       <groupId>junit</groupId>
  100       <artifactId>junit</artifactId>
  101     </dependency>
  102 
  103     <dependency>
  104       <groupId>xml-apis</groupId>
  105       <artifactId>xml-apis</artifactId>
  106       <version>1.4.01</version>
  107     </dependency>
  108 
  109     <!-- JDBC dependencies-->
  110     <dependency>
  111       <groupId>org.apache.commons</groupId>
  112       <artifactId>commons-dbcp2</artifactId>
  113       <exclusions>
  114         <exclusion>
  115           <groupId>commons-logging</groupId>
  116           <artifactId>commons-logging</artifactId>
  117         </exclusion>
  118       </exclusions>
  119     </dependency>    
  120     <dependency>
  121       <groupId>mysql</groupId>
  122       <artifactId>mysql-connector-java</artifactId>
  123       <version>${mysql.version}</version>
  124     </dependency>
  125     <dependency>
  126       <groupId>org.postgresql</groupId>
  127       <artifactId>postgresql</artifactId>
  128     <version>${postgresql.version}</version>
  129     </dependency>
  130 
  131     <dependency>
  132       <groupId>org.springframework</groupId>
  133       <artifactId>spring-web</artifactId>
  134     </dependency>
  135 
  136     <!-- AWS S3 client dependencies -->
  137     <dependency>
  138       <groupId>com.amazonaws</groupId>
  139       <artifactId>aws-java-sdk-s3</artifactId>
  140       <version>${aws.client.version}</version>
  141       <scope>runtime</scope>
  142       <exclusions>
  143         <exclusion>
  144           <groupId>com.amazonaws</groupId>
  145           <artifactId>aws-java-sdk-core</artifactId>
  146         </exclusion>
  147         <exclusion>
  148           <groupId>commons-logging</groupId>
  149           <artifactId>commons-logging</artifactId>
  150         </exclusion>
  151       </exclusions>
  152     </dependency>
  153     <dependency>
  154       <groupId>com.amazonaws</groupId>
  155       <artifactId>aws-java-sdk-core</artifactId>
  156       <version>${aws.client.version}</version>
  157       <scope>runtime</scope>
  158       <exclusions>
  159         <exclusion>
  160           <groupId>commons-logging</groupId>
  161           <artifactId>commons-logging</artifactId>
  162         </exclusion>
  163       </exclusions>
  164     </dependency>
  165 
  166     <!-- test gear -->
  167     <dependency>
  168       <groupId>net.sourceforge.htmlunit</groupId>
  169       <artifactId>htmlunit</artifactId>
  170       <scope>test</scope>
  171       <version>${htmlunit.version}</version>
  172 
  173       <exclusions>
  174         <exclusion>
  175           <groupId>commons-codec</groupId>
  176           <artifactId>commons-codec</artifactId>
  177         </exclusion>
  178         <exclusion>
  179           <groupId>commons-logging</groupId>
  180           <artifactId>commons-logging</artifactId>
  181         </exclusion>
  182         <exclusion>
  183           <groupId>org.eclipse.jetty</groupId>
  184           <artifactId>jetty-io</artifactId>
  185         </exclusion>
  186         <exclusion>
  187           <groupId>org.eclipse.jetty</groupId>
  188           <artifactId>jetty-http</artifactId>
  189         </exclusion>
  190         <exclusion>
  191           <groupId>org.eclipse.jetty</groupId>
  192           <artifactId>jetty-util</artifactId>
  193         </exclusion>
  194         <exclusion>
  195           <groupId>org.eclipse.jetty</groupId>
  196           <artifactId>jetty-xml</artifactId>
  197         </exclusion>
  198         <exclusion>
  199           <groupId>xml-apis</groupId>
  200           <artifactId>xml-apis</artifactId>
  201         </exclusion>
  202       </exclusions>
  203     </dependency>
  204 
  205     <dependency>
  206       <groupId>net.sourceforge.htmlunit</groupId>
  207       <artifactId>htmlunit-core-js</artifactId>
  208       <scope>test</scope>
  209       <version>${htmlunit.version}</version>
  210     </dependency>
  211     <dependency>
  212       <groupId>org.springframework</groupId>
  213       <artifactId>spring-context</artifactId>
  214     </dependency>
  215     <dependency>
  216       <groupId>org.springframework</groupId>
  217       <artifactId>spring-test</artifactId>
  218     </dependency>
  219     <dependency>
  220       <groupId>org.apache.httpcomponents</groupId>
  221       <artifactId>httpclient</artifactId>
  222     </dependency>
  223     <dependency>
  224       <groupId>org.apache.httpcomponents</groupId>
  225       <artifactId>httpclient-cache</artifactId>
  226     </dependency>
  227     <dependency>
  228       <groupId>org.apache.httpcomponents</groupId>
  229       <artifactId>httpmime</artifactId>
  230     </dependency>
  231     <dependency>
  232       <groupId>org.fcrepo</groupId>
  233       <artifactId>fcrepo-http-commons</artifactId>
  234       <version>${project.version}</version>
  235       <scope>test</scope>
  236       <type>test-jar</type>
  237     </dependency>
  238 
  239     <dependency>
  240       <groupId>org.reflections</groupId>
  241       <artifactId>reflections</artifactId>
  242       <version>0.9.10</version>
  243       <scope>test</scope>
  244     </dependency>
  245 
  246     <!-- This dependency is for compile-time: it keeps this module independent
  247       of any given choice of JAX-RS implementation. It must be _after_ the test
  248       gear. Otherwise it will get loaded during test phase, but because this is
  249       just an API, the tests will not be able to execute. -->
  250     <dependency>
  251       <groupId>javax</groupId>
  252       <artifactId>javaee-api</artifactId>
  253       <scope>provided</scope>
  254     </dependency>
  255 
  256     <dependency>
  257       <groupId>javax.jcr</groupId>
  258       <artifactId>jcr</artifactId>
  259       <scope>compile</scope>
  260     </dependency>
  261 
  262     <dependency>
  263       <groupId>org.fcrepo</groupId>
  264       <artifactId>modeshape-jcr</artifactId>
  265       <scope>runtime</scope>
  266     </dependency>
  267     
  268   </dependencies>
  269   <build>
  270     <resources>
  271       <resource>
  272         <directory>src/main/resources</directory>
  273       </resource>
  274       <resource>
  275         <directory>${project.build.directory}/maven-shared-archive-resources</directory>
  276       </resource>
  277     </resources>
  278     <testResources>
  279       <testResource>
  280         <filtering>true</filtering>
  281         <directory>src/test/resources</directory>
  282       </testResource>
  283     </testResources>
  284     <plugins>
  285       <plugin>
  286         <artifactId>maven-remote-resources-plugin</artifactId>
  287         <executions>
  288           <execution>
  289             <id>process-remote-resources</id>
  290             <phase>generate-resources</phase>
  291             <goals>
  292               <goal>process</goal>
  293             </goals>
  294           </execution>
  295         </executions>
  296         <configuration>
  297           <resourceBundles>
  298             <resourceBundle>org.fcrepo:fcrepo-configs:${project.version}</resourceBundle>
  299           </resourceBundles>
  300         </configuration>
  301       </plugin>
  302       <plugin>
  303         <artifactId>maven-war-plugin</artifactId>
  304         <configuration>
  305           <attachClasses>true</attachClasses>
  306           <nonFilteredFileExtensions>
  307             <nonFilteredFileExtension>ico</nonFilteredFileExtension>
  308             <nonFilteredFileExtension>ttf</nonFilteredFileExtension>
  309             <nonFilteredFileExtension>woff</nonFilteredFileExtension>
  310           </nonFilteredFileExtensions>
  311           <webResources>
  312             <resource>
  313               <directory>src/main/webapp</directory>
  314               <filtering>true</filtering>
  315             </resource>
  316           </webResources>
  317             <archive>
  318               <index>true</index>
  319               <manifest>
  320                 <addClasspath>true</addClasspath>
  321                 <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
  322               </manifest>
  323             </archive>
  324         </configuration>
  325       </plugin>
  326       <plugin>
  327         <artifactId>maven-failsafe-plugin</artifactId>
  328         <configuration>
  329           <systemPropertyVariables>
  330             <fcrepo.dynamic.test.port>${fcrepo.dynamic.test.port}</fcrepo.dynamic.test.port>
  331             <fcrepo.test.context.path>${fcrepo.test.context.path}</fcrepo.test.context.path>
  332             <fcrepo.dynamic.jms.port>${fcrepo.dynamic.jms.port}</fcrepo.dynamic.jms.port>
  333             <fcrepo.dynamic.stomp.port>${fcrepo.dynamic.stomp.port}</fcrepo.dynamic.stomp.port>
  334             <integration-test>true</integration-test>
  335           </systemPropertyVariables>
  336         </configuration>
  337       </plugin>
  338       <plugin>
  339         <groupId>org.codehaus.mojo</groupId>
  340         <artifactId>build-helper-maven-plugin</artifactId>
  341         <configuration>
  342           <portNames>
  343             <portName>fcrepo.dynamic.test.port</portName>
  344             <!-- reserves the stop port for jetty-maven-plugin -->
  345             <portName>jetty.dynamic.stop.port</portName>
  346             <portName>fcrepo.dynamic.jms.port</portName>
  347             <portName>fcrepo.dynamic.stomp.port</portName>
  348           </portNames>
  349         </configuration>
  350       </plugin>
  351 
  352       <plugin>
  353         <groupId>org.codehaus.mojo</groupId>
  354         <artifactId>properties-maven-plugin</artifactId>
  355         <version>1.0.0</version>
  356         <executions>
  357           <execution>
  358             <phase>pre-integration-test</phase>
  359             <goals>
  360               <goal>set-system-properties</goal>
  361             </goals>
  362             <configuration>
  363               <properties>
  364                 <property>
  365                   <name>fcrepo.dynamic.jms.port</name>
  366                   <value>${fcrepo.dynamic.jms.port}</value>
  367                 </property>
  368 
  369                 <property>
  370                   <name>fcrepo.dynamic.stomp.port</name>
  371                   <value>${fcrepo.dynamic.stomp.port}</value>
  372                 </property>
  373 
  374                 <property>
  375                   <name>integration-test</name>
  376                   <value>true</value>
  377                 </property>
  378               </properties>
  379             </configuration>
  380           </execution>
  381         </executions>
  382       </plugin>
  383 
  384       <plugin>
  385         <groupId>org.eclipse.jetty</groupId>
  386         <artifactId>jetty-maven-plugin</artifactId>
  387         <configuration>
  388           <scanIntervalSeconds>2</scanIntervalSeconds>
  389           <stopKey>STOP</stopKey>
  390           <webApp>
  391             <contextPath>${fcrepo.test.context.path}</contextPath>
  392           </webApp>
  393           <jettyXml>${project.build.directory}/test-classes/jetty-test.xml</jettyXml>
  394           <systemProperties>
  395             <systemProperty>
  396               <name>fcrepo.modeshape.configuration</name>
  397               <value>classpath:/config/servlet-auth/repository.json</value>
  398             </systemProperty>
  399           </systemProperties>
  400 
  401         </configuration>
  402         <executions>
  403           <execution>
  404             <id>start-jetty</id>
  405             <phase>pre-integration-test</phase>
  406             <goals>
  407               <goal>start</goal>
  408             </goals>
  409             <configuration>
  410               <stopPort>${jetty.dynamic.stop.port}</stopPort>
  411 
  412               <systemProperties>
  413                 <systemProperty>
  414                   <name>fcrepo.modeshape.configuration</name>
  415                   <value>classpath:/config/file-simple/repository.json</value>
  416                 </systemProperty>
  417 
  418                 <systemProperty>
  419                   <name>fcrepo.dynamic.test.port</name>
  420                   <value>${fcrepo.dynamic.test.port}</value>
  421                 </systemProperty>
  422 
  423                 <systemProperty>
  424                   <name>fcrepo.dynamic.jms.port</name>
  425                   <value>${fcrepo.dynamic.jms.port}</value>
  426                 </systemProperty>
  427 
  428                 <systemProperty>
  429                   <name>fcrepo.dynamic.stomp.port</name>
  430                   <value>${fcrepo.dynamic.stomp.port}</value>
  431                 </systemProperty>
  432 
  433                 <systemProperty>
  434                   <name>integration-test</name>
  435                   <value>true</value>
  436                 </systemProperty>
  437 
  438                 <systemProperty>
  439                   <name>
  440                     com.arjuna.ats.arjuna.common.ObjectStoreEnvironmentBean.default.objectStoreDir
  441                   </name>
  442                   <value>${project.build.directory}/object-store-default</value>
  443                 </systemProperty>
  444 
  445                 <systemProperty>
  446                   <name>com.arjuna.ats.arjuna.objectstore.objectStoreDir</name>
  447                   <value>${project.build.directory}/object-store</value>
  448                 </systemProperty>
  449 
  450                 <systemProperty>
  451                   <name>fcrepo.activemq.directory</name>
  452                   <value>${project.build.directory}/active-mq</value>
  453                 </systemProperty>
  454               </systemProperties>
  455 
  456             </configuration>
  457           </execution>
  458           <execution>
  459             <id>stop-jetty</id>
  460             <phase>post-integration-test</phase>
  461             <goals>
  462               <goal>stop</goal>
  463             </goals>
  464             <configuration>
  465               <stopPort>${jetty.dynamic.stop.port}</stopPort>
  466             </configuration>
  467           </execution>
  468         </executions>
  469       </plugin>
  470 
  471       <plugin>
  472         <groupId>org.codehaus.mojo</groupId>
  473         <artifactId>buildnumber-maven-plugin</artifactId>
  474         <version>1.3</version>
  475         <executions>
  476           <execution>
  477             <phase>validate</phase>
  478             <goals>
  479               <goal>create</goal>
  480             </goals>
  481           </execution>
  482         </executions>
  483         <configuration>
  484           <doCheck>false</doCheck>
  485           <doUpdate>false</doUpdate>
  486           <getRevisionOnlyOnce>true</getRevisionOnlyOnce>
  487           <shortRevisionLength>8</shortRevisionLength>
  488         </configuration>
  489       </plugin>
  490     </plugins>
  491   </build>
  492 
  493   <profiles>
  494     <profile>
  495       <id>one-click</id>
  496       <activation>
  497         <activeByDefault>false</activeByDefault>
  498       </activation>
  499       <properties>
  500         <fcrepo.modeshape.configuration>classpath:/config/file-simple/repository.json</fcrepo.modeshape.configuration>
  501       </properties>
  502 
  503       <build>
  504         <resources>
  505           <resource>
  506             <directory>src/main/resources</directory>
  507             <filtering>true</filtering>
  508             <includes>
  509               <include>**/fcrepo-config.xml</include>
  510             </includes>
  511           </resource>
  512         </resources>
  513 
  514         <plugins>
  515           <plugin>
  516             <artifactId>maven-war-plugin</artifactId>
  517             <configuration>
  518               <attachClasses>true</attachClasses>
  519               <webResources>
  520                 <resource>
  521                   <directory>src/main/jetty-console</directory>
  522                   <filtering>true</filtering>
  523                 </resource>
  524                 <resource>
  525                   <directory>src/main/webapp</directory>
  526                   <includes>
  527                     <include>*.html</include>
  528                   </includes>
  529                   <filtering>true</filtering>
  530                 </resource>
  531               </webResources>
  532                 <archive>
  533                   <index>true</index>
  534                   <manifest>
  535                     <addClasspath>true</addClasspath>
  536                     <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
  537                   </manifest>
  538                 </archive>
  539             </configuration>
  540           </plugin>
  541 
  542           <plugin>
  543             <groupId>org.fcrepo</groupId>
  544             <artifactId>jetty-console-maven-plugin</artifactId>
  545             <version>${jetty-console.version}</version>
  546             <executions>
  547               <execution>
  548                 <goals>
  549                   <goal>createconsole</goal>
  550                 </goals>
  551                 <configuration>
  552                   <backgroundImage>${basedir}/src/main/webapp/static/images/fedora_logo_10in.png</backgroundImage>
  553                   <destinationFile>
  554                     ${project.build.directory}${file.separator}${project.artifactId}-${project.version}-jetty-console.jar
  555                   </destinationFile>
  556                 </configuration>
  557               </execution>
  558             </executions>
  559           </plugin>
  560           <!--Ensure that the main war is removed... because it will have a default ModeShape config wired in.-->
  561           <plugin>
  562             <artifactId>maven-clean-plugin</artifactId>
  563             <executions>
  564               <execution>
  565                 <id>remove-war</id>
  566                 <phase>post-integration-test</phase>
  567                 <goals>
  568                   <goal>clean</goal>
  569                 </goals>
  570                 <configuration>
  571                   <excludeDefaultDirectories>true</excludeDefaultDirectories>
  572                   <filesets>
  573                     <fileset>
  574                       <directory>${project.build.directory}</directory>
  575                       <includes>
  576                         <include>**/*.war</include>
  577                       </includes>
  578                     </fileset>
  579                   </filesets>
  580                 </configuration>
  581               </execution>
  582             </executions>
  583           </plugin>
  584         </plugins>
  585       </build>
  586     </profile>
  587   </profiles>
  588 
  589 </project>