Search in sources :

Example 1 with MavenProperties

use of io.syndesis.common.util.MavenProperties in project syndesis by syndesisio.

the class ProjectGeneratorTest method getMavenProperties.

protected MavenProperties getMavenProperties() {
    MavenProperties mavenProperties = new MavenProperties();
    mavenProperties.addRepository("maven.central", "https://repo1.maven.org/maven2");
    mavenProperties.addRepository("redhat.ga", "https://maven.repository.redhat.com/ga");
    mavenProperties.addRepository("jboss.ea", "https://repository.jboss.org/nexus/content/groups/ea");
    return mavenProperties;
}
Also used : MavenProperties(io.syndesis.common.util.MavenProperties)

Example 2 with MavenProperties

use of io.syndesis.common.util.MavenProperties in project syndesis by syndesisio.

the class ConnectorTestSupport method useOverridePropertiesWithPropertiesComponent.

@Override
protected Properties useOverridePropertiesWithPropertiesComponent() {
    try {
        ProjectGeneratorConfiguration configuration = new ProjectGeneratorConfiguration();
        ProjectGenerator projectGenerator = new ProjectGenerator(configuration, new ResourceManager(), new MavenProperties());
        return projectGenerator.generateApplicationProperties(newIntegration());
    } catch (IOException e) {
        Assertions.fail("Unable to generate integration properties", e);
    }
    return null;
}
Also used : ProjectGeneratorConfiguration(io.syndesis.integration.project.generator.ProjectGeneratorConfiguration) MavenProperties(io.syndesis.common.util.MavenProperties) ProjectGenerator(io.syndesis.integration.project.generator.ProjectGenerator) IntegrationResourceManager(io.syndesis.integration.api.IntegrationResourceManager) IOException(java.io.IOException)

Aggregations

MavenProperties (io.syndesis.common.util.MavenProperties)2 IntegrationResourceManager (io.syndesis.integration.api.IntegrationResourceManager)1 ProjectGenerator (io.syndesis.integration.project.generator.ProjectGenerator)1 ProjectGeneratorConfiguration (io.syndesis.integration.project.generator.ProjectGeneratorConfiguration)1 IOException (java.io.IOException)1