"Fossies" - the Fresh Open Source Software Archive

Member "monasca-api-3.1.0/java/pom.xml" (27 Sep 2019, 17420 Bytes) of package /linux/misc/openstack/monasca-api-3.1.0.tar.gz:


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"
    2          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    3          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    4     <modelVersion>4.0.0</modelVersion>
    5 
    6     <groupId>monasca-api</groupId>
    7     <artifactId>monasca-api</artifactId>
    8     <version>1.2.1-SNAPSHOT</version>
    9     <url>http://github.com/openstack/monasca-api</url>
   10     <packaging>jar</packaging>
   11 
   12     <prerequisites>
   13         <maven>3.0</maven>
   14     </prerequisites>
   15 
   16     <properties>
   17         <gitRevision></gitRevision>
   18         <timestamp>${maven.build.timestamp}</timestamp>
   19         <maven.build.timestamp.format>yyyy-MM-dd'T'HH:mm:ss</maven.build.timestamp.format>
   20         <computedVersion>${project.version}-${timestamp}-${gitRevision}</computedVersion>
   21         <computedName>${project.artifactId}-${computedVersion}</computedName>
   22         <mon.common.version>1.3.0-SNAPSHOT</mon.common.version>
   23         <dropwizard.version>0.7.0</dropwizard.version>
   24         <hikaricp.version>2.3.9</hikaricp.version>
   25 
   26         <skipITs>false</skipITs>
   27         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
   28         <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
   29         <shadedJarName>${project.artifactId}-${project.version}-shaded
   30         </shadedJarName>
   31     </properties>
   32 
   33     <scm>
   34         <connection>scm:git:git@git.openstack.org:openstack/monasca-api</connection>
   35         <developerConnection>scm:git:git.openstack.org:openstack/monasca-api</developerConnection>
   36     </scm>
   37 
   38     <profiles>
   39         <profile>
   40             <id>release-deploy-url-override</id>
   41             <activation>
   42                 <property>
   43                     <name>BUILD_NUM</name>
   44                 </property>
   45             </activation>
   46             <properties>
   47                 <computedVersion>${versionNumber}.${BUILD_NUM}</computedVersion>
   48             </properties>
   49         </profile>
   50     </profiles>
   51 
   52     <dependencies>
   53         <dependency>
   54             <groupId>monasca-common</groupId>
   55             <artifactId>monasca-common-influxdb</artifactId>
   56             <version>${mon.common.version}</version>
   57         </dependency>
   58         <dependency>
   59             <groupId>monasca-common</groupId>
   60             <artifactId>monasca-common-model</artifactId>
   61             <version>${mon.common.version}</version>
   62         </dependency>
   63         <dependency>
   64             <groupId>monasca-common</groupId>
   65             <artifactId>monasca-common-persistence</artifactId>
   66             <version>${mon.common.version}</version>
   67         </dependency>
   68         <dependency>
   69             <groupId>monasca-common</groupId>
   70             <artifactId>monasca-common-util</artifactId>
   71             <version>${mon.common.version}</version>
   72         </dependency>
   73         <dependency>
   74             <groupId>monasca-common</groupId>
   75             <artifactId>monasca-common-hibernate</artifactId>
   76             <version>${mon.common.version}</version>
   77         </dependency>
   78         <dependency>
   79             <groupId>commons-validator</groupId>
   80             <artifactId>commons-validator</artifactId>
   81             <version>1.4.0</version>
   82         </dependency>
   83         <dependency>
   84             <groupId>monasca-common</groupId>
   85             <artifactId>monasca-common-kafka</artifactId>
   86             <version>${mon.common.version}</version>
   87         </dependency>
   88         <dependency>
   89             <groupId>monasca-common</groupId>
   90             <artifactId>monasca-common-middleware</artifactId>
   91             <version>${mon.common.version}</version>
   92         </dependency>
   93         <dependency>
   94             <groupId>io.dropwizard</groupId>
   95             <artifactId>dropwizard-core</artifactId>
   96             <version>${dropwizard.version}</version>
   97         </dependency>
   98         <dependency>
   99             <groupId>io.dropwizard</groupId>
  100             <artifactId>dropwizard-db</artifactId>
  101             <version>${dropwizard.version}</version>
  102         </dependency>
  103         <dependency>
  104             <groupId>io.dropwizard</groupId>
  105             <artifactId>dropwizard-jdbi</artifactId>
  106             <version>${dropwizard.version}</version>
  107         </dependency>
  108         <dependency>
  109             <groupId>io.dropwizard</groupId>
  110             <artifactId>dropwizard-assets</artifactId>
  111             <version>${dropwizard.version}</version>
  112         </dependency>
  113         <dependency>
  114             <groupId>io.dropwizard</groupId>
  115             <artifactId>dropwizard-jersey</artifactId>
  116             <version>${dropwizard.version}</version>
  117         </dependency>
  118         <dependency>
  119             <groupId>mysql</groupId>
  120             <artifactId>mysql-connector-java</artifactId>
  121             <version>5.1.36</version>
  122         </dependency>
  123         <dependency>
  124             <groupId>org.drizzle.jdbc</groupId>
  125             <artifactId>drizzle-jdbc</artifactId>
  126             <version>1.4</version>
  127         </dependency>
  128         <dependency>
  129             <groupId>com.google.code.findbugs</groupId>
  130             <artifactId>jsr305</artifactId>
  131             <version>2.0.0</version>
  132         </dependency>
  133         <dependency>
  134             <groupId>org.apache.curator</groupId>
  135             <artifactId>curator-recipes</artifactId>
  136             <version>2.2.0-incubating</version>
  137             <exclusions>
  138                 <exclusion>
  139                     <groupId>org.slf4j</groupId>
  140                     <artifactId>slf4j-log4j12</artifactId>
  141                 </exclusion>
  142             </exclusions>
  143         </dependency>
  144         <dependency>
  145             <groupId>org.apache.kafka</groupId>
  146             <artifactId>kafka_2.11</artifactId>
  147             <version>0.8.2.2</version>
  148             <exclusions>
  149                 <exclusion>
  150                     <groupId>com.sun.jdmk</groupId>
  151                     <artifactId>jmxtools</artifactId>
  152                 </exclusion>
  153                 <exclusion>
  154                     <groupId>com.sun.jmx</groupId>
  155                     <artifactId>jmxri</artifactId>
  156                 </exclusion>
  157                 <exclusion>
  158                     <groupId>org.slf4j</groupId>
  159                     <artifactId>slf4j-simple</artifactId>
  160                 </exclusion>
  161             </exclusions>
  162         </dependency>
  163         <dependency>
  164             <groupId>org.influxdb</groupId>
  165             <artifactId>influxdb-java</artifactId>
  166             <version>1.0</version>
  167         </dependency>
  168         <dependency>
  169             <groupId>postgresql</groupId>
  170             <artifactId>postgresql</artifactId>
  171             <version>9.1-901.jdbc4</version>
  172         </dependency>
  173         <dependency>
  174             <groupId>com.zaxxer</groupId>
  175             <artifactId>HikariCP-java6</artifactId>
  176             <version>${hikaricp.version}</version>
  177             <scope>compile</scope>
  178         </dependency>
  179 
  180         <!-- Test dependencies -->
  181         <dependency>
  182             <groupId>monasca-common</groupId>
  183             <artifactId>monasca-common-testing</artifactId>
  184             <version>${mon.common.version}</version>
  185             <scope>test</scope>
  186         </dependency>
  187         <dependency>
  188             <groupId>monasca-common</groupId>
  189             <artifactId>monasca-common-dropwizard</artifactId>
  190             <version>${mon.common.version}</version>
  191             <type>test-jar</type>
  192             <scope>test</scope>
  193         </dependency>
  194         <dependency>
  195             <groupId>io.dropwizard</groupId>
  196             <artifactId>dropwizard-testing</artifactId>
  197             <version>${dropwizard.version}</version>
  198             <scope>test</scope>
  199         </dependency>
  200         <dependency>
  201             <groupId>org.mockito</groupId>
  202             <artifactId>mockito-all</artifactId>
  203             <version>1.9.5</version>
  204             <scope>test</scope>
  205         </dependency>
  206         <dependency>
  207             <groupId>com.github.docker-java</groupId>
  208             <artifactId>docker-java</artifactId>
  209             <version>0.9.1</version>
  210             <scope>test</scope>
  211         </dependency>
  212         <dependency>
  213             <groupId>com.jayway.restassured</groupId>
  214             <artifactId>rest-assured</artifactId>
  215             <version>2.3.2</version>
  216         </dependency>
  217         <dependency>
  218             <groupId>commons-io</groupId>
  219             <artifactId>commons-io</artifactId>
  220             <version>2.4</version>
  221         </dependency>
  222         <dependency>
  223             <groupId>org.testng</groupId>
  224             <artifactId>testng</artifactId>
  225             <version>6.8.8</version>
  226             <scope>test</scope>
  227         </dependency>
  228         <dependency>
  229             <groupId>org.apache.httpcomponents</groupId>
  230             <artifactId>httpclient</artifactId>
  231             <version>4.4</version>
  232         </dependency>
  233     </dependencies>
  234 
  235     <build>
  236         <plugins>
  237             <plugin>
  238                 <artifactId>maven-clean-plugin</artifactId>
  239                 <version>2.5</version>
  240                 <configuration>
  241                     <filesets>
  242                         <fileset>
  243                             <directory>${project.basedir}/debs</directory>
  244                         </fileset>
  245                     </filesets>
  246                 </configuration>
  247             </plugin>
  248             <plugin>
  249                 <groupId>org.codehaus.mojo</groupId>
  250                 <artifactId>buildnumber-maven-plugin</artifactId>
  251                 <version>1.1</version>
  252                 <executions>
  253                     <execution>
  254                         <phase>validate</phase>
  255                         <goals>
  256                             <goal>create</goal>
  257                         </goals>
  258                     </execution>
  259                 </executions>
  260                 <configuration>
  261                     <doCheck>false</doCheck>
  262                     <shortRevisionLength>6</shortRevisionLength>
  263                 </configuration>
  264             </plugin>
  265             <plugin>
  266                 <groupId>org.apache.maven.plugins</groupId>
  267                 <artifactId>maven-compiler-plugin</artifactId>
  268                 <version>3.1</version>
  269                 <configuration>
  270                     <source>1.7</source>
  271                     <target>1.7</target>
  272                 </configuration>
  273             </plugin>
  274             <plugin>
  275                 <groupId>org.apache.maven.plugins</groupId>
  276                 <artifactId>maven-surefire-plugin</artifactId>
  277                 <version>2.17</version>
  278                 <dependencies>
  279                     <dependency>
  280                         <groupId>org.apache.maven.surefire</groupId>
  281                         <artifactId>surefire-testng</artifactId>
  282                         <version>2.17</version>
  283                     </dependency>
  284                 </dependencies>
  285                 <configuration>
  286                     <excludedGroups>performance,functional,integration,database,slow
  287                     </excludedGroups>
  288                 </configuration>
  289             </plugin>
  290             <plugin>
  291                 <groupId>org.apache.maven.plugins</groupId>
  292                 <artifactId>maven-failsafe-plugin</artifactId>
  293                 <version>2.17</version>
  294                 <configuration>
  295                     <groups>performance,functional,integration,database,slow,orm</groups>
  296                     <skipTests>${skipITs}</skipTests>
  297                     <parallel>methods</parallel>
  298                     <threadCount>4</threadCount>
  299                 </configuration>
  300                 <executions>
  301                 </executions>
  302             </plugin>
  303             <plugin>
  304                 <groupId>org.apache.maven.plugins</groupId>
  305                 <artifactId>maven-shade-plugin</artifactId>
  306                 <version>1.2</version>
  307                 <configuration>
  308                     <finalName>${computedName}</finalName>
  309                     <createDependencyReducedPom>true</createDependencyReducedPom>
  310                     <filters>
  311                         <filter>
  312                             <!-- *:* can't be used for artifact because we are using an older shade plugin -->
  313                             <artifact>org.eclipse.jetty.orbit:javax.servlet</artifact>
  314                             <excludes>
  315                                 <exclude>META-INF/*.SF</exclude>
  316                                 <exclude>META-INF/*.DSA</exclude>
  317                                 <exclude>META-INF/*.RSA</exclude>
  318                             </excludes>
  319                         </filter>
  320                     </filters>
  321                     <artifactSet>
  322                         <excludes>
  323                             <exclude>org.hamcrest:hamcrest-core</exclude>
  324                             <exclude>org.hamcrest:hamcrest-library</exclude>
  325                         </excludes>
  326                     </artifactSet>
  327                 </configuration>
  328                 <executions>
  329                     <execution>
  330                         <phase>package</phase>
  331                         <goals>
  332                             <goal>shade</goal>
  333                         </goals>
  334                         <configuration>
  335                             <transformers>
  336                                 <transformer
  337                                         implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
  338                                 <transformer
  339                                         implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
  340                                     <mainClass>monasca.api.MonApiApplication</mainClass>
  341                                 </transformer>
  342                             </transformers>
  343                             <shadedArtifactAttached>true</shadedArtifactAttached>
  344                         </configuration>
  345                     </execution>
  346                 </executions>
  347             </plugin>
  348             <plugin>
  349                 <groupId>org.apache.maven.plugins</groupId>
  350                 <artifactId>maven-jar-plugin</artifactId>
  351                 <version>2.4</version>
  352                 <configuration>
  353                     <archive>
  354                         <manifest>
  355                             <packageName>monasca.api</packageName>
  356                         </manifest>
  357                         <manifestEntries>
  358                             <Implementation-Version>${project.artifactId}-${computedVersion}</Implementation-Version>
  359                         </manifestEntries>
  360                     </archive>
  361                 </configuration>
  362             </plugin>
  363             <plugin>
  364                 <artifactId>maven-assembly-plugin</artifactId>
  365                 <version>2.4.1</version>
  366                 <configuration>
  367                     <descriptors>
  368                         <descriptor>src/assembly/tar.xml</descriptor>
  369                     </descriptors>
  370                     <finalName>${artifactNamedVersion}</finalName>
  371                 </configuration>
  372                 <executions>
  373                     <execution>
  374                         <id>make-assembly</id>
  375                         <phase>package</phase>
  376                         <goals>
  377                             <goal>single</goal>
  378                         </goals>
  379                     </execution>
  380                 </executions>
  381             </plugin>
  382             <plugin>
  383                 <artifactId>jdeb</artifactId>
  384                 <groupId>org.vafer</groupId>
  385                 <version>1.0</version>
  386                 <executions>
  387                     <execution>
  388                         <phase>package</phase>
  389                         <goals>
  390                             <goal>jdeb</goal>
  391                         </goals>
  392                         <configuration>
  393                             <deb>${project.basedir}/debs/binaries/${computedName}.deb</deb>
  394                             <dataSet>
  395                                 <data>
  396                                     <type>file</type>
  397                                     <src>${project.build.directory}/${shadedJarName}.jar</src>
  398                                     <dst>/opt/monasca/monasca-api.jar</dst>
  399                                 </data>
  400                                 <data>
  401                                     <type>file</type>
  402                                     <src>${project.basedir}/src/deb/etc/api-config.yml-sample
  403                                     </src>
  404                                     <dst>/etc/monasca/api-config.yml-sample</dst>
  405                                 </data>
  406                             </dataSet>
  407                         </configuration>
  408                     </execution>
  409                 </executions>
  410             </plugin>
  411             <plugin>
  412                 <groupId>org.apache.maven.plugins</groupId>
  413                 <artifactId>maven-source-plugin</artifactId>
  414                 <version>2.3</version>
  415                 <executions>
  416                     <execution>
  417                         <id>attach-sources</id>
  418                         <goals>
  419                             <goal>jar</goal>
  420                         </goals>
  421                     </execution>
  422                 </executions>
  423             </plugin>
  424             <plugin>
  425                 <groupId>org.apache.maven.plugins</groupId>
  426                 <artifactId>maven-scm-plugin</artifactId>
  427                 <version>1.9.2</version>
  428                 <configuration>
  429                     <tag>${project.version}</tag>
  430                 </configuration>
  431             </plugin>
  432         </plugins>
  433     </build>
  434 
  435 </project>