Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error while publish the connector on Anypoint Exchange . #13

Open
king-raj7 opened this issue Dec 4, 2024 · 3 comments
Open

Error while publish the connector on Anypoint Exchange . #13

king-raj7 opened this issue Dec 4, 2024 · 3 comments
Assignees

Comments

@king-raj7
Copy link

Hi team,
I was trying to publish the connector and other mac connectors on Anypoint Exchange so it can be referred while deploying flow on CLoudhub. But every time it is failing with below error. Any help will be really appreciated.
Screenshot 2024-12-04 205552

Below is the details of the mvn and java version I am using to deploy the connector to Exchange
$ mvn -v
Apache Maven 3.9.9 (8e8579a9e76f7d015ee5ec7bfcdc97d260186937)
Maven home: C:\Users\raj.s.kamal\apache-maven-3.9.9-bin\apache-maven-3.9.9
Java version: 17.0.13, vendor: OpenLogic, runtime: C:\Users\raj.s.kamal\openlogic-openjdk-17.0.13+11-windows-x64
Default locale: en_US, platform encoding: Cp1252
OS name: "windows 11", version: "10.0", arch: "amd64", family: "windows"

Error Log:
Screenshot 2024-12-04 205552
$ mvn clean deploy -Dmaven.test.skip=true -DskipTests -Djdeps.multiRelease=17
[INFO] Scanning for projects...
[INFO]
[INFO] --------< f7f1ff8a-6a75-4b98-af4a-143ff4c5419a:mac-web-crawler >--------
[INFO] Building mac-web-crawler Extension 0.1.25-SNAPSHOT
[INFO] from pom.xml
[INFO] ---------------------------[ mule-extension ]---------------------------
[INFO]
[INFO] --- clean:3.1.0:clean (default-clean) @ mac-web-crawler ---
[INFO] Deleting C:\Users\raj.s.kamal\AI-Chain\Code\Connectors\mac-web-crawler\target
[INFO]
[INFO] --- processor:3.3.3:process (process) @ mac-web-crawler ---
[WARNING] source directory [C:\Users\raj.s.kamal\AI-Chain\Code\Connectors\mac-web-crawler\target\generated-sources] doesn't exist! Processor task will be skipped!
SLF4J(W): No SLF4J providers were found.
SLF4J(W): Defaulting to no-operation (NOP) logger implementation
SLF4J(W): See https://www.slf4j.org/codes.html#noProviders for further details.
[WARNING] diagnostic: warning: Supported source version 'RELEASE_8' from annotation processor 'org.mule.runtime.ast.internal.extension.loader.ASTExtensionResourcesGeneratorAnnotationProcessor' less than -source '17'
[INFO] diagnostic: Note: Starting Resources generator for Extensions
[INFO] diagnostic: Note: Starting Resources generator for Extensions
[INFO]
[INFO] --- resources:3.1.0:resources (default-resources) @ mac-web-crawler ---
[INFO] Using 'ISO-8859-1' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory C:\Users\raj.s.kamal\AI-Chain\Code\Connectors\mac-web-crawler\src\main\resources
[INFO]
[INFO] --- compiler:3.8.1:compile (default-compile) @ mac-web-crawler ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 6 source files to C:\Users\raj.s.kamal\AI-Chain\Code\Connectors\mac-web-crawler\target\classes
[INFO] /C:/Users/raj.s.kamal/AI-Chain/Code/Connectors/mac-web-crawler/src/main/java/com/mule/mulechain/crawler/internal/MulechainwebcrawlerOperations.java: C:\Users\raj.s.kamal\AI-Chain\Code\Connectors\mac-web-crawler\src\main\java\com\mule\mulechain\crawler\internal\MulechainwebcrawlerOperations.java uses unchecked or unsafe operations.
[INFO] /C:/Users/raj.s.kamal/AI-Chain/Code/Connectors/mac-web-crawler/src/main/java/com/mule/mulechain/crawler/internal/MulechainwebcrawlerOperations.java: Recompile with -Xlint:unchecked for details.
[INFO]
[INFO] --- mule-extensions:1.3.0:extension-descriptor (default-extension-descriptor) @ mac-web-crawler ---
[INFO]
[INFO] --- resources:3.1.0:testResources (default-testResources) @ mac-web-crawler ---
[INFO] Not copying test resources
[INFO]
[INFO] --- resources:3.1.0:copy-resources (copy-munit-resources) @ mac-web-crawler ---
[INFO] Using 'ISO-8859-1' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory C:\Users\raj.s.kamal\AI-Chain\Code\Connectors\mac-web-crawler\src\test\munit
[INFO]
[INFO] --- compiler:3.8.1:testCompile (default-testCompile) @ mac-web-crawler ---
[INFO] Not compiling test sources
[INFO]
[INFO] --- surefire:2.22.2:test (default-test) @ mac-web-crawler ---
[INFO] Tests are skipped.
[INFO]
[INFO] --- mule-extensions:1.3.0:extension-model (default-extension-model) @ mac-web-crawler ---
[INFO]
[INFO] --- mule-extensions:1.3.0:documentation (default-documentation) @ mac-web-crawler ---
[INFO] Generated file [C:\Users\raj.s.kamal\AI-Chain\Code\Connectors\mac-web-crawler\target\docs\mac-webcrawler-documentation.adoc]
[INFO] Generated file [C:\Users\raj.s.kamal\AI-Chain\Code\Connectors\mac-web-crawler\target\docs\mac-webcrawler-documentation.html]
[INFO]
[INFO] --- mule-extensions:1.3.0:package (default-package) @ mac-web-crawler ---
[INFO] Building zip: C:\Users\raj.s.kamal\AI-Chain\Code\Connectors\mac-web-crawler\target\mac-web-crawler-0.1.25-SNAPSHOT-mule-plugin.jar
[INFO]
[INFO] --- javadoc:3.1.1:jar (attach-javadocs) @ mac-web-crawler ---
[WARNING] Javadoc Warnings
[WARNING] Loading source files for package com.mule.mulechain.crawler.internal.helpers...
[WARNING] Loading source files for package com.mule.mulechain.crawler.internal...
[WARNING] Constructing Javadoc information...
[WARNING] warning: The code being documented uses modules but the packages defined in https://docs.oracle.com/javase/8/docs/api/ are in the unnamed module.
[WARNING] Building index for all the packages and classes...
[WARNING] Standard Doclet version 17.0.13+11-adhoc..jdk17u
[WARNING] Building tree for all the packages and classes...
[WARNING] Generating C:\Users\raj.s.kamal\AI-Chain\Code\Connectors\mac-web-crawler\target\apidocs\com\mule\mulechain\crawler\internal\helpers\crawlingHelper.html...
[WARNING] Generating C:\Users\raj.s.kamal\AI-Chain\Code\Connectors\mac-web-crawler\target\apidocs\com\mule\mulechain\crawler\internal\helpers\crawlingHelper.PageInsightType.html...
[WARNING] Generating C:\Users\raj.s.kamal\AI-Chain\Code\Connectors\mac-web-crawler\target\apidocs\com\mule\mulechain\crawler\internal\helpers\CrawlResult.html...
[WARNING] Generating C:\Users\raj.s.kamal\AI-Chain\Code\Connectors\mac-web-crawler\target\apidocs\com\mule\mulechain\crawler\internal\MulechainwebcrawlerConfiguration.html...
[WARNING] Generating C:\Users\raj.s.kamal\AI-Chain\Code\Connectors\mac-web-crawler\target\apidocs\com\mule\mulechain\crawler\internal\MulechainwebcrawlerExtension.html...
[WARNING] Generating C:\Users\raj.s.kamal\AI-Chain\Code\Connectors\mac-web-crawler\target\apidocs\com\mule\mulechain\crawler\internal\MulechainwebcrawlerOperations.html...
[WARNING] Generating C:\Users\raj.s.kamal\AI-Chain\Code\Connectors\mac-web-crawler\target\apidocs\com\mule\mulechain\crawler\internal\helpers\SiteMapNode.html...
[WARNING] Generating C:\Users\raj.s.kamal\AI-Chain\Code\Connectors\mac-web-crawler\target\apidocs\com\mule\mulechain\crawler\internal\package-summary.html...
[WARNING] Generating C:\Users\raj.s.kamal\AI-Chain\Code\Connectors\mac-web-crawler\target\apidocs\com\mule\mulechain\crawler\internal\package-tree.html...
[WARNING] Generating C:\Users\raj.s.kamal\AI-Chain\Code\Connectors\mac-web-crawler\target\apidocs\com\mule\mulechain\crawler\internal\helpers\package-summary.html...
[WARNING] Generating C:\Users\raj.s.kamal\AI-Chain\Code\Connectors\mac-web-crawler\target\apidocs\com\mule\mulechain\crawler\internal\helpers\package-tree.html...
[WARNING] Generating C:\Users\raj.s.kamal\AI-Chain\Code\Connectors\mac-web-crawler\target\apidocs\com\mule\mulechain\crawler\internal\helpers\class-use\crawlingHelper.html...
[WARNING] Generating C:\Users\raj.s.kamal\AI-Chain\Code\Connectors\mac-web-crawler\target\apidocs\com\mule\mulechain\crawler\internal\helpers\class-use\crawlingHelper.PageInsightType.html...
[WARNING] Generating C:\Users\raj.s.kamal\AI-Chain\Code\Connectors\mac-web-crawler\target\apidocs\com\mule\mulechain\crawler\internal\helpers\class-use\CrawlResult.html...
[WARNING] Generating C:\Users\raj.s.kamal\AI-Chain\Code\Connectors\mac-web-crawler\target\apidocs\com\mule\mulechain\crawler\internal\helpers\class-use\SiteMapNode.html...
[WARNING] Generating C:\Users\raj.s.kamal\AI-Chain\Code\Connectors\mac-web-crawler\target\apidocs\com\mule\mulechain\crawler\internal\class-use\MulechainwebcrawlerConfiguration.html...
[WARNING] Generating C:\Users\raj.s.kamal\AI-Chain\Code\Connectors\mac-web-crawler\target\apidocs\com\mule\mulechain\crawler\internal\class-use\MulechainwebcrawlerExtension.html...
[WARNING] Generating C:\Users\raj.s.kamal\AI-Chain\Code\Connectors\mac-web-crawler\target\apidocs\com\mule\mulechain\crawler\internal\class-use\MulechainwebcrawlerOperations.html...
[WARNING] Generating C:\Users\raj.s.kamal\AI-Chain\Code\Connectors\mac-web-crawler\target\apidocs\com\mule\mulechain\crawler\internal\package-use.html...
[WARNING] Generating C:\Users\raj.s.kamal\AI-Chain\Code\Connectors\mac-web-crawler\target\apidocs\com\mule\mulechain\crawler\internal\helpers\package-use.html...
[WARNING] Generating C:\Users\raj.s.kamal\AI-Chain\Code\Connectors\mac-web-crawler\target\apidocs\overview-tree.html...
[WARNING] Generating C:\Users\raj.s.kamal\AI-Chain\Code\Connectors\mac-web-crawler\target\apidocs\index.html...
[WARNING] Building index for all classes...
[WARNING] Generating C:\Users\raj.s.kamal\AI-Chain\Code\Connectors\mac-web-crawler\target\apidocs\allclasses-index.html...
[WARNING] Generating C:\Users\raj.s.kamal\AI-Chain\Code\Connectors\mac-web-crawler\target\apidocs\allpackages-index.html...
[WARNING] Generating C:\Users\raj.s.kamal\AI-Chain\Code\Connectors\mac-web-crawler\target\apidocs\index-all.html...
[WARNING] Generating C:\Users\raj.s.kamal\AI-Chain\Code\Connectors\mac-web-crawler\target\apidocs\overview-summary.html...
[WARNING] Generating C:\Users\raj.s.kamal\AI-Chain\Code\Connectors\mac-web-crawler\target\apidocs\help-doc.html...
[WARNING] 1 warning
[INFO] Building jar: C:\Users\raj.s.kamal\AI-Chain\Code\Connectors\mac-web-crawler\target\mac-web-crawler-0.1.25-SNAPSHOT-javadoc.jar
[INFO]
[INFO] --- munit-extensions:1.1.2:test (default-test) @ mac-web-crawler ---
[WARNING] 1 problem was encountered while building the effective model for org.javassist:javassist:jar:3.20.0-GA during dependency collection step for plugin (use -X to see details)
[INFO] Run of munit-extensions-maven-plugin skipped. Property [skipTests] was set to true
[INFO]
[INFO] --- install:2.5.2:install (default-install) @ mac-web-crawler ---
[INFO] No primary artifact to install, installing attached artifacts instead.
[INFO] Installing C:\Users\raj.s.kamal\AI-Chain\Code\Connectors\mac-web-crawler\pom.xml to C:\Users\raj.s.kamal.m2\repository\f7f1ff8a-6a75-4b98-af4a-143ff4c5419a\mac-web-crawler\0.1.25-SNAPSHOT\mac-web-crawler-0.1.25-SNAPSHOT.pom
[INFO] Installing C:\Users\raj.s.kamal\AI-Chain\Code\Connectors\mac-web-crawler\target\temporal-extension-model.json to C:\Users\raj.s.kamal.m2\repository\f7f1ff8a-6a75-4b98-af4a-143ff4c5419a\mac-web-crawler\0.1.25-SNAPSHOT\mac-web-crawler-0.1.25-SNAPSHOT-extension-model-4.3.0.json
[INFO] Installing C:\Users\raj.s.kamal\AI-Chain\Code\Connectors\mac-web-crawler\target\mac-web-crawler-0.1.25-SNAPSHOT-mule-plugin.jar to C:\Users\raj.s.kamal.m2\repository\f7f1ff8a-6a75-4b98-af4a-143ff4c5419a\mac-web-crawler\0.1.25-SNAPSHOT\mac-web-crawler-0.1.25-SNAPSHOT-mule-plugin.jar
[INFO] Installing C:\Users\raj.s.kamal\AI-Chain\Code\Connectors\mac-web-crawler\target\mac-web-crawler-0.1.25-SNAPSHOT-javadoc.jar to C:\Users\raj.s.kamal.m2\repository\f7f1ff8a-6a75-4b98-af4a-143ff4c5419a\mac-web-crawler\0.1.25-SNAPSHOT\mac-web-crawler-0.1.25-SNAPSHOT-javadoc.jar
[INFO]
[INFO] --- deploy:2.8.2:deploy (default-deploy) @ mac-web-crawler ---
[INFO] No primary artifact to deploy, deploying attached artifacts instead.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 17.240 s
[INFO] Finished at: 2024-12-04T20:52:21+05:30
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.8.2:deploy (default-deploy) on project mac-web-crawler: Execution default-deploy of goal org.apache.maven.plugins:maven-deploy-plugin:2.8.2:deploy failed: An API incompatibility was encountered while executing org.apache.maven.plugins:maven-deploy-plugin:2.8.2:deploy: java.lang.NoSuchMethodError: 'java.util.List org.eclipse.aether.spi.connector.layout.RepositoryLayout.getChecksums(org.eclipse.aether.metadata.Metadata, boolean, java.net.URI)'
[ERROR] -----------------------------------------------------
[ERROR] realm = plugin>org.apache.maven.plugins:maven-deploy-plugin:2.8.2
[ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
[ERROR] urls[0] = file:/C:/Users/raj.s.kamal/.m2/repository/org/apache/maven/plugins/maven-deploy-plugin/2.8.2/maven-deploy-plugin-2.8.2.jar
[ERROR] urls[1] = file:/C:/Users/raj.s.kamal/.m2/repository/backport-util-concurrent/backport-util-concurrent/3.1/backport-util-concurrent-3.1.jar
[ERROR] urls[2] = file:/C:/Users/raj.s.kamal/.m2/repository/org/codehaus/plexus/plexus-interpolation/1.11/plexus-interpolation-1.11.jar
[ERROR] urls[3] = file:/C:/Users/raj.s.kamal/.m2/repository/junit/junit/3.8.1/junit-3.8.1.jar
[ERROR] urls[4] = file:/C:/Users/raj.s.kamal/.m2/repository/org/codehaus/plexus/plexus-utils/3.0.15/plexus-utils-3.0.15.jar
[ERROR] Number of foreign imports: 1
[ERROR] import: Entry[import from realm ClassRealm[project>f7f1ff8a-6a75-4b98-af4a-143ff4c5419a:mac-web-crawler:0.1.25-SNAPSHOT, parent: ClassRealm[maven.api, parent: null]]]
[ERROR]
[ERROR] -----------------------------------------------------
[ERROR]
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginContainerException

@amirkhan-ak-sf
Copy link
Member

@mboss37 @rhoegg can you help on this?

@king-raj7
Copy link
Author

king-raj7 commented Dec 12, 2024

@mboss37 any help on the error would really help me to move forward.

@tbolis-at-mulesoft
Copy link
Member

@king-raj7 if it helps the connector is now available on maven central and you can easily use it.

<dependency>
   <groupId>io.github.mulesoft-ai-chain-project</groupId>
   <artifactId>mule4-webcrawler-connector</artifactId>
   <version>0.1.25</version>
   <classifier>mule-plugin</classifier>
</dependency>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants