将Mobilefirst CLI 6.3.0升级到7.0

时间:2015-03-20 19:40:51

标签: ibm-mobilefirst mobilefirst-cli

将mobilefirst 6.3 CLI升级到mobilefirst 7.0 CLI时是否存在任何已知问题?

自动升级失败,在ubuntu 14.0.x中出现以下错误,之前它在6.3.0之前运行正常。

运行mfp build -dd

时出错
mobilefirst-cli verb cli process.argv=["/opt/ibm/MobileFirst-CLI/IBMnode/bin/node","/opt/ibm/MobileFirst-CLI/mobilefirst-cli/bin/mobilefirst-cli.js","build","-dd"]
mobilefirst-cli verb cli opts={"ddebug":true,"argv":{"remain":["build"],"cooked":["build","--ddebug"],"original":["build","-dd"]}}
mobilefirst-cli verb cli mobilefirst@7.0.0.00.20150312-0738
mobilefirst-cli verb cli node@v0.10.30
mobilefirst-cli verb ant variables -Dbasedir=/home/ubuntu/xxxxxxxxx
mobilefirst-cli verb ant variables -Dworklight.jars.dir=/opt/ibm/MobileFirst-CLI/mobilefirst-cli/node_modules/generator-worklight-server/lib
mobilefirst-cli verb ant variables -Dworklight.ant.tools.dir=/opt/ibm/MobileFirst-CLI/mobilefirst-cli/node_modules/generator-worklight-server/ant-tools
mobilefirst-cli verb ant variables -Dworklight.hostname=x.x.x.x
mobilefirst-cli verb ant variables -file=/opt/ibm/MobileFirst-CLI/mobilefirst-cli/node_modules/generator-worklight-server/lib/build.xml
mobilefirst-cli verb ant task upgrade
Buildfile: /opt/ibm/MobileFirst-CLI/mobilefirst-cli/node_modules/generator-worklight-server/lib/build.xml

upgrade:
[project-upgrader] FINE: DEBUG_PERFORM_UPGRADE
[project-upgrader] INFO: FWLST1022I: Starting to migrate the xxxxxx project from version 6.3.0.00.20150106-1717 to version 7.0.0.00.20150312-0731.

[project-upgrader] path found:6.3.0.0--->7.0.0.0
[project-upgrader] FINE: DEBUG_FOUND_PATH
[project-upgrader] ERROR: Unexpected error during upgrade: java.lang.NullPointerException
[project-upgrader]  at com.worklight.upgrader.upgraders.android.AppAndroidProGuardConfUpgrader.upgrade(AppAndroidProGuardConfUpgrader.java:57)
[project-upgrader]  at com.worklight.upgrader.WLUpgradeEngine.executeUpgrader(WLUpgradeEngine.java:368)
[project-upgrader]  at com.worklight.upgrader.WLUpgradeEngine.performUpgrade(WLUpgradeEngine.java:301)
[project-upgrader]  at com.worklight.upgrader.WLUpgradeEngine.upgradeProject(WLUpgradeEngine.java:188)
[project-upgrader]  at com.worklight.upgrader.ant.UpgraderTask.execute(UpgraderTask.java:100)
[project-upgrader]  at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
[project-upgrader]  at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
[project-upgrader]  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[project-upgrader]  at java.lang.reflect.Method.invoke(Method.java:606)
[project-upgrader]  at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
[project-upgrader]  at org.apache.tools.ant.Task.perform(Task.java:348)
[project-upgrader]  at org.apache.tools.ant.Target.execute(Target.java:392)
[project-upgrader]  at org.apache.tools.ant.Target.performTasks(Target.java:413)
[project-upgrader]  at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
[project-upgrader]  at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
[project-upgrader]  at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
[project-upgrader]  at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
[project-upgrader]  at org.apache.tools.ant.Main.runBuild(Main.java:811)
[project-upgrader]  at org.apache.tools.ant.Main.startAnt(Main.java:217)
[project-upgrader]  at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
[project-upgrader]  at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)

1 个答案:

答案 0 :(得分:1)

虽然正在根据APAR PI37526调查使用CLI的升级问题,但您可以打开PMR来跟踪它。

如果android \ native文件夹缺少project.properties文件,也可能发生错误。验证MFP项目的android \ native文件夹中是否存在此文件。

您可以使用instructions here或Google ADT的命令行工具重新生成此文件。

作为解决方法,您可以将6.3项目导入MobileFirst Studio v7.0;我至少可以确认在使用Studio时,问题中提到的升级错误不会发生,并且ProGuard文件正被添加到升级后的项目中。