Code-House / karaf-swagger

Repository for wrapping swagger into karaf features plus some dedicated integration with CXF.
Apache License 2.0
9 stars 6 forks source link

build does not work out-of-the-box #1

Closed maggu2810 closed 7 years ago

maggu2810 commented 8 years ago

Just cloned the repo and done a mvn clean install. Will have a look at later.

[INFO] ------------------------------------------------------------------------
[INFO] Building Code-House :: Swagger :: Karaf Features 3.0.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
Downloading: https://repo.maven.apache.org/maven2/org/codehaus/mojo/build-helper-maven-plugin/maven-metadata.xml
Downloaded: https://repo.maven.apache.org/maven2/org/codehaus/mojo/build-helper-maven-plugin/maven-metadata.xml (667 B at 2.5 KB/sec)
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] Code-House :: Swagger .............................. SUCCESS [  0.117 s]
[INFO] Code-House :: Swagger :: Parent .................... SUCCESS [  0.064 s]
[INFO] Code-House :: Swagger :: Core ...................... SUCCESS [ 13.963 s]
[INFO] Code-House :: Swagger :: Bundle .................... SUCCESS [  0.808 s]
[INFO] Code-House :: Swagger :: UI ........................ SUCCESS [  6.352 s]
[INFO] Code-House :: Swagger :: Karaf Features ............ FAILURE [  0.326 s]
[INFO] Code-House :: Swagger :: Itests .................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 23.514 s
[INFO] Finished at: 2016-02-04T22:04:33+01:00
[INFO] Final Memory: 39M/661M
[INFO] ------------------------------------------------------------------------
[ERROR] Could not find goal 'features-create-kar' in plugin org.apache.karaf.tooling:karaf-maven-plugin:4.0.4 among available goals archive, assembly, client, commands-generate-help, deploy, features-add-to-repository, features-export-meta-data, features-generate-descriptor, kar, run, verify -> [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/MojoNotFoundException
maggu2810 commented 8 years ago

This could be solved using:

diff --git a/features/pom.xml b/features/pom.xml
index ea8a0aa..66e11cd 100644
--- a/features/pom.xml
+++ b/features/pom.xml
@@ -66,7 +66,7 @@
                     <execution>
                         <id>create-kar</id>
                         <goals>
-                            <goal>features-create-kar</goal>
+                            <goal>kar</goal>
                         </goals>
                     </execution>
                 </executions>

Is there any reason you do not set packaging to "kar"?

maggu2810 commented 8 years ago

It seems you want to use Karaf 3, so you should set the karaf-maven-plugin version in the pluginManagement.

splatch commented 7 years ago

@maggu2810 Hey, I completely missed your issue here. Sorry for that. Some of these changes were pushed to CXF so it is possible to have Swagger descriptor generated on the fly on the endpoint basis. This project is still relevant but only if you have multiple endpoints (ie. many service roots) and you would like to create one big descriptor for all of them.

maggu2810 commented 7 years ago

@splatch Over one year old ;) I already used my own features, so I don't really care about this one anymore. You can close it if it is not valid.

splatch commented 7 years ago

Closing as maintainer reaction was too late. ;-)