Class ConnectorDependencyResolver


  • public class ConnectorDependencyResolver
    extends Object
    Resolves dependencies for connectors.
    • Constructor Detail

      • ConnectorDependencyResolver

        public ConnectorDependencyResolver()
    • Method Detail

      • resolveDependencies

        public static void resolveDependencies​(CARMojo carMojo,
                                               org.apache.maven.project.MavenProject project)
                                        throws Exception
        Resolves dependencies for connectors.
        Parameters:
        carMojo - The Mojo instance.
        Throws:
        Exception - If an error occurs while resolving dependencies.
      • extractConnectorInfo

        public static QName extractConnectorInfo​(CARMojo carMojo,
                                                 String filePath)
      • extractArtifactIdFromZipName

        public static String extractArtifactIdFromZipName​(String zipFileName)
        Extracts the Maven artifactId from a connector ZIP filename by stripping the version suffix.

        Example: "mi-connector-file-4.0.36.zip""mi-connector-file". Falls back to the name-without-extension if the pattern does not match.

        Parameters:
        zipFileName - the ZIP filename (with or without the .zip extension)
        Returns:
        the artifactId portion of the filename