You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by jv...@apache.org on 2003/01/02 14:08:28 UTC
cvs commit: jakarta-turbine-maven/src/java/org/apache/maven/project Project.java
jvanzyl 2003/01/02 05:08:28
Modified: src/java/org/apache/maven/project Project.java
Log:
o only attempt to verifiy the dependencies if a project.xml file exists.
one won't exist if you are performing a goal that generates the skeleton
of an application.
Revision Changes Path
1.54 +6 -2 jakarta-turbine-maven/src/java/org/apache/maven/project/Project.java
Index: Project.java
===================================================================
RCS file: /home/cvs/jakarta-turbine-maven/src/java/org/apache/maven/project/Project.java,v
retrieving revision 1.53
retrieving revision 1.54
diff -u -r1.53 -r1.54
--- Project.java 2 Jan 2003 01:33:30 -0000 1.53
+++ Project.java 2 Jan 2003 13:08:27 -0000 1.54
@@ -1105,7 +1105,11 @@
public void verifyDependencies()
throws RepoConfigException, UnsatisfiedDependencyException
{
- dependencyVerifier.verify();
+ // Only attempt to verify the dependencies if a project.xml file exists.
+ if ( getFile() != null )
+ {
+ dependencyVerifier.verify();
+ }
}
public DependencyVerifier getDependencyVerifier()