Forum Discussion

sunil_swagger's avatar
sunil_swagger
Frequent Visitor
3 years ago

swaggerhub-maven-plugin always gives error while uploading

 

my pom.xml:

 

<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.test.api</groupId>
<artifactId>swaggerhub-utility</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>SwaggerHub Utility</name>
<packaging>pom</packaging>

<build>
<plugins>

<plugin>
<groupId>io.swagger</groupId>
<artifactId>swaggerhub-maven-plugin</artifactId>
<version>1.0.9</version>
<executions>
<execution>
<phase>deploy</phase>
<goals>
<goal>upload</goal>
</goals>
<configuration>
<api>maven-upload</api>
<owner>validOwner</owner>
<version>1.0.0</version>
<inputFile>target/petStoreAPI.json</inputFile>
<token>valid token</token>
<uploadType>inputFile</uploadType>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>

 

C:\Users\test\Downloads\swagger-uploader\swagger-uploader>mvn swaggerhub:upload
[INFO] Scanning for projects...
[INFO]
[INFO] -------------------< com.test.api:swaggerhub-utility >-------------------
[INFO] Building SwaggerHub Utility 0.0.1-SNAPSHOT
[INFO] --------------------------------[ pom ]---------------------------------
[INFO]
[INFO] --- swaggerhub-maven-plugin:1.0.9:upload (default-cli) @ swaggerhub-utility ---
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.285 s
[INFO] Finished at: 2021-08-25T12:35:04-04:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal io.swagger:swaggerhub-maven-plugin:1.0.9:upload (default-cli) on project swaggerhub-utility: The parameters 'owner', 'uploadType', 'token' for goal io.swagger:swaggerhub-maven-plugin:1.0.9:upload are missing or invalid -> [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/PluginParameterException

No RepliesBe the first to reply