Hi
I need some help with compiling branch 3.0.0_enhancements
<https://github.com/swagger-api/swagger-codegen/tree/3.0.0_enhancements>.
I do not want to raise this as an issue, as this may be trivial issue in
my environment.
I have used
./run-in-docker.sh mvn package
Got the the following error:
.... AspNetCoreServerCodegen.java: [9,1] package io.swagger.models does not
exists
I understand it is much awaited from Github issue - 6598
<https://github.com/swagger-api/swagger-codegen/issues/6598#issuecomment-352189936>
$ ./run-in-docker.sh mvn clean package
++ dirname ./run-in-docker.sh
+ cd .
+ maven_cache_repo=/home/ssaha/.m2/repository
+ mkdir -p /home/ssaha/.m2/repository
++ id -u
++ id -g
+ docker run --rm -it -w /gen -e GEN_DIR=/gen -e MAVEN_CONFIG=/var/maven/.m2
-u 1000:1000 -v
/home/ssaha/projects/github_swagger_codegen/swagger-codegen:/gen:z
-v /home/ssaha/.m2/repository:/var/maven/.m2/repository:z --entrypoint /gen/
docker-entrypoint.sh maven:3-jdk-7 mvn clean package
[INFO] Scanning for projects...
[INFO]
------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] swagger-codegen-project
[INFO] swagger-codegen (core library)
[INFO] swagger-codegen (executable)
[INFO] swagger-codegen (maven-plugin)
[INFO] swagger-generator
[INFO]
[INFO]
------------------------------------------------------------------------
[INFO] Building swagger-codegen-project 3.0.0-SNAPSHOT
[INFO]
------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @
swagger-codegen-project
---
[INFO]
[INFO] --- maven-checkstyle-plugin:2.17:check (validate) @
swagger-codegen-project
---
[INFO]
[INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-maven) @ swagger-
codegen-project ---
[INFO]
[INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-versions) @ swagger-
codegen-project ---
[INFO]
[INFO] --- maven-surefire-plugin:2.19.1:test (test-testng) @ swagger-codegen
-project ---
[INFO] No tests to run.
[INFO]
[INFO] --- maven-dependency-plugin:2.8:copy-dependencies (default) @ swagger
-codegen-project ---
[INFO]
[INFO]
------------------------------------------------------------------------
[INFO] Building swagger-codegen (core library) 3.0.0-SNAPSHOT
[INFO]
------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ swagger-codegen
---
[INFO] Deleting /gen/modules/swagger-codegen/target
[INFO]
[INFO] --- maven-checkstyle-plugin:2.17:check (validate) @ swagger-codegen
---
[INFO]
[INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-maven) @
swagger-codegen
---
[INFO]
[INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-versions) @
swagger-codegen
---
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @
swagger-codegen ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1817 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.5.1:compile (default-compile) @
swagger-codegen
---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 164 source files to /gen/modules/swagger-codegen/target/
classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /gen/modules/swagger-codegen/src/main/java/io/swagger/codegen/
languages/AspNetCoreServerCodegen.java:[9,1] package io.swagger.models does
not exist
[ERROR] /gen/modules/swagger-codegen/src/main/java/io/swagger/codegen/
languages/AspNetCoreServerCodegen.java:[9,1] package io.swagger.models does
not exist
[ERROR] /gen/modules/swagger-codegen/src/main/java/io/swagger/codegen/
DefaultCodegen.java:[2847,144] cannot access java.util.function.Function
class file for java.util.function.Function not found
[ERROR] /gen/modules/swagger-codegen/src/main/java/io/swagger/codegen/
DefaultCodegen.java:[2849,13] method does not override or implement a
method from a supertype
[INFO] 4 errors
[INFO] -------------------------------------------------------------
[INFO]
------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] swagger-codegen-project ............................ SUCCESS [ 1.584
s]
[INFO] swagger-codegen (core library) ..................... FAILURE [ 3.542
s]
[INFO] swagger-codegen (executable) ....................... SKIPPED
[INFO] swagger-codegen (maven-plugin) ..................... SKIPPED
[INFO] swagger-generator .................................. SKIPPED
[INFO]
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 5.681 s
[INFO] Finished at: 2017-12-18T11:43:37Z
[INFO] Final Memory: 32M/343M
[INFO]
------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-
plugin:3.5.1:compile (default-compile) on project swagger-codegen:
Compilation failure: Compilation failure:
[ERROR] /gen/modules/swagger-codegen/src/main/java/io/swagger/codegen/
languages/AspNetCoreServerCodegen.java:[9,1] package io.swagger.models does
not exist
[ERROR] /gen/modules/swagger-codegen/src/main/java/io/swagger/codegen/
languages/AspNetCoreServerCodegen.java:[9,1] package io.swagger.models does
not exist
[ERROR] /gen/modules/swagger-codegen/src/main/java/io/swagger/codegen/
DefaultCodegen.java:[2847,144] cannot access java.util.function.Function
[ERROR] class file for java.util.function.Function not found
[ERROR] /gen/modules/swagger-codegen/src/main/java/io/swagger/codegen/
DefaultCodegen.java:[2849,13] method does not override or implement a
method from a supertype
[ERROR] -> [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/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the
command
[ERROR] mvn <goals> -rf :swagger-codegen
Any advice, much appreciated.
thanks
--
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 [email protected].
For more options, visit https://groups.google.com/d/optout.