Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Changing the Maven structure ( src/java to src/Javasource)

Tags:

java

maven

I would like to change the name src/java to src/Javasource because of some CVS concerns Is that possible ?

like image 274
Praneel PIDIKITI Avatar asked Feb 10 '11 09:02

Praneel PIDIKITI


1 Answers

Here is a sample build section of a POM that can be used to configure the directories.

<build>
    <directory>target</directory>
    <outputDirectory>target/classes</outputDirectory>
    <finalName>${artifactId}-${version}</finalName>
    <testOutputDirectory>target/test-classes</testOutputDirectory>
    <sourceDirectory>src/main/java</sourceDirectory>
    <scriptSourceDirectory>src/main/scripts</scriptSourceDirectory>
    <testSourceDirectory>src/test/java</testSourceDirectory>
    <resources>
      <resource>
        <directory>src/main/resources</directory>
      </resource>
    </resources>
    <testResources>
      <testResource>
        <directory>src/test/resources</directory>
      </testResource>
    </testResources>
</build>
like image 148
Faisal Feroz Avatar answered Oct 15 '22 10:10

Faisal Feroz