我正在尝试制作一个自动安装Eclipse的脚本,并使用插件 wpilib 。但是,执行
cellStyle.setVerticalAlignment(CellStyle.VERTICAL_TOP);
Mac OS High Sierra上的导致
~/Applications/Eclipse.app/Contents/MacOS/eclipse -clean -data $HOME/eclipse-workspace/ -purgeHistory -application org.eclipse.equinox.p2.director -noSplash -repository http://first.wpi.edu/FRC/roborio/release/eclipse/ -installIUs edu.wpi.first.wpilib.plugins.java.feature.feature.group
并没有安装插件。奇怪的是,一旦打开Eclipse并选择了工作区,就可以成功执行脚本:(注意我仍然收到警告)
org.eclipse.m2e.logback.configuration: The org.eclipse.m2e.logback.configuration bundle was activated before the state location was initialized. Will retry after the state location is initialized.
Installing edu.wpi.first.wpilib.plugins.java.feature.feature.group 2017.3.1.
Operation completed in 1767 ms.
我猜测错误是由于在选择工作区之前并未安装所有Eclipse依赖项。无论如何我可以在命令行中执行此操作并且没有GUI吗?
完整代码
org.eclipse.m2e.logback.configuration: The org.eclipse.m2e.logback.configuration bundle was activated before the state location was initialized. Will retry after the state location is initialized.
Installing edu.wpi.first.wpilib.plugins.java.feature.feature.group 2017.3.1.
Operation completed in 2194 ms.