Just add this to your pom in the build
section.
<sourceDirectory>${basedir}/src</sourceDirectory>
Here’s the relevant section of the POM doc on configuring the directories.
More Related Contents:
- Can I add jars to Maven 2 build classpath without installing them?
- Including dependencies in a jar with Maven
- Controlling Maven final name of jar artifact
- Convert Existing Eclipse Project to Maven Project
- Maven parent pom vs modules pom
- Maven compile with multiple src directories
- run main class of Maven project [duplicate]
- How to configure encoding in Maven?
- Difference of Maven JAXB plugins
- JDK tools.jar as maven dependency
- How to configure JPA for testing in Maven
- How to add an extra source directory for maven to compile and include in the build jar?
- Maven: How to change path to target directory from command line?
- What is the best way to avoid maven-jar?
- “Unmappable character for encoding UTF-8” error
- Using maven to output the version number to a text file
- How to generate a graph of the dependency between all modules of a Maven project?
- Maven: How to include jars, which are not available in reps into a J2EE project?
- Maven assembly : add different version of the same artifact
- How to include local jar files in Maven project [duplicate]
- Add a dependency in Maven
- Maven dependency for Servlet 3.0 API?
- Why does Maven have such a bad rep? [closed]
- Which maven dependencies to include for spring 3.0?
- How to download SNAPSHOT version from maven SNAPSHOT repository?
- Changing packaging based on active profile in pom
- How do I execute a set of goals before my Maven plugin runs?
- List of dependency jar files in Maven
- Maven and the JOGL library?
- Maven: remove a single transitive dependency