Hi,
I want to build the tiledb-presto
with presto 340
version. To upgrade this, I have changed presto
version in pom.xml
.
<?xml version="1.0" encoding="UTF-8"?> <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/xsd/maven-4.0.0.xsd"> <parent> <artifactId>presto-root</artifactId> <groupId>io.prestosql</groupId> <version>340</version> </parent> <modelVersion>4.0.0</modelVersion> <artifactId>presto-tiledb</artifactId> <description>Presto - TileDB Connector</description> <dependencies> <dependency> <groupId>io.tiledb</groupId> <artifactId>tiledb-java</artifactId> <version>0.3.2</version> </dependency> <dependency> <groupId>io.airlift</groupId> <artifactId>bootstrap</artifactId> </dependency> <dependency> <groupId>io.airlift</groupId> <artifactId>json</artifactId> </dependency> <dependency> <groupId>io.airlift</groupId> <artifactId>log</artifactId> </dependency> <dependency> <groupId>io.airlift</groupId> <artifactId>configuration</artifactId> </dependency> <dependency> <groupId>com.google.guava</groupId> <artifactId>guava</artifactId> </dependency> <dependency> <groupId>com.google.inject</groupId> <artifactId>guice</artifactId> </dependency> <dependency> <groupId>javax.inject</groupId> <artifactId>javax.inject</artifactId> </dependency> <dependency> <groupId>com.fasterxml.jackson.core</groupId> <artifactId>jackson-databind</artifactId> </dependency> <!-- Presto SPI --> <dependency> <groupId>io.prestosql</groupId> <artifactId>presto-spi</artifactId> <scope>provided</scope> <!-- https://mvnrepository.com/artifact/commons-beanutils/commons-beanutils --> <exclusions> <exclusion> <groupId>commons-beanutils</groupId> <artifactId>commons-beanutils-core</artifactId> </exclusion> </exclusions> </dependency> <dependency> <groupId>io.airlift</groupId> <artifactId>slice</artifactId> <scope>provided</scope> </dependency> <dependency> <groupId>io.airlift</groupId> <artifactId>units</artifactId> <scope>provided</scope> </dependency> <dependency> <groupId>com.fasterxml.jackson.core</groupId> <artifactId>jackson-annotations</artifactId> <scope>provided</scope> </dependency> <!-- for testing --> <dependency> <groupId>io.prestosql</groupId> <artifactId>presto-main</artifactId> <scope>test</scope> </dependency> <dependency> <groupId>org.testng</groupId> <artifactId>testng</artifactId> <scope>test</scope> </dependency> <dependency> <groupId>io.airlift</groupId> <artifactId>testing</artifactId> <scope>test</scope> </dependency> <dependency> <groupId>com.google.code.findbugs</groupId> <artifactId>jsr305</artifactId> <optional>true</optional> </dependency> <dependency> <groupId>io.prestosql</groupId> <artifactId>presto-tpch</artifactId> <scope>test</scope> </dependency> <dependency> <groupId>io.airlift.tpch</groupId> <artifactId>tpch</artifactId> <version>0.10</version> <scope>test</scope> <!-- <version>0.10</version> --> </dependency> <dependency> <groupId>joda-time</groupId> <artifactId>joda-time</artifactId> </dependency> <!-- https://mvnrepository.com/artifact/commons-beanutils/commons-beanutils --> <dependency> <groupId>commons-beanutils</groupId> <artifactId>commons-beanutils-core</artifactId> <version>1.8.3</version> <exclusions> <exclusion> <groupId>commons-logging</groupId> <artifactId>commons-logging</artifactId> </exclusion> </exclusions> </dependency> <dependency> <groupId>io.prestosql</groupId> <artifactId>presto-tests</artifactId> <scope>test</scope> </dependency> <dependency> <groupId>org.jetbrains</groupId> <artifactId>annotations</artifactId> <scope>test</scope> </dependency> <dependency> <groupId>com.github.oshi</groupId> <artifactId>oshi-core</artifactId> <version>3.10.0</version> </dependency> </dependencies> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <configuration> <useSystemClassLoader>false</useSystemClassLoader> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-shade-plugin</artifactId> <version>3.2.1</version> <configuration> <!-- put your configurations here --> <packaging>presto-plugin</packaging> <transformers> <transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/> <transformer implementation="org.apache.maven.plugins.shade.resource.IncludeResourceTransformer"> <resource>META-INF/services/io.prestosql.spi.Plugin</resource> <file>src/main/resources/services/io.prestosql.spi.Plugin</file> </transformer> </transformers> </configuration> <executions> <execution> <phase>package</phase> <goals> <goal>shade</goal> </goals> </execution> </executions> </plugin> </plugins> </build> <profiles> <profile> <id>ci</id> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <configuration> <excludes combine.self="override" /> </configuration> </plugin> </plugins> </build> </profile> </profiles> <repositories> <repository> <id>oss.sonatype.org-snapshot</id> <url>http://oss.sonatype.org/content/repositories/snapshots</url> <releases> <enabled>false</enabled> </releases> <snapshots> <enabled>true</enabled> </snapshots> </repository> </repositories> </project>
Below is the error that I am getting:-
[WARNING] Some problems were encountered while building the effective settings [WARNING] expected START_TAG or END_TAG not TEXT (position: TEXT seen ...tps://maven.apache.org/xsd/settings-1.0.0.xsd">\n ...\n <p... @6:9) @ /home /shashikant/.m2/settings.xml, line 6, column 9 [WARNING] [INFO] Scanning for projects... [INFO] [INFO] ---------------------< io.prestosql:presto-tiledb >--------------------- [INFO] Building presto-tiledb 340 [INFO] --------------------------------[ jar ]--------------------------------- [INFO] [INFO] --- maven-enforcer-plugin:3.0.0-M3:enforce (default) @ presto-tiledb --- [INFO] Ignoring requireUpperBoundDeps in org.codehaus.plexus:plexus-utils [WARNING] Rule 0: com.github.ferstl.maven.pomenforcers.CompoundPedanticEnforcer failed with message: ################################################### # COMPOUND: One does not simply write a POM file! # ################################################### Please fix these problems: POM_SECTION_ORDER: One does not simply write a POM file! ======================================================== Your POM has to be organized this way: Actual Order | Required Order ------------------------------- - parent | modelVersion | modelVersion | + parent artifactId | artifactId description | description | + repositories dependencies | dependencies build | build profiles | profiles - repositories | DEPENDENCY_ORDER: One does not simply declare dependencies! =========================================================== Your dependencies have to be sorted this way: Actual Order | Required Order ------------------------------------------------------------------------------------------------------------------------------------------- - io.tiledb:tiledb-java:0.3.2:jar:compile | io.airlift:bootstrap:0.198:jar:compile | io.airlift:bootstrap:0.198:jar:compile | + io.airlift:configuration:0.198:jar:compile io.airlift:json:0.198:jar:compile | io.airlift:json:0.198:jar:compile io.airlift:log:0.198:jar:compile | io.airlift:log:0.198:jar:compile - io.airlift:configuration:0.198:jar:compile | + com.fasterxml.jackson.core:jackson-databind:2.10.4:jar:compile | + com.github.oshi:oshi-core:3.10.0:jar:compile | + com.google.code.findbugs:jsr305:3.0.2:jar:compile com.google.guava:guava:29.0-jre:jar:compile | com.google.guava:guava:29.0-jre:jar:compile com.google.inject:guice:4.2.3:jar:compile | com.google.inject:guice:4.2.3:jar:compile | + commons-beanutils:commons-beanutils-core:1.8.3:jar:compile | + io.tiledb:tiledb-java:0.3.2:jar:compile javax.inject:javax.inject:1:jar:compile | javax.inject:javax.inject:1:jar:compile - com.fasterxml.jackson.core:jackson-databind:2.10.4:jar:compile | + joda-time:joda-time:2.10.6:jar:compile io.prestosql:presto-spi:340:jar:provided | io.prestosql:presto-spi:340:jar:provided io.airlift:slice:0.39:jar:provided | io.airlift:slice:0.39:jar:provided io.airlift:units:1.6:jar:provided | io.airlift:units:1.6:jar:provided com.fasterxml.jackson.core:jackson-annotations:2.10.4:jar:provided | com.fasterxml.jackson.core:jackson-annotations:2.10.4:jar:provided io.prestosql:presto-main:340:jar:test | io.prestosql:presto-main:340:jar:test - org.testng:testng:6.10:jar:test | + io.prestosql:presto-tests:340:jar:test - io.airlift:testing:0.198:jar:test | - com.google.code.findbugs:jsr305:3.0.2:jar:compile | io.prestosql:presto-tpch:340:jar:test | io.prestosql:presto-tpch:340:jar:test | + io.airlift:testing:0.198:jar:test io.airlift.tpch:tpch:0.10:jar:test | io.airlift.tpch:tpch:0.10:jar:test - joda-time:joda-time:2.10.6:jar:compile | - commons-beanutils:commons-beanutils-core:1.8.3:jar:compile | - io.prestosql:presto-tests:340:jar:test | org.jetbrains:annotations:19.0.0:jar:test | org.jetbrains:annotations:19.0.0:jar:test - com.github.oshi:oshi-core:3.10.0:jar:compile | + org.testng:testng:6.10:jar:test [WARNING] Rule 5: org.apache.maven.plugins.enforcer.RequireJavaVersion failed with message: Detected JDK Version: 1.8.0-265 is not in the allowed range 11. [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 2.262 s [INFO] Finished at: 2020-09-01T17:26:47+05:30 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-enforcer-plugin:3.0.0-M3:enforce (default) on project presto-tiledb: Some Enforcer rules have fai led. Look above for specific messages explaining why the rule failed. -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException