Package org.jboss.forge.addon.maven.projects

Examples of org.jboss.forge.addon.maven.projects.MavenPluginFacet.addPluginRepository()


   @Test
   public void testAddPluginRepository()
   {
      MavenPluginFacet facet = project.getFacet(MavenPluginFacet.class);
      // SUT
      facet.addPluginRepository(REPOSITORY_ID, REPOSITORY_URL);
      MavenFacet mavenFacet = project.getFacet(MavenFacet.class);
      Model model = mavenFacet.getModel();
      Assert.assertEquals(1, model.getPluginRepositories().size());
      Assert.assertTrue(model.getProfiles().isEmpty());
      assertRepositoryMatch(REPOSITORY_ID, REPOSITORY_URL, model.getPluginRepositories().get(0));
View Full Code Here


   @Test
   public void testAddPluginRepositoryProfile()
   {
      MavenPluginFacet facet = project.getFacet(MavenPluginFacet.class);
      // SUT
      facet.addPluginRepository(REPOSITORY_ID, REPOSITORY_URL, TEST_PROFILE_ID);
      MavenFacet mavenFacet = project.getFacet(MavenFacet.class);
      Model model = mavenFacet.getModel();
      Assert.assertEquals(0, model.getPluginRepositories().size());
      Assert.assertEquals(1, model.getProfiles().size());
      assertRepositoryMatch(REPOSITORY_ID, REPOSITORY_URL, model.getProfiles().get(0).getPluginRepositories().get(0));
View Full Code Here

   {
      DependencyRepository repository = provider.getAptPluginRepository();
      if (repository != null)
      {
         MavenPluginFacet pluginFacet = getFaceted().getFacet(MavenPluginFacet.class);
         pluginFacet.addPluginRepository(repository.getId(), repository.getUrl());
      }
   }

   private Coordinate getLatestVersion(Coordinate dependency)
   {
View Full Code Here

   {
      DependencyRepository repository = provider.getAptPluginRepository();
      if (repository != null)
      {
         MavenPluginFacet pluginFacet = getFaceted().getFacet(MavenPluginFacet.class);
         pluginFacet.addPluginRepository(repository.getId(), repository.getUrl());
      }
   }

   private Coordinate getLatestVersion(Coordinate dependency)
   {
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.