Skip to content

Commit

Permalink
[MEAR-267] - Fixed detection of need of modification of Class-Path en…
Browse files Browse the repository at this point in the history
…try of EAR module manifest
  • Loading branch information
mabrarov committed Oct 3, 2020
1 parent 968d1f2 commit 89816ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/org/apache/maven/plugins/ear/EarMojo.java
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ private void copyModules( final JavaEEVersion javaEEVersion,
}
unpack( sourceFile, destinationFile, outdatedResources );

if ( skinnyWars && module.changeManifestClasspath() )
if ( module.changeManifestClasspath() && ( skinnyWars || module.getLibDir() == null ) )
{
changeManifestClasspath( module, destinationFile, javaEEVersion );
}
Expand All @@ -474,7 +474,7 @@ private void copyModules( final JavaEEVersion javaEEVersion,
getLog().info( "Copying artifact [" + module + "] to [" + module.getUri() + "]" );
FileUtils.copyFile( sourceFile, destinationFile );

if ( skinnyWars && module.changeManifestClasspath() )
if ( module.changeManifestClasspath() && ( skinnyWars || module.getLibDir() == null ) )
{
changeManifestClasspath( module, destinationFile, javaEEVersion );
}
Expand Down

0 comments on commit 89816ae

Please sign in to comment.