PITest cannot find tests - pitest
Our projects are all set up with a master parent for the entire company. For the project I'm working on, we have a root pom that references that parent with many modules underneath it. Attempting to use PITest with any one of these modules individually, or at the root module results in no test being run.
λ lp-server-write mvn clean org.pitest:pitest-maven:mutationCoverage
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for com.company.platform.server:lp-server-write:jar:0.0.305-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-javadoc-plugin is missing. # com.company.platform.server:lp-server-root:0.0.305-SNAPSHOT, /me/Documents/dev/code/server/pom.xml, line 69, column 21
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Platform Server :: App Write 0.0.305-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[WARNING] The POM for com.company.thirdparty.generated.thing:thing-231:jar:2.3.1 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) # lp-server-write ---
[INFO] Deleting /me/Documents/dev/code/server/lp-server-write/target
[INFO]
[INFO] --- pitest-maven:1.2.0:mutationCoverage (default-cli) # lp-server-write ---
[INFO] Found plugin : Default csv report plugin
[INFO] Found plugin : Default xml report plugin
[INFO] Found plugin : Default html report plugin
[INFO] Found plugin : Default limit mutations plugin
[INFO] Found plugin : Kotlin junk mutations filter
[INFO] Found shared classpath plugin : Default mutation engine
[INFO] Adding org.pitest:pitest to SUT classpath
[INFO] Mutating from /me/Documents/dev/code/server/lp-server-write/target/classes
4:52:46 PM PIT >> FINE : Running report with ReportOptions [targetClasses=[^com\.company\..*$], excludedMethods=[], excludedClasses=[^.*.*\..*IT$, ^.*.*\..*SpringBootTest$], codePaths=[/me/Documents/dev/code/server/lp-server-write/target/classes], reportDir=/me/Documents/dev/code/server/lp-server-write/target/pit-reports, historyInputLocation=null, historyOutputLocation=null, sourceDirs=[/me/Documents/dev/code/server/lp-server-write/src/main/java, /me/Documents/dev/code/server/lp-server-write/src/test/java], classPathElements=[/me/Documents/dev/code/server/lp-server-write/target/test-classes, /me/Documents/dev/code/server/lp-server-write/target/classes, /me/.m2/repository/com/company/platform/server/common/lp-server-common-test/0.0.305-SNAPSHOT/lp-server-common-test-0.0.305-SNAPSHOT.jar, /me/.m2/repository/com/company/common/integrationtests/common-integrationtest/0.0.20/common-integrationtest-0.0.20.jar, /me/.m2/repository/com/jayway/restassured/rest-assured/2.9.0/rest-assured-2.9.0.jar, /me/.m2/repository/org/codehaus/groovy/groovy/2.4.7/groovy-2.4.7.jar, /me/.m2/repository/org/codehaus/groovy/groovy-xml/2.4.7/groovy-xml-2.4.7.jar, /me/.m2/repository/org/apache/httpcomponents/httpclient/4.5.2/httpclient-4.5.2.jar, /me/.m2/repository/org/apache/httpcomponents/httpcore/4.4.5/httpcore-4.4.5.jar, /me/.m2/repository/commons-codec/commons-codec/1.10/commons-codec-1.10.jar, /me/.m2/repository/org/apache/httpcomponents/httpmime/4.5.2/httpmime-4.5.2.jar, /me/.m2/repository/org/hamcrest/hamcrest-library/1.3/hamcrest-library-1.3.jar, /me/.m2/repository/org/ccil/cowan/tagsoup/tagsoup/1.2.1/tagsoup-1.2.1.jar, /me/.m2/repository/com/jayway/restassured/json-path/2.9.0/json-path-2.9.0.jar, /me/.m2/repository/org/codehaus/groovy/groovy-json/2.4.7/groovy-json-2.4.7.jar, /me/.m2/repository/com/jayway/restassured/rest-assured-common/2.9.0/rest-assured-common-2.9.0.jar, /me/.m2/repository/com/jayway/restassured/xml-path/2.9.0/xml-path-2.9.0.jar, /me/.m2/repository/org/skyscreamer/jsonassert/1.3.0/jsonassert-1.3.0.jar, /me/.m2/repository/org/json/json/20140107/json-20140107.jar, /me/.m2/repository/com/jayway/jsonpath/json-path/2.2.0/json-path-2.2.0.jar, /me/.m2/repository/net/minidev/json-smart/2.2.1/json-smart-2.2.1.jar, /me/.m2/repository/net/minidev/accessors-smart/1.1/accessors-smart-1.1.jar, /me/.m2/repository/org/ow2/asm/asm/5.0.3/asm-5.0.3.jar, /me/.m2/repository/org/apache/commons/commons-lang3/3.5/commons-lang3-3.5.jar, /me/.m2/repository/org/apache/commons/commons-io/1.3.2/commons-io-1.3.2.jar, /me/.m2/repository/com/fasterxml/jackson/core/jackson-core/2.8.5/jackson-core-2.8.5.jar, /me/.m2/repository/com/fasterxml/jackson/core/jackson-annotations/2.8.5/jackson-annotations-2.8.5.jar, /me/.m2/repository/com/fasterxml/jackson/datatype/jackson-datatype-jsr310/2.8.5/jackson-datatype-jsr310-2.8.5.jar, /me/.m2/repository/com/fasterxml/jackson/dataformat/jackson-dataformat-xml/2.8.5/jackson-dataformat-xml-2.8.5.jar, /me/.m2/repository/com/fasterxml/jackson/module/jackson-module-jaxb-annotations/2.8.5/jackson-module-jaxb-annotations-2.8.5.jar, /me/.m2/repository/org/codehaus/woodstox/stax2-api/3.1.4/stax2-api-3.1.4.jar, /me/.m2/repository/com/fasterxml/woodstox/woodstox-core/5.0.3/woodstox-core-5.0.3.jar, /me/.m2/repository/org/projectlombok/lombok/1.16.12/lombok-1.16.12.jar, /me/.m2/repository/com/company/platform/server/decision/lp-server-decision-common/0.0.305-SNAPSHOT/lp-server-decision-common-0.0.305-SNAPSHOT.jar, /me/.m2/repository/com/company/platform/server/common/lp-server-common/0.0.305-SNAPSHOT/lp-server-common-0.0.305-SNAPSHOT.jar, /me/.m2/repository/com/company/annotations/pt-annotation-processors/1.0.3/pt-annotation-processors-1.0.3.jar, /me/.m2/repository/com/company/annotations/pt-annotations/1.0.3/pt-annotations-1.0.3.jar, /me/.m2/repository/com/company/utils/lombok-test-robot/1.0.1/lombok-test-robot-1.0.1.jar, /me/.m2/repository/org/reflections/reflections/0.9.10/reflections-0.9.10.jar, /me/.m2/repository/com/google/code/findbugs/annotations/2.0.1/annotations-2.0.1.jar, /me/.m2/repository/com/datapublica/pg/hibernate-json/0.3/hibernate-json-0.3.jar, /me/.m2/repository/com/fasterxml/jackson/module/jackson-module-parameter-names/2.8.5/jackson-module-parameter-names-2.8.5.jar, /me/.m2/repository/com/fasterxml/jackson/module/jackson-module-kotlin/2.8.5/jackson-module-kotlin-2.8.5.jar, /me/.m2/repository/org/jetbrains/kotlin/kotlin-reflect/1.1.0/kotlin-reflect-1.1.0.jar, /me/.m2/repository/org/jvnet/jaxb2_commons/jaxb2-basics/0.6.4/jaxb2-basics-0.6.4.jar, /me/.m2/repository/org/jvnet/jaxb2_commons/jaxb2-basics-runtime/0.6.4/jaxb2-basics-runtime-0.6.4.jar, /me/.m2/repository/org/jvnet/jaxb2_commons/jaxb2-basics-tools/0.6.4/jaxb2-basics-tools-0.6.4.jar, /me/.m2/repository/commons-beanutils/commons-beanutils/1.9.3/commons-beanutils-1.9.3.jar, /me/.m2/repository/com/google/code/javaparser/javaparser/1.0.8/javaparser-1.0.8.jar, /me/.m2/repository/org/mapstruct/mapstruct-jdk8/1.2.0-company/mapstruct-jdk8-1.2.0-company.jar, /me/.m2/repository/org/mapstruct/mapstruct-processor/1.2.0-company/mapstruct-processor-1.2.0-company.jar, /me/.m2/repository/org/apache/velocity/velocity/1.7/velocity-1.7.jar, /me/.m2/repository/commons-collections/commons-collections/3.2.2/commons-collections-3.2.2.jar, /me/.m2/repository/commons-lang/commons-lang/2.4/commons-lang-2.4.jar, /me/.m2/repository/org/axonframework/axon-spring/3.0.2/axon-spring-3.0.2.jar, /me/.m2/repository/org/hibernate/common/hibernate-commons-annotations/5.0.1.Final/hibernate-commons-annotations-5.0.1.Final.jar, /me/.m2/repository/org/joda/joda-money/0.11/joda-money-0.11.jar, /me/.m2/repository/org/postgresql/postgresql/9.4.1212.jre7/postgresql-9.4.1212.jre7.jar, /boot/spring-boot-starter-actuator/1.4.3.RELEASE/spring-boot-starter-actuator-1.4.3.RELEASE.jar, /boot/spring-boot-actuator/1.4.3.RELEASE/spring-boot-actuator-1.4.3.RELEASE.jar, /boot/spring-boot-starter-hateoas/1.4.3.RELEASE/spring-boot-starter-hateoas-1.4.3.RELEASE.jar, /hateoas/spring-hateoas/0.20.0.RELEASE/spring-hateoas-0.20.0.RELEASE.jar, /security/spring-security-core/4.1.4.RELEASE/spring-security-core-4.1.4.RELEASE.jar, /me/.m2/repository/aopalliance/aopalliance/1.0/aopalliance-1.0.jar, /me/.m2/repository/com/company/platform/server/lp-server-common/0.0.305-SNAPSHOT/lp-server-common-0.0.305-SNAPSHOT.jar, /spring-test/4.3.5.RELEASE/spring-test-4.3.5.RELEASE.jar, /spring-core/4.3.5.RELEASE/spring-core-4.3.5.RELEASE.jar, /me/.m2/repository/commons-logging/commons-logging/1.2/commons-logging-1.2.jar, /me/.m2/repository/org/hamcrest/hamcrest-all/1.3/hamcrest-all-1.3.jar, /me/.m2/repository/org/mockito/mockito-all/1.10.19/mockito-all-1.10.19.jar, /boot/spring-boot-test-autoconfigure/1.4.3.RELEASE/spring-boot-test-autoconfigure-1.4.3.RELEASE.jar, /boot/spring-boot-test/1.4.3.RELEASE/spring-boot-test-1.4.3.RELEASE.jar, /boot/spring-boot-autoconfigure/1.4.3.RELEASE/spring-boot-autoconfigure-1.4.3.RELEASE.jar, /me/.m2/repository/com/company/platform/server/read/lp-server-read/0.0.305-SNAPSHOT/lp-server-read-0.0.305-SNAPSHOT.jar, /me/.m2/repository/com/company/platform/calculator/pt-lp-calculator-core/0.0.13/pt-lp-calculator-core-0.0.13.jar, /me/.m2/repository/com/company/platform/calculator/pt-lp-calculator-common/0.0.13/pt-lp-calculator-common-0.0.13.jar, /spring-context/4.3.5.RELEASE/spring-context-4.3.5.RELEASE.jar, /me/.m2/repository/io/springfox/springfox-swagger2/2.6.1/springfox-swagger2-2.6.1.jar, /me/.m2/repository/io/swagger/swagger-annotations/1.5.10/swagger-annotations-1.5.10.jar, /me/.m2/repository/io/swagger/swagger-models/1.5.10/swagger-models-1.5.10.jar, /me/.m2/repository/io/springfox/springfox-spi/2.6.1/springfox-spi-2.6.1.jar, /me/.m2/repository/io/springfox/springfox-core/2.6.1/springfox-core-2.6.1.jar, /me/.m2/repository/io/springfox/springfox-schema/2.6.1/springfox-schema-2.6.1.jar, /me/.m2/repository/io/springfox/springfox-swagger-common/2.6.1/springfox-swagger-common-2.6.1.jar, /me/.m2/repository/io/springfox/springfox-spring-web/2.6.1/springfox-spring-web-2.6.1.jar, /me/.m2/repository/com/google/guava/guava/19.0/guava-19.0.jar, /me/.m2/repository/com/fasterxml/classmate/1.3.3/classmate-1.3.3.jar, /plugin/spring-plugin-core/1.2.0.RELEASE/spring-plugin-core-1.2.0.RELEASE.jar, /plugin/spring-plugin-metadata/1.2.0.RELEASE/spring-plugin-metadata-1.2.0.RELEASE.jar, /me/.m2/repository/org/mapstruct/mapstruct/1.0.0.Final/mapstruct-1.0.0.Final.jar, /boot/spring-boot-starter-data-jpa/1.4.3.RELEASE/spring-boot-starter-data-jpa-1.4.3.RELEASE.jar, /boot/spring-boot-starter-aop/1.4.3.RELEASE/spring-boot-starter-aop-1.4.3.RELEASE.jar, /me/.m2/repository/org/aspectj/aspectjweaver/1.8.9/aspectjweaver-1.8.9.jar, /boot/spring-boot-starter-jdbc/1.4.3.RELEASE/spring-boot-starter-jdbc-1.4.3.RELEASE.jar, /me/.m2/repository/org/apache/tomcat/tomcat-jdbc/8.5.6/tomcat-jdbc-8.5.6.jar, /me/.m2/repository/org/apache/tomcat/tomcat-juli/8.5.6/tomcat-juli-8.5.6.jar, /spring-jdbc/4.3.5.RELEASE/spring-jdbc-4.3.5.RELEASE.jar, /me/.m2/repository/org/hibernate/hibernate-core/5.2.5.Final/hibernate-core-5.2.5.Final.jar, /me/.m2/repository/org/hibernate/javax/persistence/hibernate-jpa-2.1-api/1.0.0.Final/hibernate-jpa-2.1-api-1.0.0.Final.jar, /me/.m2/repository/org/javassist/javassist/3.20.0-GA/javassist-3.20.0-GA.jar, /me/.m2/repository/antlr/antlr/2.7.7/antlr-2.7.7.jar, /jandex/2.0.3.Final/jandex-2.0.3.Final.jar, /me/.m2/repository/dom4j/dom4j/1.6.1/dom4j-1.6.1.jar, /enterprise/cdi-api/1.1/cdi-api-1.1.jar, /el/el-api/2.2/el-api-2.2.jar, /spec/javax/interceptor/jboss-interceptors-api_1.1_spec/1.0.0.Beta1/jboss-interceptors-api_1.1_spec-1.0.0.Beta1.jar, /annotation/jsr250-api/1.0/jsr250-api-1.0.jar, /inject/javax.inject/1/javax.inject-1.jar, /me/.m2/repository/org/hibernate/hibernate-entitymanager/5.2.5.Final/hibernate-entitymanager-5.2.5.Final.jar, /me/.m2/repository/net/bytebuddy/byte-buddy/1.5.4/byte-buddy-1.5.4.jar, /transaction/javax.transaction-api/1.2/javax.transaction-api-1.2.jar, /data/spring-data-jpa/1.10.6.RELEASE/spring-data-jpa-1.10.6.RELEASE.jar, /data/spring-data-commons/1.12.6.RELEASE/spring-data-commons-1.12.6.RELEASE.jar, /spring-orm/4.3.5.RELEASE/spring-orm-4.3.5.RELEASE.jar, /me/.m2/repository/org/slf4j/jcl-over-slf4j/1.7.22/jcl-over-slf4j-1.7.22.jar, /spring-aspects/4.3.5.RELEASE/spring-aspects-4.3.5.RELEASE.jar, /boot/spring-boot-starter-security/1.4.3.RELEASE/spring-boot-starter-security-1.4.3.RELEASE.jar, /spring-aop/4.3.5.RELEASE/spring-aop-4.3.5.RELEASE.jar, /security/spring-security-config/4.1.4.RELEASE/spring-security-config-4.1.4.RELEASE.jar, /security/spring-security-web/4.1.4.RELEASE/spring-security-web-4.1.4.RELEASE.jar, /me/.m2/repository/org/axonframework/axon-test/3.0.2/axon-test-3.0.2.jar, /me/.m2/repository/org/axonframework/axon-core/3.0.2/axon-core-3.0.2.jar, /me/.m2/repository/com/thoughtworks/xstream/xstream/1.4.9/xstream-1.4.9.jar, /me/.m2/repository/xpp3/xpp3/1.1.4c/xpp3-1.1.4c.jar, /boot/spring-boot-starter-web/1.4.3.RELEASE/spring-boot-starter-web-1.4.3.RELEASE.jar, /boot/spring-boot-starter/1.4.3.RELEASE/spring-boot-starter-1.4.3.RELEASE.jar, /boot/spring-boot/1.4.3.RELEASE/spring-boot-1.4.3.RELEASE.jar, /boot/spring-boot-starter-logging/1.4.3.RELEASE/spring-boot-starter-logging-1.4.3.RELEASE.jar, /me/.m2/repository/org/slf4j/jul-to-slf4j/1.7.22/jul-to-slf4j-1.7.22.jar, /me/.m2/repository/org/slf4j/log4j-over-slf4j/1.7.22/log4j-over-slf4j-1.7.22.jar, /me/.m2/repository/org/yaml/snakeyaml/1.17/snakeyaml-1.17.jar, /boot/spring-boot-starter-tomcat/1.4.3.RELEASE/spring-boot-starter-tomcat-1.4.3.RELEASE.jar, /me/.m2/repository/org/apache/tomcat/embed/tomcat-embed-core/8.5.6/tomcat-embed-core-8.5.6.jar, /me/.m2/repository/org/apache/tomcat/embed/tomcat-embed-el/8.5.6/tomcat-embed-el-8.5.6.jar, /me/.m2/repository/org/apache/tomcat/embed/tomcat-embed-websocket/8.5.6/tomcat-embed-websocket-8.5.6.jar, /me/.m2/repository/org/hibernate/hibernate-validator/5.2.4.Final/hibernate-validator-5.2.4.Final.jar, /validation/validation-api/1.1.0.Final/validation-api-1.1.0.Final.jar, /logging/jboss-logging/3.3.0.Final/jboss-logging-3.3.0.Final.jar, /me/.m2/repository/com/fasterxml/jackson/core/jackson-databind/2.8.5/jackson-databind-2.8.5.jar, /spring-web/4.3.5.RELEASE/spring-web-4.3.5.RELEASE.jar, /spring-beans/4.3.5.RELEASE/spring-beans-4.3.5.RELEASE.jar, /spring-webmvc/4.3.5.RELEASE/spring-webmvc-4.3.5.RELEASE.jar, /spring-expression/4.3.5.RELEASE/spring-expression-4.3.5.RELEASE.jar, /me/.m2/repository/com/company/platform/pt-lp-common/0.0.80/pt-lp-common-0.0.80.jar, /amqp/spring-rabbit/1.6.6.RELEASE/spring-rabbit-1.6.6.RELEASE.jar, /spring-messaging/4.3.5.RELEASE/spring-messaging-4.3.5.RELEASE.jar, /amqp/spring-amqp/1.6.6.RELEASE/spring-amqp-1.6.6.RELEASE.jar, /spring-tx/4.3.5.RELEASE/spring-tx-4.3.5.RELEASE.jar, /retry/spring-retry/1.1.5.RELEASE/spring-retry-1.1.5.RELEASE.jar, /me/.m2/repository/com/rabbitmq/http-client/1.0.0.RELEASE/http-client-1.0.0.RELEASE.jar, /me/.m2/repository/com/rabbitmq/amqp-client/3.6.5/amqp-client-3.6.5.jar, /me/.m2/repository/com/company/thirdparty/generated/thing/thing-231/2.3.1/thing-231-2.3.1.jar, /me/.m2/repository/org/codehaus/groovy/groovy-all/2.4.7/groovy-all-2.4.7.jar, /me/.m2/repository/org/jetbrains/kotlin/kotlin-stdlib/1.1.0/kotlin-stdlib-1.1.0.jar, /me/.m2/repository/org/jetbrains/annotations/13.0/annotations-13.0.jar, /me/.m2/repository/org/jetbrains/kotlin/kotlin-test-junit/1.1.0/kotlin-test-junit-1.1.0.jar, /me/.m2/repository/org/jetbrains/kotlin/kotlin-test/1.1.0/kotlin-test-1.1.0.jar, /me/.m2/repository/org/spockframework/spock-core/1.0-groovy-2.4/spock-core-1.0-groovy-2.4.jar, /me/.m2/repository/junit/junit/4.12/junit-4.12.jar, /me/.m2/repository/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3.jar, /me/.m2/repository/ch/qos/logback/logback-classic/1.1.8/logback-classic-1.1.8.jar, /me/.m2/repository/ch/qos/logback/logback-core/1.1.8/logback-core-1.1.8.jar, /me/.m2/repository/org/slf4j/slf4j-api/1.7.22/slf4j-api-1.7.22.jar, /me/.m2/repository/org/pitest/pitest/1.2.0/pitest-1.2.0.jar], mutators=[], dependencyAnalysisMaxDistance=-1, mutateStaticInitializers=false, jvmArgs=[], numberOfThreads=1, timeoutFactor=1.25, timeoutConstant=3000, targetTests=[^com\.company\..*$], loggingClasses=[], maxMutationsPerClass=-1, verbose=true, failWhenNoMutations=true, outputs=[HTML], groupConfig=TestGroupConfig [excludedGroups=[], includedGroups=[]], mutationUnitSize=0, shouldCreateTimestampedReports=true, detectInlinedCode=true, exportLineCoverage=false, mutationThreshold=0, coverageThreshold=0, mutationEngine=gregor, javaExecutable=null, includeLaunchClasspath=true, properties={}, maxSurvivors=0, excludedRunners=[]]
4:52:46 PM PIT >> FINE : System class path is /me/Applications/ActiveVersions/Maven/boot/plexus-classworlds-2.5.2.jar
4:52:46 PM PIT >> FINE : Maximum available memory is 3641 mb
CP is :/me/.m2/repository/com/company/platform/server/common/lp-server-common-test/0.0.305-SNAPSHOT/lp-server-common-test-0.0.305-SNAPSHOT.jar:/me/.m2/repository/com/company/common/integrationtests/common-integrationtest/0.0.20/common-integrationtest-0.0.20.jar:/me/.m2/repository/com/jayway/restassured/rest-assured/2.9.0/rest-assured-2.9.0.jar:/me/.m2/repository/org/codehaus/groovy/groovy/2.4.7/groovy-2.4.7.jar:/me/.m2/repository/org/codehaus/groovy/groovy-xml/2.4.7/groovy-xml-2.4.7.jar:/me/.m2/repository/org/apache/httpcomponents/httpclient/4.5.2/httpclient-4.5.2.jar:/me/.m2/repository/org/apache/httpcomponents/httpcore/4.4.5/httpcore-4.4.5.jar:/me/.m2/repository/commons-codec/commons-codec/1.10/commons-codec-1.10.jar:/me/.m2/repository/org/apache/httpcomponents/httpmime/4.5.2/httpmime-4.5.2.jar:/me/.m2/repository/org/hamcrest/hamcrest-library/1.3/hamcrest-library-1.3.jar:/me/.m2/repository/org/ccil/cowan/tagsoup/tagsoup/1.2.1/tagsoup-1.2.1.jar:/me/.m2/repository/com/jayway/restassured/json-path/2.9.0/json-path-2.9.0.jar:/me/.m2/repository/org/codehaus/groovy/groovy-json/2.4.7/groovy-json-2.4.7.jar:/me/.m2/repository/com/jayway/restassured/rest-assured-common/2.9.0/rest-assured-common-2.9.0.jar:/me/.m2/repository/com/jayway/restassured/xml-path/2.9.0/xml-path-2.9.0.jar:/me/.m2/repository/org/skyscreamer/jsonassert/1.3.0/jsonassert-1.3.0.jar:/me/.m2/repository/org/json/json/20140107/json-20140107.jar:/me/.m2/repository/com/jayway/jsonpath/json-path/2.2.0/json-path-2.2.0.jar:/me/.m2/repository/net/minidev/json-smart/2.2.1/json-smart-2.2.1.jar:/me/.m2/repository/net/minidev/accessors-smart/1.1/accessors-smart-1.1.jar:/me/.m2/repository/org/ow2/asm/asm/5.0.3/asm-5.0.3.jar:/me/.m2/repository/org/apache/commons/commons-lang3/3.5/commons-lang3-3.5.jar:/me/.m2/repository/org/apache/commons/commons-io/1.3.2/commons-io-1.3.2.jar:/me/.m2/repository/com/fasterxml/jackson/core/jackson-core/2.8.5/jackson-core-2.8.5.jar:/me/.m2/repository/com/fasterxml/jackson/core/jackson-annotations/2.8.5/jackson-annotations-2.8.5.jar:/me/.m2/repository/com/fasterxml/jackson/datatype/jackson-datatype-jsr310/2.8.5/jackson-datatype-jsr310-2.8.5.jar:/me/.m2/repository/com/fasterxml/jackson/dataformat/jackson-dataformat-xml/2.8.5/jackson-dataformat-xml-2.8.5.jar:/me/.m2/repository/com/fasterxml/jackson/module/jackson-module-jaxb-annotations/2.8.5/jackson-module-jaxb-annotations-2.8.5.jar:/me/.m2/repository/org/codehaus/woodstox/stax2-api/3.1.4/stax2-api-3.1.4.jar:/me/.m2/repository/com/fasterxml/woodstox/woodstox-core/5.0.3/woodstox-core-5.0.3.jar:/me/.m2/repository/org/projectlombok/lombok/1.16.12/lombok-1.16.12.jar:/me/.m2/repository/com/company/platform/server/decision/lp-server-decision-common/0.0.305-SNAPSHOT/lp-server-decision-common-0.0.305-SNAPSHOT.jar:/me/.m2/repository/com/company/platform/server/common/lp-server-common/0.0.305-SNAPSHOT/lp-server-common-0.0.305-SNAPSHOT.jar:/me/.m2/repository/com/company/annotations/pt-annotation-processors/1.0.3/pt-annotation-processors-1.0.3.jar:/me/.m2/repository/com/company/annotations/pt-annotations/1.0.3/pt-annotations-1.0.3.jar:/me/.m2/repository/com/company/utils/lombok-test-robot/1.0.1/lombok-test-robot-1.0.1.jar:/me/.m2/repository/org/reflections/reflections/0.9.10/reflections-0.9.10.jar:/me/.m2/repository/com/google/code/findbugs/annotations/2.0.1/annotations-2.0.1.jar:/me/.m2/repository/com/company/platform/server/lp-server-common/0.0.305-SNAPSHOT/lp-server-common-0.0.305-SNAPSHOT.jar:/me/.m2/repository/com/company/platform/server/read/lp-server-read/0.0.305-SNAPSHOT/lp-server-read-0.0.305-SNAPSHOT.jar:/me/.m2/repository/com/company/platform/calculator/pt-lp-calculator-core/0.0.13/pt-lp-calculator-core-0.0.13.jar:/me/.m2/repository/com/company/platform/calculator/pt-lp-calculator-common/0.0.13/pt-lp-calculator-common-0.0.13.jar:/spring-context/4.3.5.RELEASE/spring-context-4.3.5.RELEASE.jar:/me/.m2/repository/io/springfox/springfox-swagger2/2.6.1/springfox-swagger2-2.6.1.jar:/me/.m2/repository/io/swagger/swagger-annotations/1.5.10/swagger-annotations-1.5.10.jar:/me/.m2/repository/io/swagger/swagger-models/1.5.10/swagger-models-1.5.10.jar:/me/.m2/repository/io/springfox/springfox-spi/2.6.1/springfox-spi-2.6.1.jar:/me/.m2/repository/io/springfox/springfox-core/2.6.1/springfox-core-2.6.1.jar:/me/.m2/repository/io/springfox/springfox-schema/2.6.1/springfox-schema-2.6.1.jar:/me/.m2/repository/io/springfox/springfox-swagger-common/2.6.1/springfox-swagger-common-2.6.1.jar:/me/.m2/repository/io/springfox/springfox-spring-web/2.6.1/springfox-spring-web-2.6.1.jar:/me/.m2/repository/com/google/guava/guava/19.0/guava-19.0.jar:/me/.m2/repository/com/fasterxml/classmate/1.3.3/classmate-1.3.3.jar:/plugin/spring-plugin-core/1.2.0.RELEASE/spring-plugin-core-1.2.0.RELEASE.jar:/plugin/spring-plugin-metadata/1.2.0.RELEASE/spring-plugin-metadata-1.2.0.RELEASE.jar:/me/.m2/repository/org/mapstruct/mapstruct/1.0.0.Final/mapstruct-1.0.0.Final.jar:/boot/spring-boot-starter-data-jpa/1.4.3.RELEASE/spring-boot-starter-data-jpa-1.4.3.RELEASE.jar:/boot/spring-boot-starter-aop/1.4.3.RELEASE/spring-boot-starter-aop-1.4.3.RELEASE.jar:/me/.m2/repository/org/aspectj/aspectjweaver/1.8.9/aspectjweaver-1.8.9.jar:/boot/spring-boot-starter-jdbc/1.4.3.RELEASE/spring-boot-starter-jdbc-1.4.3.RELEASE.jar:/me/.m2/repository/org/apache/tomcat/tomcat-jdbc/8.5.6/tomcat-jdbc-8.5.6.jar:/me/.m2/repository/org/apache/tomcat/tomcat-juli/8.5.6/tomcat-juli-8.5.6.jar:/spring-jdbc/4.3.5.RELEASE/spring-jdbc-4.3.5.RELEASE.jar:/me/.m2/repository/org/hibernate/hibernate-core/5.2.5.Final/hibernate-core-5.2.5.Final.jar:/me/.m2/repository/org/hibernate/javax/persistence/hibernate-jpa-2.1-api/1.0.0.Final/hibernate-jpa-2.1-api-1.0.0.Final.jar:/me/.m2/repository/org/javassist/javassist/3.20.0-GA/javassist-3.20.0-GA.jar:/me/.m2/repository/antlr/antlr/2.7.7/antlr-2.7.7.jar:/jandex/2.0.3.Final/jandex-2.0.3.Final.jar:/me/.m2/repository/dom4j/dom4j/1.6.1/dom4j-1.6.1.jar:/enterprise/cdi-api/1.1/cdi-api-1.1.jar:/el/el-api/2.2/el-api-2.2.jar:/spec/javax/interceptor/jboss-interceptors-api_1.1_spec/1.0.0.Beta1/jboss-interceptors-api_1.1_spec-1.0.0.Beta1.jar:/annotation/jsr250-api/1.0/jsr250-api-1.0.jar:/inject/javax.inject/1/javax.inject-1.jar:/me/.m2/repository/org/hibernate/hibernate-entitymanager/5.2.5.Final/hibernate-entitymanager-5.2.5.Final.jar:/me/.m2/repository/net/bytebuddy/byte-buddy/1.5.4/byte-buddy-1.5.4.jar:/transaction/javax.transaction-api/1.2/javax.transaction-api-1.2.jar:/data/spring-data-jpa/1.10.6.RELEASE/spring-data-jpa-1.10.6.RELEASE.jar:/data/spring-data-commons/1.12.6.RELEASE/spring-data-commons-1.12.6.RELEASE.jar:/spring-orm/4.3.5.RELEASE/spring-orm-4.3.5.RELEASE.jar:/me/.m2/repository/org/slf4j/jcl-over-slf4j/1.7.22/jcl-over-slf4j-1.7.22.jar:/spring-aspects/4.3.5.RELEASE/spring-aspects-4.3.5.RELEASE.jar:/boot/spring-boot-starter-security/1.4.3.RELEASE/spring-boot-starter-security-1.4.3.RELEASE.jar:/spring-aop/4.3.5.RELEASE/spring-aop-4.3.5.RELEASE.jar:/security/spring-security-config/4.1.4.RELEASE/spring-security-config-4.1.4.RELEASE.jar:/security/spring-security-web/4.1.4.RELEASE/spring-security-web-4.1.4.RELEASE.jar:/me/.m2/repository/org/axonframework/axon-test/3.0.2/axon-test-3.0.2.jar:/me/.m2/repository/org/axonframework/axon-core/3.0.2/axon-core-3.0.2.jar:/me/.m2/repository/com/thoughtworks/xstream/xstream/1.4.9/xstream-1.4.9.jar:/me/.m2/repository/xpp3/xpp3/1.1.4c/xpp3-1.1.4c.jar:/boot/spring-boot-starter-web/1.4.3.RELEASE/spring-boot-starter-web-1.4.3.RELEASE.jar:/boot/spring-boot-starter/1.4.3.RELEASE/spring-boot-starter-1.4.3.RELEASE.jar:/boot/spring-boot/1.4.3.RELEASE/spring-boot-1.4.3.RELEASE.jar:/boot/spring-boot-starter-logging/1.4.3.RELEASE/spring-boot-starter-logging-1.4.3.RELEASE.jar:/me/.m2/repository/org/slf4j/jul-to-slf4j/1.7.22/jul-to-slf4j-1.7.22.jar:/me/.m2/repository/org/slf4j/log4j-over-slf4j/1.7.22/log4j-over-slf4j-1.7.22.jar:/me/.m2/repository/org/yaml/snakeyaml/1.17/snakeyaml-1.17.jar:/boot/spring-boot-starter-tomcat/1.4.3.RELEASE/spring-boot-starter-tomcat-1.4.3.RELEASE.jar:/me/.m2/repository/org/apache/tomcat/embed/tomcat-embed-core/8.5.6/tomcat-embed-core-8.5.6.jar:/me/.m2/repository/org/apache/tomcat/embed/tomcat-embed-el/8.5.6/tomcat-embed-el-8.5.6.jar:/me/.m2/repository/org/apache/tomcat/embed/tomcat-embed-websocket/8.5.6/tomcat-embed-websocket-8.5.6.jar:/me/.m2/repository/org/hibernate/hibernate-validator/5.2.4.Final/hibernate-validator-5.2.4.Final.jar:/validation/validation-api/1.1.0.Final/validation-api-1.1.0.Final.jar:/me/.m2/repository/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3.jar:/me/.m2/repository/org/pitest/pitest/1.2.0/pitest-1.2.0.jar
4:52:46 PM PIT >> INFO : MINION : objc[28617]: Class JavaLaunchHelper is implemented in both /Library/Java/JavaVirtualMachines/jdk1.8.0_73.jdk/Contents/Home/jre/bin/java (0x10d7944c0) and /Library/Java/JavaVirtualMachines/jdk1.8.0_73.jdk/Contents/Home/jre/lib/libinstrument.dylib (0x10f7e94
4:52:46 PM PIT >> INFO : MINION : e0). One of the two will be used. Which one is undefined.
4:52:46 PM PIT >> FINE : MINION : Installing PIT agent
4:52:46 PM PIT >> INFO : Sending 0 test classes to minion
4:52:46 PM PIT >> INFO : Sent tests to minion
4:52:46 PM PIT >> INFO : MINION : 4:52:46 PM PIT >> INFO : Checking environment
4:52:46 PM PIT >> INFO : MINION : 4:52:46 PM PIT >> FINE : Expecting 0 tests classes from parent
4:52:46 PM PIT >> INFO : MINION : 4:52:46 PM PIT >> FINE : Tests classes received
4:52:46 PM PIT >> INFO : MINION : 4:52:46 PM PIT >> INFO : Found 0 tests
4:52:46 PM PIT >> INFO : MINION : 4:52:46 PM PIT >> INFO : Dependency analysis reduced number of potential tests by 0
4:52:46 PM PIT >> INFO : MINION : 4:52:46 PM PIT >> INFO : 0 tests received
4:52:46 PM PIT >> INFO : MINION : 4:52:46 PM PIT >> FINE : Running 0 units
4:52:47 PM PIT >> FINE : Coverage generator Minion exited ok
4:52:47 PM PIT >> INFO : Calculated coverage in 0 seconds.
4:52:47 PM PIT >> FINE : Used memory after coverage calculation 47 mb
4:52:47 PM PIT >> FINE : Free Memory after coverage calculation 356 mb
4:52:47 PM PIT >> INFO : Created 0 mutation test units
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.113 s
[INFO] Finished at: 2017-03-31T16:52:47-06:00
[INFO] Final Memory: 32M/404M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.pitest:pitest-maven:1.2.0:mutationCoverage (default-cli) on project lp-server-write: Execution default-cli of goal org.pitest:pitest-maven:1.2.0:mutationCoverage failed: No mutations found. This probably means there is an issue with either the supplied classpath or filters.
[ERROR] See http://pitest.org for more details.
[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/PluginExecutionException
Looking at the verbose output, you can see that the PITest Report Options include my directory as a location, but then in the classpath verbose output, there is no reference to my target directory. I don't know if this is why it can't find my tests, but it's definitely not the configuration. I have the widest params possible on my maven config <targetClasses>com.company.*</targetClasses> and <targetTests>com.company.*</targetTests>
Apparently I just had to wipe pitest from my maven repo. It repulled the jars and it worked. It seemed to have been holding onto settings, even when I had removed PITest entirely from my poms.
edit: apparently I'm an idiot. I had mvn clean org.pitest:pitest-maven:mutationCoverage which of course wipes my target directory before attempting to find the classes.
Related
Selenide / Jenkins: java.lang.IllegalStateException: No webdriver is bound to current thread:
I have some tests written in Selenide/Java. Also I have local Jenkins on my Windows, tests are running under this Jenkins perfectly, but i have problem with tests from same repository running on external Jenkins (Linux) Logs from Jenkins: [INFO] T E S T S [INFO] ------------------------------------------------------- [INFO] Running [1mTests[m ERROR StatusLogger No Log4j 2 configuration file found. Using default configuration (logging only errors to the console), or user programmatically provided configurations. Set system property 'log4j2.debug' to show Log4j 2 internal initialization logging. See https://logging.apache.org/log4j/2.x/manual/configuration.html for instructions on how to configure Log4j 2 1491 [main] INFO com.github.javafaker.Faker - Using default locale en Jul 08, 2019 2:36:49 PM com.codeborne.selenide.drivercommands.LazyDriver getAndCheckWebDriver INFO: No webdriver is bound to current thread: 1 - let's create a new webdriver Jul 08, 2019 2:36:49 PM java.util.prefs.FileSystemPreferences$1 run INFO: Created user preferences directory. 2687 [main] INFO io.github.bonigarcia.wdm.WebDriverManager - Reading https://chromedriver.storage.googleapis.com/ to seek chromedriver 3700 [main] INFO io.github.bonigarcia.wdm.WebDriverManager - Latest version of chromedriver is 76.0.3809.25 3704 [main] INFO io.github.bonigarcia.wdm.Downloader - Downloading https://chromedriver.storage.googleapis.com/76.0.3809.25/chromedriver_linux64.zip 4066 [main] INFO io.github.bonigarcia.wdm.Downloader - Extracting binary from compressed file chromedriver_linux64.zip 4194 [main] INFO io.github.bonigarcia.wdm.WebDriverManager - Exporting webdriver.chrome.driver as /var/lib/jenkins/.m2/repository/webdriver/chromedriver/linux64/76.0.3809.25/chromedriver Starting ChromeDriver 76.0.3809.25 (a0c95f440512e06df1c9c206f2d79cc20be18bb1-refs/branch-heads/3809#{#271}) on port 28990 Only local connections are allowed. Please protect ports used by ChromeDriver and related test frameworks to prevent access by malicious code. Jul 08, 2019 2:36:52 PM com.codeborne.selenide.drivercommands.LazyDriver getAndCheckWebDriver INFO: No webdriver is bound to current thread: 1 - let's create a new webdriver Starting ChromeDriver 76.0.3809.25 (a0c95f440512e06df1c9c206f2d79cc20be18bb1-refs/branch-heads/3809#{#271}) on port 30572 Only local connections are allowed. Please protect ports used by ChromeDriver and related test frameworks to prevent access by malicious code. [ERROR] [1;31mTests [0;1mrun: [0;1m3[m, [1;31mFailures: [0;1;31m3[m, Errors: 0, Skipped: 0, Time elapsed: 5.878 s[1;31m <<< FAILURE![m - in [1mTests[m [ERROR] test001_logowanie_programs(Tests) Time elapsed: 3.105 s <<< FAILURE! java.lang.IllegalStateException: No webdriver is bound to current thread: 1. You need to call open(url) first. at Tests.test001_logowanie_programs(Tests.java:38) [ERROR] test002_logowanie_evaluation(Tests) Time elapsed: 0.058 s <<< FAILURE! java.lang.IllegalStateException: No webdriver is bound to current thread: 1. You need to call open(url) first. at Tests.test002_logowanie_evaluation(Tests.java:50) [ERROR] test003_fail(Tests) Time elapsed: 0.159 s <<< FAILURE! java.lang.IllegalStateException: No webdriver is bound to current thread: 1. You need to call open(url) first. at Tests.test003_fail(Tests.java:67) [INFO] [INFO] Results: [INFO] [ERROR] [1;31mFailures: [m [ERROR] [1;31m Tests.test001_logowanie_programs:38 » IllegalState No webdriver is bound to cu...[m [ERROR] [1;31m Tests.test002_logowanie_evaluation:50 » IllegalState No webdriver is bound to ...[m [ERROR] [1;31m Tests.test003_fail:67 » IllegalState No webdriver is bound to current thread: ...[m [INFO] [ERROR] [1;31mTests run: 3, Failures: 3, Errors: 0, Skipped: 0[m [INFO] [ERROR] There are test failures. Please refer to /var/lib/jenkins/jobs/nawa_selenide/workspace/target/surefire-reports for the individual test results. Please refer to dump files (if any exist) [date]-jvmRun[N].dump, [date].dumpstream and [date]-jvmRun[N].dumpstream. [JENKINS] Recording test results [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 20.071 s [INFO] Finished at: 2019-07-08T14:36:56+02:00 [INFO] Final Memory: 31M/330M [INFO] ------------------------------------------------------------------------ Waiting for Jenkins to finish collecting data [JENKINS] Archiving /var/lib/jenkins/jobs/nawa_selenide/workspace/pom.xml to com/nawa/1.0-SNAPSHOT/nawa-1.0-SNAPSHOT.pom channel stopped Finished: UNSTABLE On every test we have: java.lang.IllegalStateException: No webdriver is bound to current thread: Do You have experience with similar situation? Why on local machine tests are done correctly, but on main Jenkins in company there are only failures caused by No webdriver is bound to current thread? Only operating system is difference. This is problem with jenkins configuration under Linux? When I run the tests locally, using Jenkins (with Maven), I get the same message, but the WebDriver is actually created and runs my test cases. My maven goals are: mvn clean test -Puat Declaration of Chrome in tests: #BeforeClass public void setUp() throws Exception { Configuration.holdBrowserOpen = false; Configuration.browser = "chrome"; Configuration.timeout = 10000; Configuration.headless = true; SelenideLogger.addListener("AllureSelenide", new AllureSelenide().screenshots(true).savePageSource(true)); objReader.environmentPropertiesLoader(); } _______________edit Now i check Start Xvfb before the build, and shut it down after in Jenkins job Build Environment, i read that is very important, maybe xvfb is the cause, i dont know, now in console i have java.io.IOException: Cannot run program "Xvfb": error=2, No such file or directory
Did anyone answer? You need to call open Url as the error says. driver.open(URL HERE) at the end of your setup method.
this is my solution: after open(), store current webDriver, and before use - restore webDriver WebDriver webDriver; // constructor public SelenideCommand() { Configuration.holdBrowserOpen = true; Selenide.open("https://www.instagram.com/"); webDriver = WebDriverRunner.getWebDriver(); } public void login(String userName, String password) { WebDriverRunner.setWebDriver(webDriver); Selenide.element(Selectors.byName("username")).setValue(userName); Selenide.element(Selectors.byName("password")).setValue(password); Selenide.elements(Selectors.byTagName("button")).get(1).click(); }
BUILD FAILURE Error: when executing "mvn clean package" command
I'm using following version. maven: 3.3.9 jdk: java-7-openjdk-amd64 JAVA_HOME="/usr/lib/jvm/java-7-openjdk-amd64/" I'm getting packages type error when I'm running $ mvn clean package command. I'm new to use swagger to generate documentation(.yml file to .html) ERROR: enter code here[WARN] /var/www/html/cg-api-dev-portal/codegen/swagger-codegen/modules/swagger-codegen/src/main/java/io/swagger/codegen/auth/AuthParser.java:21:5: Missing a Javadoc comment. [JavadocMethod] [WARN] /var/www/html/cg-api-dev-portal/codegen/swagger-codegen/modules/swagger-codegen/src/main/java/io/swagger/codegen/auth/AuthParser.java:28: Line is longer than 100 characters (found 233). [LineLength] [WARN] /var/www/html/cg-api-dev-portal/codegen/swagger-codegen/modules/swagger-codegen/src/main/java/io/swagger/codegen/auth/AuthParser.java:35:5: Missing a Javadoc comment. [JavadocMethod] [WARN] /var/www/html/cg-api-dev-portal/codegen/swagger-codegen/modules/swagger-codegen/src/main/java/io/swagger/codegen/auth/AuthParser.java:37:27: Local variable name 'b' must match pattern '^[a-z][a-z0-9][a-zA-Z0-9]*$'. [LocalVariableName] [WARN] /var/www/html/cg-api-dev-portal/codegen/swagger-codegen/modules/swagger-codegen/src/main/java/io/swagger/codegen/auth/AuthParser.java:46:36: Catch parameter name 'e' must match pattern '^[a-z][a-z0-9][a-zA-Z0-9]*$'. [CatchParameterName] [WARN] /var/www/html/cg-api-dev-portal/codegen/swagger-codegen/modules/swagger-codegen/src/main/java/config/ConfigParser.java:10: Import statement for 'org.slf4j.Logger' is in the wrong order. Should be in the 'THIRD_PARTY_PACKAGE' group, expecting not assigned imports on this line. [CustomImportOrder] [WARN] /var/www/html/cg-api-dev-portal/codegen/swagger-codegen/modules/swagger-codegen/src/main/java/config/ConfigParser.java:11: Import statement for 'org.slf4j.LoggerFactory' is in the wrong order. Should be in the 'THIRD_PARTY_PACKAGE' group, expecting not assigned imports on this line. [CustomImportOrder] [WARN] /var/www/html/cg-api-dev-portal/codegen/swagger-codegen/modules/swagger-codegen/src/main/java/config/ConfigParser.java:17:5: Missing a Javadoc comment. [JavadocMethod] [WARN] /var/www/html/cg-api-dev-portal/codegen/swagger-codegen/modules/swagger-codegen/src/main/java/config/ConfigParser.java:38:28: Catch parameter name 'e' must match pattern '^[a-z][a-z0-9][a-zA-Z0-9]*$'. [CatchParameterName] Audit done. [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 1563 resources [INFO] [INFO] --- maven-compiler-plugin:3.5.1:compile (default-compile) # swagger-codegen --- [INFO] Changes detected - recompiling the module! [INFO] Compiling 147 source files to /var/www/html/cg-api-dev-portal/codegen/swagger-codegen/modules/swagger-codegen/target/classes [INFO] ------------------------------------------------------------- [ERROR] COMPILATION ERROR : [INFO] ------------------------------------------------------------- [ERROR] /var/www/html/cg-api-dev-portal/codegen/swagger-codegen/modules/swagger-codegen/src/main/java/io/swagger/codegen/examples/XmlExampleGenerator.java:[17,32] package org.codehaus.plexus.util does not exist [INFO] 1 error [INFO] ------------------------------------------------------------- [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] swagger-codegen-project ............................ SUCCESS [ 2.958 s] [INFO] swagger-codegen (core library) ..................... FAILURE [ 11.114 s] [INFO] swagger-codegen (executable) ....................... SKIPPED [INFO] swagger-codegen (maven-plugin) ..................... SKIPPED [INFO] swagger-generator .................................. SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 14.646 s [INFO] Finished at: 2017-08-16T15:36:08+05:00 [INFO] Final Memory: 39M/553M [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 [ERROR] /var/www/html/cg-api-dev-portal/codegen/swagger-codegen/modules/swagger-codegen/src/main/java/io/swagger/codegen/examples/XmlExampleGenerator.java:[17,32] package org.codehaus.plexus.util does not exist [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 I've also run debugging mode by running mvn clean package -X, but nothing getting in mind please any one look into it save my life.
Based on the following line: [ERROR] /var/www/html/cg-api-dev-portal/codegen/swagger-codegen/modules/swagger-codegen/src/main/java/io/swagger/codegen/examples/XmlExampleGenerator.java:[17,32] package org.codehaus.plexus.util does not exist Looks like you're not using the latest master, which has the following line instead: 16 import io.swagger.models.properties.AbstractNumericProperty; 17 import io.swagger.models.properties.PasswordProperty; 18 import io.swagger.models.properties.UUIDProperty; Please clone from the latest master. You can also use the SNAPSHOT version without building the project manually: https://github.com/swagger-api/swagger-codegen#compatibility
Error deploying the switchyard quickstart in wildfly 8.0
'Hello, I am new to Jboss pardon me if i am asking silly question. When I am trying to deploy one of the wildfly quickstart example. But i am facing with this error. If anyone can help me that would be very helpful to me. Thanks in Advance [WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent! [INFO] Copying 4 resources [INFO] [INFO] --- maven-compiler-plugin:3.6.1:testCompile (default-testCompile) # switc hyard-bpm-service --- [INFO] Nothing to compile - all classes are up to date [INFO] [INFO] --- maven-surefire-plugin:2.20:test (default-test) # switchyard-bpm-servi ce --- [INFO] Skipping execution of surefire because it has already been run for this c onfiguration [INFO] [INFO] --- maven-bundle-plugin:2.4.0:bundle (default-bundle) # switchyard-bpm-se rvice --- [INFO] [INFO] <<< wildfly-maven-plugin:1.0.2.Final:deploy (default-cli) < package # swi tchyard-bpm-service <<< [INFO] [INFO] [INFO] --- wildfly-maven-plugin:1.0.2.Final:deploy (default-cli) # switchyard-bp m-service --- May 19, 2017 4:22:04 PM org.xnio.Xnio <clinit> INFO: XNIO version 3.2.2.Final May 19, 2017 4:22:04 PM org.xnio.nio.NioXnio <clinit> INFO: XNIO NIO Implementation Version 3.2.2.Final May 19, 2017 4:22:04 PM org.jboss.remoting3.EndpointImpl <clinit> INFO: JBoss Remoting version 4.0.3.Final [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 51.304 s [INFO] Finished at: 2017-05-19T16:22:06+05:30 [INFO] Final Memory: 73M/350M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.wildfly.plugins:wildfly-maven-plugin:1.0.2.Fi nal:deploy (default-cli) on project switchyard-bpm-service: Could not execute go al deploy on C:\Company\wildfly-8.0.0.Final\quickstarts\bpm-service\target\switc hyard-bpm-service.bundle. Reason: I/O Error could not execute operation '{ [ERROR] "operation" => "read-attribute", [ERROR] "address" => [], [ERROR] "name" => "launch-type" [ERROR] }': java.net.ConnectException: JBAS012174: Could not connect to remote:/ /127.0.0.1:9999. The connection failed: Connection refused: no further informati on [ERROR] -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit ch. [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 rea d the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionE xception C:\Company\wildfly-8.0.0.Final\quickstarts\bpm-service>'
Why does a Maven 3 multi-module project fail on "clean package", and succeed on "clean compile" followed by "package"?
This is similar to the asked and answered question Maven test dependency on multi module project. However, this has nothing to do with the test phase, instead I'm having problems with package. I have a multi-module project something like: root | |-parent-client | | | |-client-1 | | | \-client-2 | \-parent-server | |-server-1 | |-server-2 | |-server-3 | \-server-4 My dependencies are client-1 -> client-2 -> server-1 -> server-2 -> server-3 -> server-4, which is to say that client-2 depends on server-1, server-1 depends on server-2, and so on. Each is scoped to compile. So the problem is that when I run mvn clean package in the root, I get a compilation failure in server-2 that package server-3 does not exist. When I run mvn clean compile followed by mvn package in the root, it runs through without issue. It always fails at the same module when it fails. My understanding of the Build Lifecycle is that compile package is redundant since package includes the compile lifecycle. The project is more complex, with a total of 41 modules, two parents and one root. Creating a simple example inevitably works as expected. I'm stumped as to how I should proceed. Update 2015-10-25 Turns out I was wrong about the order of commands for success. I've updated my question and the description, and included debug output per Michael-O's request: <snip/> [INFO] --- maven-ejb-plugin:2.3:ejb (default-ejb) # terradatum-systemconfig --- [INFO] Building EJB terradatum-systemconfig-4.8.1-SNAPSHOT with EJB version 3.0 [INFO] Building jar: /home/rbellamy/Development/Terradatum/metrics-project/metrics-server/systemconfig/ejb/target/terradatum-systemconfig-4.8.1-SNAPSHOT.jar [INFO] Building EJB client terradatum-systemconfig-4.8.1-SNAPSHOT-client [INFO] Building jar: /home/rbellamy/Development/Terradatum/metrics-project/metrics-server/systemconfig/ejb/target/terradatum-systemconfig-4.8.1-SNAPSHOT-client.jar <snip/> [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building terradatum-payment 4.8.1-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-clean-plugin:2.5:clean (default-clean) # terradatum-payment --- [INFO] Deleting /home/rbellamy/Development/Terradatum/metrics-project/metrics-server/payment/ejb/target [INFO] [INFO] --- maven-resources-plugin:2.7:resources (default-resources) # terradatum-payment --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 2 resources [INFO] [INFO] --- maven-compiler-plugin:3.3:compile (default-compile) # terradatum-payment --- [INFO] Changes detected - recompiling the module! [INFO] Compiling 7 source files to /home/rbellamy/Development/Terradatum/metrics-project/metrics-server/payment/ejb/target/classes [INFO] ------------------------------------------------------------- [WARNING] COMPILATION WARNING : [INFO] ------------------------------------------------------------- [WARNING] bootstrap class path not set in conjunction with -source 1.6 [INFO] 1 warning [INFO] ------------------------------------------------------------- [INFO] ------------------------------------------------------------- [ERROR] COMPILATION ERROR : [INFO] ------------------------------------------------------------- [ERROR] /home/rbellamy/Development/Terradatum/metrics-project/metrics-server/payment/ejb/src/main/java/com/terradatum/common/payment/PaymentRemoteDelegate.java:[13,42] package com.terradatum.common.systemconfig does not exist <snip/> Update 2015-11-16 After much refactoring the build no longer fails in the same place. I've seen it fail in a similar way, consistently, but the location of the failure moves around. I am not running multiple threads, but it seems very clear to me there's a race somewhere in which an obviously available package (absolutely located and reachable in my ~/.m2/repository local cache, and added to the classpath) is not visible to the Maven compiler. And knowing what I know about race conditions, I have no idea how I would file a bug report of any substance given I can't offer anything more than supposition and finger pointing.
JMeter Maven Plugin - remote test machine cannot be configured
I keep getting this errors (error code bellow) when I run jmeter tests through jenkins on remote slave machines : [INFO] ------------------------------------------------------- [INFO] P E R F O R M A N C E T E S T S [INFO] ------------------------------------------------------- [INFO] [INFO] [info] [debug] JMeter is called with the following command line arguments: -n -t C:\Performance_Framework\Project\src\test\jmeter\Example.jmx -l C:\Performance_Framework\Project\target\jmeter\results\Example.jtl -d C:\Performance_Framework\Project\target\jmeter -L DEBUG -j C:\Performance_Framework\CMS\target\jmeter\logs\Example.jmx.log -r -R 10.0.20.100,10.0.20.101 -X -Djava.rmi.server.hostname 10.0.20.200 -Dsun.net.http.allowRestrictedHeaders true [info] Executing test: Example.jmx [info] Creating summariser <summary> [info] Created the tree successfully using C:\Performance_Framework\Project\src\test\jmeter\Example.jmx [info] Configuring remote engine: 10.0.20.100 [info] error unmarshalling return; nested exception is: [info] java.lang.ClassNotFoundException: org.apache.jmeter.engine.RemoteJMeterEngineImpl_Stub (no security manager: RMI class loader disabled) [info] Failed to configure 10.0.20.100 [info] Configuring remote engine: 10.0.20.101 [info] error unmarshalling return; nested exception is: [info] java.lang.ClassNotFoundException: org.apache.jmeter.engine.RemoteJMeterEngineImpl_Stub (no security manager: RMI class loader disabled) [info] Failed to configure 10.0.20.101 [info] Stopping remote engines [info] Remote engines have been stopped [info] Error in NonGUIDriver java.lang.RuntimeException: Following remote engines could not be configured:[10.0.20.100, 10.0.20.101] [info] Completed Test: Example.jmx Now my current POM settings for the machines: <configuration> -------------------------------- <propertiesSystem> <java.rmi.server.hostname>10.0.20.200</java.rmi.server.hostname> </propertiesSystem> <remoteConfig> <startServersBeforeTests>true</startServersBeforeTests> <serverList>10.0.20.100,10.0.20.101</serverList> <stopServersAfterTests>true</stopServersAfterTests> </remoteConfig> </configuration> If I run the tests from JMETER GUI everything is ok, remote host start and execute the tests successfully. I think that everything is set correctly, jmeter-server.bat is started before tests run on each slave. Also there's something that I don't understand from this sentence on from jmeter maven plugin wiki : runremote command being send to JMeter which will start up any remote servers you have defined in your jmeter.properties when your first test starts. Which jmeter.properties file, of the project ?If yes, then i don't know how that could be defined as always the target folder is cleaned on every test run, that resulting jmeter properties file is derived. Later Edit: I even created the jmeter.properties file and added in src/test/jmeter dir and defined there the remote hosts, but still nothing. So what do you suggest guys?
I resolved somehow the issue with the connection by editing the jmeter-server file by adding also the java.rmi.server.hostname. But what I don't like is the test execution time, it's horrible , even with one thread which is supposed to be be finished in less than 1-2 sec but it's still showing that is trying to receive shutdown message. [INFO] ------------------------------------------------------- [INFO] P E R F O R M A N C E T E S T S [INFO] ------------------------------------------------------- [INFO] [INFO] [info] [debug] JMeter is called with the following command line arguments: -n -t C:\Performance_Framework\CMS\src\test\jmeter\Example.jmx -l C:\Performance_Framework\CMS\target\jmeter\results\Example.jtl -d C:\Performance_Framework\CMS\target\jmeter -L DEBUG -q C:\Performance_Framework\CMS\src\test\jmeter\jmeter.properties -j C:\Performance_Framework\CMS\target\jmeter\logs\Example.jmx.log -r -X -Djava.rmi.server.hostname 10.0.20.200 -Dsun.net.http.allowRestrictedHeaders true [info] Executing test: SearchForModule.jmx [info] Creating summariser <summary> [info] Created the tree successfully using C:\Performance_Framework\CMS\src\test\jmeter\SearchForModule.jmx [info] Configuring remote engine: 10.0.20.100 [info] Configuring remote engine: 10.0.20.101 [info] Starting remote engines [info] Starting the test # Thu Jul 30 13:48:23 BST 2015 (1438260503717) [info] Remote engines have been started [info] Waiting for possible shutdown message on port 4445 Is something that is wrong on jenkins side, tomcat webapp?
First thing you need to fix are the server addresses: https://github.com/jmeter-maven-plugin/jmeter-maven-plugin/wiki/Remote-Server-Configuration 10.0.x.100,10.0.x.101 are not correct IP addresses. This is what you can see in your error log.