use of com.mulesoft.tools.migration.project.model.pom.Dependency.DependencyBuilder in project mule-migration-assistant by mulesoft.
the class FederationPomContributionMigrationStep method execute.
@Override
public void execute(PomModel pomModel, MigrationReport migrationReport) throws RuntimeException {
new HttpTransformPomContributionMigrationStep().execute(pomModel, migrationReport);
pomModel.addDependency(new DependencyBuilder().withGroupId(COM_MULESOFT_ANYPOINT_GROUP_ID).withArtifactId(MULE_FEDERATION_EXTENSION_ARTIFACT_ID).withVersion(targetVersion(FEDERATION_EXTENSION_VERSION_PROPERTY)).withClassifier(MULE_PLUGIN_CLASSIFIER).build());
}
use of com.mulesoft.tools.migration.project.model.pom.Dependency.DependencyBuilder in project mule-migration-assistant by mulesoft.
the class SecurityFiltersPomContribution method execute.
@Override
public void execute(PomModel object, MigrationReport report) throws RuntimeException {
super.execute(object, report);
object.removeDependency(new DependencyBuilder().withGroupId("com.mulesoft.security").withArtifactId("mule-module-security-filters").withVersion("*").build());
}
use of com.mulesoft.tools.migration.project.model.pom.Dependency.DependencyBuilder in project mule-migration-assistant by mulesoft.
the class OAuth2PomContribution method execute.
@Override
public void execute(PomModel object, MigrationReport report) throws RuntimeException {
object.addDependency(new Dependency.DependencyBuilder().withGroupId("com.mulesoft.modules").withArtifactId("mule-oauth2-provider-module").withVersion(targetVersion("mule-oauth2-provider-module")).withClassifier("mule-plugin").build());
object.removeDependency(new DependencyBuilder().withGroupId("com.mulesoft.security").withArtifactId("mule-module-security-oauth2-provider").withVersion("*").build());
}
use of com.mulesoft.tools.migration.project.model.pom.Dependency.DependencyBuilder in project mule-migration-assistant by mulesoft.
the class ChecksumPomContribution method execute.
@Override
public void execute(PomModel object, MigrationReport report) throws RuntimeException {
object.addDependency(new Dependency.DependencyBuilder().withGroupId("com.mulesoft.modules").withArtifactId("mule-cryptography-module").withVersion(targetVersion("mule-cryptography-module")).withClassifier("mule-plugin").build());
object.removeDependency(new DependencyBuilder().withGroupId("com.mulesoft.security").withArtifactId("mule-module-security-crc32").withVersion("*").build());
}
use of com.mulesoft.tools.migration.project.model.pom.Dependency.DependencyBuilder in project mule-migration-assistant by mulesoft.
the class AbstractJmsEndpoint method addActiveMqConnection.
private static Element addActiveMqConnection(final Element m4JmsConfig, final Element m3Connector, ApplicationModel appModel) {
Dependency activeMqClient = new DependencyBuilder().withGroupId("org.apache.activemq").withArtifactId("activemq-client").withVersion("${activeMq.version}").build();
addSharedLibs(appModel.getPomModel().get(), activeMqClient);
Element amqConnection = new Element("active-mq-connection", JMS_NAMESPACE);
m4JmsConfig.addContent(amqConnection);
boolean addFactory = false;
Element factoryConfiguration = new Element("factory-configuration", JMS_NAMESPACE);
if (m3Connector.getAttribute("brokerURL") != null) {
factoryConfiguration.setAttribute("brokerUrl", m3Connector.getAttributeValue("brokerURL"));
addFactory = true;
}
if (m3Connector.getAttributeValue("maxRedelivery") != null) {
factoryConfiguration.setAttribute("maxRedelivery", m3Connector.getAttributeValue("maxRedelivery"));
addFactory = true;
}
if (addFactory) {
amqConnection.addContent(factoryConfiguration);
}
return amqConnection;
}
Aggregations