Hi, I repeat the question I've posted here: 
https://stackoverflow.com/questions/53430573/running-swagger-jax-rs-from-command-line

I've created a simple YAML definition in https://editor.swagger.io/, 
generated a "jaxrs" server, imported it in eclipse and *having the source 
code,* it runs using 
mvn clean package jetty:run 



Now, I want to launch the JAR from a Docker container. But this is what I 
get:

# java -jar uservice.jar
no main manifest attribute, in uservice.jar

# jar tvf uservice.jar
0 Thu Nov 22 11:45:54 GMT 2018 META-INF/
135 Thu Nov 22 11:45:52 GMT 2018 META-INF/MANIFEST.MF
0 Thu Nov 22 11:45:52 GMT 2018 io/
0 Thu Nov 22 11:45:52 GMT 2018 io/swagger/
0 Thu Nov 22 11:45:52 GMT 2018 io/swagger/api/
0 Thu Nov 22 11:45:52 GMT 2018 io/swagger/api/impl/
0 Thu Nov 22 11:45:52 GMT 2018 io/swagger/api/factories/
427 Thu Nov 22 11:45:52 GMT 2018 io/swagger/api/NotFoundException.class
2500 Thu Nov 22 11:45:52 GMT 2018 io/swagger/api/GetdataApi.class
1661 Thu Nov 22 11:45:52 GMT 2018 io/swagger/api/ApiResponseMessage.class
903 Thu Nov 22 11:45:52 GMT 2018 io/swagger/api/RFC3339DateFormat.class
1865 Thu Nov 22 11:45:52 GMT 2018 io/swagger/api/Bootstrap.class
427 Thu Nov 22 11:45:52 GMT 2018 io/swagger/api/ApiException.class
480 Thu Nov 22 11:45:52 GMT 2018 io/swagger/api/GetdataApiService.class
1617 Thu Nov 22 11:45:52 GMT 2018 io/swagger/api/JacksonJsonProvider.class
1171 Thu Nov 22 11:45:52 GMT 2018 io/swagger/api/StringUtil.class
1176 Thu Nov 22 11:45:52 GMT 2018 
io/swagger/api/impl/GetdataApiServiceImpl.class
621 Thu Nov 22 11:45:52 GMT 2018 
io/swagger/api/factories/GetdataApiServiceFactory.class
1459 Thu Nov 22 11:45:52 GMT 2018 io/swagger/api/ApiOriginFilter.class
0 Thu Nov 22 11:45:54 GMT 2018 META-INF/maven/
0 Thu Nov 22 11:45:54 GMT 2018 META-INF/maven/eu.d.s/
0 Thu Nov 22 11:45:54 GMT 2018 META-INF/maven/eu.d.s/uService/
5257 Thu Nov 22 11:45:16 GMT 2018 META-INF/maven/eu.d.s/uService/pom.xml
115 Thu Nov 22 11:45:54 GMT 2018 META-INF/maven/eu.d.s/uService/pom.properties

# java -cp uservice.jar io.swagger.api.Bootstrap
Error: Could not find or load main class io.swagger.api.Bootstrap


How is this supposed to run? I don't want to manipulate the POM, I know I 
can improve the manifest definition (it just defines the usage of java 1.8) 
but I assume this is ready to run. In addition, I don't see the entry 
point...

Thanks in advance, keep the good work up, grats!


Rodolfo

-- 
You received this message because you are subscribed to the Google Groups 
"Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to swagger-swaggersocket+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to