Friday, 15 May 2015

java - Converting a project to maven - dealing with additional source directories -



java - Converting a project to maven - dealing with additional source directories -

i'm converting legacy java project maven. uses ant, , has construction this:

src\mainproduct\com\mycompany src\external\com\acme\...

assuming move under src\mainproduct maven-structure (src\main\java), there way include external folder additional source directory without moving it? alternatively, how move under src\main\java\external, without changing bundle names?

have here: http://maven.apache.org/guides/mini/guide-using-one-source-directory.html

so you'd have is:

<build> <sourcedirectory>src/mainproduct</sourcedirectory> ... </build>

alternatively seek , utilize approach suggested here: maven compile multiple src directories the build-helper-plugin , documentation can found here: http://mojo.codehaus.org/build-helper-maven-plugin/

java maven

No comments:

Post a Comment