当前位置: 首页 > news >正文

360路由器做网站网站建设项目策划书

360路由器做网站,网站建设项目策划书,建设自己的网站有什么,wordpress页面怎么添加样式表背景 项目过程中#xff0c;对于Maven的pom.xml文件#xff0c;很多时候#xff0c;我通过各种参考、仿写#xff0c;最终做出想要的效果。 但实际心里有些迷糊#xff0c;不清楚具体哪个基础的配置所实现的效果。 今天#xff0c;特意回过头来#xff0c;了解Maven的基…背景 项目过程中对于Maven的pom.xml文件很多时候我通过各种参考、仿写最终做出想要的效果。 但实际心里有些迷糊不清楚具体哪个基础的配置所实现的效果。 今天特意回过头来了解Maven的基础知识以便以后使用起来更有条理。 最简单的Maven项目 用IntelliJ IDEA创建一个最简单的Maven项目可以看到pom.xml的内容如下 ?xml version1.0 encodingUTF-8? project xmlnshttp://maven.apache.org/POM/4.0.0xmlns:xsihttp://www.w3.org/2001/XMLSchema-instancexsi:schemaLocationhttp://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsdmodelVersion4.0.0/modelVersiongroupIdcom.nicchagil/groupIdartifactIdsimple-idea-maven-project/artifactIdversion1.0-SNAPSHOT/versionpropertiesmaven.compiler.source8/maven.compiler.sourcemaven.compiler.target8/maven.compiler.targetproject.build.sourceEncodingUTF-8/project.build.sourceEncoding/properties/project通过Windows的tree命令查看整个项目的目录结构 └─src├─main│ ├─java│ │ └─com│ │ └─nicchagil│ └─resources└─test└─java最简单的pom.xml底下的内容 通过以下操作我们可以查看上述最简单pom.xml的「Effevtive POM」 1、在「IntelliJ IDEA」中右键「pom.xml的文件内容」 2、选择「Show Effevtive POM」 查看了「Effevtive POM」查阅了其中部分节点的作用并以中文加上注释 Tips 为了提高可读性以下Effevtive POM的内容会适当删减。 !-- Effective POM for project -- !-- com.nicchagil:simple-idea-maven-project:jar:1.0-SNAPSHOT -- !-- -- !-- --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 https://maven.apache.org/xsd/maven-4.0.0.xsd!-- 指定当前pom.xml文件所遵循的Maven项目对象模型Project Object Model版本 --modelVersion4.0.0/modelVersion!-- 用于唯一标识一个公司或项目、团队等 --groupIdcom.nicchagil/groupId!-- 与groupId和version唯一标识一个项目或模块 --artifactIdsimple-idea-maven-project/artifactId!-- 唯一标识项目的版本 --version1.0-SNAPSHOT/versionproperties!-- 指定Java源代码所遵循的版本 --maven.compiler.source8/maven.compiler.source!-- 指定Java编译器生成的字节码所兼容的Java虚拟机版本 --maven.compiler.target8/maven.compiler.target!-- 指定源代码文件的字符编码 --project.build.sourceEncodingUTF-8/project.build.sourceEncoding/properties!-- 仓库 --repositoriesrepositorysnapshotsenabledfalse/enabled !-- 表示禁用对该仓库中快照版本的支持 --/snapshotsidcentral/idnameCentral Repository/nameurlhttps://repo.maven.apache.org/maven2/url !-- 这里配置的URLhttps://repo.maven.apache.org/maven2是Maven中央仓库 --/repository/repositories!-- 插件仓库 --pluginRepositoriespluginRepositoryreleasesupdatePolicynever/updatePolicy !-- 对于发布版本的更新策略为never即永远不会去检查该仓库中发布版本插件是否有更新 --/releasessnapshotsenabledfalse/enabled !-- 禁用对该仓库中快照版本插件的支持 --/snapshotsidcentral/idnameCentral Repository/nameurlhttps://repo.maven.apache.org/maven2/url/pluginRepository/pluginRepositories!-- 项目的构建过程 --build!-- 全局构建配置 --!-- 指定项目源代码的目录Maven在编译时从此目录获取源代码 --sourceDirectoryD:\idea_workspace\maven-test-project\simple-idea-maven-project\src\main\java/sourceDirectory!-- 没查到scriptSourceDirectory相应的资料 --scriptSourceDirectoryD:\idea_workspace\maven-test-project\simple-idea-maven-project\src\main\scripts/scriptSourceDirectory!-- 指定项目测试代码的目录 --testSourceDirectoryD:\idea_workspace\maven-test-project\simple-idea-maven-project\src\test\java/testSourceDirectory!-- 指定编译后的类文件的输出目录 --outputDirectoryD:\idea_workspace\maven-test-project\simple-idea-maven-project\target\classes/outputDirectory!-- 指定测试代码编译后的类文件输出目录 --testOutputDirectoryD:\idea_workspace\maven-test-project\simple-idea-maven-project\target\test-classes/testOutputDirectory!-- 项目资源文件 --resourcesresourcedirectoryD:\idea_workspace\maven-test-project\simple-idea-maven-project\src\main\resources/directory/resource/resources!-- 项目测试相关的资源文件 --testResourcestestResourcedirectoryD:\idea_workspace\maven-test-project\simple-idea-maven-project\src\test\resources/directory/testResource/testResources!-- 构建输出的目录 --directoryD:\idea_workspace\maven-test-project\simple-idea-maven-project\target/directory!-- 项目打包后生成的最终文件的名称不包含扩展名 --finalNamesimple-idea-maven-project-1.0-SNAPSHOT/finalName!-- 对插件的版本、配置等信息进行集中管理与配置。通常位于父项目中为子模块提供统一的插件配置模板。此节点的配置不会直接生效子模块需要时显示引用对应的插件才会生效 --pluginManagementplugins!-- 用于Apache Ant任务的支持 --pluginartifactIdmaven-antrun-plugin/artifactIdversion3.1.0/version/plugin!-- 用于将项目的输出和相关依赖打包成单独分发文件方便项目的分发和部署 --pluginartifactIdmaven-assembly-plugin/artifactIdversion3.6.0/version/plugin!-- 用于管理和操作项目的依赖 --pluginartifactIdmaven-dependency-plugin/artifactIdversion3.6.1/version/plugin!-- 用于简化项目的发布流程 --pluginartifactIdmaven-release-plugin/artifactIdversion3.0.1/version/plugin/plugins/pluginManagement!-- 项目构建过程中实际要用到的插件 --plugins!-- 用于清理项目构建过程中生成的文件和目录 --pluginartifactIdmaven-clean-plugin/artifactIdversion3.2.0/versionexecutionsexecutioniddefault-clean/idphaseclean/phasegoalsgoalclean/goal/goals/execution/executions/plugin!-- 用于处理项目中的资源文件。主要会将资源文件复制到指定的输出目录并可以对这些资源文件进行过滤等操作 --pluginartifactIdmaven-resources-plugin/artifactIdversion3.3.1/versionexecutionsexecutioniddefault-testResources/idphaseprocess-test-resources/phasegoalsgoaltestResources/goal/goals/executionexecutioniddefault-resources/idphaseprocess-resources/phasegoalsgoalresources/goal/goals/execution/executions/plugin!-- 用于创建JARJava Archive文件的核心插件 --pluginartifactIdmaven-jar-plugin/artifactIdversion3.3.0/versionexecutionsexecutioniddefault-jar/idphasepackage/phasegoalsgoaljar/goal/goals/execution/executions/plugin!-- 用于编译Java源代码 --pluginartifactIdmaven-compiler-plugin/artifactIdversion3.11.0/versionexecutionsexecutioniddefault-compile/idphasecompile/phasegoalsgoalcompile/goal/goals/executionexecutioniddefault-testCompile/idphasetest-compile/phasegoalsgoaltestCompile/goal/goals/execution/executions/plugin!-- 用于在项目构建过程中执行单元测试和集成测试 --pluginartifactIdmaven-surefire-plugin/artifactIdversion3.2.2/versionexecutionsexecutioniddefault-test/idphasetest/phasegoalsgoaltest/goal/goals/execution/executions/plugin!-- 用于将项目构建生成的产出如JAR文件安装到本地Maven仓库 --pluginartifactIdmaven-install-plugin/artifactIdversion3.1.1/versionexecutionsexecutioniddefault-install/idphaseinstall/phasegoalsgoalinstall/goal/goals/execution/executions/plugin!-- 用于将项目构建的产物部署到远程Maven仓库 --pluginartifactIdmaven-deploy-plugin/artifactIdversion3.1.1/versionexecutionsexecutioniddefault-deploy/idphasedeploy/phasegoalsgoaldeploy/goal/goals/execution/executions/plugin!-- 用于生成项目的站点文档 --pluginartifactIdmaven-site-plugin/artifactIdversion3.12.1/version!-- 注意因maven-site-plugin的配置内容较多为提高可读性已省略maven-site-plugin其中的配置 --!-- maven-site-plugin的配置已省略 --/plugin/plugins/build!-- 用于配置项目报告的生成的展示 --reportingoutputDirectoryD:\idea_workspace\maven-test-project\simple-idea-maven-project\target\site/outputDirectory/reporting /projectMaven的常用命令 通过阅读上文的「Effevtive POM」就容易理解我们经常使用的Maven命令其基础配置是对应上面的默认插件。 比如我们使用mvn clean命令实际起作用的是Maven的默认插件maven-clean-plugin。 Maven的常用命令 mvn clean清理项目构建生成的文件和目录mvn compile编译项目的源代码mvn test执行项目的测试mvn package将项目编译后的代码打包成可分发的格式如JAR包mvn install将项目打包后的产物安装到本地Maven仓库mvn deploy将项目打包后的产物部署到远程Maven仓库 后续 后续有时间再了解Maven项目关联的几种方式比如依赖、继承、聚合以及它们的适用场景。 最后 小弟不才学识有限如有错漏欢迎指正哈。 如果本文对你有帮助记得“一键三连”“点赞”、“评论”、“收藏”哦
http://www.hkea.cn/news/14474129/

相关文章:

  • 微信官网站国外短视频软件
  • 耒阳网站建设黄页网如何注册
  • 遵义网站建设网站公司注册流程图及时间
  • 气血不足做网站接外包活去什么平台
  • 太原论坛网站开发公司网站建设ps模板下载
  • 佛山专业建设网站平台网页制作图片模板
  • 公司让做网站违法招投标建设网站的网站
  • 没事网站建设项目规划书京津冀协同发展交通一体化规划
  • 做金融的喜欢逛哪些网站宁波公司建网站哪家好
  • iis打开网站变成下载啥前端框架可以做网站首页
  • 找个人给我做电影网站广州住房和城乡建设局官网
  • 2014山东春季高考网站建设建立企业网站的步骤
  • 公司怎么制作网站江门网站制作设计
  • 公司网站制作专业公司vps 建网站 代理
  • 企业网站推广计划专业网站建设品牌策
  • 懂福溶州做戒网站湖北省黄冈建设信息网站
  • 电商网站规划市场营销推广活动方案
  • 快速建站介绍灰色行业做网站推广
  • 网站建设中 模板下载天津建设网证件查询
  • 网站如何从后台进入企业电话查询黄页
  • 响应式网站做mip潍坊娜娜网站制作
  • 广州私人做网站综合购物网站建站
  • 商业网站的建设流程建设网站对服务器有什么要求
  • 做网站代理工作安全吗网站全局搜索如何做
  • 山西教育学会网站建设网站平台由什么搭建
  • 如何将网站建设得更好怎么样把以前做的网站删除
  • 怎样使用wordpress模板汕头关键词优化服务
  • 东莞企业制作网站百度快速收录
  • cms网站搭建好了再怎么做旅游网站html模板
  • 肇东市网站中山网络公关