Questions Tagged With libraryhttps://answers.axonivy.com/tags/library/?type=rssquestions tagged <span class="tag">library</span>enThu, 02 Jul 2020 02:52:47 -0400How do I add an additional Aspose module to my project and am I allowed to do so?https://answers.axonivy.com/questions/4628/how-do-i-add-an-additional-aspose-module-to-my-project-and-am-i-allowed-to-do-so<p>I would like to add an additional Aspose module to my Ivy project. How do I do that and is the additional module covered by the integrated Aspose licence?</p>Oliver HeerThu, 02 Jul 2020 02:52:47 -0400https://answers.axonivy.com/questions/4628/how-do-i-add-an-additional-aspose-module-to-my-project-and-am-i-allowed-to-do-soasposeivylibrarySome problems when build with maven-compiler-plugin version 3.8.0https://answers.axonivy.com/questions/4414/some-problems-when-build-with-maven-compiler-plugin-version-3-8-0<p>Hello Ivy team In my project I'm using Designer 8.0.2, Engine 8.0.2, JDK 11, project-build-plugin version 8.0.0, maven 3.6.3 and maven-compiler-plugin version 3.8.0.</p> <p>When I build project with maven I have some problems as maven cannot find class belong to reference libraries <img alt="alt text" src="https://answers.axonivy.com/upfiles/1_XmB4vbD.JPG"></p> <p><img alt="alt text" src="https://answers.axonivy.com/upfiles/2_0Ibod4O.JPG"></p> <p>Or some libraries of Axon.ivy Libraries as <img alt="alt text" src="https://answers.axonivy.com/upfiles/3_jUwKtPm.JPG"> <img alt="alt text" src="https://answers.axonivy.com/upfiles/4_u9hVbbi.JPG"></p> <p>Plugins in my pom.xml</p> <pre><code>&lt;pluginManagement&gt; &lt;plugins&gt; &lt;plugin&gt; &lt;artifactId&gt;maven-clean-plugin&lt;/artifactId&gt; &lt;version&gt;3.1.0&lt;/version&gt; &lt;configuration&gt; &lt;filesets&gt; &lt;fileset&gt; &lt;directory&gt;src_test&lt;/directory&gt; &lt;includes&gt; &lt;include&gt;**/beans/*_.java&lt;/include&gt; &lt;/includes&gt; &lt;/fileset&gt; &lt;/filesets&gt; &lt;/configuration&gt; &lt;/plugin&gt; &lt;plugin&gt; &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt; &lt;artifactId&gt;maven-resources-plugin&lt;/artifactId&gt; &lt;version&gt;3.1.0&lt;/version&gt; &lt;executions&gt; &lt;execution&gt; &lt;id&gt;process-resources&lt;/id&gt; &lt;goals&gt; &lt;goal&gt;resources&lt;/goal&gt; &lt;goal&gt;testResources&lt;/goal&gt; &lt;/goals&gt; &lt;phase&gt;process-test-resources&lt;/phase&gt; &lt;/execution&gt; &lt;/executions&gt; &lt;/plugin&gt; &lt;plugin&gt; &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt; &lt;artifactId&gt;maven-dependency-plugin&lt;/artifactId&gt; &lt;version&gt;3.1.0&lt;/version&gt; &lt;executions&gt; &lt;execution&gt; &lt;id&gt;iar-as-property&lt;/id&gt; &lt;goals&gt; &lt;goal&gt;properties&lt;/goal&gt; &lt;/goals&gt; &lt;/execution&gt; &lt;/executions&gt; &lt;/plugin&gt; &lt;plugin&gt; &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt; &lt;artifactId&gt;maven-antrun-plugin&lt;/artifactId&gt; &lt;configuration&gt; &lt;release&gt;11&lt;/release&gt; &lt;/configuration&gt; &lt;/plugin&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;${build.plugin.version}&lt;/version&gt; &lt;extensions&gt;true&lt;/extensions&gt; &lt;executions&gt; &lt;execution&gt; &lt;phase&gt;initialize&lt;/phase&gt; &lt;goals&gt; &lt;goal&gt;share-engine-core-classpath&lt;/goal&gt; &lt;/goals&gt; &lt;/execution&gt; &lt;execution&gt; &lt;id&gt;default-ivy-test-properties&lt;/id&gt; &lt;configuration&gt; &lt;skipTest&gt;true&lt;/skipTest&gt; &lt;/configuration&gt; &lt;/execution&gt; &lt;/executions&gt; &lt;/plugin&gt; &lt;plugin&gt; &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt; &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt; &lt;version&gt;3.8.0&lt;/version&gt; &lt;configuration&gt; &lt;release&gt;11&lt;/release&gt; &lt;/configuration&gt; &lt;dependencies&gt; &lt;dependency&gt; &lt;groupId&gt;org.ow2.asm&lt;/groupId&gt; &lt;artifactId&gt;asm&lt;/artifactId&gt; &lt;version&gt;6.2&lt;/version&gt; &lt;/dependency&gt; &lt;/dependencies&gt; &lt;executions&gt; &lt;execution&gt; &lt;id&gt;process-meta-model&lt;/id&gt; &lt;goals&gt; &lt;goal&gt;compile&lt;/goal&gt; &lt;/goals&gt; &lt;phase&gt;generate-sources&lt;/phase&gt; &lt;configuration&gt; &lt;classpathElements&gt;${maven.processor.classpath}&lt;/classpathElements&gt; &lt;annotationProcessorPaths&gt; &lt;path&gt; &lt;groupId&gt;org.hibernate&lt;/groupId&gt; &lt;artifactId&gt;hibernate-jpamodelgen&lt;/artifactId&gt; &lt;version&gt;5.4.12.Final&lt;/version&gt; &lt;/path&gt; &lt;/annotationProcessorPaths&gt; &lt;proc&gt;only&lt;/proc&gt; &lt;includes&gt; &lt;include&gt;**/beans/*&lt;/include&gt; &lt;/includes&gt; &lt;generatedSourcesDirectory&gt;${project.build.directory}/.apt_generated&lt;/generatedSourcesDirectory&gt; &lt;/configuration&gt; &lt;/execution&gt; &lt;execution&gt; &lt;id&gt;process-test-meta-model&lt;/id&gt; &lt;goals&gt; &lt;goal&gt;testCompile&lt;/goal&gt; &lt;/goals&gt; &lt;phase&gt;generate-test-sources&lt;/phase&gt; &lt;configuration&gt; &lt;classpathElements&gt;${project.build.outputDirectory},${maven.processor.classpath},${org.jmockit:jmockit:jar},${junit:junit:jar},${org.hamcrest:hamcrest-core:jar},${log4j:log4j:jar}&lt;/classpathElements&gt; &lt;annotationProcessorPaths&gt; &lt;path&gt; &lt;groupId&gt;org.hibernate&lt;/groupId&gt; &lt;artifactId&gt;hibernate-jpamodelgen&lt;/artifactId&gt; &lt;version&gt;5.4.12.Final&lt;/version&gt; &lt;/path&gt; &lt;/annotationProcessorPaths&gt; &lt;proc&gt;only&lt;/proc&gt; &lt;includes&gt; &lt;include&gt;**/beans/*&lt;/include&gt; &lt;/includes&gt; &lt;generatedTestSourcesDirectory&gt;${project.build.testSourceDirectory}&lt;/generatedTestSourcesDirectory&gt; &lt;/configuration&gt; &lt;/execution&gt; &lt;/executions&gt; &lt;/plugin&gt; &lt;plugin&gt; &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt; &lt;artifactId&gt;maven-release-plugin&lt;/artifactId&gt; &lt;version&gt;3.0.0-M1&lt;/version&gt; &lt;configuration&gt; &lt;checkModificationExcludes&gt; &lt;checkModificationExclude&gt;${project}/pom.xml&lt;/checkModificationExclude&gt; &lt;/checkModificationExcludes&gt; &lt;commitByProject&gt;true&lt;/commitByProject&gt; &lt;autoversionsubmodules&gt;true&lt;/autoversionsubmodules&gt; &lt;/configuration&gt; &lt;/plugin&gt; &lt;/plugins&gt; &lt;/pluginManagement&gt; </code></pre> <p>Please help me to resolve it. Thanks</p>anhleTue, 25 Feb 2020 05:00:38 -0500https://answers.axonivy.com/questions/4414/some-problems-when-build-with-maven-compiler-plugin-version-3-8-0mavenaxon.ivylibrarySome libraries in Axon.ivy Libraries can not find when build with mavenhttps://answers.axonivy.com/questions/4400/some-libraries-in-axon-ivy-libraries-can-not-find-when-build-with-maven<p>Hello Ivy Team</p> <p>I'm using project-build-plugin with version 8.0.0 in my project But when I build project by maven. The maven can not find some packages in Axon.ivy Libraries EX: ch.ivyteam.ivy.environment,</p> <p><img alt="alt text" src="https://answers.axonivy.com/upfiles/error3.JPG"></p> <p><img alt="alt text" src="https://answers.axonivy.com/upfiles/erro3.JPG"></p> <p>It also happen when I use DatatypeConverter class in package javax.xml.bind</p> <p>Please help me to resolve it.</p> <p>Thanks</p>anhleTue, 18 Feb 2020 05:17:08 -0500https://answers.axonivy.com/questions/4400/some-libraries-in-axon-ivy-libraries-can-not-find-when-build-with-mavenmavenlibraryUse Axon.ivy Engine libraries in a plain Java process (Not Supported)https://answers.axonivy.com/questions/3483/use-axon-ivy-engine-libraries-in-a-plain-java-process-not-supported<p>Hi everybody,</p> <p>In my project in designer 7.0.8 I've Axon.ivy Libraries who are available.</p> <p>Like commons-io-2.5.jar from apache.</p> <p>I'm using a class from this jar, in designer it works fine.</p> <p>But when I'm starting my project into the engine I get a classpath exception.</p> <p>I searched into the Engine documentation and plugins / lib - this jar is not present.</p> <p>How can I solve this problem? and why are not all the Axon.ivy libraries who are in Designer in the classpath not present in the Engine? What should we do, manually copy all the jars into the engine and add them into the classpath or as a plugins? in version 6 there were available.</p> <p>It's weird because now we have Axon.ivy Libraries (who are provided in all projects) and optional classpaths to add like Axis or Drools libraries. All the libraries contained into the optional classpaths are present in the Engine plugins directory. But the Axon.ivy Libraries who are automatically available in the Designer without adding extra classpath containers are not all available... It sounds so weird to me...</p> <p>Thanks for the information and cheers, Axon Ivy Developer</p>AxonIvyDeveloperWed, 17 Oct 2018 03:05:27 -0400https://answers.axonivy.com/questions/3483/use-axon-ivy-engine-libraries-in-a-plain-java-process-not-supportedenginedesignerlibraryHow to use own library which is already in designerhttps://answers.axonivy.com/questions/3272/how-to-use-own-library-which-is-already-in-designer<p>Hello everybody, there is a library gson-2.2.4.jar included in Ivy. We need to use newer version because of some functions. we try to use external .jar like in other cases, but in this case the library included in ivy is always used. </p> <p>How can we simply priorise (override) own library version<img alt="alt text" src="https://answers.axonivy.com/upfiles/gson.png">?</p>tauserThu, 17 May 2018 01:15:02 -0400https://answers.axonivy.com/questions/3272/how-to-use-own-library-which-is-already-in-designerivylibraryHow to properly integrate and deploy a third-party library in an ivy project and deploy it to the engine?https://answers.axonivy.com/questions/2953/how-to-properly-integrate-and-deploy-a-third-party-library-in-an-ivy-project-and-deploy-it-to-the-engine<p>Hi,</p> <p>we've modeled a process where some IvyScript tasks make use of a third-party library. For usage in the ivy Designer we just added it to our ivy project and it worked. But whenever we try to deploy everything to the engine we get an error which says that a class from the mentioned library is not available. </p> <p>Hence, my question is: What is the standard workflow to integrate and deploy third-party libraries properly? Do we have to add them manually to some special engine folder (I'm just wondering because I've found some lib folders)?</p> <p>Thank you very much in advance and kind regards, Lars</p>LaAckFri, 03 Nov 2017 08:56:59 -0400https://answers.axonivy.com/questions/2953/how-to-properly-integrate-and-deploy-a-third-party-library-in-an-ivy-project-and-deploy-it-to-the-engineivyscriptjarbuildlibrarydeploymentAttach Java source in Axon.ivy Designer 6.3https://answers.axonivy.com/questions/2899/attach-java-source-in-axon-ivy-designer-6-3<p>Hi everyone, I have an issue with attaching Java source in Axon.ivy Designer 6.3.<br> When I <em>Ctrl + Click</em> or <em>F3</em> on a class name, Designer will open a Class File Editor with <strong>Attach Source...</strong> button. And it seems working when I use that function to attach source of external libraries (e.g. <code>org.apache.commons.collections4.CollectionUtils</code>) but the problem is when I restart or exit and start Designer, the source is not there and I have to attach it again.<br> Could you please help me on this? Thank you.</p>Bao TranFri, 06 Oct 2017 00:10:05 -0400https://answers.axonivy.com/questions/2899/attach-java-source-in-axon-ivy-designer-6-3eclipsedesignerjavalibraryWhy there are two guava JARs in Axon.ivy engine's lib/shared?https://answers.axonivy.com/questions/1762/why-there-are-two-guava-jars-in-axon-ivy-engine-s-lib-shared<p>Hi Ivy team</p> <p>Our team are about to use Guava in our project. The version we use is 19.0. When we test on Axon.ivy Designer, everything works just fine. However, when we deploy on engine, it get exception at runtime:</p> <p><code>Caused by: java.lang.NoSuchMethodError: com.google.common.collect.Range.closed(Ljava/lang/Comparable;Ljava/lang/Comparable;)Lcom/google/common/collect/Range;</code></p> <p>After digging around, we discovered that there are 2 jars of guava in Axon.ivy engine's <code>lib/shared</code> directory: <code>guava-16.0.1.jar</code> and <code>guava-11.0.2.jar</code>. At runtime, somehow Axon.ivy Engine chooses to load <code>guava-11.0.2.jar</code> and ignore the other jar.</p> <p>My questions are:</p> <ul> <li>Why there two jars of two different version?</li> <li>Is there anyway we can use <code>guava-19.0</code> without overriding Axon.ivy engine's <code>lib/shared</code>?</li> </ul>Genzer HawkerTue, 10 May 2016 12:47:55 -0400https://answers.axonivy.com/questions/1762/why-there-are-two-guava-jars-in-axon-ivy-engine-s-lib-sharedjarlibraryconflict