public void artifactDiscovered(ArtifactContext ac) { try { if (p.isCanceled()) throw new ProcessCanceledException(); ArtifactInfo info = ac.getArtifactInfo(); p.setText2(info.groupId + ":" + info.artifactId + ":" + info.version); } catch (RemoteException e) { throw new RuntimeRemoteException(e); } }