Forum Discussion

TwoFang's avatar
TwoFang
Contributor
2 years ago

ReadyAPI maven plugin configuration regarding the <slm> parameters

Found documentation here https://support.smartbear.com/readyapi/docs/integrations/maven/index.html?sbsearch=%20ReadyAPI%20Maven%20Plugin
where it states:

  1. You may provide your credentials by either enclosing them within the <slmAccessKey>Access_Key</slmAccessKey> tag, or by using the <slmUsername>Username</slmUsername> and <slmPassword>Password</slmPassword> tags.

The problem here is that i have no clue where in my pom.xml file where these should be added and the example pom.xml file have not been updated so that one gives no hint either.

Do anyone know where to include these tags in the pom.xml file?

Regards
/N

  • Huhu TwoFang 

    I was able to figure it out with ChatGPT πŸ˜„

    It has to be in the configuration part

     

    ...
    <plugins>
    <plugin>
    <groupId>com.smartbear</groupId>
    <artifactId>ready-api-maven-plugin</artifactId>
    <version>3.46.0</version>
    <configuration>
    <!--<globalProperties> <value>preemptive=true</value> </globalProperties> -->
    <slmAccessKey>your-access-key</slmAccessKey>
    <projectFile>project_folder</projectFile>
    <printReport>false</printReport>
    <outputFolder>${project.build.directory}/readyapi</outputFolder>
    <junitReport>true</junitReport>
    <exportAll>true</exportAll>
    <readyApiProperties>
    <property>
    <name>readyapi.logroot</name>
    <value>${project.build.directory}/readyapi-logs/</value>
    </property>
    <property>
    <name>licenseApiAccessForEveryone</name>
    <value>true</value>
    </property>
    </readyApiProperties>
    ...
  • Yki's avatar
    Yki
    Contributor

    Huhu TwoFang 

    I was able to figure it out with ChatGPT πŸ˜„

    It has to be in the configuration part

     

    ...
    <plugins>
    <plugin>
    <groupId>com.smartbear</groupId>
    <artifactId>ready-api-maven-plugin</artifactId>
    <version>3.46.0</version>
    <configuration>
    <!--<globalProperties> <value>preemptive=true</value> </globalProperties> -->
    <slmAccessKey>your-access-key</slmAccessKey>
    <projectFile>project_folder</projectFile>
    <printReport>false</printReport>
    <outputFolder>${project.build.directory}/readyapi</outputFolder>
    <junitReport>true</junitReport>
    <exportAll>true</exportAll>
    <readyApiProperties>
    <property>
    <name>readyapi.logroot</name>
    <value>${project.build.directory}/readyapi-logs/</value>
    </property>
    <property>
    <name>licenseApiAccessForEveryone</name>
    <value>true</value>
    </property>
    </readyApiProperties>
    ...
    • TwoFang's avatar
      TwoFang
      Contributor

      Yki Thank you for the help pointing out where to add my slmAccessKey, with this info and adding some new repository urls to our artifactory (so that our jenkins could actually download 3.46.0) I got everything working

      Best Regards
      /N