Examples of loadPomFromFile()


Examples of org.jboss.forge.arquillian.maven.ProjectHelper.loadPomFromFile()

         dependencyMap = new HashMap<String, String>();
         File pomFile = getPomFileFor(classUnderTest);
         try
         {
            // Needed for single-project addons
            Model model = projectHelper.loadPomFromFile(pomFile);
            String thisAddonName = (model.getGroupId() == null) ? model.getParent().getGroupId() : model.getGroupId()
                     + ":" + model.getArtifactId();
            String thisVersion = model.getVersion();
            dependencyMap.put(thisAddonName, thisVersion);
            List<Dependency> dependencies = projectHelper.resolveDependenciesFromPOM(pomFile);
View Full Code Here

Examples of org.jboss.forge.arquillian.maven.ProjectHelper.loadPomFromFile()

         dependencyMap = new HashMap<String, String>();
         File pomFile = getPomFileFor(classUnderTest);
         try
         {
            // Needed for single-project addons
            Model model = projectHelper.loadPomFromFile(pomFile);
            String thisAddonName = (model.getGroupId() == null) ? model.getParent().getGroupId() : model.getGroupId()
                     + ":" + model.getArtifactId();
            String thisVersion = model.getVersion();
            dependencyMap.put(thisAddonName, thisVersion);
            List<Dependency> dependencies = projectHelper.resolveDependenciesFromPOM(pomFile);
View Full Code Here

Examples of org.jboss.shrinkwrap.resolver.api.maven.ConfigurableMavenResolverSystem.loadPomFromFile()

            File[] depFiles = null;

            try
            {
                depFiles = resolver.loadPomFromFile(pomFile).importRuntimeDependencies()
                        .resolve().withTransitivity().asFile();
            }
            catch (IllegalArgumentException e)
            {
                // Happens when no dependencies inside pom, which is a weird use of the feature...
View Full Code Here

Examples of org.jboss.shrinkwrap.resolver.api.maven.MavenResolverSystem.loadPomFromFile()

            // resolution of the artifact without a version specified
            dependencies = resolver.resolve(missingDependency).withClassPathResolution(false).withTransitivity()
                    .as(JavaArchive.class);
        } else {
            // resolution of the artifact without a version specified
            dependencies = resolver.loadPomFromFile("pom.xml").resolve(missingDependency)
                    .withClassPathResolution(false).withTransitivity().as(JavaArchive.class);
        }

        for (JavaArchive archive : dependencies) {
            dir.mkdirs();
View Full Code Here

Examples of org.jboss.shrinkwrap.resolver.api.maven.MavenResolverSystem.loadPomFromFile()

        File pluginJarFile = getPluginJarFile();
        System.out.println("Using plugin jar [" + pluginJarFile + "]...");
        MavenResolverSystem mavenDependencyResolver = Maven.resolver();
        // Pull in any required plugins from our pom's dependencies.

        Collection<RhqAgentPluginArchive> requiredPlugins = Arrays.asList(mavenDependencyResolver
            .loadPomFromFile("pom.xml").importRuntimeAndTestDependencies(new AcceptScopesStrategy(ScopeType.PROVIDED))
            .as(RhqAgentPluginArchive.class));

        return ShrinkWrap.create(ZipImporter.class, pluginJarFile.getName()).importFrom(pluginJarFile)
            .as(RhqAgentPluginArchive.class).withRequiredPluginsFrom(requiredPlugins);
View Full Code Here

Examples of org.jboss.shrinkwrap.resolver.api.maven.MavenResolverSystem.loadPomFromFile()

        thirdPartyDeps.add("org.rhq:test-utils:" + projectVersion);

        MavenResolverSystem resolver = Maven.resolver();

        Collection<JavaArchive> dependencies = new HashSet<JavaArchive>();
        dependencies.addAll(Arrays.asList(resolver.loadPomFromFile("pom.xml").resolve(thirdPartyDeps)
            .withTransitivity().as(JavaArchive.class)));

        // If we're running oracle we need to include the OJDBC driver because dbunit needs it. Note that we need
        // add it explicitly even though it is a provided module used by the datasource.
        if (!Boolean.valueOf(System.getProperty("rhq.skip.oracle"))) {
View Full Code Here

Examples of org.jboss.shrinkwrap.resolver.api.maven.MavenResolverSystem.loadPomFromFile()

        thirdPartyDeps.add("org.rhq:rhq-core-dbutils:" + System.getProperty("project.version")); // needed by SetupBean

        MavenResolverSystem resolver = Maven.resolver();

        Collection<JavaArchive> dependencies = new HashSet<JavaArchive>();
        dependencies.addAll(Arrays.asList(resolver.loadPomFromFile("pom.xml").resolve(thirdPartyDeps)
            .withTransitivity().as(JavaArchive.class)));

        String[] excludeFilters = { "testng.*jdk" };

        dependencies = exclude(dependencies, excludeFilters);
View Full Code Here

Examples of org.jboss.shrinkwrap.resolver.api.maven.MavenResolverSystem.loadPomFromFile()

         resolver = Maven.configureResolver().fromFile(alternateMavenSettings);
      }

      if (mavenIsUsed())
      {
         resolver.loadPomFromFile(POM_XML);
      }

      return resolver.resolve(artifact).withTransitivity().asFile();
   }
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.