Package hudson.maven

Examples of hudson.maven.MavenEmbedder.createRepository()


            }

      private File resolvePluginFile(MavenEmbedder embedder, String artifactId, String version, String groupId, String type)
          throws MavenEmbedderException, ComponentLookupException, AbstractArtifactResolutionException {
        final Artifact jpi = embedder.createArtifact(groupId, artifactId, version, "compile"/*doesn't matter*/, type);
        embedder.resolve(jpi, Arrays.asList(embedder.createRepository("http://maven.glassfish.org/content/groups/public/","repo")),embedder.getLocalRepository());
        return jpi.getFile();
       
      }
        });
    }
View Full Code Here


            }
           
            private File resolvePluginFile(MavenEmbedder embedder, String artifactId, String version, String groupId, String type)
          throws MavenEmbedderException, ComponentLookupException, AbstractArtifactResolutionException {
        final Artifact jpi = embedder.createArtifact(groupId, artifactId, version, "compile"/*doesn't matter*/, type);
        embedder.resolve(jpi, Arrays.asList(embedder.createRepository("http://maven.glassfish.org/content/groups/public/","repo")),embedder.getLocalRepository());
        return jpi.getFile();
       
      }
        });
    }
View Full Code Here

                                    break;
                                } else {
                                    Artifact a;
                                    a = embedder.createArtifact(groupId, artifactId, version, "compile"/*doesn't matter*/, "hpi");
                                    try {
                                        embedder.resolve(a, Arrays.asList(embedder.createRepository("http://maven.glassfish.org/content/groups/public/","repo")),embedder.getLocalRepository());
                                        dependencyJar = a.getFile();
                                    } catch (AbstractArtifactResolutionException x) {
                                        // could be a wrong groupId
                                        resolutionError = x;
                                    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.