consider system scoped dependency in plugin.maven

This commit is contained in:
robin 2012-06-02 14:46:40 +08:00
parent 70369cb4f0
commit 6f2a924693
4 changed files with 5 additions and 3 deletions

View File

@ -19,6 +19,7 @@
<module>../commons.hibernate</module> <module>../commons.hibernate</module>
<module>../commons.wicket</module> <module>../commons.wicket</module>
<module>../commons.tapestry</module> <module>../commons.tapestry</module>
<module>../commons.product</module>
</modules> </modules>
<repositories> <repositories>
<repository> <repository>

View File

@ -155,7 +155,7 @@
<plugin> <plugin>
<groupId>com.pmease</groupId> <groupId>com.pmease</groupId>
<artifactId>plugin.maven</artifactId> <artifactId>plugin.maven</artifactId>
<version>1.0.7</version> <version>1.0.8</version>
<executions> <executions>
<execution> <execution>
<id>check-project-dependencies</id> <id>check-project-dependencies</id>

View File

@ -121,7 +121,8 @@ public class PluginUtils {
} }
public static boolean isRuntimeArtifact(Artifact artifact) { public static boolean isRuntimeArtifact(Artifact artifact) {
return artifact.getScope().equals(Artifact.SCOPE_COMPILE) || artifact.getScope().equals(Artifact.SCOPE_RUNTIME); return artifact.getScope().equals(Artifact.SCOPE_COMPILE) || artifact.getScope().equals(Artifact.SCOPE_RUNTIME)
|| artifact.getScope().equals(Artifact.SCOPE_SYSTEM);
} }
public static void writeClasspath(File file, MavenProject project, RepositorySystem repoSystem, public static void writeClasspath(File file, MavenProject project, RepositorySystem repoSystem,