Maven项目不打包*.hbm.xml文件

<build>

<finalName>basic</finalName>

<plugins>

<plugin>

<groupId>org.codehaus.mojo</groupId>

<artifactId>tomcat-maven-plugin</artifactId>

<version>1.0-beta-1</version>

<configuration>

<url>http://www.my.com:6789/manager/html</url>

<server>tomcat7</server>

</configuration>

</plugin>

</plugins>

 

<resources>

<resource>

<directory>src/main/java</directory>

<includes>

<include>**/*.hbm.xml</include>

</includes>

</resource>

<resource>

<directory>src/main/resources</directory>

<includes>

<include>**/*.xml</include>

<include>**/*.properties</include>

</includes>

</resource>

</resources>

           

</build>

<build>
		<finalName>basic</finalName>
		<plugins>
			<plugin>
				<groupId>org.codehaus.mojo</groupId>
				<artifactId>tomcat-maven-plugin</artifactId>
				<version>1.0-beta-1</version>
				<configuration>
					<server>tomcat7</server>
				</configuration>
			</plugin>
		</plugins>
		
		<resources>
			<resource>
				<directory>src/main/java</directory>
				<includes>
					<include>**/*.hbm.xml</include>
				</includes>
			</resource>
			<resource>
				<directory>src/main/resources</directory>
				<includes>
					<include>**/*.xml</include>
					<include>**/*.properties</include>
				</includes>
			</resource>
		</resources>
           
	</build>

 

你可能感兴趣的:(maven)