@ Override public void execute ( ) { if ( "pom" . equals ( project . getPackaging ( ) ) ) { return ; } File managedPath = new File ( project . getBuild ( ) . getDirectory ( ) , "src_managed" ) ; String managedPathStr = managedPath . getAbsolutePath ( ) ; if ( ! project . getCompileSourceRoots ( ) . contains ( managedPathStr ) ) { project . addCompileSourceRoot ( managedPathStr ) ; getLog ( ) . debug ( "Added source directory: " + managedPathStr ) ; } }
Adds default SBT managed sources location to Maven project .