List of usage examples for org.apache.maven.artifact DefaultArtifact getGroupId
public String getGroupId()
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; }/*from w w w . j ava 2 s .c om*/ } 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"); }