mirror of https://github.com/apache/maven.git
reinstate exploded mode - recommend use from the command line only, add deprecation warning
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@289514 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
df44d4ed84
commit
d2b20bea06
|
@ -54,7 +54,7 @@ public class WarMojo
|
|||
* The mode to use. Possible values are: war (default), inplace
|
||||
* and exploded.
|
||||
*
|
||||
* @parameter
|
||||
* @parameter expression="${mode}"
|
||||
*/
|
||||
private String mode = "war";
|
||||
|
||||
|
@ -317,7 +317,7 @@ public class WarMojo
|
|||
// TODO: make a separate 'exploded' Mojo. For now,
|
||||
// disable not making an artifact so the install phase
|
||||
// doesn't fail.
|
||||
// if ( !"exploded".equals( mode ) )
|
||||
if ( !"exploded".equals( mode ) )
|
||||
{
|
||||
//generate war file
|
||||
getLog().info( "Generating war " + warFile.getAbsolutePath() );
|
||||
|
@ -339,6 +339,10 @@ public class WarMojo
|
|||
|
||||
project.getArtifact().setFile( warFile );
|
||||
}
|
||||
else
|
||||
{
|
||||
getLog().warn( "Exploded mode will be deprecated in the next release. It is not compatible with install/deploy goals" );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue