Maximo Anywhere工作执行问题 - 全部构建 - 恢复到原始app.xml后

时间:2016-08-02 18:24:42

标签: maximo-anywhere

我对AW Work Execution app.xml进行了一些更改,并运行build all并出现了一些错误。

然后我复制了原来的app.xml并运行build.all。 但是我收到了这个错误。什么是根本原因/如何解决? 感谢您的回答。

这是在Maximo Anywhere 7.6中。

建立失败

C:\ IBM \ Anywhere \ MaximoAnywhere \ build.xml:130:执行此行时发生以下错误: C:\ IBM \ Anywhere \ MaximoAnywhere \ anywhere-apps-builder.xml:816:执行此行时发生以下错误: C:\ IBM \ Anywhere \ MaximoAnywhere \ anywhere-apps-builder.xml:1053:子任务无法找到匹配项     at org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelper.java:551)     在org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:444)     在org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)     at sun.reflect.GeneratedMethodAccessor4.invoke(未知来源)     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)     at java.lang.reflect.Method.invoke(Method.java:606)     在org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)     at org.apache.tools.ant.Task.perform(Task.java:348)     在org.apache.tools.ant.Target.execute(Target.java:390)     在org.apache.tools.ant.Target.performTasks(Target.java:411)     在org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)     在org.apache.tools.ant.Project.executeTarget(Project.java:1368)     at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)     在org.apache.tools.ant.Project.executeTargets(Project.java:1251)     在org.apache.tools.ant.Main.runBuild(Main.java:809)     在org.apache.tools.ant.Main.startAnt(Main.java:217)     在org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)     在org.apache.tools.ant.launch.Launcher.main(Launcher.java:109) 引发者:C:\ IBM \ Anywhere \ MaximoAnywhere \ anywhere-apps-builder.xml:816:执行此行时发生以下错误: C:\ IBM \ Anywhere \ MaximoAnywhere \ anywhere-apps-builder.xml:1053:子任务无法找到匹配项     at org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelper.java:551)     在org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:444)     在org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)     at java.lang.reflect.Method.invoke(Method.java:606)     在org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)     at org.apache.tools.ant.Task.perform(Task.java:348)     在org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68)     at net.sf.antcontrib.logic.ForEach.executeSequential(ForEach.java:178)     在net.sf.antcontrib.logic.ForEach.execute(ForEach.java:254)     在org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)     at sun.reflect.GeneratedMethodAccessor4.invoke(未知来源)     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)     at java.lang.reflect.Method.invoke(Method.java:606)     在org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)     at org.apache.tools.ant.Task.perform(Task.java:348)     在org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68)     在net.sf.antcontrib.logic.IfTask.execute(IfTask.java:217)     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)     at java.lang.reflect.Method.invoke(Method.java:606)     在org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)     在org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:154)     在org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)     at sun.reflect.GeneratedMethodAccessor4.invoke(未知来源)     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)     at java.lang.reflect.Method.invoke(Method.java:606)     在org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)     at org.apache.tools.ant.Task.perform(Task.java:348)     在org.apache.tools.ant.Target.execute(Target.java:390)     在org.apache.tools.ant.Target.performTasks(Target.java:411)     在org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)     在org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)     在org.apache.tools.ant.Project.executeTargets(Project.java:1251)     在org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:442)     ......还有16个 引发者:C:\ IBM \ Anywhere \ MaximoAnywhere \ anywhere-apps-builder.xml:1053:子任务无法找到匹配项     at com.oopsconsultancy.xmltask.ant.XmlTask​​.processDoc(XmlTask​​.java:695)     在com.oopsconsultancy.xmltask.ant.XmlTask​​.execute(XmlTask​​.java:661)     在org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)     at sun.reflect.GeneratedMethodAccessor4.invoke(未知来源)     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)     at java.lang.reflect.Method.invoke(Method.java:606)     在org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)     at org.apache.tools.ant.Task.perform(Task.java:348)     在org.apache.tools.ant.Target.execute(Target.java:390)     在org.apache.tools.ant.Target.performTasks(Target.java:411)     在org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)     在org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)     在org.apache.tools.ant.Project.executeTargets(Project.java:1251)     在org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:442)     ... 52更多

1 个答案:

答案 0 :(得分:1)

看起来它在ANT版本中的某个地方失败了,炸毁了一个丢失的子任务。该错误与applicationdescriptor.xml有关。

您正在构建的应用程序可能没有applicationdescriptor.xml中的android环境标记。 applicationdescriptor.xml位于要构建的应用程序目录中。这是我用于执行工作的标记:

<android version="7.6"> <worklightSettings include="true"/> <security> <encryptWebResources enabled="false"/> <testWebResourcesChecksum enabled="false" ignoreFileExtensions="png, jpg, jpeg, gif, mp4, mp3"/> <publicSigningKey>Replace this text with the actual public signing key of the certificate used to sign the APK, available by using the 'Extract public signing key' wizard.</publicSigningKey> <packageName>com.WorkExecution</packageName> </security> <compressWebResources enabled="true"/> </android>