Questions Tagged With libraryhttps://answers.axonivy.com/tags/library/?type=rss&user=anhlequestions tagged <span class="tag">library</span>enTue, 25 Feb 2020 05:00:38 -0500Some 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-mavenmavenlibrary