List of usage examples for org.apache.maven.artifact DefaultArtifact getArtifactId
public String getArtifactId()
From source file:net.sf.mavenjython.JythonMojo.java
License:Apache License
private DefaultArtifact findJythonArtifact() throws MojoExecutionException { for (DefaultArtifact i : pluginArtifacts) { if (i.getArtifactId().equals("jython-standalone") && i.getGroupId().equals("org.python")) { return i; }//w ww .j a v a2s . com } throw new MojoExecutionException("org.python.jython-standalone dependency not found. " + "\n" + "Add a dependency to jython-standalone to your project: \n" + " <dependency>\n" + " <groupId>org.python</groupId>\n" + " <artifactId>jython-standalone</artifactId>\n" + " <version>2.7.0</version>\n" + " </dependency>" + "\n"); }