-
-
Notifications
You must be signed in to change notification settings - Fork 6.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[cpp-restsdk] add support for oneOf via std::variant #18474
Conversation
@ravinikam @stkrwork @etherealjoy @MartinDelille @muttleyxd Tagging the C++ committee as per request. |
thanks for the PR. to add some test models/specs, please do the following
|
@wing328 Thanks for the instructions! I have added the test with
|
I ran while running the same command in the master branch is fine. can you please take a look when you've time? |
@wing328 I tried again it works for me. I pushed a change just in case to make the cmake path absolute. Maybe try cleaning the previous remainder. I changed where CMake builds the stuff. Now, it is ./mvnw integration-test -f samples/client/petstore/cpp-restsdk/client/pom.xml
[INFO] Scanning for projects...
[WARNING] This build will only read from the build cache, since the clean lifecycle is not part of the build invocation.
[INFO]
[INFO] ------------< org.openapitools:CppRestPetstoreClientTests >-------------
[INFO] Building CppRest Petstore Client 1.0-SNAPSHOT
[INFO] from pom.xml
[INFO] --------------------------------[ pom ]---------------------------------
[INFO]
[INFO] --- maven-dependency-plugin:2.8:copy-dependencies (default) @ CppRestPetstoreClientTests ---
[INFO]
[INFO] --- exec-maven-plugin:1.2.1:exec (cmake) @ CppRestPetstoreClientTests ---
-- Found Boost: /usr/lib/x86_64-linux-gnu/cmake/Boost-1.74.0/BoostConfig.cmake (found version "1.74.0") found components: random system thread filesystem chrono atomic date_time regex
-- Found Boost: /usr/lib/x86_64-linux-gnu/cmake/Boost-1.74.0/BoostConfig.cmake (found version "1.74.0")
-- Building client library for Linux/Unix
-- Configuring done (0.1s)
-- Generating done (0.0s)
-- Build files have been written to: /media/aminya/Linux/GitHub/test/openapi-generator/samples/client/petstore/cpp-restsdk/client/target
[INFO]
[INFO] --- exec-maven-plugin:1.2.1:exec (make) @ CppRestPetstoreClientTests ---
[ 4%] Building CXX object CMakeFiles/CppRestPetstoreClient.dir/src/AnyType.cpp.o
[ 9%] Building CXX object CMakeFiles/CppRestPetstoreClient.dir/src/ApiClient.cpp.o
[ 14%] Building CXX object CMakeFiles/CppRestPetstoreClient.dir/src/ApiConfiguration.cpp.o
[ 19%] Building CXX object CMakeFiles/CppRestPetstoreClient.dir/src/ApiException.cpp.o
[ 23%] Building CXX object CMakeFiles/CppRestPetstoreClient.dir/src/HttpContent.cpp.o
[ 28%] Building CXX object CMakeFiles/CppRestPetstoreClient.dir/src/JsonBody.cpp.o
[ 33%] Building CXX object CMakeFiles/CppRestPetstoreClient.dir/src/ModelBase.cpp.o
[ 38%] Building CXX object CMakeFiles/CppRestPetstoreClient.dir/src/MultipartFormData.cpp.o
[ 42%] Building CXX object CMakeFiles/CppRestPetstoreClient.dir/src/Object.cpp.o
[ 47%] Building CXX object CMakeFiles/CppRestPetstoreClient.dir/src/api/PetApi.cpp.o
[ 52%] Building CXX object CMakeFiles/CppRestPetstoreClient.dir/src/api/StoreApi.cpp.o
[ 57%] Building CXX object CMakeFiles/CppRestPetstoreClient.dir/src/api/UserApi.cpp.o
[ 61%] Building CXX object CMakeFiles/CppRestPetstoreClient.dir/src/api/UserOrPetApi.cpp.o
[ 66%] Building CXX object CMakeFiles/CppRestPetstoreClient.dir/src/model/ApiResponse.cpp.o
[ 71%] Building CXX object CMakeFiles/CppRestPetstoreClient.dir/src/model/Category.cpp.o
[ 76%] Building CXX object CMakeFiles/CppRestPetstoreClient.dir/src/model/Order.cpp.o
[ 80%] Building CXX object CMakeFiles/CppRestPetstoreClient.dir/src/model/CreateUserOrPet_request.cpp.o
[ 85%] Building CXX object CMakeFiles/CppRestPetstoreClient.dir/src/model/Pet.cpp.o
[ 90%] Building CXX object CMakeFiles/CppRestPetstoreClient.dir/src/model/Tag.cpp.o
[ 95%] Building CXX object CMakeFiles/CppRestPetstoreClient.dir/src/model/User.cpp.o
[100%] Linking CXX static library libCppRestPetstoreClient.a
[100%] Built target CppRestPetstoreClient
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 10.102 s
[INFO] Finished at: 2024-04-24T21:11:19-07:00
[INFO] ------------------------------------------------------------------------
[INFO] 3 goals, 3 executed |
i suggest adding an option in another PR to let users choose where to build the stuff. i got the same errors with the latest change. what about undo the Cmake file change and get this PR merged to just add the oneOf support? |
Cmake already provides this option through -B, which is the same flag I used in the pom.xml file. This change doesn't affect the end-users. I just changed where the test builds via Maven. I can revert that part, but it would build the test in the same directory as the test source. Did you try cleaning up your test-dir? |
if you run i don't see any new files created/generated that need to be cleaned up during the integration tests (but still I ran |
Yes, that's what I've been doing. If you see the logs here: For clean-up try git clean -fXd samples/client/petstore/cpp-restsdk/client I'm curious to see your full log, and what mvn exactly calls (the cmake command), and maybe the version of your CMake. ./mvnw -X integration-test -f samples/client/petstore/cpp-restsdk/client/pom.xml cmake --version ls samples/client/petstore/cpp-restsdk/client/ Here's mine: test./mvnw -X integration-test -f samples/client/petstore/cpp-restsdk/client/pom.xml
Apache Maven 3.8.8 (4c87b05d9aedce574290d1acc98575ed5eb6cd39)
Maven home: /home/aminya/.m2/wrapper/dists/apache-maven-3.8.8-bin/67c30f74/apache-maven-3.8.8
Java version: 21.0.2, vendor: Private Build, runtime: /usr/lib/jvm/java-21-openjdk-amd64
Default locale: en, platform encoding: UTF-8
OS name: "linux", version: "6.5.0-28-generic", arch: "amd64", family: "unix"
[DEBUG] Reading global settings from /home/aminya/.m2/wrapper/dists/apache-maven-3.8.8-bin/67c30f74/apache-maven-3.8.8/conf/settings.xml
[DEBUG] Reading user settings from /home/aminya/.m2/settings.xml
[DEBUG] Using manager EnhancedLocalRepositoryManager with priority 10.0 for /home/aminya/.m2/repository
[DEBUG] Dependency collection stats {ConflictMarker.analyzeTime=231305, ConflictMarker.markTime=56856, ConflictMarker.nodeCount=1, ConflictIdSorter.graphTime=149830, ConflictIdSorter.topsortTime=133302, ConflictIdSorter.conflictIdCount=1, ConflictIdSorter.conflictIdCycleCount=0, ConflictResolver.totalTime=903299, ConflictResolver.conflictItemCount=1, DefaultDependencyCollector.collectTime=18001496, DefaultDependencyCollector.transformTime=2137608}
[DEBUG] com.gradle:gradle-enterprise-maven-extension:jar:1.20.1
[DEBUG] Populating class realm coreExtension>com.gradle:gradle-enterprise-maven-extension:1.20.1
[DEBUG] Included com.gradle:gradle-enterprise-maven-extension located at /home/aminya/.m2/repository/com/gradle/gradle-enterprise-maven-extension/1.20.1/gradle-enterprise-maven-extension-1.20.1.jar
[DEBUG] Dependency collection stats {ConflictMarker.analyzeTime=9779, ConflictMarker.markTime=28363, ConflictMarker.nodeCount=1, ConflictIdSorter.graphTime=2932, ConflictIdSorter.topsortTime=4977, ConflictIdSorter.conflictIdCount=1, ConflictIdSorter.conflictIdCycleCount=0, ConflictResolver.totalTime=27649, ConflictResolver.conflictItemCount=1, DefaultDependencyCollector.collectTime=3746010, DefaultDependencyCollector.transformTime=82846}
[DEBUG] com.gradle:common-custom-user-data-maven-extension:jar:1.12.5
[DEBUG] Populating class realm coreExtension>com.gradle:common-custom-user-data-maven-extension:1.12.5
[DEBUG] Included com.gradle:common-custom-user-data-maven-extension located at /home/aminya/.m2/repository/com/gradle/common-custom-user-data-maven-extension/1.12.5/common-custom-user-data-maven-extension-1.12.5.jar
[DEBUG] Populating class realm maven.ext
[DEBUG] Injecting Gradle Enterprise Maven Extension version '1.20.1' from realm 'coreExtension>com.gradle:gradle-enterprise-maven-extension:1.20.1'
[DEBUG] Parsing 'components.xml' at jar:file:/home/aminya/.m2/wrapper/dists/apache-maven-3.8.8-bin/67c30f74/apache-maven-3.8.8/lib/org.eclipse.sisu.plexus-0.3.5.jar!/META-INF/plexus/components.xml
[DEBUG] Parsing 'components.xml' at jar:file:/home/aminya/.m2/wrapper/dists/apache-maven-3.8.8-bin/67c30f74/apache-maven-3.8.8/lib/maven-core-3.8.8.jar!/META-INF/plexus/components.xml
[DEBUG] Parsing 'components.xml' at jar:file:/home/aminya/.m2/wrapper/dists/apache-maven-3.8.8-bin/67c30f74/apache-maven-3.8.8/lib/wagon-file-3.5.3.jar!/META-INF/plexus/components.xml
[DEBUG] Parsing 'components.xml' at jar:file:/home/aminya/.m2/wrapper/dists/apache-maven-3.8.8-bin/67c30f74/apache-maven-3.8.8/lib/wagon-http-3.5.3-shaded.jar!/META-INF/plexus/components.xml
[DEBUG] Parsing 'components.xml' at jar:file:/home/aminya/.m2/wrapper/dists/apache-maven-3.8.8-bin/67c30f74/apache-maven-3.8.8/lib/maven-compat-3.8.8.jar!/META-INF/plexus/components.xml
[DEBUG] Parsing 'components.xml' at jar:file:/home/aminya/.m2/repository/com/gradle/common-custom-user-data-maven-extension/1.12.5/common-custom-user-data-maven-extension-1.12.5.jar!/META-INF/plexus/components.xml
[DEBUG] Decorating realm [coreExtension>com.gradle:common-custom-user-data-maven-extension:1.12.5] with Gradle Enterprise API classes
[DEBUG] No component found implementing GradleEnterpriseListener with hint 'common-custom-user-data'. Force re-discovery
[DEBUG] Created new class realm maven.api
[DEBUG] Importing foreign packages into class realm maven.api
[DEBUG] Imported: com.gradle.maven.extension.api < maven.ext
[DEBUG] Imported: com.gradle.maven.extension.api.cache < maven.ext
[DEBUG] Imported: com.gradle.maven.extension.api.scan < maven.ext
[DEBUG] Imported: com.gradle.maven.mojo < maven.ext
[DEBUG] Imported: javax.annotation.* < maven.ext
[DEBUG] Imported: javax.annotation.security.* < maven.ext
[DEBUG] Imported: javax.inject.* < maven.ext
[DEBUG] Imported: org.apache.maven.* < maven.ext
[DEBUG] Imported: org.apache.maven.artifact < maven.ext
[DEBUG] Imported: org.apache.maven.classrealm < maven.ext
[DEBUG] Imported: org.apache.maven.cli < maven.ext
[DEBUG] Imported: org.apache.maven.configuration < maven.ext
[DEBUG] Imported: org.apache.maven.exception < maven.ext
[DEBUG] Imported: org.apache.maven.execution < maven.ext
[DEBUG] Imported: org.apache.maven.execution.scope < maven.ext
[DEBUG] Imported: org.apache.maven.graph < maven.ext
[DEBUG] Imported: org.apache.maven.lifecycle < maven.ext
[DEBUG] Imported: org.apache.maven.model < maven.ext
[DEBUG] Imported: org.apache.maven.monitor < maven.ext
[DEBUG] Imported: org.apache.maven.plugin < maven.ext
[DEBUG] Imported: org.apache.maven.profiles < maven.ext
[DEBUG] Imported: org.apache.maven.project < maven.ext
[DEBUG] Imported: org.apache.maven.reporting < maven.ext
[DEBUG] Imported: org.apache.maven.repository < maven.ext
[DEBUG] Imported: org.apache.maven.rtinfo < maven.ext
[DEBUG] Imported: org.apache.maven.settings < maven.ext
[DEBUG] Imported: org.apache.maven.toolchain < maven.ext
[DEBUG] Imported: org.apache.maven.usability < maven.ext
[DEBUG] Imported: org.apache.maven.wagon.* < maven.ext
[DEBUG] Imported: org.apache.maven.wagon.authentication < maven.ext
[DEBUG] Imported: org.apache.maven.wagon.authorization < maven.ext
[DEBUG] Imported: org.apache.maven.wagon.events < maven.ext
[DEBUG] Imported: org.apache.maven.wagon.observers < maven.ext
[DEBUG] Imported: org.apache.maven.wagon.proxy < maven.ext
[DEBUG] Imported: org.apache.maven.wagon.repository < maven.ext
[DEBUG] Imported: org.apache.maven.wagon.resource < maven.ext
[DEBUG] Imported: org.codehaus.classworlds < maven.ext
[DEBUG] Imported: org.codehaus.plexus.* < maven.ext
[DEBUG] Imported: org.codehaus.plexus.classworlds < maven.ext
[DEBUG] Imported: org.codehaus.plexus.component < maven.ext
[DEBUG] Imported: org.codehaus.plexus.configuration < maven.ext
[DEBUG] Imported: org.codehaus.plexus.container < maven.ext
[DEBUG] Imported: org.codehaus.plexus.context < maven.ext
[DEBUG] Imported: org.codehaus.plexus.lifecycle < maven.ext
[DEBUG] Imported: org.codehaus.plexus.logging < maven.ext
[DEBUG] Imported: org.codehaus.plexus.personality < maven.ext
[DEBUG] Imported: org.codehaus.plexus.util.xml.Xpp3Dom < maven.ext
[DEBUG] Imported: org.codehaus.plexus.util.xml.pull.XmlPullParser < maven.ext
[DEBUG] Imported: org.codehaus.plexus.util.xml.pull.XmlPullParserException < maven.ext
[DEBUG] Imported: org.codehaus.plexus.util.xml.pull.XmlSerializer < maven.ext
[DEBUG] Imported: org.eclipse.aether.* < maven.ext
[DEBUG] Imported: org.eclipse.aether.artifact < maven.ext
[DEBUG] Imported: org.eclipse.aether.collection < maven.ext
[DEBUG] Imported: org.eclipse.aether.deployment < maven.ext
[DEBUG] Imported: org.eclipse.aether.graph < maven.ext
[DEBUG] Imported: org.eclipse.aether.impl < maven.ext
[DEBUG] Imported: org.eclipse.aether.installation < maven.ext
[DEBUG] Imported: org.eclipse.aether.internal.impl < maven.ext
[DEBUG] Imported: org.eclipse.aether.metadata < maven.ext
[DEBUG] Imported: org.eclipse.aether.repository < maven.ext
[DEBUG] Imported: org.eclipse.aether.resolution < maven.ext
[DEBUG] Imported: org.eclipse.aether.spi < maven.ext
[DEBUG] Imported: org.eclipse.aether.transfer < maven.ext
[DEBUG] Imported: org.eclipse.aether.version < maven.ext
[DEBUG] Imported: org.fusesource.jansi.* < maven.ext
[DEBUG] Imported: org.slf4j.* < maven.ext
[DEBUG] Imported: org.slf4j.event.* < maven.ext
[DEBUG] Imported: org.slf4j.helpers.* < maven.ext
[DEBUG] Imported: org.slf4j.spi.* < maven.ext
[DEBUG] Populating class realm maven.api
[INFO] Error stacktraces are turned on.
[DEBUG] Message scheme: color
[DEBUG] Message styles: debug info warning error success failure strong mojo project
[DEBUG] Reading global settings from /home/aminya/.m2/wrapper/dists/apache-maven-3.8.8-bin/67c30f74/apache-maven-3.8.8/conf/settings.xml
[DEBUG] Reading user settings from /home/aminya/.m2/settings.xml
[DEBUG] Reading global toolchains from /home/aminya/.m2/wrapper/dists/apache-maven-3.8.8-bin/67c30f74/apache-maven-3.8.8/conf/toolchains.xml
[DEBUG] Reading user toolchains from /home/aminya/.m2/toolchains.xml
[DEBUG] State transition from 'INITIAL' to 'EXECUTION_STARTED' for Gradle Enterprise Maven extension version '1.20.1'.
[DEBUG] Transitioning to 'EXECUTION_STARTED'.
[DEBUG] Using local repository at /home/aminya/.m2/repository
[DEBUG] Using manager EnhancedLocalRepositoryManager with priority 10.0 for /home/aminya/.m2/repository
[DEBUG] Reading Gradle Enterprise default configuration file 'jar:file:/home/aminya/.m2/repository/com/gradle/gradle-enterprise-maven-extension/1.20.1/gradle-enterprise-maven-extension-1.20.1.jar!/com/gradle/maven/common/configuration/model/gradle-enterprise-default.xml'
[DEBUG] Skipping Gradle Enterprise global configuration file '/home/aminya/.m2/wrapper/dists/apache-maven-3.8.8-bin/67c30f74/apache-maven-3.8.8/conf/gradle-enterprise.xml' because it does not exist
[DEBUG] Skipping Gradle Enterprise classpath configuration file because it does not exist
[DEBUG] Reading Gradle Enterprise project configuration file '**************************/**********/openapi-generator/.mvn/gradle-enterprise.xml'
[DEBUG] Skipping Gradle Enterprise user configuration file '/home/aminya/.m2/gradle-enterprise.xml' because it does not exist
[INFO] Scanning for projects...
[DEBUG] Extension realms for project org.openapitools:CppRestPetstoreClientTests:pom:1.0-SNAPSHOT: (none)
[DEBUG] Looking up lifecycle mappings for packaging pom from ClassRealm[maven.ext, parent: ClassRealm[plexus.core, parent: null]]
[DEBUG] State transition from 'EXECUTION_STARTED' to 'API_LOCKED' for Gradle Enterprise Maven extension version '1.20.1'.
[DEBUG] Transitioning to 'API_LOCKED'.
[DEBUG] Executing extension: CommonCustomUserDataGradleEnterpriseListener
[DEBUG] Configuring Gradle Enterprise
[DEBUG] Finished configuring Gradle Enterprise
[DEBUG] Configuring build scan publishing and applying build scan enhancements
[DEBUG] Finished configuring build scan publishing and applying build scan enhancements
[DEBUG] Configuring build cache
[DEBUG] Finished configuring build cache
[DEBUG] Skipping evaluation of custom user data Groovy script because it does not exist: **************************/**********/openapi-generator/.mvn/gradle-enterprise-custom-user-data.groovy
[DEBUG] Build operation 'Read build cache configuration' started
[WARNING] This build will only read from the build cache, since the clean lifecycle is not part of the build invocation.
[DEBUG] Gradle Enterprise Maven Extension: 1.20.1
[DEBUG] Using the build cache with the following configuration:
Local build cache: enabled
storeEnabled: false
directory: /home/aminya/.m2/.gradle-enterprise/build-cache
cleanup: enabled
retention: P7D
interval: P1D
Remote build cache: enabled
url: https://ge.openapi-generator.tech/cache/
authentication: none
storeEnabled: false
allowUntrustedServer: false
allowInsecureProtocol: false
useExpectContinue: false
[DEBUG] Completing Build operation 'Read build cache configuration'
[DEBUG] Build operation 'Read build cache configuration' completed
[DEBUG] Using mirror maven-default-http-blocker (http://*******/) for codehaus.snapshots (http://snapshots.repository.codehaus.org).
[DEBUG] Using mirror maven-default-http-blocker (http://*******/) for apache.snapshots (http://people.apache.org/repo/m2-snapshot-repository).
[DEBUG] Using mirror maven-default-http-blocker (http://*******/) for snapshots (http://snapshots.maven.codehaus.org/maven2).
[DEBUG] Using mirror maven-default-http-blocker (http://*******/) for central (http://repo1.maven.org/maven2).
[DEBUG] Dependency collection stats {ConflictMarker.analyzeTime=29983, ConflictMarker.markTime=33518, ConflictMarker.nodeCount=6, ConflictIdSorter.graphTime=17648, ConflictIdSorter.topsortTime=8569, ConflictIdSorter.conflictIdCount=5, ConflictIdSorter.conflictIdCycleCount=0, ConflictResolver.totalTime=404988, ConflictResolver.conflictItemCount=6, DefaultDependencyCollector.collectTime=16335356, DefaultDependencyCollector.transformTime=521360}
[DEBUG] org.jvnet.wagon-svn:wagon-svn:jar:1.12
[DEBUG] org.jvnet.hudson.svnkit:svnkit:jar:1.1.4-hudson-4:compile
[DEBUG] ch.ethz.ganymed:ganymed-ssh2:jar:build210:compile
[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.4.1:compile
[DEBUG] org.apache.maven.wagon:wagon-provider-api:jar:1.0-beta-2:compile
[DEBUG] Created new class realm extension>org.jvnet.wagon-svn:wagon-svn:1.12
[DEBUG] Importing foreign packages into class realm extension>org.jvnet.wagon-svn:wagon-svn:1.12
[DEBUG] Imported: < maven.api
[DEBUG] Populating class realm extension>org.jvnet.wagon-svn:wagon-svn:1.12
[DEBUG] Included: org.jvnet.wagon-svn:wagon-svn:jar:1.12
[DEBUG] Included: org.jvnet.hudson.svnkit:svnkit:jar:1.1.4-hudson-4
[DEBUG] Included: ch.ethz.ganymed:ganymed-ssh2:jar:build210
[DEBUG] Included: org.codehaus.plexus:plexus-utils:jar:1.4.1
[DEBUG] Dependency collection stats {ConflictMarker.analyzeTime=34121, ConflictMarker.markTime=34526, ConflictMarker.nodeCount=9, ConflictIdSorter.graphTime=17243, ConflictIdSorter.topsortTime=7950, ConflictIdSorter.conflictIdCount=5, ConflictIdSorter.conflictIdCycleCount=0, ConflictResolver.totalTime=124903, ConflictResolver.conflictItemCount=9, DefaultDependencyCollector.collectTime=30750325, DefaultDependencyCollector.transformTime=231689}
[DEBUG] org.apache.maven.wagon:wagon-ssh-external:jar:3.4.3
[DEBUG] org.codehaus.plexus:plexus-utils:jar:3.3.0:compile
[DEBUG] org.apache.maven.wagon:wagon-ssh-common:jar:3.4.3:compile
[DEBUG] org.codehaus.plexus:plexus-interactivity-api:jar:1.0:compile (version managed from default) (exclusions managed from default)
[DEBUG] org.apache.maven.wagon:wagon-provider-api:jar:3.4.3:compile
[DEBUG] Created new class realm extension>org.apache.maven.wagon:wagon-ssh-external:3.4.3
[DEBUG] Importing foreign packages into class realm extension>org.apache.maven.wagon:wagon-ssh-external:3.4.3
[DEBUG] Imported: < maven.api
[DEBUG] Populating class realm extension>org.apache.maven.wagon:wagon-ssh-external:3.4.3
[DEBUG] Included: org.apache.maven.wagon:wagon-ssh-external:jar:3.4.3
[DEBUG] Included: org.codehaus.plexus:plexus-utils:jar:3.3.0
[DEBUG] Included: org.apache.maven.wagon:wagon-ssh-common:jar:3.4.3
[DEBUG] Included: org.codehaus.plexus:plexus-interactivity-api:jar:1.0
[DEBUG] Dependency collection stats {ConflictMarker.analyzeTime=26265, ConflictMarker.markTime=34393, ConflictMarker.nodeCount=9, ConflictIdSorter.graphTime=9016, ConflictIdSorter.topsortTime=7884, ConflictIdSorter.conflictIdCount=8, ConflictIdSorter.conflictIdCycleCount=0, ConflictResolver.totalTime=171328, ConflictResolver.conflictItemCount=9, DefaultDependencyCollector.collectTime=12584542, DefaultDependencyCollector.transformTime=263333}
[DEBUG] org.apache.maven.wagon:wagon-webdav:jar:1.0-beta-2
[DEBUG] slide:slide-webdavlib:jar:2.1:compile
[DEBUG] commons-httpclient:commons-httpclient:jar:2.0.2:compile
[DEBUG] jdom:jdom:jar:1.0:compile
[DEBUG] de.zeigermann.xml:xml-im-exporter:jar:1.1:compile
[DEBUG] commons-logging:commons-logging:jar:1.0.4:runtime
[DEBUG] org.apache.maven.wagon:wagon-provider-api:jar:1.0-beta-2:compile
[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4:compile (version managed from default)
[DEBUG] Created new class realm extension>org.apache.maven.wagon:wagon-webdav:1.0-beta-2
[DEBUG] Importing foreign packages into class realm extension>org.apache.maven.wagon:wagon-webdav:1.0-beta-2
[DEBUG] Imported: < maven.api
[DEBUG] Populating class realm extension>org.apache.maven.wagon:wagon-webdav:1.0-beta-2
[DEBUG] Included: org.apache.maven.wagon:wagon-webdav:jar:1.0-beta-2
[DEBUG] Included: slide:slide-webdavlib:jar:2.1
[DEBUG] Included: commons-httpclient:commons-httpclient:jar:2.0.2
[DEBUG] Included: jdom:jdom:jar:1.0
[DEBUG] Included: de.zeigermann.xml:xml-im-exporter:jar:1.1
[DEBUG] Included: commons-logging:commons-logging:jar:1.0.4
[DEBUG] Included: org.codehaus.plexus:plexus-utils:jar:1.0.4
[DEBUG] Extension realms for project org.openapitools:openapi-generator-project:pom:7.6.0-SNAPSHOT: [ClassRealm[extension>org.jvnet.wagon-svn:wagon-svn:1.12, parent: java.net.URLClassLoader@52cc8049], ClassRealm[extension>org.apache.maven.wagon:wagon-ssh-external:3.4.3, parent: java.net.URLClassLoader@52cc8049], ClassRealm[extension>org.apache.maven.wagon:wagon-webdav:1.0-beta-2, parent: java.net.URLClassLoader@52cc8049]]
[DEBUG] Created new class realm project>org.openapitools:openapi-generator-project:7.6.0-SNAPSHOT
[DEBUG] Populating class realm project>org.openapitools:openapi-generator-project:7.6.0-SNAPSHOT
[DEBUG] Looking up lifecycle mappings for packaging pom from ClassRealm[project>org.openapitools:openapi-generator-project:7.6.0-SNAPSHOT, parent: ClassRealm[maven.api, parent: null]]
[DEBUG] Extension realms for project org.sonatype.oss:oss-parent:pom:5: (none)
[DEBUG] Looking up lifecycle mappings for packaging pom from ClassRealm[maven.ext, parent: ClassRealm[plexus.core, parent: null]]
[DEBUG] === REACTOR BUILD PLAN ================================================
[DEBUG] Project: org.openapitools:CppRestPetstoreClientTests:pom:1.0-SNAPSHOT
[DEBUG] Tasks: [integration-test]
[DEBUG] Style: Regular
[DEBUG] =======================================================================
[INFO]
[INFO] ------------< org.openapitools:CppRestPetstoreClientTests >-------------
[INFO] Building CppRest Petstore Client 1.0-SNAPSHOT
[INFO] from pom.xml
[INFO] --------------------------------[ pom ]---------------------------------
[DEBUG] Lifecycle default -> [validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy]
[DEBUG] Lifecycle clean -> [pre-clean, clean, post-clean]
[DEBUG] Lifecycle site -> [pre-site, site, post-site, site-deploy]
[DEBUG] Starting project 'CppRest Petstore Client'
[DEBUG] Using mirror maven-default-http-blocker (http://*******/) for apache.snapshots (http://repository.apache.org/snapshots).
[DEBUG] Using mirror maven-default-http-blocker (http://*******/) for codehaus.org (http://snapshots.repository.codehaus.org).
[DEBUG] Using mirror maven-default-http-blocker (http://*******/) for codehaus-snapshots (http://nexus.codehaus.org/snapshots/).
[DEBUG] Lifecycle default -> [validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy]
[DEBUG] Lifecycle clean -> [pre-clean, clean, post-clean]
[DEBUG] Lifecycle site -> [pre-site, site, post-site, site-deploy]
[DEBUG] Lifecycle default -> [validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy]
[DEBUG] Lifecycle clean -> [pre-clean, clean, post-clean]
[DEBUG] Lifecycle site -> [pre-site, site, post-site, site-deploy]
[DEBUG] Lifecycle default -> [validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy]
[DEBUG] Lifecycle clean -> [pre-clean, clean, post-clean]
[DEBUG] Lifecycle site -> [pre-site, site, post-site, site-deploy]
[DEBUG] === PROJECT BUILD PLAN ================================================
[DEBUG] Project: org.openapitools:CppRestPetstoreClientTests:1.0-SNAPSHOT
[DEBUG] Dependencies (collect): []
[DEBUG] Dependencies (resolve): [test]
[DEBUG] Repositories (dependencies): [central (https://repo.maven.apache.org/maven2, default, releases)]
[DEBUG] Repositories (plugins) : [central (https://repo.maven.apache.org/maven2, default, releases)]
[DEBUG] -----------------------------------------------------------------------
[DEBUG] Goal: org.apache.maven.plugins:maven-dependency-plugin:2.8:copy-dependencies (default)
[DEBUG] Style: Regular
[DEBUG] Configuration: <?xml version="1.0" encoding="UTF-8"?>
<configuration>
<addParentPoms default-value="false"/>
<classifier default-value="">${classifier}</classifier>
<copyPom default-value="false">${mdep.copyPom}</copyPom>
<excludeArtifactIds default-value="">${excludeArtifactIds}</excludeArtifactIds>
<excludeClassifiers default-value="">${excludeClassifiers}</excludeClassifiers>
<excludeGroupIds default-value="">${excludeGroupIds}</excludeGroupIds>
<excludeScope default-value="">${excludeScope}</excludeScope>
<excludeTransitive default-value="false">${excludeTransitive}</excludeTransitive>
<excludeTypes default-value="">${excludeTypes}</excludeTypes>
<failOnMissingClassifierArtifact default-value="false">${mdep.failOnMissingClassifierArtifact}</failOnMissingClassifierArtifact>
<includeArtifactIds default-value="">${includeArtifactIds}</includeArtifactIds>
<includeClassifiers default-value="">${includeClassifiers}</includeClassifiers>
<includeGroupIds default-value="">${includeGroupIds}</includeGroupIds>
<includeScope default-value="">${includeScope}</includeScope>
<includeTypes default-value="">${includeTypes}</includeTypes>
<local default-value="${localRepository}"/>
<markersDirectory default-value="${project.build.directory}/dependency-maven-plugin-markers">${markersDirectory}</markersDirectory>
<outputAbsoluteArtifactFilename default-value="false">${outputAbsoluteArtifactFilename}</outputAbsoluteArtifactFilename>
<outputDirectory default-value="${project.build.directory}/dependency">**************************/**********/openapi-generator/samples/client/petstore/cpp-restsdk/client/target</outputDirectory>
<overWriteIfNewer default-value="true">${overWriteIfNewer}</overWriteIfNewer>
<overWriteReleases default-value="false">${overWriteReleases}</overWriteReleases>
<overWriteSnapshots default-value="false">${overWriteSnapshots}</overWriteSnapshots>
<prependGroupId default-value="false">${mdep.prependGroupId}</prependGroupId>
<reactorProjects default-value="${reactorProjects}"/>
<remoteRepos default-value="${project.remoteArtifactRepositories}"/>
<silent default-value="false">${silent}</silent>
<skip default-value="false">${mdep.skip}</skip>
<stripClassifier default-value="false">${mdep.stripClassifier}</stripClassifier>
<stripVersion default-value="false">${mdep.stripVersion}</stripVersion>
<type default-value="">${type}</type>
<useBaseVersion default-value="true">${mdep.useBaseVersion}</useBaseVersion>
<useRepositoryLayout default-value="false">${mdep.useRepositoryLayout}</useRepositoryLayout>
<useSubDirectoryPerArtifact default-value="false">${mdep.useSubDirectoryPerArtifact}</useSubDirectoryPerArtifact>
<useSubDirectoryPerScope default-value="false">${mdep.useSubDirectoryPerScope}</useSubDirectoryPerScope>
<useSubDirectoryPerType default-value="false">${mdep.useSubDirectoryPerType}</useSubDirectoryPerType>
<project default-value="${project}"/>
</configuration>
[DEBUG] -----------------------------------------------------------------------
[DEBUG] Goal: org.codehaus.mojo:exec-maven-plugin:1.2.1:exec (cmake)
[DEBUG] Style: Regular
[DEBUG] Configuration: <?xml version="1.0" encoding="UTF-8"?>
<configuration>
<arguments>
<argument>-S=**************************/**********/openapi-generator/samples/client/petstore/cpp-restsdk/client</argument>
<argument>-B=**************************/**********/openapi-generator/samples/client/petstore/cpp-restsdk/client/target</argument>
<argument>-DCMAKE_CXX_FLAGS="-I/usr/local/opt/openssl/include"</argument>
<argument>-DCMAKE_MODULE_LINKER_FLAGS="-L/usr/local/opt/openssl/lib"</argument>
<argument>-DCMAKE_BUILD_TYPE=Debug</argument>
</arguments>
<basedir default-value="${basedir}"/>
<classpathScope default-value="runtime">${exec.classpathScope}</classpathScope>
<commandlineArgs>${exec.args}</commandlineArgs>
<executable>cmake</executable>
<longClasspath default-value="false">${exec.longClasspath}</longClasspath>
<outputFile>${exec.outputFile}</outputFile>
<project default-value="${project}"/>
<session default-value="${session}"/>
<skip default-value="false">${skip}</skip>
<sourceRoot>${sourceRoot}</sourceRoot>
<testSourceRoot>${testSourceRoot}</testSourceRoot>
<workingDirectory>${exec.workingdir}</workingDirectory>
</configuration>
[DEBUG] -----------------------------------------------------------------------
[DEBUG] Goal: org.codehaus.mojo:exec-maven-plugin:1.2.1:exec (make)
[DEBUG] Style: Regular
[DEBUG] Configuration: <?xml version="1.0" encoding="UTF-8"?>
<configuration>
<arguments>
<argument>--build</argument>
<argument>**************************/**********/openapi-generator/samples/client/petstore/cpp-restsdk/client/target</argument>
<argument>--config=Debug</argument>
<argument>--parallel</argument>
</arguments>
<basedir default-value="${basedir}"/>
<classpathScope default-value="runtime">${exec.classpathScope}</classpathScope>
<commandlineArgs>${exec.args}</commandlineArgs>
<executable>cmake</executable>
<longClasspath default-value="false">${exec.longClasspath}</longClasspath>
<outputFile>${exec.outputFile}</outputFile>
<project default-value="${project}"/>
<session default-value="${session}"/>
<skip default-value="false">${skip}</skip>
<sourceRoot>${sourceRoot}</sourceRoot>
<testSourceRoot>${testSourceRoot}</testSourceRoot>
<workingDirectory>${exec.workingdir}</workingDirectory>
</configuration>
[DEBUG] =======================================================================
[DEBUG] Dependency collection stats {ConflictMarker.analyzeTime=19943, ConflictMarker.markTime=47793, ConflictMarker.nodeCount=1, ConflictIdSorter.graphTime=2453, ConflictIdSorter.topsortTime=7411, ConflictIdSorter.conflictIdCount=0, ConflictIdSorter.conflictIdCycleCount=0, ConflictResolver.totalTime=22684, ConflictResolver.conflictItemCount=0, DefaultDependencyCollector.collectTime=9634, DefaultDependencyCollector.transformTime=675624}
[DEBUG] org.openapitools:CppRestPetstoreClientTests:pom:1.0-SNAPSHOT
[INFO]
[INFO] --- maven-dependency-plugin:2.8:copy-dependencies (default) @ CppRestPetstoreClientTests ---
[DEBUG] Using mirror maven-default-http-blocker (http://*******/) for apache-snapshots (http://people.apache.org/maven-snapshot-repository).
[DEBUG] Using mirror maven-default-http-blocker (http://*******/) for codehaus-snapshots (http://snapshots.repository.codehaus.org).
[DEBUG] Using mirror maven-default-http-blocker (http://*******/) for apache.snapshots (http://cvs.apache.org/maven-snapshot-repository).
[DEBUG] Using mirror maven-default-http-blocker (http://*******/) for apache.snapshots (http://people.apache.org/maven-snapshot-repository).
[DEBUG] Using mirror maven-default-http-blocker (http://*******/) for apache-snapshots (http://people.apache.org/repo/m2-snapshot-repository).
[DEBUG] Dependency collection stats {ConflictMarker.analyzeTime=666621, ConflictMarker.markTime=221289, ConflictMarker.nodeCount=297, ConflictIdSorter.graphTime=229027, ConflictIdSorter.topsortTime=44953, ConflictIdSorter.conflictIdCount=63, ConflictIdSorter.conflictIdCycleCount=0, ConflictResolver.totalTime=2576855, ConflictResolver.conflictItemCount=167, DefaultDependencyCollector.collectTime=258568808, DefaultDependencyCollector.transformTime=3774849}
[DEBUG] org.apache.maven.plugins:maven-dependency-plugin:jar:2.8
[DEBUG] org.apache.maven:maven-artifact:jar:2.0.9:compile
[DEBUG] org.apache.maven:maven-plugin-api:jar:2.0.9:compile
[DEBUG] org.apache.maven:maven-project:jar:2.0.9:compile
[DEBUG] org.apache.maven:maven-settings:jar:2.0.9:compile
[DEBUG] org.apache.maven:maven-profile:jar:2.0.9:compile
[DEBUG] org.apache.maven:maven-plugin-registry:jar:2.0.9:compile
[DEBUG] org.apache.maven:maven-model:jar:2.0.9:compile
[DEBUG] org.apache.maven:maven-core:jar:2.0.9:compile
[DEBUG] org.apache.maven:maven-plugin-parameter-documenter:jar:2.0.9:compile
[DEBUG] org.apache.maven:maven-error-diagnostics:jar:2.0.9:compile
[DEBUG] commons-cli:commons-cli:jar:1.0:compile
[DEBUG] org.apache.maven:maven-plugin-descriptor:jar:2.0.9:compile
[DEBUG] org.codehaus.plexus:plexus-interactivity-api:jar:1.0-alpha-4:compile
[DEBUG] org.apache.maven:maven-monitor:jar:2.0.9:compile
[DEBUG] org.apache.maven:maven-artifact-manager:jar:2.0.9:compile
[DEBUG] org.apache.maven:maven-repository-metadata:jar:2.0.9:compile
[DEBUG] org.apache.maven.reporting:maven-reporting-api:jar:3.0:compile
[DEBUG] org.apache.maven.reporting:maven-reporting-impl:jar:2.0.5:compile
[DEBUG] org.apache.maven.doxia:doxia-core:jar:1.0:compile
[DEBUG] org.apache.maven.shared:maven-doxia-tools:jar:1.0.2:compile
[DEBUG] commons-io:commons-io:jar:1.4:compile
[DEBUG] commons-validator:commons-validator:jar:1.2.0:compile
[DEBUG] commons-beanutils:commons-beanutils:jar:1.7.0:compile
[DEBUG] commons-digester:commons-digester:jar:1.6:compile
[DEBUG] commons-logging:commons-logging:jar:1.0.4:compile
[DEBUG] oro:oro:jar:2.0.8:compile
[DEBUG] xml-apis:xml-apis:jar:1.0.b2:compile
[DEBUG] org.apache.maven.doxia:doxia-sink-api:jar:1.0:compile
[DEBUG] org.apache.maven.doxia:doxia-site-renderer:jar:1.0:compile
[DEBUG] org.codehaus.plexus:plexus-i18n:jar:1.0-beta-7:compile
[DEBUG] org.codehaus.plexus:plexus-velocity:jar:1.1.7:compile
[DEBUG] org.apache.velocity:velocity:jar:1.5:compile
[DEBUG] org.apache.maven.doxia:doxia-decoration-model:jar:1.0:compile
[DEBUG] org.apache.maven.doxia:doxia-module-apt:jar:1.0:compile
[DEBUG] org.apache.maven.doxia:doxia-module-fml:jar:1.0:compile
[DEBUG] org.apache.maven.doxia:doxia-module-xdoc:jar:1.0:compile
[DEBUG] org.apache.maven.doxia:doxia-module-xhtml:jar:1.0:compile
[DEBUG] org.codehaus.plexus:plexus-archiver:jar:2.3:compile
[DEBUG] org.codehaus.plexus:plexus-utils:jar:3.0.9:compile
[DEBUG] org.apache.maven.shared:file-management:jar:1.2.1:compile
[DEBUG] org.apache.maven.shared:maven-shared-io:jar:1.1:compile
[DEBUG] org.apache.maven.wagon:wagon-provider-api:jar:1.0-alpha-6:compile
[DEBUG] org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9-stable-1:compile
[DEBUG] junit:junit:jar:3.8.1:compile
[DEBUG] org.codehaus.plexus:plexus-io:jar:2.0.6:compile
[DEBUG] org.apache.maven.shared:maven-dependency-analyzer:jar:1.4:compile
[DEBUG] asm:asm:jar:3.3.1:compile
[DEBUG] org.codehaus.plexus:plexus-component-annotations:jar:1.5.5:compile (version managed from default)
[DEBUG] org.apache.maven.shared:maven-dependency-tree:jar:2.1:compile
[DEBUG] org.eclipse.aether:aether-util:jar:0.9.0.M2:compile
[DEBUG] org.apache.maven.shared:maven-common-artifact-filters:jar:1.4:compile
[DEBUG] org.apache.maven.shared:maven-invoker:jar:2.0.11:compile
[DEBUG] commons-lang:commons-lang:jar:2.6:compile
[DEBUG] commons-collections:commons-collections:jar:3.2.1:compile
[DEBUG] classworlds:classworlds:jar:1.1:compile
[DEBUG] Created new class realm plugin>org.apache.maven.plugins:maven-dependency-plugin:2.8
[DEBUG] Importing foreign packages into class realm plugin>org.apache.maven.plugins:maven-dependency-plugin:2.8
[DEBUG] Imported: < maven.api
[DEBUG] Populating class realm plugin>org.apache.maven.plugins:maven-dependency-plugin:2.8
[DEBUG] Included: org.apache.maven.plugins:maven-dependency-plugin:jar:2.8
[DEBUG] Included: commons-cli:commons-cli:jar:1.0
[DEBUG] Included: org.codehaus.plexus:plexus-interactivity-api:jar:1.0-alpha-4
[DEBUG] Included: org.apache.maven.reporting:maven-reporting-api:jar:3.0
[DEBUG] Included: org.apache.maven.reporting:maven-reporting-impl:jar:2.0.5
[DEBUG] Included: org.apache.maven.doxia:doxia-core:jar:1.0
[DEBUG] Included: org.apache.maven.shared:maven-doxia-tools:jar:1.0.2
[DEBUG] Included: commons-io:commons-io:jar:1.4
[DEBUG] Included: commons-validator:commons-validator:jar:1.2.0
[DEBUG] Included: commons-beanutils:commons-beanutils:jar:1.7.0
[DEBUG] Included: commons-digester:commons-digester:jar:1.6
[DEBUG] Included: commons-logging:commons-logging:jar:1.0.4
[DEBUG] Included: oro:oro:jar:2.0.8
[DEBUG] Included: xml-apis:xml-apis:jar:1.0.b2
[DEBUG] Included: org.apache.maven.doxia:doxia-sink-api:jar:1.0
[DEBUG] Included: org.apache.maven.doxia:doxia-site-renderer:jar:1.0
[DEBUG] Included: org.codehaus.plexus:plexus-i18n:jar:1.0-beta-7
[DEBUG] Included: org.codehaus.plexus:plexus-velocity:jar:1.1.7
[DEBUG] Included: org.apache.velocity:velocity:jar:1.5
[DEBUG] Included: org.apache.maven.doxia:doxia-decoration-model:jar:1.0
[DEBUG] Included: org.apache.maven.doxia:doxia-module-apt:jar:1.0
[DEBUG] Included: org.apache.maven.doxia:doxia-module-fml:jar:1.0
[DEBUG] Included: org.apache.maven.doxia:doxia-module-xdoc:jar:1.0
[DEBUG] Included: org.apache.maven.doxia:doxia-module-xhtml:jar:1.0
[DEBUG] Included: org.codehaus.plexus:plexus-archiver:jar:2.3
[DEBUG] Included: org.codehaus.plexus:plexus-utils:jar:3.0.9
[DEBUG] Included: org.apache.maven.shared:file-management:jar:1.2.1
[DEBUG] Included: org.apache.maven.shared:maven-shared-io:jar:1.1
[DEBUG] Included: junit:junit:jar:3.8.1
[DEBUG] Included: org.codehaus.plexus:plexus-io:jar:2.0.6
[DEBUG] Included: org.apache.maven.shared:maven-dependency-analyzer:jar:1.4
[DEBUG] Included: asm:asm:jar:3.3.1
[DEBUG] Included: org.codehaus.plexus:plexus-component-annotations:jar:1.5.5
[DEBUG] Included: org.apache.maven.shared:maven-dependency-tree:jar:2.1
[DEBUG] Included: org.eclipse.aether:aether-util:jar:0.9.0.M2
[DEBUG] Included: org.apache.maven.shared:maven-common-artifact-filters:jar:1.4
[DEBUG] Included: org.apache.maven.shared:maven-invoker:jar:2.0.11
[DEBUG] Included: commons-lang:commons-lang:jar:2.6
[DEBUG] Included: commons-collections:commons-collections:jar:3.2.1
[DEBUG] Loading mojo org.apache.maven.plugins:maven-dependency-plugin:2.8:copy-dependencies from plugin realm ClassRealm[plugin>org.apache.maven.plugins:maven-dependency-plugin:2.8, parent: java.net.URLClassLoader@52cc8049]
[DEBUG] Configuring mojo execution 'org.apache.maven.plugins:maven-dependency-plugin:2.8:copy-dependencies:default' with basic configurator -->
[DEBUG] (f) addParentPoms = false
[DEBUG] (s) copyPom = false
[DEBUG] (f) excludeTransitive = false
[DEBUG] (s) failOnMissingClassifierArtifact = false
[DEBUG] (s) local = id: local
url: file:///home/aminya/.m2/repository/
layout: default
snapshots: [enabled => true, update => always]
releases: [enabled => true, update => always]
blocked: false
[DEBUG] (s) markersDirectory = **************************/**********/openapi-generator/samples/client/petstore/cpp-restsdk/client/target/dependency-maven-plugin-markers
[DEBUG] (f) outputAbsoluteArtifactFilename = false
[DEBUG] (s) outputDirectory = **************************/**********/openapi-generator/samples/client/petstore/cpp-restsdk/client/target
[DEBUG] (f) overWriteIfNewer = true
[DEBUG] (f) overWriteReleases = false
[DEBUG] (f) overWriteSnapshots = false
[DEBUG] (s) prependGroupId = false
[DEBUG] (f) reactorProjects = [MavenProject: org.openapitools:CppRestPetstoreClientTests:1.0-SNAPSHOT @ **************************/**********/openapi-generator/samples/client/petstore/cpp-restsdk/client/pom.xml]
[DEBUG] (s) remoteRepos = [ id: central
url: https://repo.maven.apache.org/maven2
layout: default
snapshots: [enabled => false, update => daily]
releases: [enabled => true, update => daily]
blocked: false
]
[DEBUG] (f) silent = false
[DEBUG] (s) skip = false
[DEBUG] (f) stripClassifier = false
[DEBUG] (s) stripVersion = false
[DEBUG] (f) useBaseVersion = true
[DEBUG] (s) useRepositoryLayout = false
[DEBUG] (s) useSubDirectoryPerArtifact = false
[DEBUG] (s) useSubDirectoryPerScope = false
[DEBUG] (s) useSubDirectoryPerType = false
[DEBUG] (f) project = MavenProject: org.openapitools:CppRestPetstoreClientTests:1.0-SNAPSHOT @ **************************/**********/openapi-generator/samples/client/petstore/cpp-restsdk/client/pom.xml
[DEBUG] -- end configuration --
[DEBUG] Build operation 'Gradle Enterprise mojo execution' started
[DEBUG] Build operation 'Extract Mojo properties for org.apache.maven.plugins:maven-dependency-plugin:2.8:copy-dependencies (default) @ org.openapitools:CppRestPetstoreClientTests:pom:1.0-SNAPSHOT' started
[DEBUG] Completing Build operation 'Extract Mojo properties for org.apache.maven.plugins:maven-dependency-plugin:2.8:copy-dependencies (default) @ org.openapitools:CppRestPetstoreClientTests:pom:1.0-SNAPSHOT'
[DEBUG] Build operation 'Extract Mojo properties for org.apache.maven.plugins:maven-dependency-plugin:2.8:copy-dependencies (default) @ org.openapitools:CppRestPetstoreClientTests:pom:1.0-SNAPSHOT' completed
[DEBUG] Build operation 'Calculate cache key for org.apache.maven.plugins:maven-dependency-plugin:2.8:copy-dependencies (default) @ org.openapitools:CppRestPetstoreClientTests:pom:1.0-SNAPSHOT' started
[DEBUG] Completing Build operation 'Calculate cache key for org.apache.maven.plugins:maven-dependency-plugin:2.8:copy-dependencies (default) @ org.openapitools:CppRestPetstoreClientTests:pom:1.0-SNAPSHOT'
[DEBUG] Build operation 'Calculate cache key for org.apache.maven.plugins:maven-dependency-plugin:2.8:copy-dependencies (default) @ org.openapitools:CppRestPetstoreClientTests:pom:1.0-SNAPSHOT' completed
[DEBUG] Build operation 'Detect overlapping outputs for org.apache.maven.plugins:maven-dependency-plugin:2.8:copy-dependencies (default) @ org.openapitools:CppRestPetstoreClientTests:pom:1.0-SNAPSHOT' started
[DEBUG] Completing Build operation 'Detect overlapping outputs for org.apache.maven.plugins:maven-dependency-plugin:2.8:copy-dependencies (default) @ org.openapitools:CppRestPetstoreClientTests:pom:1.0-SNAPSHOT'
[DEBUG] Build operation 'Detect overlapping outputs for org.apache.maven.plugins:maven-dependency-plugin:2.8:copy-dependencies (default) @ org.openapitools:CppRestPetstoreClientTests:pom:1.0-SNAPSHOT' completed
[DEBUG] Build caching was not enabled for this goal execution because the 'copy-dependencies' goal was not supported.
[DEBUG] Completing Build operation 'Gradle Enterprise mojo execution'
[DEBUG] Build operation 'Gradle Enterprise mojo execution' completed
[INFO]
[INFO] --- exec-maven-plugin:1.2.1:exec (cmake) @ CppRestPetstoreClientTests ---
[DEBUG] Dependency collection stats {ConflictMarker.analyzeTime=116946, ConflictMarker.markTime=35621, ConflictMarker.nodeCount=68, ConflictIdSorter.graphTime=85796, ConflictIdSorter.topsortTime=27053, ConflictIdSorter.conflictIdCount=25, ConflictIdSorter.conflictIdCycleCount=0, ConflictResolver.totalTime=505694, ConflictResolver.conflictItemCount=65, DefaultDependencyCollector.collectTime=12143067, DefaultDependencyCollector.transformTime=791984}
[DEBUG] org.codehaus.mojo:exec-maven-plugin:jar:1.2.1
[DEBUG] org.apache.maven:maven-toolchain:jar:1.0:compile
[DEBUG] org.apache.maven:maven-project:jar:2.0.6:compile
[DEBUG] org.apache.maven:maven-settings:jar:2.0.6:compile
[DEBUG] org.apache.maven:maven-profile:jar:2.0.6:compile
[DEBUG] org.apache.maven:maven-plugin-registry:jar:2.0.6:compile
[DEBUG] org.apache.maven:maven-model:jar:2.0.6:compile
[DEBUG] org.apache.maven:maven-artifact:jar:2.0.6:compile
[DEBUG] org.apache.maven:maven-artifact-manager:jar:2.0.6:compile
[DEBUG] org.apache.maven:maven-repository-metadata:jar:2.0.6:compile
[DEBUG] org.apache.maven:maven-core:jar:2.0.6:compile
[DEBUG] org.apache.maven:maven-plugin-parameter-documenter:jar:2.0.6:compile
[DEBUG] org.apache.maven.reporting:maven-reporting-api:jar:2.0.6:compile
[DEBUG] org.apache.maven.doxia:doxia-sink-api:jar:1.0-alpha-7:compile
[DEBUG] org.apache.maven:maven-error-diagnostics:jar:2.0.6:compile
[DEBUG] commons-cli:commons-cli:jar:1.0:compile
[DEBUG] org.apache.maven:maven-plugin-descriptor:jar:2.0.6:compile
[DEBUG] org.codehaus.plexus:plexus-interactivity-api:jar:1.0-alpha-4:compile
[DEBUG] org.apache.maven:maven-monitor:jar:2.0.6:compile
[DEBUG] classworlds:classworlds:jar:1.1:compile
[DEBUG] org.apache.maven:maven-plugin-api:jar:2.0.6:compile
[DEBUG] org.codehaus.plexus:plexus-utils:jar:2.0.5:compile
[DEBUG] org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9:compile
[DEBUG] junit:junit:jar:3.8.2:test (scope managed from default) (version managed from default)
[DEBUG] org.apache.commons:commons-exec:jar:1.1:compile
[DEBUG] Created new class realm plugin>org.codehaus.mojo:exec-maven-plugin:1.2.1
[DEBUG] Importing foreign packages into class realm plugin>org.codehaus.mojo:exec-maven-plugin:1.2.1
[DEBUG] Imported: < maven.api
[DEBUG] Populating class realm plugin>org.codehaus.mojo:exec-maven-plugin:1.2.1
[DEBUG] Included: org.codehaus.mojo:exec-maven-plugin:jar:1.2.1
[DEBUG] Included: org.apache.maven.reporting:maven-reporting-api:jar:2.0.6
[DEBUG] Included: org.apache.maven.doxia:doxia-sink-api:jar:1.0-alpha-7
[DEBUG] Included: commons-cli:commons-cli:jar:1.0
[DEBUG] Included: org.codehaus.plexus:plexus-interactivity-api:jar:1.0-alpha-4
[DEBUG] Included: org.codehaus.plexus:plexus-utils:jar:2.0.5
[DEBUG] Included: org.apache.commons:commons-exec:jar:1.1
[DEBUG] Loading mojo org.codehaus.mojo:exec-maven-plugin:1.2.1:exec from plugin realm ClassRealm[plugin>org.codehaus.mojo:exec-maven-plugin:1.2.1, parent: java.net.URLClassLoader@52cc8049]
[DEBUG] Configuring mojo execution 'org.codehaus.mojo:exec-maven-plugin:1.2.1:exec:cmake' with basic configurator -->
[DEBUG] (f) arguments = [-S=**************************/**********/openapi-generator/samples/client/petstore/cpp-restsdk/client, -B=**************************/**********/openapi-generator/samples/client/petstore/cpp-restsdk/client/target, -DCMAKE_CXX_FLAGS="-I/usr/local/opt/openssl/include", -DCMAKE_MODULE_LINKER_FLAGS="-L/usr/local/opt/openssl/lib", -DCMAKE_BUILD_TYPE=Debug]
[DEBUG] (f) basedir = **************************/**********/openapi-generator/samples/client/petstore/cpp-restsdk/client
[DEBUG] (f) classpathScope = runtime
[DEBUG] (f) executable = cmake
[DEBUG] (f) longClasspath = false
[DEBUG] (f) project = MavenProject: org.openapitools:CppRestPetstoreClientTests:1.0-SNAPSHOT @ **************************/**********/openapi-generator/samples/client/petstore/cpp-restsdk/client/pom.xml
[DEBUG] (f) session = org.apache.maven.execution.MavenSession@248b2b61
[DEBUG] (f) skip = false
[DEBUG] -- end configuration --
[DEBUG] Build operation 'Gradle Enterprise mojo execution' started
[DEBUG] Build operation 'Extract Mojo properties for org.codehaus.mojo:exec-maven-plugin:1.2.1:exec (cmake) @ org.openapitools:CppRestPetstoreClientTests:pom:1.0-SNAPSHOT' started
[DEBUG] Completing Build operation 'Extract Mojo properties for org.codehaus.mojo:exec-maven-plugin:1.2.1:exec (cmake) @ org.openapitools:CppRestPetstoreClientTests:pom:1.0-SNAPSHOT'
[DEBUG] Build operation 'Extract Mojo properties for org.codehaus.mojo:exec-maven-plugin:1.2.1:exec (cmake) @ org.openapitools:CppRestPetstoreClientTests:pom:1.0-SNAPSHOT' completed
[DEBUG] Build operation 'Calculate cache key for org.codehaus.mojo:exec-maven-plugin:1.2.1:exec (cmake) @ org.openapitools:CppRestPetstoreClientTests:pom:1.0-SNAPSHOT' started
[DEBUG] Completing Build operation 'Calculate cache key for org.codehaus.mojo:exec-maven-plugin:1.2.1:exec (cmake) @ org.openapitools:CppRestPetstoreClientTests:pom:1.0-SNAPSHOT'
[DEBUG] Build operation 'Calculate cache key for org.codehaus.mojo:exec-maven-plugin:1.2.1:exec (cmake) @ org.openapitools:CppRestPetstoreClientTests:pom:1.0-SNAPSHOT' completed
[DEBUG] Build operation 'Detect overlapping outputs for org.codehaus.mojo:exec-maven-plugin:1.2.1:exec (cmake) @ org.openapitools:CppRestPetstoreClientTests:pom:1.0-SNAPSHOT' started
[DEBUG] Completing Build operation 'Detect overlapping outputs for org.codehaus.mojo:exec-maven-plugin:1.2.1:exec (cmake) @ org.openapitools:CppRestPetstoreClientTests:pom:1.0-SNAPSHOT'
[DEBUG] Build operation 'Detect overlapping outputs for org.codehaus.mojo:exec-maven-plugin:1.2.1:exec (cmake) @ org.openapitools:CppRestPetstoreClientTests:pom:1.0-SNAPSHOT' completed
[DEBUG] Executing command line: cmake -S=**************************/**********/openapi-generator/samples/client/petstore/cpp-restsdk/client -B=**************************/**********/openapi-generator/samples/client/petstore/cpp-restsdk/client/target -DCMAKE_CXX_FLAGS="-I/usr/local/opt/openssl/include" -DCMAKE_MODULE_LINKER_FLAGS="-L/usr/local/opt/openssl/lib" -DCMAKE_BUILD_TYPE=Debug
-- Found Boost: /usr/lib/x86_64-linux-gnu/cmake/Boost-1.74.0/BoostConfig.cmake (found version "1.74.0") found components: random system thread filesystem chrono atomic date_time regex
-- Found Boost: /usr/lib/x86_64-linux-gnu/cmake/Boost-1.74.0/BoostConfig.cmake (found version "1.74.0")
-- Building client library for Linux/Unix
-- Configuring done (0.1s)
-- Generating done (0.0s)
-- Build files have been written to: **************************/**********/openapi-generator/samples/client/petstore/cpp-restsdk/client/target
[DEBUG] Build caching was not enabled for this goal execution because the 'exec' goal was not supported.
[DEBUG] Completing Build operation 'Gradle Enterprise mojo execution'
[DEBUG] Build operation 'Gradle Enterprise mojo execution' completed
[INFO]
[INFO] --- exec-maven-plugin:1.2.1:exec (make) @ CppRestPetstoreClientTests ---
[DEBUG] Loading mojo org.codehaus.mojo:exec-maven-plugin:1.2.1:exec from plugin realm ClassRealm[plugin>org.codehaus.mojo:exec-maven-plugin:1.2.1, parent: java.net.URLClassLoader@52cc8049]
[DEBUG] Configuring mojo execution 'org.codehaus.mojo:exec-maven-plugin:1.2.1:exec:make' with basic configurator -->
[DEBUG] (f) arguments = [--build, **************************/**********/openapi-generator/samples/client/petstore/cpp-restsdk/client/target, --config=Debug, --parallel]
[DEBUG] (f) basedir = **************************/**********/openapi-generator/samples/client/petstore/cpp-restsdk/client
[DEBUG] (f) classpathScope = runtime
[DEBUG] (f) executable = cmake
[DEBUG] (f) longClasspath = false
[DEBUG] (f) project = MavenProject: org.openapitools:CppRestPetstoreClientTests:1.0-SNAPSHOT @ **************************/**********/openapi-generator/samples/client/petstore/cpp-restsdk/client/pom.xml
[DEBUG] (f) session = org.apache.maven.execution.MavenSession@248b2b61
[DEBUG] (f) skip = false
[DEBUG] -- end configuration --
[DEBUG] Build operation 'Gradle Enterprise mojo execution' started
[DEBUG] Build operation 'Extract Mojo properties for org.codehaus.mojo:exec-maven-plugin:1.2.1:exec (make) @ org.openapitools:CppRestPetstoreClientTests:pom:1.0-SNAPSHOT' started
[DEBUG] Completing Build operation 'Extract Mojo properties for org.codehaus.mojo:exec-maven-plugin:1.2.1:exec (make) @ org.openapitools:CppRestPetstoreClientTests:pom:1.0-SNAPSHOT'
[DEBUG] Build operation 'Extract Mojo properties for org.codehaus.mojo:exec-maven-plugin:1.2.1:exec (make) @ org.openapitools:CppRestPetstoreClientTests:pom:1.0-SNAPSHOT' completed
[DEBUG] Build operation 'Calculate cache key for org.codehaus.mojo:exec-maven-plugin:1.2.1:exec (make) @ org.openapitools:CppRestPetstoreClientTests:pom:1.0-SNAPSHOT' started
[DEBUG] Completing Build operation 'Calculate cache key for org.codehaus.mojo:exec-maven-plugin:1.2.1:exec (make) @ org.openapitools:CppRestPetstoreClientTests:pom:1.0-SNAPSHOT'
[DEBUG] Build operation 'Calculate cache key for org.codehaus.mojo:exec-maven-plugin:1.2.1:exec (make) @ org.openapitools:CppRestPetstoreClientTests:pom:1.0-SNAPSHOT' completed
[DEBUG] Build operation 'Detect overlapping outputs for org.codehaus.mojo:exec-maven-plugin:1.2.1:exec (make) @ org.openapitools:CppRestPetstoreClientTests:pom:1.0-SNAPSHOT' started
[DEBUG] Completing Build operation 'Detect overlapping outputs for org.codehaus.mojo:exec-maven-plugin:1.2.1:exec (make) @ org.openapitools:CppRestPetstoreClientTests:pom:1.0-SNAPSHOT'
[DEBUG] Build operation 'Detect overlapping outputs for org.codehaus.mojo:exec-maven-plugin:1.2.1:exec (make) @ org.openapitools:CppRestPetstoreClientTests:pom:1.0-SNAPSHOT' completed
[DEBUG] Executing command line: cmake --build **************************/**********/openapi-generator/samples/client/petstore/cpp-restsdk/client/target --config=Debug --parallel
[100%] Built target CppRestPetstoreClient
[DEBUG] Build caching was not enabled for this goal execution because the 'exec' goal was not supported.
[DEBUG] Completing Build operation 'Gradle Enterprise mojo execution'
[DEBUG] Build operation 'Gradle Enterprise mojo execution' completed
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.194 s
[INFO] Finished at: 2024-04-25T11:59:13-07:00
[INFO] ------------------------------------------------------------------------
[DEBUG] State transition from 'API_LOCKED' to 'CLOSED' for Gradle Enterprise Maven extension version '1.20.1'.
[DEBUG] Setting Maven session to null.
[DEBUG] Transitioning to 'EXECUTION_FINISHED'.
[INFO] 3 goals, 3 executed
[DEBUG] Finishing project 'CppRest Petstore Client'
[DEBUG] Transitioning to 'CLOSED'.
[DEBUG] Build operation 'Clean up local build cache' started
[DEBUG] Skipping local build cache cleanup because the cleanup interval has not yet passed. The next cleanup is due 2024-04-26T18:51:41.003Z.
[DEBUG] Completing Build operation 'Clean up local build cache'
[DEBUG] Build operation 'Clean up local build cache' completed
[DEBUG] Closing remote build cache
[DEBUG] State transition from 'CLOSED' to 'CLOSED' for Gradle Enterprise Maven extension version '1.20.1' cmake
lsls samples/client/petstore/cpp-restsdk/client/
drwxrwxr-x aminya aminya 250 B Wed Apr 24 21:05:05 2024 .
drwxrwxr-x aminya aminya 218 B Tue Apr 23 21:02:21 2024 ..
.rw-rw-r-- aminya aminya 249 B Wed Apr 24 21:06:58 2024 .gitignore
drwxrwxr-x aminya aminya 24 B Wed Apr 24 16:20:32 2024 .openapi-generator
.rw-rw-r-- aminya aminya 1.0 KB Tue Apr 23 21:01:27 2024 .openapi-generator-ignore
.rw-rw-r-- aminya aminya 3.2 KB Wed Apr 24 21:06:58 2024 CMakeLists.txt
.rw-rw-r-- aminya aminya 124 B Wed Apr 24 21:06:58 2024 Config.cmake.in
.rw-rw-r-- aminya aminya 1.8 KB Wed Apr 24 21:06:58 2024 git_push.sh
drwxrwxr-x aminya aminya 42 B Tue Apr 23 21:01:26 2024 include
.rw-rw-r-- aminya aminya 2.8 KB Wed Apr 24 21:04:42 2024 pom.xml
.rw-rw-r-- aminya aminya 1.7 KB Wed Apr 24 21:06:58 2024 README.md
drwxrwxr-x aminya aminya 278 B Tue Apr 23 23:55:19 2024 src
drwxrwxr-x aminya aminya 220 B Thu Apr 25 11:51:40 2024 target |
tested in another linux box and now see build errors:
|
Looks like your compiler is too old. These errors are usually due to parsing errors when using old compilers. |
@aminya thanks again for the PR are you familiar with the github worflow? can we add something similar to |
i've setup tests via circieci and tests with this change passed via https://app.circleci.com/pipelines/github/OpenAPITools/openapi-generator/29831/workflows/0a72a198-ca5a-4cad-a395-04d4e5ec2bcd/jobs/96380 |
we've to reverted this change as it's failing in the master for some reasons. can you please file a new PR based on the latest master instead? |
) * [cpp-restsdk] add support for oneOf via std::variant * [cpp-restsdk] detect the latest supported C++ standard in CMake * [cpp-restsdk] add test with oneOf support for cpprest * [cpp-restsdk] avoid warnings because of implicit this capture * [cpp-restsdk] avoid deprecated CMake version warnings * [cpp-restsdk] build the test into the build directory - parallel build * [cpprest-sdk] use absolute source path for cmake + debug build * fix: remove inheritance due to template not overriding --------- Co-authored-by: William Cheng <[email protected]>
…Tools#18474)" (OpenAPITools#18820) This reverts commit 6a3d406.
* Revert "Revert "[cpp-restsdk] add support for oneOf via std::variant (#18474)…" This reverts commit 8d39871. * update samples * update pom * set cxx 17 * Revert "set cxx 17" This reverts commit 0cec8f7. * install clang 6.0 * Update CI/circle_parallel.sh Co-authored-by: Amin Yahyaabadi <[email protected]> * fix include --------- Co-authored-by: Amin Yahyaabadi <[email protected]>
This PR adds support for oneOf for cpprestsdk via
std::variant
.This is how I tested it:
The code generated looks like this:
Related to #6726 ##11090 and potentially some reusable code for #4239 #6378 in future PRs
PR checklist
Commit all changed files.
This is important, as CI jobs will verify all generator outputs of your HEAD commit as it would merge with master.
These must match the expectations made by your contribution.
You may regenerate an individual generator by passing the relevant config(s) as an argument to the script, for example
./bin/generate-samples.sh bin/configs/java*
.IMPORTANT: Do NOT purge/delete any folders/files (e.g. tests) when regenerating the samples as manually written tests may be removed.
master
(upcoming 7.1.0 minor release - breaking changes with fallbacks),8.0.x
(breaking changes without fallbacks)