scala - Unable to get artifact com.elsevier:spark-xml-utils:jar:1.6.0 -
i trying utilize capabilities provided spark-xml-utils library within apache spark application. unable spark-xml-utils library in mavenized spark-scala project. pom.xml config is: -
<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"> <modelversion>4.0.0</modelversion> <groupid>com.alpha.beta</groupid> <artifactid>spark2</artifactid> <version>0.0.1-snapshot</version> <pluginrepositories> <pluginrepository> <id>scala-tools.org</id> <name>scala-tools maven2 repository</name> <url>http://scala-tools.org/repo-releases</url> </pluginrepository> </pluginrepositories> <name>spark2</name> <url>http://maven.apache.org</url> <properties> <project.build.sourceencoding>utf-8</project.build.sourceencoding> </properties> <dependencies> <dependency> <groupid>junit</groupid> <artifactid>junit</artifactid> <version>3.8.1</version> <scope>test</scope> </dependency> <dependency> <groupid>org.apache.spark</groupid> <artifactid>spark-core_2.10</artifactid> <version>1.4.0</version> </dependency> <!-- https://mvnrepository.com/artifact/org.apache.spark/spark-sql_2.10 --> <dependency> <groupid>org.apache.spark</groupid> <artifactid>spark-sql_2.10</artifactid> <version>1.4.0</version> </dependency> <!-- https://mvnrepository.com/artifact/com.databricks/spark-csv_2.10 --> <dependency> <groupid>com.databricks</groupid> <artifactid>spark-csv_2.10</artifactid> <version>1.4.0</version> </dependency> <!-- https://mvnrepository.com/artifact/elsevierlabs-os/spark-xml-utils --> <dependency> <groupid>com.elsevier</groupid> <artifactid>spark-xml-utils</artifactid> <version>1.6.0</version> </dependency> </dependencies> <build> <plugins> <!-- mixed scala/java compile --> <plugin> <groupid>org.scala-tools</groupid> <artifactid>maven-scala-plugin</artifactid> <executions> <execution> <id>compile</id> <goals> <goal>compile</goal> </goals> <phase>compile</phase> </execution> <execution> <id>test-compile</id> <goals> <goal>testcompile</goal> </goals> <phase>test-compile</phase> </execution> <execution> <phase>process-resources</phase> <goals> <goal>compile</goal> </goals> </execution> </executions> </plugin> <plugin> <artifactid>maven-compiler-plugin</artifactid> <configuration> <source>1.7</source> <target>1.7</target> </configuration> </plugin> <!-- fatjar --> <plugin> <groupid>org.apache.maven.plugins</groupid> <artifactid>maven-assembly-plugin</artifactid> <version>2.4</version> <configuration> <descriptorrefs> <descriptorref>jar-with-dependencies</descriptorref> </descriptorrefs> </configuration> <executions> <execution> <id>assemble-all</id> <phase>package</phase> <goals> <goal>single</goal> </goals> </execution> </executions> </plugin> <plugin> <groupid>org.apache.maven.plugins</groupid> <artifactid>maven-jar-plugin</artifactid> <configuration> <archive> <manifest> <addclasspath>true</addclasspath> <mainclass>fully.qualified.mainclass</mainclass> </manifest> </archive> </configuration> </plugin> </plugins> <pluginmanagement> <plugins> <!--this plugin's configuration used store eclipse m2e settings only. has no influence on maven build itself. --> <plugin> <groupid>org.eclipse.m2e</groupid> <artifactid>lifecycle-mapping</artifactid> <version>1.0.0</version> <configuration> <lifecyclemappingmetadata> <pluginexecutions> <pluginexecution> <pluginexecutionfilter> <groupid>org.scala-tools</groupid> <artifactid> maven-scala-plugin </artifactid> <versionrange> [2.15.2,) </versionrange> <goals> <goal>compile</goal> <goal>testcompile</goal> </goals> </pluginexecutionfilter> <action> <execute /> </action> </pluginexecution> </pluginexecutions> </lifecyclemappingmetadata> </configuration> </plugin> </plugins> </pluginmanagement> </build> </project>
i missing artifact com.elsevier:spark-xml-utils:jar:1.6.0 error. doing wrong? sure it's not network or firewall issue.
the group id wrong -it should elsevierlabs-os not com.elsevier
<dependency> <groupid>elsevierlabs-os</groupid> <artifactid>spark-xml-utils</artifactid> <version>1.6.0</version> </dependency>
Comments
Post a Comment