mirror of https://github.com/apache/maven.git
o EclipsePlugin now does NOT download sources by default.
Specify -Declipse.downloadSources=true to do so. o WarMojo produces an artifact, even if exploded is specified. This makes sure that the install phase doesn't fail because there's no artifact. o DependenciesReport: add caught exception to the new thrown exception for better messages. git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@289353 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
d16508ce09
commit
c9bf147e29
|
@ -143,7 +143,7 @@ public class EclipsePlugin
|
||||||
*
|
*
|
||||||
* @parameter expression="${eclipse.downloadSources}"
|
* @parameter expression="${eclipse.downloadSources}"
|
||||||
*/
|
*/
|
||||||
private boolean downloadSources = true;
|
private boolean downloadSources = false;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Eclipse workspace directory.
|
* Eclipse workspace directory.
|
||||||
|
|
|
@ -279,7 +279,7 @@ public class DependenciesReport
|
||||||
throw new IllegalArgumentException( "Can't find a valid Maven project in the repository for the artifact ["
|
throw new IllegalArgumentException( "Can't find a valid Maven project in the repository for the artifact ["
|
||||||
+ artifact.getGroupId() + ":"
|
+ artifact.getGroupId() + ":"
|
||||||
+ artifact.getArtifactId() + ":"
|
+ artifact.getArtifactId() + ":"
|
||||||
+ artifact.getVersion() + "]." );
|
+ artifact.getVersion() + "].", e );
|
||||||
}
|
}
|
||||||
tableRow( new String[]{artifact.getGroupId(), artifact.getArtifactId(), artifact.getVersion(),
|
tableRow( new String[]{artifact.getGroupId(), artifact.getArtifactId(), artifact.getVersion(),
|
||||||
artifactProject.getDescription(),
|
artifactProject.getDescription(),
|
||||||
|
|
|
@ -314,7 +314,10 @@ public class WarMojo
|
||||||
{
|
{
|
||||||
generateExplodedWebapp();
|
generateExplodedWebapp();
|
||||||
|
|
||||||
if ( !"exploded".equals( mode ) )
|
// TODO: make a separate 'exploded' Mojo. For now,
|
||||||
|
// disable not making an artifact so the install phase
|
||||||
|
// doesn't fail.
|
||||||
|
// if ( !"exploded".equals( mode ) )
|
||||||
{
|
{
|
||||||
//generate war file
|
//generate war file
|
||||||
getLog().info( "Generating war " + warFile.getAbsolutePath() );
|
getLog().info( "Generating war " + warFile.getAbsolutePath() );
|
||||||
|
|
Loading…
Reference in New Issue