Questions Tagged With mavenhttps://answers.axonivy.com/tags/maven/?type=rssquestions tagged <span class="tag">maven</span>enWed, 26 Feb 2020 05:31:35 -0500Where to find engine 'logs' using the Mac Designer?https://answers.axonivy.com/questions/4418/where-to-find-engine-logs-using-the-mac-designer<p>I've "inherited" an Axon.ivy project that I have to maintain, I've installed the Designer and I also see that the project has a pom.xml setup, so I can also build it from the command line.</p> <p>Now, the Designer I understand runs an embedded engine. Also, the pom.xml has a plugin with a goal that also downloads an engine (project-build-plugin:7.3.0:installEngine).</p> <p>Where can I find these engines? More specifically, where can I find the logs for them?</p> <p>PS: I'm running on MacOS</p>sorinWed, 26 Feb 2020 05:31:35 -0500https://answers.axonivy.com/questions/4418/where-to-find-engine-logs-using-the-mac-designerproject-build-pluginmavendesignerSome 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.ivylibraryThe hibernate jpamodelgen cannot generate entities extended from a dependency projecthttps://answers.axonivy.com/questions/4407/the-hibernate-jpamodelgen-cannot-generate-entities-extended-from-a-dependency-project<p>I have 2 project A and B. Project A dependency project B. Project B have a "ToggleableEntity" class and Project A have a "OrganizationalUnit" class</p> <p>"OrganizationalUnit" class extend "ToggleableEntity" class. When I build with maven and using hibernate jpamodelgen to generate "OrganizationalUnit_" class then ToggleableEntity missed in "OrganizationalUnit_" class</p> <p>The pom.xml file <img alt="alt text" src="https://answers.axonivy.com/upfiles/demo_3.JPG"></p> <p>The result: <img alt="alt text" src="https://answers.axonivy.com/upfiles/demo_1.png"></p> <p>The expected <img alt="alt text" src="https://answers.axonivy.com/upfiles/demo_4.JPG"></p>anhleFri, 21 Feb 2020 04:08:26 -0500https://answers.axonivy.com/questions/4407/the-hibernate-jpamodelgen-cannot-generate-entities-extended-from-a-dependency-projectmavenhibernateSome 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-mavenmavenlibraryThe maven build has problem with axis2https://answers.axonivy.com/questions/4393/the-maven-build-has-problem-with-axis2<p>Hello Ivy Team</p> <p>When I migrate from Ivy 7 to ivy 8. I have problem when build project with maven. I added Axon.ivy WS Call (Axis2) and using it to call axis2 and soap in my project.</p> <p><img alt="alt text" src="https://answers.axonivy.com/upfiles/error1.JPG"></p> <p>But when I build with maven the error displayed <img alt="alt text" src="https://answers.axonivy.com/upfiles/error2.JPG"></p> <p>Please help me to resolve it. Thanks</p>anhleTue, 18 Feb 2020 02:04:34 -0500https://answers.axonivy.com/questions/4393/the-maven-build-has-problem-with-axis2mavenwebserviceaxisThe parent tag has a error in pom.xml filehttps://answers.axonivy.com/questions/4385/the-parent-tag-has-a-error-in-pom-xml-file<p>Hi IvyTeam</p> <p>I'm migrating from Ivy 7.0.11 to Ivy 8.0.2. When I import my project, the parent tag has a error in pom.xml file</p> <p>"Plugin execution not covered by lifecycle configuration: com.axonivy.ivy.ci:project-build-plugin:8.0.1:share-engine-core-classpath (execution: default, phase: initialize)"</p> <p>and Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-dependency-plugin:3.1.1:properties (execution: iar-as-property, phase: initialize)</p> <pre><code>&lt;parent&gt; &lt;groupId&gt;axon.ivy&lt;/groupId&gt; &lt;artifactId&gt;myproject&lt;/artifactId&gt; &lt;version&gt;1.4.1&lt;/version&gt; &lt;relativePath&gt;../pom.xml&lt;/relativePath&gt; &lt;/parent&gt; </code></pre> <p>Please help me to resolve it. Thanks</p>anhleWed, 12 Feb 2020 23:08:23 -0500https://answers.axonivy.com/questions/4385/the-parent-tag-has-a-error-in-pom-xml-filemavenJacoco in Maven Buildhttps://answers.axonivy.com/questions/4312/jacoco-in-maven-build<p>Hello, I have been trying to get Jacoco to work with the maven build, because we used sonarqube to as part of our process and we need code coverage metrics. However, no matter what I do, Jacoco is always analyzing zero classes.</p> <p>Is there anything we can do for this?</p>TareqKThu, 09 Jan 2020 08:27:30 -0500https://answers.axonivy.com/questions/4312/jacoco-in-maven-buildmaventestciunit-testsupress new PMV creation when deploying with project-build-pluginhttps://answers.axonivy.com/questions/4310/supress-new-pmv-creation-when-deploying-with-project-build-plugin<p>I got a problem with Project Build Plugin, it creates new pvm all the time.</p> <p>do we have any option like redeploy=true to skip create new pvm?</p> <p>Thank you,</p> <p>Minh</p>docvominhThu, 09 Jan 2020 02:49:49 -0500https://answers.axonivy.com/questions/4310/supress-new-pmv-creation-when-deploying-with-project-build-pluginmavenproject-build-pluginExterne JARs im maven buildhttps://answers.axonivy.com/questions/4046/externe-jars-im-maven-build<p>Hi</p> <p>Bei unserem Ivyprojekt haben wir mehrere externe jar libraries (&gt; 40MB). Wir haben grad den maven/jenkins build/deployment umgesetzt. Nach dem export von IARs enthalten aber Pakette immer alle externe libraries.</p> <p>Alle Ivy Projekten waren ja mavenized und koennen maven dependencies enthalten. Damit muessen wir eigentlich im Designer nicht die externe JARs haben - die werden aus public repo automatisch heruntergeladet. </p> <p>Gibt es eine Moeglichkeit, in den target Engine die JARs irgendwie einstecken, um wir dann die JARs in in exportierte IARs nicht haben muessen ? Es wird uns die IARs groesse auf 30% Groesse reduzieren, was waere toll.</p> <p>Danke Josef</p>josef_koupalWed, 02 Oct 2019 03:55:22 -0400https://answers.axonivy.com/questions/4046/externe-jars-im-maven-buildmavenivy7xdeploymentMaven build StackOverflowErrorhttps://answers.axonivy.com/questions/3958/maven-build-stackoverflowerror<p>We can not build our IvyProject with maven and the ivy project-build-plugin. If we execute mvn compile in our ivy project the follwoing StackOverflowError happens:</p> <pre><code>[ERROR] Failed to execute goal com.axonivy.ivy.ci:project-build-plugin:7.0.4:compileProject (default-compileProject) on project astecs_core: Failed to compile project 'c:\...'.: InvocationTargetException: StackOverflowError -&gt; [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.axonivy.ivy.ci:project-build-plugin:7.0.4:compileProject (default-compileProject) on project astecs_core: Failed to compile project 'c:\...\...'. at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:215) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148) ...... Caused by: java.lang.StackOverflowError at org.eclipse.jdt.internal.compiler.lookup.TypeSystem$HashedParameterizedTypes.get (TypeSystem.java:86) at org.eclipse.jdt.internal.compiler.lookup.AnnotatableTypeSystem.getParameterizedType (AnnotatableTypeSystem.java:107) at org.eclipse.jdt.internal.compiler.lookup.AnnotatableTypeSystem.getParameterizedType (AnnotatableTypeSystem.java:124) at org.eclipse.jdt.internal.compiler.lookup.LookupEnvironment.createParameterizedType (LookupEnvironment.java:945) at org.eclipse.jdt.internal.compiler.lookup.LookupEnvironment.convertToParameterizedType (LookupEnvironment.java:486) at org.eclipse.jdt.internal.compiler.lookup.Scope.enclosingReceiverType (Scope.java:1190) at org.eclipse.jdt.internal.compiler.lookup.Scope.getBinding (Scope.java:2129) at org.eclipse.jdt.internal.compiler.ast.SingleNameReference.resolveType (SingleNameReference.java:985) at org.eclipse.jdt.internal.compiler.ast.MemberValuePair.resolveTypeExpecting (MemberValuePair.java:89) at org.eclipse.jdt.internal.compiler.ast.Annotation.resolveType (Annotation.java:830) at org.eclipse.jdt.internal.compiler.ast.ASTNode.resolveAnnotations (ASTNode.java:900) at org.eclipse.jdt.internal.compiler.ast.ASTNode.resolveAnnotations (ASTNode.java:770) at org.eclipse.jdt.internal.compiler.lookup.FieldBinding.getAnnotationTagBits (FieldBinding.java:286) ... </code></pre>josef_koupalWed, 04 Sep 2019 05:43:19 -0400https://answers.axonivy.com/questions/3958/maven-build-stackoverflowerrormavenivy7project-build-pluginbuildHow to use Gradle with Ivy projecthttps://answers.axonivy.com/questions/3730/how-to-use-gradle-with-ivy-project<p>Dear Ivy team</p> <p>Currently, our Ivy projects are using Maven as the build system, but with Maven, the build process (include testing) is very slow. And I know that by using Gradle, it will help us with this problem by boosting the build process much faster than Maven.</p> <p>So I just wanna try to apply Gradle to our Ivy projects to see how much it improves our build process. Unfortunately, I got a problem with Axon.ivy Project Build Plugin. As far as I know that we need to use "Project Build Plugin" to resolve Ivy's dependencies but that plugin doesn't support Gradle. So is there any possibility to apply Gradle with Ivy project? </p> <p>Thank in advance</p>lphieuThu, 07 Mar 2019 23:23:39 -0500https://answers.axonivy.com/questions/3730/how-to-use-gradle-with-ivy-projectmavenjavaivyHow to fix Maven build plugin failing with SSL error?https://answers.axonivy.com/questions/3326/how-to-fix-maven-build-plugin-failing-with-ssl-error<p>I'm exploring the maven build capabilities and therefore try to build the example workspace from github: <a href="https://github.com/axonivy/project-build-examples/tree/7.0">https://github.com/axonivy/project-build-examples/tree/7.0</a></p> <p>But the build fails very early when entering <code>mvn clean verify</code>:</p> <pre><code>[ERROR] Failed to execute goal com.axonivy.ivy.ci:project-build-plugin:7.0.0:installEngine (default-installEngine) on project crm: Failed to find engine download link in list page <a href="https://developer.axonivy.com/download/maven.html:">https://developer.axonivy.com/download/maven.html:</a> sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target -&gt; [Help 1] </code></pre> <p>What am I missing?</p> <p><img alt="alt text" src="https://answers.axonivy.com/upfiles/mavenCiHttpsCertError.PNG"></p>SupportIvyTeamFri, 15 Jun 2018 04:01:32 -0400https://answers.axonivy.com/questions/3326/how-to-fix-maven-build-plugin-failing-with-ssl-errormavenbuildUse a Maven-Java-Project as libraryhttps://answers.axonivy.com/questions/3243/use-a-maven-java-project-as-library<p>Can I create a maven-java project and import this project as a library project into an axon.ivy project? I am facing problems doing this. Until now I have packaged the maven-java project as a .jar file and added the jar to the axon.ivy project's build path. This works fine but we need a more convenient way. We want to reference from the axon.ivy project to the maven-java project. I have added to the axon.ivy project's pom.xml a dependency pointing to the maven-java project. But when using classes from the maven-java project in the axon.ivy project I face problems. The script tasks cannot resolve the dependencies.</p> <p>Moreover, I am wondering if it is possible to deploy war files to the axon.ivy engine?</p> <p>I would apreciate hints or recommendations?</p>phehnleThu, 26 Apr 2018 11:41:28 -0400https://answers.axonivy.com/questions/3243/use-a-maven-java-project-as-librarymavenjavaApply lombok for Ivy projecthttps://answers.axonivy.com/questions/2908/apply-lombok-for-ivy-project<p>Hello Ivy Team, As you know, lombok is using for reducing boilerplate code. But applying for Ivy project is quite very difficult:</p> <ul> <li>For the designer, it works perfectly (configuration likes eclipse)</li> <li>For maven build (using Axon.ivy Project Build Plugin), it doesn't work except I do a work-arround by using delombok plugin (<a href="https://projectlombok.org/features/delombok)">https://projectlombok.org/features/delombok)</a> </li> <li>But it's very annoying in declaration of pom file and building process:</li> <li>For details, in maven build process, it has to do:</li> </ul> <p><code> 1. backup src folder to src_temp folder. 2. delombok src (some lombok java classes are delomboked --&gt; they are using for compilation) 3. After compilation, restore 'src_temp' folder to src folder (for reverting the original source code) --&gt; if the exception occurs (for ex: compile error) --&gt; step 3 is NOT executed --&gt; So, I have to restore manually by myself (It's very annoying if build exception occurs frequently) </code> </p> <p> </p><pre><code> &lt;plugin&gt; &lt;groupid&gt;org.projectlombok&lt;/groupid&gt; &lt;artifactid&gt;lombok-maven-plugin&lt;/artifactid&gt; &lt;executions&gt; &lt;execution&gt; &lt;id&gt;lombok-code&lt;/id&gt; &lt;phase&gt;generate-sources&lt;/phase&gt; &lt;goals&gt; &lt;goal&gt;delombok&lt;/goal&gt; &lt;/goals&gt; &lt;configuration&gt; &lt;encoding&gt;UTF-8&lt;/encoding&gt; &lt;sourcedirectory&gt;src&lt;/sourcedirectory&gt; &lt;addoutputdirectory&gt;false&lt;/addoutputdirectory&gt; &lt;/configuration&gt; &lt;/execution&gt; &lt;/executions&gt; &lt;/plugin&gt; &lt;plugin&gt; &lt;artifactid&gt;maven-resources-plugin&lt;/artifactid&gt; &lt;executions&gt; &lt;execution&gt; &lt;id&gt;copy-src-to-src_temp&lt;/id&gt; &lt;phase&gt;validate&lt;/phase&gt; &lt;goals&gt; &lt;goal&gt;copy-resources&lt;/goal&gt; &lt;/goals&gt; &lt;configuration&gt; &lt;overwrite&gt;true&lt;/overwrite&gt; &lt;outputdirectory&gt;target/src_temp&lt;/outputdirectory&gt; &lt;encoding&gt;UTF-8&lt;/encoding&gt; &lt;resources&gt; &lt;resource&gt; &lt;directory&gt;src&lt;/directory&gt; &lt;include&gt;<strong>/*.java&lt;/include&gt; &lt;/resource&gt; &lt;/resources&gt; &lt;/configuration&gt; &lt;/execution&gt; &lt;execution&gt; &lt;id&gt;copy-delombok-source-to-src&lt;/id&gt; &lt;phase&gt;process-sources&lt;/phase&gt; &lt;goals&gt; &lt;goal&gt;copy-resources&lt;/goal&gt; &lt;/goals&gt; &lt;configuration&gt; &lt;overwrite&gt;true&lt;/overwrite&gt; &lt;outputdirectory&gt;src&lt;/outputdirectory&gt; &lt;encoding&gt;UTF-8&lt;/encoding&gt; &lt;resources&gt; &lt;resource&gt; &lt;directory&gt;target/generated-sources/delombok&lt;/directory&gt; &lt;include&gt;</strong>/<em>.java&lt;/include&gt; &lt;/resource&gt; &lt;/resources&gt; &lt;/configuration&gt; &lt;/execution&gt; &lt;execution&gt; &lt;id&gt;copy-src_temp-to-src-install-phase&lt;/id&gt; &lt;phase&gt;install&lt;/phase&gt; &lt;goals&gt; &lt;goal&gt;copy-resources&lt;/goal&gt; &lt;/goals&gt; &lt;configuration&gt; &lt;overwrite&gt;true&lt;/overwrite&gt; &lt;outputdirectory&gt;src&lt;/outputdirectory&gt; &lt;encoding&gt;UTF-8&lt;/encoding&gt; &lt;resources&gt; &lt;resource&gt; &lt;directory&gt;target/src_temp&lt;/directory&gt; &lt;include&gt;</em><em>/</em>.java&lt;/include&gt; &lt;/resource&gt; &lt;/resources&gt; &lt;/configuration&gt; &lt;/execution&gt; &lt;/executions&gt; &lt;/plugin&gt; </code> </pre><p></p> <p></p> <p>If you have other idea or other way for configuration, pls let me know!</p> <p>Many thanks! Hap Em,</p>Hap EmWed, 11 Oct 2017 02:42:17 -0400https://answers.axonivy.com/questions/2908/apply-lombok-for-ivy-projectmavenbuildMaven build for Ivy projecthttps://answers.axonivy.com/questions/2900/maven-build-for-ivy-project<p>Hello Ivy Team,</p> <p>Whenever i run command mvn clean install -X (in debug mode) --&gt; I saw the log:</p> <pre><code> [DEBUG] Starting ivy Engine in D:\...\...\AxonIvyEngine6.3.0 [DEBUG] Engine is running [INFO] Cleaning sources in [src_dataClasses] </code></pre> <p>Question 1: why does the build need to start "Ivy Engine" for building the code?</p> <p>My situation: I have the jenkins build central, whenever alot of project run the build at the same time --&gt; the server get a trouble with memory because alot of Ivy Engine are started.</p> <p>Question 2: when I build my Ivy project --&gt; why is the iar file include the source code inside the package?</p> <p>Thanks for answer my question!</p>Hap EmFri, 06 Oct 2017 05:55:47 -0400https://answers.axonivy.com/questions/2900/maven-build-for-ivy-projectmavenjenkinsproject-build-pluginHow to load resources in IvyProject from Java?https://answers.axonivy.com/questions/2872/how-to-load-resources-in-ivyproject-from-java<p>In typical Java EE maven project I put resources in src/main/resources and access files with getResourceAsStream().</p> <p>How to work relative to the current class has been dicussed in <a href="https://discourse.axonivy.io/t/how-to-read-file-in-resources-folder-or-webcontent-in-an-axon-ivy-project/135/2" title="this thread">this thread</a>. However, I would need an absolute way to access resources. </p> <p>Background of this question is that I would like to use <a href="http://owner.aeonbits.org/" title="owner">owner</a> config <a href="http://owner.aeonbits.org/docs/loading-strategies/" title="with fallback">with fallback</a> to a classpath property file.</p> <p>Thanks for help.</p>adamfWed, 20 Sep 2017 06:42:11 -0400https://answers.axonivy.com/questions/2872/how-to-load-resources-in-ivyproject-from-javamavenjavaLosing resources folder when compiling ivy projecthttps://answers.axonivy.com/questions/2678/losing-resources-folder-when-compiling-ivy-project<p>Hi there,</p> <p>Currently, when I use maven to build the project I have this problem.</p> <p>I have 2 projects: <strong>desk_post</strong> and <strong>desk_post_test</strong> (required desk_post)</p> <p>When I run for desk_post</p> <p>-&gt; mvn clean install </p> <p>-&gt; successful </p> <p>-&gt; created: desk_post-1.00.08.00-SNAPSHOT.iar </p> <p>-&gt; the <strong>resources</strong> folder already included in <strong>iar</strong> file <img alt="alt text" src="http://answers.axonivy.com/upfiles/iar_file.png"></p> <p>Then I run for desk_post_test</p> <p>-&gt; mvn clean test -X</p> <p>-&gt; not successful</p> <p>I open the folder <strong>desk_post_test\target\ivyBuildApp\iarJars\</strong></p> <p>I can not find the <strong>resources</strong> anymore (see the picture) <img alt="alt text" src="http://answers.axonivy.com/upfiles/create_jar.png"></p> <p>Unfortunately, I have to use that resource </p> <p>I used: <strong>Ivy 6.3.0</strong></p> <p>Do you have any idea?</p> <p>This is one log in command line:</p> <pre><code>[INFO] Compiling ivy Project... [DEBUG] Create jar 'C:\work\finform_workspace\6.3\postfinance_desk\desk_post_test\target\ivyBuildApp\iarJars\desk_post-1.00.08.00-SNAPSHOT.jar' with java binaries from ivy archive 'C:\Users\vdkhanh\.m2\repository\ch\axonivy\finform\desk_post\1.00.08.00-SNAPSHOT\desk_post-1.00.08.00-SNAPSHOT.iar' </code></pre>khanh11166Wed, 07 Jun 2017 08:22:03 -0400https://answers.axonivy.com/questions/2678/losing-resources-folder-when-compiling-ivy-projectmavenunit-testjarMaven complete setup for buildhttps://answers.axonivy.com/questions/2281/maven-complete-setup-for-build<p>Hi, I'm setting up a build environment, a simple linux. I have experience with build environment and maven.</p> <p>I try to setup a build environment instead of building final IAR from designer. I've ask a few question already: <a href="http://answers.axonivy.com/questions/2279/is-there-an-axon-ivy-repository-for-maven">http://answers.axonivy.com/questions/2279/is-there-an-axon-ivy-repository-for-maven</a><br> <a href="http://answers.axonivy.com/questions/2219/504-gateway-time-out-on-guidelines-axonivy-com-projects-guides-wiki-continues_integration">http://answers.axonivy.com/questions/2219/504-gateway-time-out-on-guidelines-axonivy-com-projects-guides-wiki-continues_integration</a></p> <ul> <li>I've read the thin document on Maven plugin: <a href="https://axonivy.github.io/project-build-plugin/release/6.4/index.html">https://axonivy.github.io/project-build-plugin/release/6.4/index.html</a></li> <li>Continuous integration here: <a href="http://developer.axonivy.com/doc/latest/DesignerGuideHtml/ivy.concepts.html#ivy-ci">http://developer.axonivy.com/doc/latest/DesignerGuideHtml/ivy.concepts.html#ivy-ci</a></li> <li>I've try (and failed) to launch example projects: <a href="https://github.com/axonivy/project-build-examples/tree/master">https://github.com/axonivy/project-build-examples/tree/master</a></li> </ul> <p>I have several idea what I need to do to get these work, but instead or forging a custom solution I would like to used a recommended one. Last thing I've try the ensureInstalledEngine was trying to download the windows version of AxonIvyEngine on my build machine. I can install the engine, is it necessary? do I need to install multiple engine to build project of multiple version? We want to get things right because this application is deploy, we have several clients on our solutions and we need to support them and do maintenance. We have to deploy new version and we want to be sure what we are doing (hence setup a controlled build environment) and avoid interference between project (like we experience in Designer). </p> <pre><code>[INFO] --- project-build-plugin:6.0.0:ensureInstalledEngine (default-ensureInstalledEngine) @ MyProject --- [INFO] Compiling project for ivy version 6.0.0 [INFO] Installed engine has version 'null' instead of expected '6.0.0' [INFO] Starting engine download from <a href="http://download.axonivy.com/6.0.0/AxonIvyEngine6.0.0.50515_Windows_x64.zip">http://download.axonivy.com/6.0.0/AxonIvyEngine6.0.0.50515_Windows_x64.zip</a> </code></pre> <p>Thanks!</p>RemiMorinMon, 12 Dec 2016 19:33:33 -0500https://answers.axonivy.com/questions/2281/maven-complete-setup-for-buildmavenbuildIs there an Axon Ivy repository for maven?https://answers.axonivy.com/questions/2279/is-there-an-axon-ivy-repository-for-maven<p>I try to setup a maven build workflow both for continuous integration and for build release. So I try to build present project with Maven but face this issue</p> <pre><code>Failed to execute goal on project MyProject: Could not resolve dependencies for project MyProject:MyProject:iar:9.0.0-SNAPSHOT: Failed to collect dependencies at ch.ivyteam.ivy.addons:ch.ivyteam.ivy.addons:iar:[6000000.0.0-SNAPSHOT,): No versions available for ch.ivyteam.ivy.addons:ch.ivyteam.ivy.addons:iar:[6000000.0.0-SNAPSHOT,) within specified range -&gt; [Help 1] </code></pre> <p>I've try several combination of version but I I think the issue is only that there is no repository know to my maven installation containing ivy.addons. </p> <p>I can hack it by installing ivy.addons locally but this kind of suck since we will have to manually install them forever, it kinda kill the idea of automatic dependence resolution if we have to install them every time. So is there a repository for Maven to download Axon dependencies?</p> <p>Thanks!</p>RemiMorinMon, 12 Dec 2016 16:09:08 -0500https://answers.axonivy.com/questions/2279/is-there-an-axon-ivy-repository-for-mavenmavenAdd 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-xmlmavenProject Build Plugin UTF-8 Encodinghttps://answers.axonivy.com/questions/2044/project-build-plugin-utf-8-encoding<p>Hi</p> <p>Is there a setting for the source encoding in the Project Build Plugin? Changing the default encoding (windows-1252) to UTF-8 results in a wrong class file.</p> <p>For example the following class</p> <pre><code>public class Test { private String test = "Hans im Glück"; } </code></pre> <p>results in the following class file</p> <pre><code>.... Hans im Glück .... </code></pre> <p>Compiling in the Designer results in the correct</p> <pre><code>... "Hans im Glück" ... </code></pre> <p>Regards</p> <p>Michael</p>MichaelFri, 23 Sep 2016 11:27:38 -0400https://answers.axonivy.com/questions/2044/project-build-plugin-utf-8-encodingmavendesignerbuildutf-8How to resolve 'missing artifact' errors on project-build-plugin examples workspacehttps://answers.axonivy.com/questions/1729/how-to-resolve-missing-artifact-errors-on-project-build-plugin-examples-workspace<p>The project-build-plugin example workspace 'compile-test' should demonstrate the CI/CD capabilities of Axon.ivy with maven. </p> <p>I'm able to load the example workspace from <a href="https://github.com/axonivy/project-build-examples/tree/master">github</a> into my workspace. But the 'test' and 'integrationTest' project has many error problem markers from maven like these:</p> <ul> <li>Missing artifact org.assertj:assertj-core:jar:3.2.0 pom.xml /crmTests line 1 Maven Dependency Problem</li> <li>VersionRangeResolutionException: No versions available for ch.ivyteam.ivy.project.demo.ci:crm:iar:[6.1.0-SNAPSHOT,) within specified range pom.xml /crmTests line 1 Maven Dependency Problem</li> </ul> <p>How do I get rid of them?</p> <p><img alt="alt text" src="http://answers.axonivy.com/upfiles/projectBuildExampleArtifactErrors.png"></p>SupportIvyTeamMon, 11 Apr 2016 16:10:59 -0400https://answers.axonivy.com/questions/1729/how-to-resolve-missing-artifact-errors-on-project-build-plugin-examples-workspacemavenbuild