[Apiman-user] PluginNotFoundException when adding a new plugin
Eric Wittmann
eric.wittmann at redhat.com
Mon May 23 09:40:57 EDT 2016
Have you created a plugin already? You must use maven to build and
deploy your plugin so that apiman can find it. The endpoint you mention
is for installing a plugin, so you must provide the correct information.
Typically the value of "type" would be "war" and the value of
"classifier" can simply be omitted. The following properties are all
directly related to their identically named maven properties:
groupId, artifactId, version, type, classifier
What apiman will attempt to do when you invoke this endpoint, is
download the appropriate plugin file from maven (either by finding it
locally in your maven .m2 directory or by downloading it from a
configured remote maven repository). The above information is needed to
identify the proper maven artifact and download it.
-Eric
On 5/20/2016 11:51 AM, Helio Frota wrote:
> Hi ,
>
> I'm trying to use the endpoint :
>
> http://localhost:8080/apiman/plugins/ [ POST ]
>
> ' Use this endpoint to add a plugin to apiman. '
>
> Using this object representation:
>
> let plug = {
> name: 'the-new-plugin',
> description: 'the description',
> type: 'plugs',
> version: '1.0.0.Final',
> groupId: 'org.myplugins',
> artifactId: 'superplugin',
> classifier: '1',
> upgrade: false
> };
>
> And I'm getting this error :
>
> type: 'PluginNotFoundException',
> errorCode: 12002,
> message: 'org.myplugins:superplugin:1.0.0.Final-1:plugs',
> moreInfoUrl: null,
> stacktrace:
> 'io.apiman.manager.api.rest.contract.exceptions.PluginNotFoundException:
> ...
>
> Maybe I'm populating the object with wrong values ? [ e.g classifier ? ]
>
> Thanks
>
>
>
>
> _______________________________________________
> Apiman-user mailing list
> Apiman-user at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/apiman-user
>
More information about the Apiman-user
mailing list