|
| 1 | +<?xml version="1.0" encoding="UTF-8"?> |
| 2 | +<!-- |
| 3 | + ~ The copyright of this file belongs to Feedzai. The file cannot be |
| 4 | + ~ reproduced in whole or in part, stored in a retrieval system, |
| 5 | + ~ transmitted in any form, or by any means electronic, mechanical, |
| 6 | + ~ photocopying, or otherwise, without the prior permission of the owner. |
| 7 | + ~ |
| 8 | + ~ (c) 2020 Feedzai, Strictly Confidential |
| 9 | + --> |
| 10 | + |
| 11 | +<project xmlns="http://maven.apache.org/POM/4.0.0" |
| 12 | + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 13 | + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| 14 | + <parent> |
| 15 | + <artifactId>openml-java</artifactId> |
| 16 | + <groupId>com.feedzai</groupId> |
| 17 | + <version>0.0.0-SNAPSHOT</version> |
| 18 | + </parent> |
| 19 | + <modelVersion>4.0.0</modelVersion> |
| 20 | + |
| 21 | + <artifactId>openml-lightgbm</artifactId> |
| 22 | + |
| 23 | + <description>Contains an example for the implementation of a LGBM Machine Learning Model and Classifier</description> |
| 24 | + |
| 25 | + <properties> |
| 26 | + <lightgbmlib.version>2.3.150</lightgbmlib.version> |
| 27 | + </properties> |
| 28 | + |
| 29 | + <dependencies> |
| 30 | + <dependency> |
| 31 | + <groupId>com.feedzai</groupId> |
| 32 | + <artifactId>openml-api</artifactId> |
| 33 | + <scope>provided</scope> |
| 34 | + </dependency> |
| 35 | + <dependency> |
| 36 | + <groupId>com.feedzai</groupId> |
| 37 | + <artifactId>openml-utils</artifactId> |
| 38 | + <scope>provided</scope> |
| 39 | + </dependency> |
| 40 | + |
| 41 | + <dependency> |
| 42 | + <groupId>com.microsoft.ml.lightgbm</groupId> |
| 43 | + <artifactId>lightgbmlib</artifactId> |
| 44 | + <version>${lightgbmlib.version}</version> |
| 45 | + </dependency> |
| 46 | + |
| 47 | + <dependency> |
| 48 | + <groupId>com.google.guava</groupId> |
| 49 | + <artifactId>guava</artifactId> |
| 50 | + <scope>provided</scope> |
| 51 | + </dependency> |
| 52 | + <dependency> |
| 53 | + <groupId>com.google.auto.service</groupId> |
| 54 | + <artifactId>auto-service</artifactId> |
| 55 | + </dependency> |
| 56 | + |
| 57 | + <dependency> |
| 58 | + <groupId>org.slf4j</groupId> |
| 59 | + <artifactId>slf4j-api</artifactId> |
| 60 | + </dependency> |
| 61 | + |
| 62 | + <!-- For testing only --> |
| 63 | + <dependency> |
| 64 | + <groupId>ch.qos.logback</groupId> |
| 65 | + <artifactId>logback-core</artifactId> |
| 66 | + <scope>test</scope> |
| 67 | + </dependency> |
| 68 | + <dependency> |
| 69 | + <groupId>com.feedzai</groupId> |
| 70 | + <artifactId>openml-utils</artifactId> |
| 71 | + <type>test-jar</type> |
| 72 | + <scope>test</scope> |
| 73 | + </dependency> |
| 74 | + <dependency> |
| 75 | + <groupId>junit</groupId> |
| 76 | + <artifactId>junit</artifactId> |
| 77 | + <scope>test</scope> |
| 78 | + </dependency> |
| 79 | + <dependency> |
| 80 | + <groupId>org.assertj</groupId> |
| 81 | + <artifactId>assertj-core</artifactId> |
| 82 | + <scope>test</scope> |
| 83 | + </dependency> |
| 84 | + <dependency> |
| 85 | + <groupId>org.apache.commons</groupId> |
| 86 | + <artifactId>commons-csv</artifactId> |
| 87 | + <scope>test</scope> |
| 88 | + </dependency> |
| 89 | + |
| 90 | + </dependencies> |
| 91 | + |
| 92 | + <build> |
| 93 | + |
| 94 | + <resources> |
| 95 | + <resource> |
| 96 | + <directory>${project.basedir}/target/resources</directory> |
| 97 | + </resource> |
| 98 | + </resources> |
| 99 | + |
| 100 | + <plugins> |
| 101 | + |
| 102 | + <plugin> |
| 103 | + <artifactId>exec-maven-plugin</artifactId> |
| 104 | + <groupId>org.codehaus.mojo</groupId> |
| 105 | + <executions> |
| 106 | + <execution> |
| 107 | + <id>Generate LightGBM Build</id> |
| 108 | + <phase>initialize</phase> |
| 109 | + <goals> |
| 110 | + <goal>exec</goal> |
| 111 | + </goals> |
| 112 | + <configuration> |
| 113 | + <executable>${project.basedir}/make.sh</executable> |
| 114 | + </configuration> |
| 115 | + </execution> |
| 116 | + </executions> |
| 117 | + </plugin> |
| 118 | + |
| 119 | + <plugin> |
| 120 | + <artifactId>maven-assembly-plugin</artifactId> |
| 121 | + <configuration> |
| 122 | + <descriptorRefs> |
| 123 | + <descriptorRef>jar-with-dependencies</descriptorRef> |
| 124 | + </descriptorRefs> |
| 125 | + <appendAssemblyId>false</appendAssemblyId> |
| 126 | + </configuration> |
| 127 | + <executions> |
| 128 | + <execution> |
| 129 | + <phase>package</phase> |
| 130 | + <goals> |
| 131 | + <goal>single</goal> |
| 132 | + </goals> |
| 133 | + </execution> |
| 134 | + </executions> |
| 135 | + </plugin> |
| 136 | + |
| 137 | + <!-- set locale otherwise the LightGBM core implementation spits wrong results --> |
| 138 | + <plugin> |
| 139 | + <groupId>org.apache.maven.plugins</groupId> |
| 140 | + <artifactId>maven-surefire-plugin</artifactId> |
| 141 | + <configuration> |
| 142 | + <environmentVariables> |
| 143 | + <LC_ALL>C</LC_ALL> |
| 144 | + </environmentVariables> |
| 145 | + </configuration> |
| 146 | + </plugin> |
| 147 | + |
| 148 | + <!-- Install the local copy of the custom build of LightGBM to Maven --> |
| 149 | + <plugin> |
| 150 | + <groupId>org.apache.maven.plugins</groupId> |
| 151 | + <artifactId>maven-install-plugin</artifactId> |
| 152 | + <executions> |
| 153 | + <execution> |
| 154 | + <id>install-custom-lightgbmlib_build</id> |
| 155 | + <phase>initialize</phase> |
| 156 | + <goals> |
| 157 | + <goal>install-file</goal> |
| 158 | + </goals> |
| 159 | + <configuration> |
| 160 | + <file>${project.basedir}/lightgbmlib_build/lightgbmlib.jar</file> |
| 161 | + <pomFile>${project.basedir}/lightgbmlib_build/pom.xml</pomFile> |
| 162 | + <generatePom>false</generatePom> |
| 163 | + </configuration> |
| 164 | + </execution> |
| 165 | + </executions> |
| 166 | + </plugin> |
| 167 | + <!-- Copy the shared libraries to the resources folder --> |
| 168 | + <plugin> |
| 169 | + <groupId>org.apache.maven.plugins</groupId> |
| 170 | + <artifactId>maven-resources-plugin</artifactId> |
| 171 | + <executions> |
| 172 | + <execution> |
| 173 | + <id>copy-shared-libs-resources</id> |
| 174 | + <phase>generate-resources</phase> |
| 175 | + <goals> |
| 176 | + <goal>copy-resources</goal> |
| 177 | + </goals> |
| 178 | + <configuration> |
| 179 | + <outputDirectory>${project.basedir}/target/resources</outputDirectory> |
| 180 | + <resources> |
| 181 | + <resource> |
| 182 | + <directory>lightgbmlib_build</directory> |
| 183 | + <include>*.so</include> |
| 184 | + <include>*.so.1.0.0</include> |
| 185 | + </resource> |
| 186 | + </resources> |
| 187 | + </configuration> |
| 188 | + </execution> |
| 189 | + <execution> |
| 190 | + <id>copy-licences</id> |
| 191 | + <phase>generate-resources</phase> |
| 192 | + <goals> |
| 193 | + <goal>copy-resources</goal> |
| 194 | + </goals> |
| 195 | + <configuration> |
| 196 | + <outputDirectory>${project.basedir}/target/resources</outputDirectory> |
| 197 | + <resources> |
| 198 | + <resource> |
| 199 | + <directory>LICENCES</directory> |
| 200 | + </resource> |
| 201 | + </resources> |
| 202 | + </configuration> |
| 203 | + </execution> |
| 204 | + </executions> |
| 205 | + </plugin> |
| 206 | + </plugins> |
| 207 | + </build> |
| 208 | +</project> |
0 commit comments