摘要:
maven提供了丰富的plugins。maven是一个插件执行的框架。核心部分的描述:clean.clean插件。goal:clean清除构建时生成的文件,文件目录project.build.directory,project.build.outputDirectory,project.build.testOutputDirectory,project.reporting.outputDirectory. 使用示例忽略错误 忽略清除中的错误 命令行:mvn clean -Dmaven.clean.failOnError=false [...] maven-clean... 阅读全文
posted @ 2014-01-19 11:08
leeying
阅读(4518)
评论(0)
推荐(0)
摘要:
主pom的定义packaging:pommodules的指定dependencyManagement的指定properties的指定build或profile的设置子module的创建在主pom的文件夹下新建modulepom中指定module-name、packaging、对其余pom的依赖dependencies的指定pom打包说明:默认jar,pom、war 阅读全文
posted @ 2014-01-19 11:07
leeying
阅读(270)
评论(0)
推荐(0)
摘要:
maven的定义:项目生命周期的管理,基于plugin的开源工具。maven的生命周期各个周期的定义:如compile、test、deploy等每个生命周期指定一个或多个pluginPOM项目基本信息groupId、artifactid、version、packaging项目基本信息dependencies、dependencyManagementdependencyManagement管理项目的依赖指定,特别是多个子项目的共同依赖的管理dependencies:具体依赖的管理parent父pom的依赖说明modules多模块工程中用于各个子模块的说明。propertiesname-value 阅读全文
posted @ 2014-01-19 10:59
leeying
阅读(327)
评论(0)
推荐(0)
浙公网安备 33010602011771号