<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Answers to: Some libraries in Axon.ivy Libraries can not find when build with maven</title><link>https://answers.axonivy.com/questions/4400/some-libraries-in-axon-ivy-libraries-can-not-find-when-build-with-maven</link><description>&lt;p&gt;Hello Ivy Team&lt;/p&gt;
&lt;p&gt;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,&lt;/p&gt;
&lt;p&gt;&lt;img alt="alt text" src="https://answers.axonivy.com/upfiles/error3.JPG"&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt="alt text" src="https://answers.axonivy.com/upfiles/erro3.JPG"&gt;&lt;/p&gt;
&lt;p&gt;It also happen when I use DatatypeConverter class in package javax.xml.bind&lt;/p&gt;
&lt;p&gt;Please help me to resolve it.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;</description><atom:link href="https://answers.axonivy.com/questions/4400/some-libraries-in-axon-ivy-libraries-can-not-find-when-build-with-maven" rel="self"></atom:link><language>en</language><lastBuildDate>Sun, 23 Feb 2020 23:39:54 -0500</lastBuildDate><item><title>Answer by anhle</title><link>https://answers.axonivy.com/questions/4400/some-libraries-in-axon-ivy-libraries-can-not-find-when-build-with-maven/4409</link><description>&lt;p&gt;Hello Reguel Wermelinger&lt;/p&gt;
&lt;p&gt;Sorry for feedback your answer late. I checked two things:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;1) the project-build-plugin must execute the share-engine-classpath goal before the maven-compiler-plugin runs
&lt;img alt="alt text" src="https://answers.axonivy.com/upfiles/erro5.JPG"&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;second; as you had this setup already with 7.X. No I config for Ivy version 8.0.2, Designer 8.0.2, JDK 11 and build plugin 8.0.0&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;I checked two things but build maven also fail as Image I updated on my question.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">anhle</dc:creator><pubDate>Sun, 23 Feb 2020 23:39:54 -0500</pubDate><guid>https://answers.axonivy.com/questions/4400/some-libraries-in-axon-ivy-libraries-can-not-find-when-build-with-maven/4409</guid></item><item><title>Answer by Reguel Wermelinger</title><link>https://answers.axonivy.com/questions/4400/some-libraries-in-axon-ivy-libraries-can-not-find-when-build-with-maven/4405</link><description>&lt;p&gt;As the log output shows the 'maven-compiler-plugin' is being used to compile java sources that rely upon the ivy-core. &lt;/p&gt;
&lt;p&gt;As the execution fails, one can check two things:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;the &lt;code&gt;project-build-plugin&lt;/code&gt; must execute the &lt;code&gt;share-engine-classpath&lt;/code&gt; goal before the maven-compiler-plugin runs. You can check that by examining the normal maven log outputs, does the share-engine-classpath show up before the maven-compiler-plugin? are there any errors/warnings logged?: &lt;a href="http://axonivy.github.io/project-build-plugin/release/8.0/share-engine-core-classpath-mojo.html"&gt;http://axonivy.github.io/project-build-plugin/release/8.0/share-engine-core-classpath-mojo.html&lt;/a&gt; &lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;second; as you had this setup already with 7.X. Check that maven-compiler-plugin is correctly configured. Use the latest available version of the plugin and verify, that java source and target version are set to '11'. &lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;If you need more help, share the effective POM of this project &amp;gt; open 'pom.xml' in Maven Pom Editor of the Designer &amp;gt; click tab 'effective-pom'. &lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Reguel Wermelinger</dc:creator><pubDate>Wed, 19 Feb 2020 04:17:14 -0500</pubDate><guid>https://answers.axonivy.com/questions/4400/some-libraries-in-axon-ivy-libraries-can-not-find-when-build-with-maven/4405</guid></item></channel></rss>