Skip to content

Commit 5ecd541

Browse files
committed
MECLIPSE-641 org.eclipse.jdt.core.prefs doesn't get updated with source and target version
1 parent f9441b7 commit 5ecd541

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

src/main/java/org/apache/maven/plugin/eclipse/EclipsePlugin.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1175,6 +1175,11 @@ protected void checkDeprecationsExtras()
11751175
public final void writeConfiguration( IdeDependency[] deps )
11761176
throws MojoExecutionException
11771177
{
1178+
1179+
// write additional configuration files first to allow merging with eclipse
1180+
// settings generated by other steps (MECLIPSE-641)
1181+
writeAdditionalConfig();
1182+
11781183
EclipseWriterConfig config = createEclipseWriterConfig( deps );
11791184

11801185
if ( wtpmanifest && isJavaProject() )
@@ -1227,8 +1232,6 @@ public final void writeConfiguration( IdeDependency[] deps )
12271232
// So the .project file must be written AFTER those have run!
12281233
new EclipseProjectWriter().init( getLog(), config ).write();
12291234

1230-
writeAdditionalConfig();
1231-
12321235
getLog().info( Messages.getString( "EclipsePlugin.wrote", new Object[] {
12331236
config.getEclipseProjectName(), eclipseProjectDir.getAbsolutePath() } ) );
12341237
}

0 commit comments

Comments
 (0)