user1987750
user1987750

Reputation: 57

unable to use the GraphQL router for MuleSoft components

I am trying to use the GraphQL router for MuleSoft components which is available at MuleSoft labs GitHub repository at https://github.com/mulesoft-labs/graphql-router

Created a Folder in your local system: graphql-demo. In command prompt typed the following command:

git clone https://github.com/mulesoft-labs/graphql-router.git

Once the project was cloned in my local system, I went to pom.xml and changed the mule-modules-parent version from 1.0.0 to 1.1.3.

From the location where project is cloned went to command prompt and ran command:

mvn clean install

The project was not built successfully please assist.

Error: Some problems were encountered while processing the POMs: resolvable build extension: plugin org.mule.runtime.plugins:mule-extensions-maven-plugin:1.1.6 or one of its dependencies could not be resolved: Failed to read artifact description for org.mule.rntime.plugins:mule-extensions-maven-plugin:jar:1.1.6.

I am trying to understand how to use GraphQL with mulesoft any suggestions would help.

Is this the right approach to use GraphQL for Mulesoft?

Upvotes: 0

Views: 515

Answers (3)

George Jeffcock
George Jeffcock

Reputation: 1

MuleSoft has released APIKit for Graphql for BOTH ACB and Anypoint Studio

See https://docs.mulesoft.com/apikit/latest/apikit-graphql-api-implementation for example STUDIO project

Upvotes: 0

Juan Aller
Juan Aller

Reputation: 1

Apikit for graphql has been released with anypoint code builder

Upvotes: 0

aled
aled

Reputation: 25709

The actual root error is missing in your question:

Caused by: org.eclipse.aether.transfer.NoRepositoryConnectorException: Blocked mirror for repositories: [mulesoft-plugin-releases (http://repository.mulesoft.org/releases/, default, releases+snapshots), mulesoft-plugin-snapshots (http://repository.mulesoft.org/snapshots/, default, releases+snapshots)]

The issue is that newer Maven versions have increased security restrictions for repositories with http:... URLs. You can resolve that issue by adding unblocked mirrors for the repositories that fail but pointing them to the https:... URLs. Add this snippet in the <mirrors> element of your Maven settings.xml file:

    <mirror>
      <id>my-repository-http-unblocker1</id>
      <mirrorOf>mulesoft-plugin-releases</mirrorOf>
      <name></name>
      <url>http://repository.mulesoft.org/releases/</url>;
      <blocked>false</blocked>
    </mirror>

    <mirror>
      <id>my-repository-http-unblocker2</id>
      <mirrorOf>mulesoft-plugin-snapshots</mirrorOf>
      <name></name>
      <url>http://repository.mulesoft.org/snaphosts/</url>;
      <blocked>false</blocked>
    </mirror>    

Ensure that the build is done with a JDK 8, like OpenJDK 8, or it might fail for a different reason.

Note that the graphql-router is an open source community project that has not been updated in a couple years, not an official MuleSoft product.

Upvotes: 1

Related Questions