Questions Tagged With buildhttps://answers.axonivy.com/tags/build/?type=rssquestions tagged <span class="tag">build</span>enWed, 04 Sep 2019 05:43:19 -0400Maven 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-pluginbuildReload Process Model programmatically?https://answers.axonivy.com/questions/3880/reload-process-model-programmatically<p>Hi IvyTeam,</p> <p>I sometime manually replace the deployed classes by the new one. Is there anyway to tell Ivy Engine reload the Process Model contains these classes? Just like when we deploy new Process Model Version.</p> <p>FYI: I'm using Ivy Engine for my local development, everytime I build the modules, I need to copy the iar to deploy folder (or use Admin Tool to deploy), It's really take time, I want to automate it.</p>vinh_Tue, 09 Jul 2019 10:32:06 -0400https://answers.axonivy.com/questions/3880/reload-process-model-programmaticallyenginebuildivydeploymentHow 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-errormavenbuildHow 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-engineivyscriptjarbuildlibrarydeploymentApply 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 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-buildmavenbuild504 Gateway Time-out on guidelines.axonivy.com/projects/guides/wiki/Continues_Integrationhttps://answers.axonivy.com/questions/2219/504-gateway-time-out-on-guidelines-axonivy-com-projects-guides-wiki-continues_integration<p><a href="https://guidelines.axonivy.com/projects/guides/wiki/Continues_Integration">https://guidelines.axonivy.com/projects/guides/wiki/Continues_Integration</a></p> <p>I'm looking to implement unit test, integration test and continuous integration so looking for guidelines, I thought I found it but look like the wiki is not working.</p>RemiMorinFri, 25 Nov 2016 19:31:00 -0500https://answers.axonivy.com/questions/2219/504-gateway-time-out-on-guidelines-axonivy-com-projects-guides-wiki-continues_integrationtestunit-testcibuildProject 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