Add library with pom.xml
Hi,
I just tried to add a dependency by inserting the reference found here ( https://mvnrepository.com/artifact/com.opencsv/opencsv/3.8) into the pom.xml of the project:
https://mvnrepository.com/artifact/com.opencsv/opencsv/3.8project (using Axon Ivy Designer 6.0.4)
I tried to build it with "mvn install" in the command line and got an error that the library is missing (CSVWriter cannot be resolved to a type)
Executing the following command shows me that the artifact ist downloaded.
"mvn dependency:get -Dartifact=com.opencsv:opencsv:3.8"
<code>
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building xapf_customer 1.0.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-dependency-plugin:2.8:get (default-cli) @ xapf_customer ---
[INFO] Resolving com.opencsv:opencsv:jar:3.8 with transitive dependencies
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.068 s
[INFO] Finished at: 2016-10-10T18:35:23+02:00
[INFO] Final Memory: 9M/22M
[INFO] ------------------------------------------------------------------------
</code>
Adding the library in the Axon Ivy Environment removes the errors in the IDE. But the error still exits if I want to execute a "maven install".
Is there anything I'm missing?
BR and thx,
GeraldGerald
POM File:
<code>
<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<groupId>xapf_customer_csv_export</groupId>
<artifactId>xapf_customer_csv_export</artifactId>
<version>1.0.0-SNAPSHOT</version>
<packaging>iar</packaging>
<description>Based on Template Version 1.1.0</description>
<dependencies>
<dependency>
<groupId>xapf_persistence</groupId>
<artifactId>xapf_persistence</artifactId>
<version>[1.0.0-SNAPSHOT,)</version>
<type>iar</type>
</dependency>
<dependency>
<groupId>ch.soreco.xapf.engine</groupId>
<artifactId>ch.soreco.xapf.engine</artifactId>
<version>[3.0.0-SNAPSHOT,)</version>
<type>iar</type>
</dependency>
<dependency>
<groupId>ch.soreco.xapf.masterdata</groupId>
<artifactId>ch.soreco.xapf.masterdata</artifactId>
<version>[3.0.0-SNAPSHOT,)</version>
<type>iar</type>
</dependency>
<dependency>
<groupId>xapf_archive_d3</groupId>
<artifactId>xapf_archive_d3</artifactId>
<version>[1.0.0-SNAPSHOT,)</version>
<type>iar</type>
</dependency>
<dependency>
<groupId>com.opencsv</groupId>
<artifactId>opencsv</artifactId>
<scope>compile</scope>
<type>jar</type>
<version>3.8</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>com.axonivy.ivy.ci</groupId>
<artifactId>project-build-plugin</artifactId>
<version>6.0.0</version>
<extensions>true</extensions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
</plugin>
</plugins>
</build>
</project>
</code>