When my Stormpath project want to use Okta API, besides changing the version from "0.0.7-SNAPSHOT" to "2.0.0-okta", do I need to make other changes? Because after I change the version and set Okta environment variables, it has error shows like that:
Caused by: java.lang.IllegalStateException: Unable to find an API Key 'id', either from explicit configuration (for example, ApiKeyBuilder.setApiKeyId) or from fallback locations:
- system property stormpath.client.apiKey.id
- resource file path or URL specified by system property stormpath.client.apiKey.file
- resource file path or URL specified by environment variable STORMPATH_API_KEY_FILE
- environment variable STORMPATH_API_KEY_ID
- default apiKey.properties file location /Users/weidongdiao/.stormpath/apiKey.properties.
Here's my pom.xml file:
com.xxx
xxxx
2.0.0-okta
jar
So how can I solve this problem?