<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic exec-maven-plugin does not run on jenkins in DevOps and System Administration Forum</title>
    <link>https://community.sap.com/t5/devops-and-system-administration-forum/exec-maven-plugin-does-not-run-on-jenkins/m-p/12338324#M1290</link>
    <description>&lt;P&gt;Could anyone help me with this, My jasmine javascript unit tests run successfully when i build my app in eclipse:&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;    [INFO] --- maven-install-plugin:2.3.1:install (default-install) @ sig ---
    [INFO] Installing C:\Users\C5168279\git\smsigcom.sap.solman.graphical.component.sig\SMSIG\target\sig.war to C:\Users\C5168279\.m2\repository\com\sap\solman\graphical\component\sig\1.0.0\sig-1.0.0.war
    [INFO] Installing C:\Users\C5168279\git\smsigcom.sap.solman.graphical.component.sig\SMSIG\pom.xml to C:\Users\C5168279\.m2\repository\com\sap\solman\graphical\component\sig\1.0.0\sig-1.0.0.pom
    [INFO] 
    [INFO] --- exec-maven-plugin:1.2.1:exec (default-cli) @ sig ---
    2014-02-20 17:35:35 Device API logging initialized - DEVICE
    2014-02-20 17:35:35 registerResourcePath ('', 'https://sapui5.hana.ondemand.com/resources/') -  sap.ui.ModuleSystem
    2014-02-20 17:35:35 URL prefixes set to: -  sap.ui.ModuleSystem
    2014-02-20 17:35:35   (default) : &lt;A href="https://sapui5.hana.ondemand.com/resources/" target="test_blank"&gt;https://sapui5.hana.ondemand.com/resources/&lt;/A&gt; -  sap.ui.ModuleSystem
    XMLHttpRequest cannot load &lt;A href="https://sapui5.hana.ondemand.com/resources/sap/ui/controller/library-preload.json" target="test_blank"&gt;https://sapui5.hana.ondemand.com/resources/sap/ui/controller/library-preload.json&lt;/A&gt;. Origin file:// is not allowed by Access-Control-Allow-Origin.
    2014-02-20 17:35:37 failed to preload 'sap.ui.controller.library-preload': Error: NETWORK_ERR: XMLHttpRequest Exception 101 -  sap.ui.ModuleSystem
    XMLHttpRequest cannot load &lt;A href="https://sapui5.hana.ondemand.com/resources/sap/ui/controller/library.js" target="test_blank"&gt;https://sapui5.hana.ondemand.com/resources/sap/ui/controller/library.js&lt;/A&gt;. Origin file:// is not allowed by Access-Control-Allow-Origin.
    Error: failed to load 'sap/ui/controller/library.js' from &lt;A href="https://sapui5.hana.ondemand.com/resources/sap/ui/controller/library.js:" target="test_blank"&gt;https://sapui5.hana.ondemand.com/resources/sap/ui/controller/library.js:&lt;/A&gt; 0 - Error: NETWORK_ERR: XMLHttpRequest Exception 101

file:///C:/Users/C5168279/git/smsigcom.sap.solman.graphical.component.sig/SMSIG/src/test/js_unit/AppCoreController.Test.js:1
    Runner Started.
    MainController : should check if all parameters are empty , ags_sig_app.Views.Main : Graph.checkParameters() ... 
    Failed.
    MainController : should check that the GraphID exist for Display Mode, ags_sig_app.Views.Main : Graph.checkParameters() ... 
    Failed.
    MainController : should check that the Context Parameters exist for SMUD Graph Providers, ags_sig_app.Views.Main : Graph.checkParameters() ... 
    Failed.
    MainController : should check that the GraphMode exist, ags_sig_app.Views.Main : Graph.checkParameters() ... 
    Failed.
    MainController : should check that Display scenario is ok, ags_sig_app.Views.Main : Graph.checkParameters() ... 
    Failed.
&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;&lt;STRONG&gt;BUT&lt;/STRONG&gt;, when i deploy my application in Jenkins the test case are not detected by Jenkins the exec-maven-plugin does not run on jenkins.&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;[INFO] --- maven-compiler-plugin:3.0:compile (default-compile) @ SMGC ---
[INFO] No sources to compile
[INFO] 
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ SMGC ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory d:\.jenkins\jobs\com.sap.solman.graphical.component.sig.git\workspace\gitRepo\SMSIG\src\test\resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.0:testCompile (default-testCompile) @ SMGC ---
[INFO] No sources to compile
[INFO] 
[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ SMGC ---
[INFO] No tests to run.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.676s
[INFO] Finished at: Thu Feb 20 17:23:29 CET 2014
[INFO] Final Memory: 13M/491M
[INFO] ------------------------------------------------------------------------
Finished: SUCCESS
&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;&lt;STRONG&gt;This is the plugin my pom.xml:&lt;/STRONG&gt;&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;&amp;lt;plugins&amp;gt;

                &amp;lt;!-- Run jasmine unit tests with phantomjs ************************* --&amp;gt;

                &amp;lt;plugin&amp;gt;
                    &amp;lt;groupId&amp;gt;org.codehaus.mojo&amp;lt;/groupId&amp;gt;
                    &amp;lt;artifactId&amp;gt;exec-maven-plugin&amp;lt;/artifactId&amp;gt;
                    &amp;lt;version&amp;gt;1.2.1&amp;lt;/version&amp;gt;
                    &amp;lt;executions&amp;gt;
                        &amp;lt;execution&amp;gt;
                            &amp;lt;id&amp;gt;PhantomJS Unit Testing&amp;lt;/id&amp;gt;
                            &amp;lt;phase&amp;gt;test&amp;lt;/phase&amp;gt;
                            &amp;lt;goals&amp;gt;
                                &amp;lt;goal&amp;gt;java&amp;lt;/goal&amp;gt;
                            &amp;lt;/goals&amp;gt;
                        &amp;lt;/execution&amp;gt;
                    &amp;lt;/executions&amp;gt;
                    &amp;lt;configuration&amp;gt;

                        &amp;lt;executable&amp;gt;${basedir}/src/test/phantomjs_framework/phantomjs.exe&amp;lt;/executable&amp;gt;
                        &amp;lt;arguments&amp;gt;
                            &amp;lt;argument&amp;gt;run_jasmine.js&amp;lt;/argument&amp;gt;
                            &amp;lt;argument&amp;gt;test_runner.html&amp;lt;/argument&amp;gt;
                            &amp;lt;!-- &amp;lt;argument&amp;gt;${project.build.directory}/surefire-reports&amp;lt;/argument&amp;gt; --&amp;gt;
                        &amp;lt;/arguments&amp;gt;
                        &amp;lt;workingDirectory&amp;gt;${basedir}/src/test/phantomjs_framework&amp;lt;/workingDirectory&amp;gt;
                    &amp;lt;/configuration&amp;gt;

                &amp;lt;/plugin&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;Any ideas?&lt;/P&gt;</description>
    <pubDate>Thu, 04 Feb 2021 05:41:06 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2021-02-04T05:41:06Z</dc:date>
    <item>
      <title>exec-maven-plugin does not run on jenkins</title>
      <link>https://community.sap.com/t5/devops-and-system-administration-forum/exec-maven-plugin-does-not-run-on-jenkins/m-p/12338324#M1290</link>
      <description>&lt;P&gt;Could anyone help me with this, My jasmine javascript unit tests run successfully when i build my app in eclipse:&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;    [INFO] --- maven-install-plugin:2.3.1:install (default-install) @ sig ---
    [INFO] Installing C:\Users\C5168279\git\smsigcom.sap.solman.graphical.component.sig\SMSIG\target\sig.war to C:\Users\C5168279\.m2\repository\com\sap\solman\graphical\component\sig\1.0.0\sig-1.0.0.war
    [INFO] Installing C:\Users\C5168279\git\smsigcom.sap.solman.graphical.component.sig\SMSIG\pom.xml to C:\Users\C5168279\.m2\repository\com\sap\solman\graphical\component\sig\1.0.0\sig-1.0.0.pom
    [INFO] 
    [INFO] --- exec-maven-plugin:1.2.1:exec (default-cli) @ sig ---
    2014-02-20 17:35:35 Device API logging initialized - DEVICE
    2014-02-20 17:35:35 registerResourcePath ('', 'https://sapui5.hana.ondemand.com/resources/') -  sap.ui.ModuleSystem
    2014-02-20 17:35:35 URL prefixes set to: -  sap.ui.ModuleSystem
    2014-02-20 17:35:35   (default) : &lt;A href="https://sapui5.hana.ondemand.com/resources/" target="test_blank"&gt;https://sapui5.hana.ondemand.com/resources/&lt;/A&gt; -  sap.ui.ModuleSystem
    XMLHttpRequest cannot load &lt;A href="https://sapui5.hana.ondemand.com/resources/sap/ui/controller/library-preload.json" target="test_blank"&gt;https://sapui5.hana.ondemand.com/resources/sap/ui/controller/library-preload.json&lt;/A&gt;. Origin file:// is not allowed by Access-Control-Allow-Origin.
    2014-02-20 17:35:37 failed to preload 'sap.ui.controller.library-preload': Error: NETWORK_ERR: XMLHttpRequest Exception 101 -  sap.ui.ModuleSystem
    XMLHttpRequest cannot load &lt;A href="https://sapui5.hana.ondemand.com/resources/sap/ui/controller/library.js" target="test_blank"&gt;https://sapui5.hana.ondemand.com/resources/sap/ui/controller/library.js&lt;/A&gt;. Origin file:// is not allowed by Access-Control-Allow-Origin.
    Error: failed to load 'sap/ui/controller/library.js' from &lt;A href="https://sapui5.hana.ondemand.com/resources/sap/ui/controller/library.js:" target="test_blank"&gt;https://sapui5.hana.ondemand.com/resources/sap/ui/controller/library.js:&lt;/A&gt; 0 - Error: NETWORK_ERR: XMLHttpRequest Exception 101

file:///C:/Users/C5168279/git/smsigcom.sap.solman.graphical.component.sig/SMSIG/src/test/js_unit/AppCoreController.Test.js:1
    Runner Started.
    MainController : should check if all parameters are empty , ags_sig_app.Views.Main : Graph.checkParameters() ... 
    Failed.
    MainController : should check that the GraphID exist for Display Mode, ags_sig_app.Views.Main : Graph.checkParameters() ... 
    Failed.
    MainController : should check that the Context Parameters exist for SMUD Graph Providers, ags_sig_app.Views.Main : Graph.checkParameters() ... 
    Failed.
    MainController : should check that the GraphMode exist, ags_sig_app.Views.Main : Graph.checkParameters() ... 
    Failed.
    MainController : should check that Display scenario is ok, ags_sig_app.Views.Main : Graph.checkParameters() ... 
    Failed.
&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;&lt;STRONG&gt;BUT&lt;/STRONG&gt;, when i deploy my application in Jenkins the test case are not detected by Jenkins the exec-maven-plugin does not run on jenkins.&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;[INFO] --- maven-compiler-plugin:3.0:compile (default-compile) @ SMGC ---
[INFO] No sources to compile
[INFO] 
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ SMGC ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory d:\.jenkins\jobs\com.sap.solman.graphical.component.sig.git\workspace\gitRepo\SMSIG\src\test\resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.0:testCompile (default-testCompile) @ SMGC ---
[INFO] No sources to compile
[INFO] 
[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ SMGC ---
[INFO] No tests to run.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.676s
[INFO] Finished at: Thu Feb 20 17:23:29 CET 2014
[INFO] Final Memory: 13M/491M
[INFO] ------------------------------------------------------------------------
Finished: SUCCESS
&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;&lt;STRONG&gt;This is the plugin my pom.xml:&lt;/STRONG&gt;&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;&amp;lt;plugins&amp;gt;

                &amp;lt;!-- Run jasmine unit tests with phantomjs ************************* --&amp;gt;

                &amp;lt;plugin&amp;gt;
                    &amp;lt;groupId&amp;gt;org.codehaus.mojo&amp;lt;/groupId&amp;gt;
                    &amp;lt;artifactId&amp;gt;exec-maven-plugin&amp;lt;/artifactId&amp;gt;
                    &amp;lt;version&amp;gt;1.2.1&amp;lt;/version&amp;gt;
                    &amp;lt;executions&amp;gt;
                        &amp;lt;execution&amp;gt;
                            &amp;lt;id&amp;gt;PhantomJS Unit Testing&amp;lt;/id&amp;gt;
                            &amp;lt;phase&amp;gt;test&amp;lt;/phase&amp;gt;
                            &amp;lt;goals&amp;gt;
                                &amp;lt;goal&amp;gt;java&amp;lt;/goal&amp;gt;
                            &amp;lt;/goals&amp;gt;
                        &amp;lt;/execution&amp;gt;
                    &amp;lt;/executions&amp;gt;
                    &amp;lt;configuration&amp;gt;

                        &amp;lt;executable&amp;gt;${basedir}/src/test/phantomjs_framework/phantomjs.exe&amp;lt;/executable&amp;gt;
                        &amp;lt;arguments&amp;gt;
                            &amp;lt;argument&amp;gt;run_jasmine.js&amp;lt;/argument&amp;gt;
                            &amp;lt;argument&amp;gt;test_runner.html&amp;lt;/argument&amp;gt;
                            &amp;lt;!-- &amp;lt;argument&amp;gt;${project.build.directory}/surefire-reports&amp;lt;/argument&amp;gt; --&amp;gt;
                        &amp;lt;/arguments&amp;gt;
                        &amp;lt;workingDirectory&amp;gt;${basedir}/src/test/phantomjs_framework&amp;lt;/workingDirectory&amp;gt;
                    &amp;lt;/configuration&amp;gt;

                &amp;lt;/plugin&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;Any ideas?&lt;/P&gt;</description>
      <pubDate>Thu, 04 Feb 2021 05:41:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/devops-and-system-administration-forum/exec-maven-plugin-does-not-run-on-jenkins/m-p/12338324#M1290</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2021-02-04T05:41:06Z</dc:date>
    </item>
    <item>
      <title>Re: exec-maven-plugin does not run on jenkins</title>
      <link>https://community.sap.com/t5/devops-and-system-administration-forum/exec-maven-plugin-does-not-run-on-jenkins/m-p/12338325#M1291</link>
      <description>&lt;P&gt;Not sure you'll get the right answers here. I think some maven forum or mailing list (https://maven.apache.org/mailing-lists.html) might be able to help on this&lt;/P&gt;</description>
      <pubDate>Wed, 07 Apr 2021 12:19:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/devops-and-system-administration-forum/exec-maven-plugin-does-not-run-on-jenkins/m-p/12338325#M1291</guid>
      <dc:creator>DirkLehmann</dc:creator>
      <dc:date>2021-04-07T12:19:01Z</dc:date>
    </item>
  </channel>
</rss>

