Giter VIP home page Giter VIP logo

Comments (12)

NicholasAStuart avatar NicholasAStuart commented on August 29, 2024

Is there any chance you can include the XML block you have in your pom.xml?

from maven-mule-rest-plugin.

stevesarkisian-tribpub avatar stevesarkisian-tribpub commented on August 29, 2024

Sure thing:

<plugin>
    <groupId>com.github.nicholasastuart</groupId>
    <artifactId>mule-mmc-rest-plugin</artifactId>
    <version>1.2.2-SNAPSHOT</version>
    <executions>
        <execution>
            <id>mule-deploy</id>
            <phase>install</phase>
            <goals>
                <goal>deploy</goal>
            </goals>
            <configuration>
                <name>axsyncservice</name>
                <username>*redacted*</username>
                <password>*redacted*</password>
                <version>$BUILD_VERSION</version>
                <clusterName>Mule-QA-Cluster</clusterName>
                <muleApiURL>http://tribmuledev.tribpub.com:8080/mmc-console-3.5.3/api</muleApiURL>
            </configuration>
        </execution>
    </executions>
</plugin>
'''

from maven-mule-rest-plugin.

NicholasAStuart avatar NicholasAStuart commented on August 29, 2024

I think the configuration XML might be case sensitive. Try

<muleApiUrl>http://tribmuledev.tribpub.com:8080/mmc-console-3.5.3/api</muleApiUrl>

from maven-mule-rest-plugin.

stevesarkisian-tribpub avatar stevesarkisian-tribpub commented on August 29, 2024

Same result:
[ERROR] Failed to execute goal com.github.nicholasastuart:mule-mmc-rest-plugin:1
.2.0:deploy (default-cli) on project axsyncservice: Unable to parse configuratio
n of mojo com.github.nicholasastuart:mule-mmc-rest-plugin:1.2.0:deploy for param
eter muleApiUrl: Cannot convert 'muleApiUrl' to URL: no protocol: muleApiUrl ->
[Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal c
om.github.nicholasastuart:mule-mmc-rest-plugin:1.2.0:deploy (default-cli) on pro
ject axsyncservice: Unable to parse configuration of mojo com.github.nicholasast
uart:mule-mmc-rest-plugin:1.2.0:deploy for parameter muleApiUrl: Cannot convert
'muleApiUrl' to URL

from maven-mule-rest-plugin.

stevesarkisian-tribpub avatar stevesarkisian-tribpub commented on August 29, 2024

I'd considered modifying the code so protocol, host and path can just be passed in as config params, but I wanted to see if you had easier way.

from maven-mule-rest-plugin.

NicholasAStuart avatar NicholasAStuart commented on August 29, 2024

I've tried your XML, and I think you need to change clusterName to serverGroup. Other than that, everything should work.

I could make the protocol, host, and path as separate arguments, but for simplicity it's easiest just to put the URL you connect to the MMC with. Your URL isn't improperly formatted, unless there is some hidden unicode character within it that I can't see.

Try modifying clusterName to serverGroup and changing muleApiURL to muleApiUrl.

from maven-mule-rest-plugin.

stevesarkisian-tribpub avatar stevesarkisian-tribpub commented on August 29, 2024

Can you confirm the command and parameters you are using to run on your side?

Mine is simply: mvn com.github.nicholasastuart:mule-mmc-rest-plugin:deploy

Error messages are getting stranger:
Caused by: org.apache.maven.plugin.PluginExecutionException: Execution default-c
li of goal com.github.nicholasastuart:mule-mmc-rest-plugin:1.2.2-SNAPSHOT:deploy
failed: A required class was missing while executing com.github.nicholasastuart

:mule-mmc-rest-plugin:1.2.2-SNAPSHOT:deploy: org/slf4j/impl/StaticLoggerBinder

realm = plugin>com.github.nicholasastuart:mule-mmc-rest-plugin:1.2.2-SNAPSHOT

from maven-mule-rest-plugin.

fertroya avatar fertroya commented on August 29, 2024

Adding my 2 cents here; that error above was due to a Maven bug. After moving to 3.3.9 (fix version) I could call the deploy with no errors.

from maven-mule-rest-plugin.

NicholasAStuart avatar NicholasAStuart commented on August 29, 2024

No Activity, and @fertroya states this is a Maven bug, so the user should move to that version if they want to resolve this issue.

from maven-mule-rest-plugin.

paulcalabro avatar paulcalabro commented on August 29, 2024

I'm on v3.3.9 and experiencing the same issue:

Caused by: java.net.MalformedURLException: no protocol: muleApiUrl
        at java.net.URL.<init>(URL.java:593)
        at java.net.URL.<init>(URL.java:490)
        at java.net.URL.<init>(URL.java:439)
        at org.codehaus.plexus.component.configu

Any updates on this?

from maven-mule-rest-plugin.

paulcalabro avatar paulcalabro commented on August 29, 2024

(I know it's closed, however, just curious if anyone else has experienced the issue since then and maybe identified a fix)

from maven-mule-rest-plugin.

stevesarkisian-tribpub avatar stevesarkisian-tribpub commented on August 29, 2024

@paulcalabro: we abandoned trying to use pom file for configuring this plugin and simply started passing config parameters via command line. Haven't experienced the issue since.

from maven-mule-rest-plugin.

Related Issues (14)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.