大型Java项目中使用maven进行管理,pom.xml文件中build的配置
来源:互联网 发布:淘宝优惠券包括定金 编辑:程序博客网 时间:2024/05/17 22:54
这个配置文件是做某个国外的汽车网站的配置文件, 其中在build模块中, 用了些插件,是发布更加便利。
通过注释进行了简单介绍。
- <build>
- <finalName>dealerportal</finalName>
- <!--
- 设置过滤文件的位置,过滤文件主要的作用是用来把过滤文件中的属性值替换被过滤文件的相同的值,
- 好处是可以在项目发布的时候灵活地配置程序 -->
- <filters>
- <filter>src/main/filters/filter.properties</filter>
- </filters>
- <!--
- resources :
- 表示发布时要打包的资源文件,需要指明,这样才会打到包中去.
- -->
- <resources>
- <resource>
- <directory>src/main/resources</directory>
- </resource>
- <resource>
- <directory>src/main/resources</directory>
- <includes>
- <include>application.properties</include>
- </includes>
- <filtering>true</filtering>
- </resource>
- </resources>
- <!--
- Maven 插件,用来更具domain对象生成ddl
- -->
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-compiler-plugin</artifactId>
- <version>2.0.1</version>
- <configuration>
- <source>1.5</source>
- <target>1.5</target>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>hibernate3-maven-plugin</artifactId>
- <version>2.0-alpha-2</version>
- <configuration>
- <components>
- <component>
- <name>hbm2ddl</name>
- <!-- 数据库ddl生成后的目录 -->
- <outputDirectory>target/sql</outputDirectory>
- </component>
- </components>
- </configuration>
- <executions>
- <execution>
- <phase>process-test-resources</phase>
- <goals>
- <goal>hbm2ddl</goal>
- </goals>
- <configuration>
- <componentProperties>
- <!-- 这里根据hibernate.properties 及 hibernate.cfg.xml
- 来找具体的domain对象, 以及生成ddl时的数据库dialect
- -->
- <propertyfile>src/main/resources/hibernate.properties</propertyfile>
- <configurationfile>src/main/resources/hibernate.cfg.xml</configurationfile>
- <drop>false</drop>
- <create>false</create>
- <update>false</update>
- <export>false</export>
- <!-- 生成后的ddl文件名 -->
- <outputfilename>schema.sql</outputfilename>
- <format>true</format>
- </componentProperties>
- </configuration>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-resources-plugin</artifactId>
- <version>2.2</version>
- </plugin>
- <!-- 使用 TestNG 进行测试的插件 -->
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-surefire-plugin</artifactId>
- <version>2.4-SNAPSHOT</version>
- <configuration>
- <suiteXmlFiles>
- <!-- 指明了tesgng.xml的位置 -->
- <suiteXmlFile>src/test/resources/testng.xml</suiteXmlFile>
- </suiteXmlFiles>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>aspectj-maven-plugin</artifactId>
- <version>1.0-beta-2</version>
- <configuration>
- <verbose>true</verbose>
- <complianceLevel>1.5</complianceLevel>
- <source>1.5</source>
- <showWeaveInfo>true</showWeaveInfo>
- <outxml>true</outxml>
- <aspectLibraries>
- <aspectLibrary>
- <groupId>org.springframework</groupId>
- <artifactId>spring-aspects</artifactId>
- </aspectLibrary>
- </aspectLibraries>
- <includes>
- <include>**/*.java</include>
- </includes>
- </configuration>
- <executions>
- <execution>
- <goals>
- <goal>compile</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- <!-- Axistools maven plugin -->
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>axistools-maven-plugin</artifactId>
- <version>1.1</version>
- <configuration>
- <sourceDirectory>src/main/wsdl</sourceDirectory>
- <packageSpace>com.trilogy.dealerportal.ws</packageSpace>
- <testCases>false</testCases>
- <serverSide>false</serverSide>
- <subPackageByFileName>true</subPackageByFileName>
- <outputDirectory>target/generated-sources</outputDirectory>
- <timestampDirectory>target/wsdl</timestampDirectory>
- </configuration>
- <executions>
- <execution>
- <goals>
- <goal>wsdl2java</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
- 大型Java项目中使用maven进行管理,pom.xml文件中build的配置
- Maven的pom.xml文件中build配置介绍
- maven中pom.xml文件的使用
- Maven中Pom文件打包配置build
- Maven中Pom文件打包配置build
- Maven的pom.xml文件结构之Build配置build
- Maven的pom.xml文件结构之Build配置build
- Maven的pom.xml文件结构之Build配置build
- pom.xml build中Java和资源文件源的配置
- Maven的pom.xml文件结构之Build配置reporting
- pom.xml中maven-compiler-plugin插件配置的使用
- JAVA MAVEN POM.XML中关于ANT的配置
- maven项目中pom.xml
- maven项目中pom.xml
- Maven项目管理配置pom.xml留存
- maven build时pom文件中添加的设置
- 使用Maven管理Mybatis项目之pom文件配置
- Maven管理SSM框架的pom.xml文件配置
- 人生故事
- 使用JAVA发送HTTP请求(Http Request),返回HTTP响应(Http Response)内容,代码程序例子及原理说明
- TopCoder教程
- LINQ Introduction Part 1 Of 3 By Sacha Barber(Refer from codeproject)
- 有声书下载网站.
- 大型Java项目中使用maven进行管理,pom.xml文件中build的配置
- 两个EBS的网址:
- db查重复记录
- 体验鸟巢
- 包含点集所有点的最小圆的算法
- 学习。。。去回车,再转换回来。
- 58届世界小姐大连大赛现场
- c
- Delphi版Ocx制作CAB