烟台做网站多少钱,外包网站设计哪家好,朝阳区搜索优化seosem,中国建设银行官网站金银纪念币通过maven执行eclipse application 前言命令行下运行通过maven tycho运行 前言
eclipse其实不只是一个桌面#xff08;GUI#xff09;程序#xff0c;他还可以是一个命令行程序。如果你的产品或软件是基于eclipse开发的#xff0c;并且他没有UI相关的功能#xff0c;那么… 通过maven执行eclipse application 前言命令行下运行通过maven tycho运行 前言
eclipse其实不只是一个桌面GUI程序他还可以是一个命令行程序。如果你的产品或软件是基于eclipse开发的并且他没有UI相关的功能那么就可以考虑把这些功能封装为一个独立的application这样就可以通过命令行在无界面的情况下去运行
命令行下运行
以eclipse自带的org.eclipse.equinox.p2.director为例该application主要实现了操作p2仓库的相关功能比如浏览给定仓库的内容安装指定插件到指定的eclipse中等等。
–此处假设你已经安装了eclipse sdk或p2相关的插件
# 查看该app的帮助
./eclipse -nosplash -application org.eclipse.equinox.p2.director -help# 列出给定仓库的所有插件
./eclipse -nosplash -application org.eclipse.equinox.p2.director -repository https://download.eclipse.org/releases/2022-12 -list-nosplash 表示不显示启动页 -application org.eclipse.equinox.p2.director 表示运行id为org.eclipse.equinox.p2.director的application
通过maven tycho运行
project xmlnshttp://maven.apache.org/POM/4.0.0 xmlns:xsihttp://www.w3.org/2001/XMLSchema-instance xsi:schemaLocationhttp://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsdmodelVersion4.0.0/modelVersiongroupIdcom.zhangsan.test/groupIdartifactIdproduct/artifactIdversion1.0.0-SNAPSHOT/versionpackagingpom/packagingbuildpluginManagementpluginsplugingroupIdorg.eclipse.tycho.extras/groupIdartifactIdtycho-eclipserun-plugin/artifactIdversion3.6.0/versionexecutionsexecutionidtest/idphasepackage/phasegoalsgoaleclipse-run/goal/goalsconfigurationaddDefaultDependenciestrue/addDefaultDependenciesrepositoriesrepositorylayoutp2/layouturlhttps://download.eclipse.org/releases/2021-12/url/repository/repositoriesdependenciesdependencyartifactIdorg.eclipse.platform/artifactIdtypeeclipse-feature/type/dependency/dependenciesapplicationsArgsargs-nosplash/argsargs-application/argsargsorg.eclipse.equinox.p2.director/argsargs-help/args/applicationsArgs/configuration/execution/executions/plugin/plugins/pluginManagementpluginsplugingroupIdorg.eclipse.tycho/groupIdartifactIdtycho-p2-repository-plugin/artifactIdversion3.6.0/versionconfigurationincludeAllDependenciestrue/includeAllDependenciesprofilePropertiesmacosx-bundledtrue/macosx-bundled/profileProperties/configuration/plugin/plugins/build
/project
然后执行 mvn clean verify