Questions Tagged With mavenhttps://answers.axonivy.com/tags/maven/?type=rss&user=Geraldquestions tagged <span class="tag">maven</span>enMon, 10 Oct 2016 18:45:47 -0400Add library with pom.xmlhttps://answers.axonivy.com/questions/2089/add-library-with-pom-xml<p>Hi,</p> <p>I just tried to add a dependency by inserting the reference found here ( <a href="https://mvnrepository.com/artifact/com.opencsv/opencsv/3.8)">https://mvnrepository.com/artifact/com.opencsv/opencsv/3.8)</a> into the pom.xml of the project (using Axon Ivy Designer 6.0.4)</p> <p>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)</p> <p>Executing the following command shows me that the artifact ist downloaded.</p> <p>"mvn dependency:get -Dartifact=com.opencsv:opencsv:3.8"</p> <p><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></p> <p>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". </p> <p>Is there anything I'm missing? </p> <p>BR and thx, Gerald</p> <p>POM File: <code> &lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;project xsi:schemalocation="http://maven.apache.org/POM/4.0.0 &amp;lt;a href=" http:="" maven.apache.org="" xsd="" maven-4.0.0.xsd""=""&gt;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"&gt; &lt;modelversion&gt;4.0.0&lt;/modelversion&gt; &lt;groupid&gt;xapf_customer_csv_export&lt;/groupid&gt; &lt;artifactid&gt;xapf_customer_csv_export&lt;/artifactid&gt; &lt;version&gt;1.0.0-SNAPSHOT&lt;/version&gt; &lt;packaging&gt;iar&lt;/packaging&gt; &lt;description&gt;Based on Template Version 1.1.0&lt;/description&gt; &lt;dependencies&gt; &lt;dependency&gt; &lt;groupid&gt;xapf_persistence&lt;/groupid&gt; &lt;artifactid&gt;xapf_persistence&lt;/artifactid&gt; &lt;version&gt;[1.0.0-SNAPSHOT,)&lt;/version&gt; &lt;type&gt;iar&lt;/type&gt; &lt;/dependency&gt; &lt;dependency&gt; &lt;groupid&gt;ch.soreco.xapf.engine&lt;/groupid&gt; &lt;artifactid&gt;ch.soreco.xapf.engine&lt;/artifactid&gt; &lt;version&gt;[3.0.0-SNAPSHOT,)&lt;/version&gt; &lt;type&gt;iar&lt;/type&gt; &lt;/dependency&gt; &lt;dependency&gt; &lt;groupid&gt;ch.soreco.xapf.masterdata&lt;/groupid&gt; &lt;artifactid&gt;ch.soreco.xapf.masterdata&lt;/artifactid&gt; &lt;version&gt;[3.0.0-SNAPSHOT,)&lt;/version&gt; &lt;type&gt;iar&lt;/type&gt; &lt;/dependency&gt; &lt;dependency&gt; &lt;groupid&gt;xapf_archive_d3&lt;/groupid&gt; &lt;artifactid&gt;xapf_archive_d3&lt;/artifactid&gt; &lt;version&gt;[1.0.0-SNAPSHOT,)&lt;/version&gt; &lt;type&gt;iar&lt;/type&gt; &lt;/dependency&gt; &lt;dependency&gt; &lt;groupid&gt;com.opencsv&lt;/groupid&gt; &lt;artifactid&gt;opencsv&lt;/artifactid&gt; &lt;scope&gt;compile&lt;/scope&gt; &lt;type&gt;jar&lt;/type&gt; &lt;version&gt;3.8&lt;/version&gt; &lt;/dependency&gt; &lt;/dependencies&gt; &lt;build&gt; &lt;plugins&gt; &lt;plugin&gt; &lt;groupid&gt;com.axonivy.ivy.ci&lt;/groupid&gt; &lt;artifactid&gt;project-build-plugin&lt;/artifactid&gt; &lt;version&gt;6.0.0&lt;/version&gt; &lt;extensions&gt;true&lt;/extensions&gt; &lt;/plugin&gt; &lt;plugin&gt; &lt;groupid&gt;org.apache.maven.plugins&lt;/groupid&gt; &lt;artifactid&gt;maven-jar-plugin&lt;/artifactid&gt; &lt;/plugin&gt; &lt;/plugins&gt; &lt;/build&gt; &lt;/project&gt;</code></p><code> </code><p><code></code></p>GeraldMon, 10 Oct 2016 18:45:47 -0400https://answers.axonivy.com/questions/2089/add-library-with-pom-xmlmaven