maven-eclipse-plugin configuration of directories -


maven-eclipse-plugin configuration of directories

hi, assigned add maven support existing eclipse project. source code in groovy. idea have pom.xml file specifying project parameters , dependencies , run mvn eclipse:eclipse generate necessary eclipse .project , .classpath files.

important: project has directory structure want continue using, i.e. not want switch maven structure.

i have tried solve following entries in pom file no success:

<build>   <plugins>     <plugin>       <groupid>org.apache.maven.plugins</groupid>        <artifactid>maven-eclipse-plugin</artifactid>        <version>2.9</version>        <configuration>            <sourcedirectory>src</sourcedirectory>          <outputdirectory>bin</outputdirectory>          <additionalprojectnatures>    <projectnature>org.eclipse.jdt.groovy.core.groovynature</projectnature>                    </additionalprojectnatures>        </configuration> </plugin> .... .... </build> 

i expecting create following lines in .classpath file: not. relevant entry instead is: guess sort of default.

i have tried various proposals both stackoverflow , google searches no success. think gave me progress use following command line: mvn eclipse:eclipse -doutputsirectory=bin indeed gives me desired path output in classpath file. however: mvn eclipse:eclipse -dsourcesirectory=src not work.

i new maven , although understand favors convention on configuration find difficult believe not allow configuration of kind @ all.

any idea of how can precisely specify source , output (bin) directories in .classpath file generated maven eclipse plugin?

thanks in advance.

try doing mvn eclipse:clean begin before eclipse:eclipse. here additional configuration found helpful when using groovy eclipse

<configuration> <additionalprojectnatures>     <projectnature>org.eclipse.jdt.groovy.core.groovynature</projectnature> </additionalprojectnatures> <!-- source includes helpfule allow groovy files in java folder, else eclipse might throw filtering exception --> <sourceincludes>     <sourceinclude>**/*.groovy</sourceinclude> </sourceincludes> 


Comments

Popular posts from this blog

java - activate/deactivate sonar maven plugin by profile? -

python - TypeError: can only concatenate tuple (not "float") to tuple -

java - What is the difference between String. and String.this. ? -