maven支持多资源路径

    maven默认生成的项目结构很多情况并不满足我们的要求,所以希望能支持非标准结构或者说支持多资源路径,故在此记录下maven配置多资源路径

 

<plugin>  

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

        <artifactId>build−helper−maven−plugin</artifactId>  
        <version>1.1</version>  
        <executions>  
          <execution>  
            <id>add−source</id>  
            <phase>generate−sources</phase>  
            <goals>  
              <goal>add−source</goal>  
            </goals>  
            <configuration>  
              <sources>  
                <source>src/java</source>  
                <source>src/java.test</source>  
              </sources>  
            </configuration>  
          </execution>  
        </executions>  
 </plugin> 

你可能感兴趣的:(java,maven)