没用过maven,都是用ant,帮你顶下吧。

解决方案 »

  1.   

    <plugins>
    <plugin>
                  <groupId>org.apache.maven.plugins</groupId>
                  <artifactId>maven-antrun-plugin</artifactId>
                  <version>1.6</version>
                  <executions>
                   <execution>
                     <id>compile</id>
                     <phase>compile</phase>
                     <configuration>
                       <target>
                         <echo message="********************copy profile propertie file *************************"/>                                                                                                                                                                                    
                         <copy file="src/main/resources/forServer/deployContext_server.xml"
                               tofile="${project.build.directory}/classes/spring/deployContext.xml" overwrite="true"/>
                       </target>
                     </configuration>
                     <goals>
                       <goal>run</goal>
                     </goals>
                   </execution>
                 </executions>
             </plugin>
      

  2.   

    如果我要copy多个文件到其他文件夹里面,该怎么操作?