Getting the following error while trying to run steady on steady-cli
See original GitHub issueDescribe the bug
This problem occurs when I run steady on steady-cli.
I didn’t find steady-cli-3.2.3, so I used steady-cli-3.2.0
the command ‘java -jar steady-cli-3.2.0-jar-with-dependencies.jar -goal app’
the error
[main] [ERROR] e.steady.shared.util.StopWatch - [287797] [00.059 ms] Failed: Application context is required to execute goal [APP] Exception in thread "main" org.eclipse.steady.goals.GoalConfigurationException: Application context is required to execute goal [APP]
at org.eclipse.steady.goals.AbstractAppGoal.prepareExecution(AbstractAppGoal.java:107)
at org.eclipse.steady.goals.BomGoal.prepareExecution(BomGoal.java:57)
at org.eclipse.steady.goals.AbstractGoal.start(AbstractGoal.java:418)
at org.eclipse.steady.goals.AbstractGoal.execute(AbstractGoal.java:253)
at org.eclipse.steady.goals.AbstractGoal.executeSync(AbstractGoal.java:247)
at org.eclipse.steady.cli.VulasCli.main(VulasCli.java:99)
steady-custom.properties file
I have edit the <GROUP>, <ARTIFACT> and <VERSION> of the application to be analyzed and my workspace token

steady-cli folder
The application code (java, class or JAR files) and all application dependencies (JAR files) In the app folder

I have read the Java source code, but still can’t find the problem and how to fix it. Can you please teach me how to solve this problem,thank you!
Issue Analytics
- State:
- Created a year ago
- Comments:6 (3 by maintainers)

Top Related StackOverflow Question
Hi @serenaponta Thank you very much for your help. I succeeded. Thank you!
Hi @11111821,
when using the steady-cli the
appfolder must contain both the application code and the dependencies. Then the configuration ofvulas.core.app.appPrefixesorvulas.core.app.appJarNamesis used to discriminate between the two. Looking at the log of the steady-cli you provided above, I think you have the spring-boot-demo application in theappfolder (as the DirAnalyzer found only Java and Class files) but the dependencies are not present (as usually happens in Maven projects). The way to proceed is to add the dependencies, e.g., simply runningmvn dependency:copy-dependenciesand configuring the package prefix (as you did).I also tested the demo-zookeeper module: I run the mvn command above to get the dependencies within the
appfolder and configuredvulas.core.app.appPrefixes = com.xkcodingand got the expected 77 dependencies. The first alternative you used for the appPrefixes configuration should also work but if you don’t have dependencies undercom.xkcodingthe one I used makes it simpler 😃