m-m-m / code

Library to parse, analyze, transform and generate code
Apache License 2.0
2 stars 3 forks source link

Building JavaContext fails resolving dependencies on linux #29

Closed maybeec closed 3 years ago

maybeec commented 3 years ago

Steps to reproduce

  1. Run JavaContext creation passing a simple test project which is compiled at build time.
  2. Run the build on Linux and try to resolve a class out of the maven dependencies declared in the sample project

Actual behavior

On windows, this works fine. On Linux it doesn't and throws a ClassNotFoundException.

On Windows, the classpath will be correctly built:

2021-06-09T09:23:39.3157056Z 09:23:39.313 [main] DEBUG net.sf.mmm.code.java.maven.impl.MavenBridgeImpl - Reading effective model of /tmp/junit4420998312569820077/playground/project/maven.project/core/pom.xml
2021-06-09T09:23:39.4152842Z 09:23:39.414 [main] DEBUG net.sf.mmm.code.java.maven.impl.MavenBridgeImpl - Reading effective model of /tmp/junit4420998312569820077/playground/project/maven.project/pom.xml
2021-06-09T09:23:39.4197673Z 09:23:39.419 [main] DEBUG net.sf.mmm.code.java.maven.impl.MavenBridgeImpl - Reading effective model of /tmp/junit4420998312569820077/playground/project/maven.project/api/pom.xml
2021-06-09T09:23:39.4257043Z 09:23:39.425 [main] DEBUG net.sf.mmm.code.impl.java.source.maven.MavenDependencyCollector - Already visited module project /tmp/junit4420998312569820077/playground/project/maven.project/core
2021-06-09T09:23:39.4261707Z 09:23:39.425 [main] DEBUG net.sf.mmm.code.impl.java.source.maven.MavenDependencyCollector - Collecting dependencies for testing:maven.project:dev-SNAPSHOT
2021-06-09T09:23:39.4265358Z 09:23:39.425 [main] DEBUG net.sf.mmm.code.impl.java.source.maven.MavenDependencyCollector - Collecting dependencies for testing:core:dev-SNAPSHOT
2021-06-09T09:23:39.4270249Z 09:23:39.425 [main] DEBUG net.sf.mmm.code.impl.java.source.maven.MavenDependencyCollector - Adding dependency file:/tmp/junit4420998312569820077/playground/project/maven.project/core/target/classes/
2021-06-09T09:23:39.4276152Z 09:23:39.426 [main] DEBUG net.sf.mmm.code.impl.java.source.maven.MavenDependencyCollector - Adding dependency file:/tmp/junit4420998312569820077/playground/project/maven.project/api/target/classes/
2021-06-09T09:23:39.4280485Z 09:23:39.426 [main] DEBUG net.sf.mmm.code.impl.java.source.maven.MavenDependencyCollector - Adding dependency file:/home/runner/.m2/repository/com/devonfw/java/modules/devon4j-rest/3.0.1/devon4j-rest-3.0.1.jar for testing:api:dev-SNAPSHOT
2021-06-09T09:23:39.4284700Z 09:23:39.427 [main] DEBUG net.sf.mmm.code.java.maven.impl.MavenBridgeImpl - Reading effective model of /home/runner/.m2/repository/com/devonfw/java/modules/devon4j-rest/3.0.1/devon4j-rest-3.0.1.pom
2021-06-09T09:23:39.4402009Z 09:23:39.439 [main] DEBUG net.sf.mmm.code.impl.java.source.maven.MavenDependencyCollector - Adding dependency file:/home/runner/.m2/repository/com/fasterxml/jackson/jaxrs/jackson-jaxrs-json-provider/2.9.6/jackson-jaxrs-json-provider-2.9.6.jar for com.devonfw.java.modules:devon4j-rest:3.0.1
2021-06-09T09:23:39.4408612Z 09:23:39.439 [main] DEBUG net.sf.mmm.code.java.maven.impl.MavenBridgeImpl - Reading effective model of /home/runner/.m2/repository/com/fasterxml/jackson/jaxrs/jackson-jaxrs-json-provider/2.9.6/jackson-jaxrs-json-provider-2.9.6.pom
2021-06-09T09:23:39.5207750Z 09:23:39.520 [main] DEBUG net.sf.mmm.code.impl.java.source.maven.MavenDependencyCollector - Adding dependency file:/home/runner/.m2/repository/com/fasterxml/jackson/jaxrs/jackson-jaxrs-base/2.9.6/jackson-jaxrs-base-2.9.6.jar for com.fasterxml.jackson.jaxrs:jackson-jaxrs-json-provider:2.9.6
2021-06-09T09:23:39.5212016Z 09:23:39.520 [main] DEBUG net.sf.mmm.code.java.maven.impl.MavenBridgeImpl - Reading effective model of /home/runner/.m2/repository/com/fasterxml/jackson/jaxrs/jackson-jaxrs-base/2.9.6/jackson-jaxrs-base-2.9.6.pom
2021-06-09T09:23:39.5579910Z 09:23:39.556 [main] DEBUG net.sf.mmm.code.impl.java.source.maven.MavenDependencyCollector - Adding dependency file:/home/runner/.m2/repository/com/fasterxml/jackson/core/jackson-core/2.9.6/jackson-core-2.9.6.jar for com.fasterxml.jackson.jaxrs:jackson-jaxrs-base:2.9.6
2021-06-09T09:23:39.5584703Z 09:23:39.556 [main] DEBUG net.sf.mmm.code.java.maven.impl.MavenBridgeImpl - Reading effective model of /home/runner/.m2/repository/com/fasterxml/jackson/core/jackson-core/2.9.6/jackson-core-2.9.6.pom
2021-06-09T09:23:39.5813548Z 09:23:39.580 [main] DEBUG net.sf.mmm.code.impl.java.source.maven.MavenDependencyCollector - Omitting optional dependency Dependency {groupId=junit, artifactId=junit, version=4.12, type=jar}
2021-06-09T09:23:39.5821155Z 09:23:39.580 [main] DEBUG net.sf.mmm.code.impl.java.source.maven.MavenDependencyCollector - Adding dependency file:/home/runner/.m2/repository/com/fasterxml/jackson/core/jackson-databind/2.9.6/jackson-databind-2.9.6.jar for com.fasterxml.jackson.jaxrs:jackson-jaxrs-base:2.9.6
2021-06-09T09:23:39.5825240Z 09:23:39.581 [main] DEBUG net.sf.mmm.code.java.maven.impl.MavenBridgeImpl - Reading effective model of /home/runner/.m2/repository/com/fasterxml/jackson/core/jackson-databind/2.9.6/jackson-databind-2.9.6.pom
2021-06-09T09:23:39.5979772Z 09:23:39.597 [main] DEBUG net.sf.mmm.code.impl.java.source.maven.MavenDependencyCollector - Adding dependency file:/home/runner/.m2/repository/com/fasterxml/jackson/core/jackson-annotations/2.9.0/jackson-annotations-2.9.0.jar for com.fasterxml.jackson.core:jackson-databind:2.9.6
2021-06-09T09:23:39.5983831Z 09:23:39.597 [main] DEBUG net.sf.mmm.code.java.maven.impl.MavenBridgeImpl - Reading effective model of /home/runner/.m2/repository/com/fasterxml/jackson/core/jackson-annotations/2.9.0/jackson-annotations-2.9.0.pom
2021-06-09T09:23:39.6272221Z 09:23:39.626 [main] DEBUG net.sf.mmm.code.impl.java.source.maven.MavenDependencyCollector - Omitting optional dependency Dependency {groupId=junit, artifactId=junit, version=4.12, type=jar}
2021-06-09T09:23:39.6281440Z 09:23:39.627 [main] DEBUG net.sf.mmm.code.impl.java.source.maven.MavenDependencyCollector - Omitting optional dependency Dependency {groupId=org.powermock, artifactId=powermock-module-junit4, version=1.7.3, type=jar}
2021-06-09T09:23:39.6287084Z 09:23:39.627 [main] DEBUG net.sf.mmm.code.impl.java.source.maven.MavenDependencyCollector - Omitting optional dependency Dependency {groupId=org.powermock, artifactId=powermock-api-mockito, version=1.7.3, type=jar}
2021-06-09T09:23:39.6291636Z 09:23:39.627 [main] DEBUG net.sf.mmm.code.impl.java.source.maven.MavenDependencyCollector - Omitting optional dependency Dependency {groupId=javax.measure, artifactId=jsr-275, version=1.0.0, type=jar}
2021-06-09T09:23:39.6297075Z 09:23:39.629 [main] DEBUG net.sf.mmm.code.impl.java.source.maven.MavenDependencyCollector - Omitting optional dependency Dependency {groupId=junit, artifactId=junit, version=4.12, type=jar}
2021-06-09T09:23:39.6305537Z 09:23:39.629 [main] DEBUG net.sf.mmm.code.impl.java.source.maven.MavenDependencyCollector - Omitting optional dependency Dependency {groupId=junit, artifactId=junit, version=4.12, type=jar}
2021-06-09T09:23:39.6309317Z 09:23:39.629 [main] DEBUG net.sf.mmm.code.impl.java.source.maven.MavenDependencyCollector - Omitting optional dependency Dependency {groupId=org.eclipse.jetty, artifactId=jetty-server, version=9.2.13.v20150730, type=jar}
2021-06-09T09:23:39.6313481Z 09:23:39.629 [main] DEBUG net.sf.mmm.code.impl.java.source.maven.MavenDependencyCollector - Omitting optional dependency Dependency {groupId=org.eclipse.jetty, artifactId=jetty-servlet, version=9.2.13.v20150730, type=jar}
2021-06-09T09:23:39.6317264Z 09:23:39.629 [main] DEBUG net.sf.mmm.code.impl.java.source.maven.MavenDependencyCollector - Omitting optional dependency Dependency {groupId=org.glassfish.jersey.core, artifactId=jersey-server, version=2.22.2, type=jar}
2021-06-09T09:23:39.6321350Z 09:23:39.629 [main] DEBUG net.sf.mmm.code.impl.java.source.maven.MavenDependencyCollector - Omitting optional dependency Dependency {groupId=org.glassfish.jersey.containers, artifactId=jersey-container-servlet, version=2.22.2, type=jar}
2021-06-09T09:23:39.6352451Z 09:23:39.634 [main] DEBUG net.sf.mmm.code.impl.java.source.maven.MavenDependencyCollector - Adding dependency file:/home/runner/.m2/repository/com/fasterxml/jackson/module/jackson-module-jaxb-annotations/2.9.6/jackson-module-jaxb-annotations-2.9.6.jar for com.fasterxml.jackson.jaxrs:jackson-jaxrs-json-provider:2.9.6
2021-06-09T09:23:39.6376352Z 09:23:39.635 [main] DEBUG net.sf.mmm.code.java.maven.impl.MavenBridgeImpl - Reading effective model of /home/runner/.m2/repository/com/fasterxml/jackson/module/jackson-module-jaxb-annotations/2.9.6/jackson-module-jaxb-annotations-2.9.6.pom
2021-06-09T09:23:39.6632225Z 09:23:39.661 [main] DEBUG net.sf.mmm.code.impl.java.source.maven.MavenDependencyCollector - Omitting optional dependency Dependency {groupId=junit, artifactId=junit, version=4.12, type=jar}
2021-06-09T09:23:39.6673197Z 09:23:39.663 [main] DEBUG net.sf.mmm.code.impl.java.source.maven.MavenDependencyCollector - Omitting optional dependency Dependency {groupId=org.jboss.resteasy, artifactId=resteasy-jackson2-provider, version=3.0.17.Final, type=jar}
2021-06-09T09:23:39.6677762Z 09:23:39.664 [main] DEBUG net.sf.mmm.code.impl.java.source.maven.MavenDependencyCollector - Omitting optional dependency Dependency {groupId=org.jboss.resteasy, artifactId=resteasy-jaxrs, version=3.0.17.Final, type=jar}
2021-06-09T09:23:39.6698177Z 09:23:39.664 [main] DEBUG net.sf.mmm.code.impl.java.source.maven.MavenDependencyCollector - Omitting optional dependency Dependency {groupId=junit, artifactId=junit, version=4.12, type=jar}
2021-06-09T09:23:39.6702277Z 09:23:39.664 [main] DEBUG net.sf.mmm.code.impl.java.source.maven.MavenDependencyCollector - Omitting optional dependency Dependency {groupId=org.eclipse.jetty, artifactId=jetty-server, version=9.2.13.v20150730, type=jar}
2021-06-09T09:23:39.6709531Z 09:23:39.664 [main] DEBUG net.sf.mmm.code.impl.java.source.maven.MavenDependencyCollector - Omitting optional dependency Dependency {groupId=org.eclipse.jetty, artifactId=jetty-servlet, version=9.2.13.v20150730, type=jar}
2021-06-09T09:23:39.6713387Z 09:23:39.664 [main] DEBUG net.sf.mmm.code.impl.java.source.maven.MavenDependencyCollector - Omitting optional dependency Dependency {groupId=org.glassfish.jersey.core, artifactId=jersey-server, version=2.22.2, type=jar}
2021-06-09T09:23:39.6717504Z 09:23:39.664 [main] DEBUG net.sf.mmm.code.impl.java.source.maven.MavenDependencyCollector - Omitting optional dependency Dependency {groupId=org.glassfish.jersey.containers, artifactId=jersey-container-servlet, version=2.22.2, type=jar}
2021-06-09T09:23:39.6721756Z 09:23:39.665 [main] DEBUG net.sf.mmm.code.impl.java.source.maven.MavenDependencyCollector - Adding dependency file:/home/runner/.m2/repository/javax/ws/rs/javax.ws.rs-api/2.1/javax.ws.rs-api-2.1.jar for com.devonfw.java.modules:devon4j-rest:3.0.1
2021-06-09T09:23:39.6725243Z 09:23:39.665 [main] DEBUG net.sf.mmm.code.java.maven.impl.MavenBridgeImpl - Reading effective model of /home/runner/.m2/repository/javax/ws/rs/javax.ws.rs-api/2.1/javax.ws.rs-api-2.1.pom
2021-06-09T09:23:39.6850389Z 09:23:39.684 [main] DEBUG net.sf.mmm.code.impl.java.source.maven.MavenDependencyCollector - Omitting optional dependency Dependency {groupId=junit, artifactId=junit, version=4.11, type=jar}
2021-06-09T09:23:39.6858987Z 09:23:39.685 [main] DEBUG net.sf.mmm.code.impl.java.source.maven.MavenDependencyCollector - Adding dependency file:/home/runner/.m2/repository/com/devonfw/java/modules/devon4j-service/3.0.1/devon4j-service-3.0.1.jar for com.devonfw.java.modules:devon4j-rest:3.0.1
2021-06-09T09:23:39.6863375Z 09:23:39.685 [main] DEBUG net.sf.mmm.code.java.maven.impl.MavenBridgeImpl - Reading effective model of /home/runner/.m2/repository/com/devonfw/java/modules/devon4j-service/3.0.1/devon4j-service-3.0.1.pom
2021-06-09T09:23:39.6889649Z 09:23:39.688 [main] DEBUG net.sf.mmm.code.impl.java.source.maven.MavenDependencyCollector - Adding dependency file:/home/runner/.m2/repository/org/slf4j/slf4j-api/1.7.25/slf4j-api-1.7.25.jar for com.devonfw.java.modules:devon4j-service:3.0.1
2021-06-09T09:23:39.6952045Z 09:23:39.694 [main] DEBUG net.sf.mmm.code.java.maven.impl.MavenBridgeImpl - Reading effective model of /home/runner/.m2/repository/org/slf4j/slf4j-api/1.7.25/slf4j-api-1.7.25.pom
2021-06-09T09:23:39.7084769Z 09:23:39.707 [main] DEBUG net.sf.mmm.code.impl.java.source.maven.MavenDependencyCollector - Omitting optional dependency Dependency {groupId=junit, artifactId=junit, version=4.12, type=jar}
2021-06-09T09:23:39.7101552Z 09:23:39.709 [main] DEBUG net.sf.mmm.code.impl.java.source.maven.MavenDependencyCollector - Adding dependency file:/home/runner/.m2/repository/javax/inject/javax.inject/1/javax.inject-1.jar for com.devonfw.java.modules:devon4j-service:3.0.1
2021-06-09T09:23:39.7106104Z 09:23:39.709 [main] DEBUG net.sf.mmm.code.java.maven.impl.MavenBridgeImpl - Reading effective model of /home/runner/.m2/repository/javax/inject/javax.inject/1/javax.inject-1.pom
2021-06-09T09:23:39.7170871Z 09:23:39.716 [main] DEBUG net.sf.mmm.code.impl.java.source.maven.MavenDependencyCollector - Adding dependency file:/home/runner/.m2/repository/com/devonfw/java/modules/devon4j-basic/3.0.1/devon4j-basic-3.0.1.jar for com.devonfw.java.modules:devon4j-service:3.0.1
2021-06-09T09:23:39.7176376Z 09:23:39.716 [main] DEBUG net.sf.mmm.code.java.maven.impl.MavenBridgeImpl - Reading effective model of /home/runner/.m2/repository/com/devonfw/java/modules/devon4j-basic/3.0.1/devon4j-basic-3.0.1.pom
2021-06-09T09:23:39.7192401Z 09:23:39.718 [main] DEBUG net.sf.mmm.code.impl.java.source.maven.MavenDependencyCollector - Adding dependency file:/home/runner/.m2/repository/com/devonfw/java/modules/devon4j-json/3.0.1/devon4j-json-3.0.1.jar for com.devonfw.java.modules:devon4j-rest:3.0.1
2021-06-09T09:23:39.7198055Z 09:23:39.718 [main] DEBUG net.sf.mmm.code.java.maven.impl.MavenBridgeImpl - Reading effective model of /home/runner/.m2/repository/com/devonfw/java/modules/devon4j-json/3.0.1/devon4j-json-3.0.1.pom
2021-06-09T09:23:39.7214076Z 09:23:39.720 [main] DEBUG net.sf.mmm.code.impl.java.source.maven.MavenDependencyCollector - Adding dependency file:/home/runner/.m2/repository/org/springframework/spring-context/5.0.8.RELEASE/spring-context-5.0.8.RELEASE.jar for com.devonfw.java.modules:devon4j-json:3.0.1
2021-06-09T09:23:39.7258443Z 09:23:39.725 [main] DEBUG net.sf.mmm.code.java.maven.impl.MavenBridgeImpl - Reading effective model of /home/runner/.m2/repository/org/springframework/spring-context/5.0.8.RELEASE/spring-context-5.0.8.RELEASE.pom
2021-06-09T09:23:39.7282323Z 09:23:39.727 [main] DEBUG net.sf.mmm.code.impl.java.source.maven.MavenDependencyCollector - Adding dependency file:/home/runner/.m2/repository/org/springframework/spring-aop/5.0.8.RELEASE/spring-aop-5.0.8.RELEASE.jar for org.springframework:spring-context:5.0.8.RELEASE
2021-06-09T09:23:39.7310016Z 09:23:39.730 [main] DEBUG net.sf.mmm.code.java.maven.impl.MavenBridgeImpl - Reading effective model of /home/runner/.m2/repository/org/springframework/spring-aop/5.0.8.RELEASE/spring-aop-5.0.8.RELEASE.pom
2021-06-09T09:23:39.7329883Z 09:23:39.732 [main] DEBUG net.sf.mmm.code.impl.java.source.maven.MavenDependencyCollector - Adding dependency file:/home/runner/.m2/repository/org/springframework/spring-beans/5.0.8.RELEASE/spring-beans-5.0.8.RELEASE.jar for org.springframework:spring-aop:5.0.8.RELEASE
2021-06-09T09:23:39.7336186Z 09:23:39.733 [main] DEBUG net.sf.mmm.code.java.maven.impl.MavenBridgeImpl - Reading effective model of /home/runner/.m2/repository/org/springframework/spring-beans/5.0.8.RELEASE/spring-beans-5.0.8.RELEASE.pom
2021-06-09T09:23:39.7381314Z 09:23:39.737 [main] DEBUG net.sf.mmm.code.impl.java.source.maven.MavenDependencyCollector - Adding dependency file:/home/runner/.m2/repository/org/springframework/spring-core/5.0.8.RELEASE/spring-core-5.0.8.RELEASE.jar for org.springframework:spring-beans:5.0.8.RELEASE
2021-06-09T09:23:39.7385596Z 09:23:39.737 [main] DEBUG net.sf.mmm.code.java.maven.impl.MavenBridgeImpl - Reading effective model of /home/runner/.m2/repository/org/springframework/spring-core/5.0.8.RELEASE/spring-core-5.0.8.RELEASE.pom
2021-06-09T09:23:39.7400799Z 09:23:39.739 [main] DEBUG net.sf.mmm.code.impl.java.source.maven.MavenDependencyCollector - Adding dependency file:/home/runner/.m2/repository/org/springframework/spring-jcl/5.0.8.RELEASE/spring-jcl-5.0.8.RELEASE.jar for org.springframework:spring-core:5.0.8.RELEASE
2021-06-09T09:23:39.7407831Z 09:23:39.740 [main] DEBUG net.sf.mmm.code.java.maven.impl.MavenBridgeImpl - Reading effective model of /home/runner/.m2/repository/org/springframework/spring-jcl/5.0.8.RELEASE/spring-jcl-5.0.8.RELEASE.pom
2021-06-09T09:23:39.7428938Z 09:23:39.742 [main] DEBUG net.sf.mmm.code.impl.java.source.maven.MavenDependencyCollector - Adding dependency file:/home/runner/.m2/repository/org/springframework/spring-expression/5.0.8.RELEASE/spring-expression-5.0.8.RELEASE.jar for org.springframework:spring-context:5.0.8.RELEASE
2021-06-09T09:23:39.7449952Z 09:23:39.744 [main] DEBUG net.sf.mmm.code.java.maven.impl.MavenBridgeImpl - Reading effective model of /home/runner/.m2/repository/org/springframework/spring-expression/5.0.8.RELEASE/spring-expression-5.0.8.RELEASE.pom
2021-06-09T09:23:39.7478096Z 09:23:39.747 [main] DEBUG net.sf.mmm.code.impl.java.source.maven.MavenDependencyCollector - Adding dependency file:/home/runner/.m2/repository/javax/validation/validation-api/2.0.1.Final/validation-api-2.0.1.Final.jar for com.devonfw.java.modules:devon4j-rest:3.0.1
2021-06-09T09:23:39.7510545Z 09:23:39.749 [main] DEBUG net.sf.mmm.code.java.maven.impl.MavenBridgeImpl - Reading effective model of /home/runner/.m2/repository/javax/validation/validation-api/2.0.1.Final/validation-api-2.0.1.Final.pom
2021-06-09T09:23:39.7539258Z 09:23:39.752 [main] DEBUG net.sf.mmm.code.impl.java.source.maven.MavenDependencyCollector - Omitting optional dependency Dependency {groupId=org.testng, artifactId=testng, version=6.9.10, type=jar}
2021-06-09T09:23:39.7546328Z 09:23:39.754 [main] DEBUG net.sf.mmm.code.impl.java.source.maven.MavenDependencyCollector - Adding dependency file:/home/runner/.m2/repository/net/sf/m-m-m/mmm-util-validation/7.6.1/mmm-util-validation-7.6.1.jar for com.devonfw.java.modules:devon4j-rest:3.0.1
2021-06-09T09:23:39.7590409Z 09:23:39.754 [main] DEBUG net.sf.mmm.code.java.maven.impl.MavenBridgeImpl - Reading effective model of /home/runner/.m2/repository/net/sf/m-m-m/mmm-util-validation/7.6.1/mmm-util-validation-7.6.1.pom
2021-06-09T09:23:39.7594361Z 09:23:39.756 [main] DEBUG net.sf.mmm.code.impl.java.source.maven.MavenDependencyCollector - Adding dependency file:/home/runner/.m2/repository/net/sf/m-m-m/mmm-util-pojopath/7.6.1/mmm-util-pojopath-7.6.1.jar for net.sf.m-m-m:mmm-util-validation:7.6.1
2021-06-09T09:23:39.7598121Z 09:23:39.757 [main] DEBUG net.sf.mmm.code.java.maven.impl.MavenBridgeImpl - Reading effective model of /home/runner/.m2/repository/net/sf/m-m-m/mmm-util-pojopath/7.6.1/mmm-util-pojopath-7.6.1.pom
2021-06-09T09:23:39.7629400Z 09:23:39.759 [main] DEBUG net.sf.mmm.code.impl.java.source.maven.MavenDependencyCollector - Adding dependency file:/home/runner/.m2/repository/net/sf/m-m-m/mmm-util-value/7.6.1/mmm-util-value-7.6.1.jar for net.sf.m-m-m:mmm-util-pojopath:7.6.1
2021-06-09T09:23:39.7633853Z 09:23:39.759 [main] DEBUG net.sf.mmm.code.java.maven.impl.MavenBridgeImpl - Reading effective model of /home/runner/.m2/repository/net/sf/m-m-m/mmm-util-value/7.6.1/mmm-util-value-7.6.1.pom
2021-06-09T09:23:39.7637869Z 09:23:39.762 [main] DEBUG net.sf.mmm.code.impl.java.source.maven.MavenDependencyCollector - Adding dependency file:/home/runner/.m2/repository/net/sf/m-m-m/mmm-util-pojo/7.6.1/mmm-util-pojo-7.6.1.jar for net.sf.m-m-m:mmm-util-value:7.6.1
2021-06-09T09:23:39.7641764Z 09:23:39.762 [main] DEBUG net.sf.mmm.code.java.maven.impl.MavenBridgeImpl - Reading effective model of /home/runner/.m2/repository/net/sf/m-m-m/mmm-util-pojo/7.6.1/mmm-util-pojo-7.6.1.pom
2021-06-09T09:23:39.7670043Z 09:23:39.766 [main] DEBUG net.sf.mmm.code.impl.java.source.maven.MavenDependencyCollector - Adding dependency file:/home/runner/.m2/repository/net/sf/m-m-m/mmm-util-exception/7.6.1/mmm-util-exception-7.6.1.jar for net.sf.m-m-m:mmm-util-pojo:7.6.1
2021-06-09T09:23:39.7675616Z 09:23:39.766 [main] DEBUG net.sf.mmm.code.java.maven.impl.MavenBridgeImpl - Reading effective model of /home/runner/.m2/repository/net/sf/m-m-m/mmm-util-exception/7.6.1/mmm-util-exception-7.6.1.pom
2021-06-09T09:23:39.7767195Z 09:23:39.771 [main] DEBUG net.sf.mmm.code.impl.java.source.maven.MavenDependencyCollector - Adding dependency file:/home/runner/.m2/repository/net/sf/m-m-m/mmm-util-nls/7.6.1/mmm-util-nls-7.6.1.jar for net.sf.m-m-m:mmm-util-exception:7.6.1
2021-06-09T09:23:39.7772430Z 09:23:39.776 [main] DEBUG net.sf.mmm.code.java.maven.impl.MavenBridgeImpl - Reading effective model of /home/runner/.m2/repository/net/sf/m-m-m/mmm-util-nls/7.6.1/mmm-util-nls-7.6.1.pom
2021-06-09T09:23:39.7793970Z 09:23:39.778 [main] DEBUG net.sf.mmm.code.impl.java.source.maven.MavenDependencyCollector - Adding dependency file:/home/runner/.m2/repository/net/sf/m-m-m/mmm-util-text/7.6.1/mmm-util-text-7.6.1.jar for net.sf.m-m-m:mmm-util-nls:7.6.1
2021-06-09T09:23:39.7799199Z 09:23:39.779 [main] DEBUG net.sf.mmm.code.java.maven.impl.MavenBridgeImpl - Reading effective model of /home/runner/.m2/repository/net/sf/m-m-m/mmm-util-text/7.6.1/mmm-util-text-7.6.1.pom
2021-06-09T09:23:39.7829503Z 09:23:39.782 [main] DEBUG net.sf.mmm.code.impl.java.source.maven.MavenDependencyCollector - Adding dependency file:/home/runner/.m2/repository/net/sf/m-m-m/mmm-util-lang/7.6.1/mmm-util-lang-7.6.1.jar for net.sf.m-m-m:mmm-util-text:7.6.1
2021-06-09T09:23:39.7835134Z 09:23:39.782 [main] DEBUG net.sf.mmm.code.java.maven.impl.MavenBridgeImpl - Reading effective model of /home/runner/.m2/repository/net/sf/m-m-m/mmm-util-lang/7.6.1/mmm-util-lang-7.6.1.pom
2021-06-09T09:23:39.7871865Z 09:23:39.786 [main] DEBUG net.sf.mmm.code.impl.java.source.maven.MavenDependencyCollector - Adding dependency file:/home/runner/.m2/repository/net/sf/m-m-m/mmm-util-date/7.6.1/mmm-util-date-7.6.1.jar for net.sf.m-m-m:mmm-util-nls:7.6.1
2021-06-09T09:23:39.7880647Z 09:23:39.786 [main] DEBUG net.sf.mmm.code.java.maven.impl.MavenBridgeImpl - Reading effective model of /home/runner/.m2/repository/net/sf/m-m-m/mmm-util-date/7.6.1/mmm-util-date-7.6.1.pom
2021-06-09T09:23:39.7914010Z 09:23:39.790 [main] DEBUG net.sf.mmm.code.impl.java.source.maven.MavenDependencyCollector - Adding dependency file:/home/runner/.m2/repository/net/sf/m-m-m/mmm-util-scanner/7.6.1/mmm-util-scanner-7.6.1.jar for net.sf.m-m-m:mmm-util-date:7.6.1
2021-06-09T09:23:39.7919424Z 09:23:39.791 [main] DEBUG net.sf.mmm.code.java.maven.impl.MavenBridgeImpl - Reading effective model of /home/runner/.m2/repository/net/sf/m-m-m/mmm-util-scanner/7.6.1/mmm-util-scanner-7.6.1.pom
2021-06-09T09:23:39.7955235Z 09:23:39.795 [main] DEBUG net.sf.mmm.code.impl.java.source.maven.MavenDependencyCollector - Adding dependency file:/home/runner/.m2/repository/net/sf/m-m-m/mmm-util-session/7.6.1/mmm-util-session-7.6.1.jar for net.sf.m-m-m:mmm-util-nls:7.6.1
2021-06-09T09:23:39.7959854Z 09:23:39.795 [main] DEBUG net.sf.mmm.code.java.maven.impl.MavenBridgeImpl - Reading effective model of /home/runner/.m2/repository/net/sf/m-m-m/mmm-util-session/7.6.1/mmm-util-session-7.6.1.pom
2021-06-09T09:23:39.8001938Z 09:23:39.799 [main] DEBUG net.sf.mmm.code.impl.java.source.maven.MavenDependencyCollector - Adding dependency file:/home/runner/.m2/repository/net/sf/m-m-m/mmm-util-reflect/7.6.1/mmm-util-reflect-7.6.1.jar for net.sf.m-m-m:mmm-util-pojo:7.6.1
2021-06-09T09:23:39.8008165Z 09:23:39.799 [main] DEBUG net.sf.mmm.code.java.maven.impl.MavenBridgeImpl - Reading effective model of /home/runner/.m2/repository/net/sf/m-m-m/mmm-util-reflect/7.6.1/mmm-util-reflect-7.6.1.pom
2021-06-09T09:23:39.8034764Z 09:23:39.802 [main] DEBUG net.sf.mmm.code.impl.java.source.maven.MavenDependencyCollector - Adding dependency file:/home/runner/.m2/repository/net/sf/m-m-m/mmm-util-collection/7.6.1/mmm-util-collection-7.6.1.jar for net.sf.m-m-m:mmm-util-pojo:7.6.1
2021-06-09T09:23:39.8039690Z 09:23:39.803 [main] DEBUG net.sf.mmm.code.java.maven.impl.MavenBridgeImpl - Reading effective model of /home/runner/.m2/repository/net/sf/m-m-m/mmm-util-collection/7.6.1/mmm-util-collection-7.6.1.pom
2021-06-09T09:23:39.8079565Z 09:23:39.807 [main] DEBUG net.sf.mmm.code.impl.java.source.maven.MavenDependencyCollector - Adding dependency file:/home/runner/.m2/repository/net/sf/m-m-m/mmm-util-math/7.6.1/mmm-util-math-7.6.1.jar for net.sf.m-m-m:mmm-util-value:7.6.1
2021-06-09T09:23:39.8084114Z 09:23:39.807 [main] DEBUG net.sf.mmm.code.java.maven.impl.MavenBridgeImpl - Reading effective model of /home/runner/.m2/repository/net/sf/m-m-m/mmm-util-math/7.6.1/mmm-util-math-7.6.1.pom
2021-06-09T09:23:39.8145514Z 09:23:39.814 [main] DEBUG net.sf.mmm.code.impl.java.source.maven.MavenDependencyCollector - Adding dependency file:/home/runner/.m2/repository/javax/el/javax.el-api/3.0.0/javax.el-api-3.0.0.jar for com.devonfw.java.modules:devon4j-rest:3.0.1
2021-06-09T09:23:39.8159010Z 09:23:39.815 [main] DEBUG net.sf.mmm.code.java.maven.impl.MavenBridgeImpl - Reading effective model of /home/runner/.m2/repository/javax/el/javax.el-api/3.0.0/javax.el-api-3.0.0.pom
2021-06-09T09:23:39.8192898Z 09:23:39.818 [main] DEBUG net.sf.mmm.code.impl.java.source.maven.MavenDependencyCollector - Adding dependency file:/home/runner/.m2/repository/org/glassfish/web/javax.el/2.2.6/javax.el-2.2.6.jar for com.devonfw.java.modules:devon4j-rest:3.0.1
2021-06-09T09:23:39.8201169Z 09:23:39.819 [main] DEBUG net.sf.mmm.code.java.maven.impl.MavenBridgeImpl - Reading effective model of /home/runner/.m2/repository/org/glassfish/web/javax.el/2.2.6/javax.el-2.2.6.pom
2021-06-09T09:23:39.8275797Z 09:23:39.827 [main] DEBUG net.sf.mmm.code.impl.java.source.maven.MavenDependencyCollector - Adding dependency file:/home/runner/.m2/repository/javax/persistence/persistence-api/1.0.2/persistence-api-1.0.2.jar for testing:core:dev-SNAPSHOT
2021-06-09T09:23:39.8281539Z 09:23:39.827 [main] DEBUG net.sf.mmm.code.java.maven.impl.MavenBridgeImpl - Reading effective model of /home/runner/.m2/repository/javax/persistence/persistence-api/1.0.2/persistence-api-1.0.2.pom
2021-06-09T09:23:39.8327217Z 09:23:39.830 [main] DEBUG net.sf.mmm.code.impl.java.source.maven.MavenDependencyCollector - Adding dependency file:/home/runner/.m2/repository/com/devonfw/java/modules/devon4j-basic/2021.04.002/devon4j-basic-2021.04.002.jar for testing:core:dev-SNAPSHOT
2021-06-09T09:23:39.8333946Z 09:23:39.832 [main] DEBUG net.sf.mmm.code.java.maven.impl.MavenBridgeImpl - Reading effective model of /home/runner/.m2/repository/com/devonfw/java/modules/devon4j-basic/2021.04.002/devon4j-basic-2021.04.002.pom
2021-06-09T09:23:39.8353538Z 09:23:39.834 [main] DEBUG net.sf.mmm.code.impl.java.source.maven.MavenDependencyCollector - Adding dependency file:/home/runner/.m2/repository/org/slf4j/slf4j-api/1.7.30/slf4j-api-1.7.30.jar for com.devonfw.java.modules:devon4j-basic:2021.04.002
2021-06-09T09:23:39.8359071Z 09:23:39.834 [main] DEBUG net.sf.mmm.code.java.maven.impl.MavenBridgeImpl - Reading effective model of /home/runner/.m2/repository/org/slf4j/slf4j-api/1.7.30/slf4j-api-1.7.30.pom
2021-06-09T09:23:39.8464716Z 09:23:39.846 [main] DEBUG net.sf.mmm.code.impl.java.source.maven.MavenDependencyCollector - Omitting optional dependency Dependency {groupId=junit, artifactId=junit, version=4.12, type=jar}

On Linux, it does not take the maven dependencies into account:

2021-06-09T09:24:15.5516843Z 09:24:15.549 [main] DEBUG net.sf.mmm.code.java.maven.impl.MavenBridgeImpl - Reading effective model of C:\Users\runneradmin\AppData\Local\Temp\junit3304932413915060247\playground\project\maven.project\core\pom.xml
2021-06-09T09:24:15.6746953Z 09:24:15.672 [main] DEBUG net.sf.mmm.code.java.maven.impl.MavenBridgeImpl - Reading effective model of C:\Users\runneradmin\AppData\Local\Temp\junit3304932413915060247\playground\project\maven.project\pom.xml
2021-06-09T09:24:15.6785247Z 09:24:15.676 [main] DEBUG net.sf.mmm.code.java.maven.impl.MavenBridgeImpl - Reading effective model of C:\Users\runneradmin\AppData\Local\Temp\junit3304932413915060247\playground\project\maven.project\api\pom.xml
2021-06-09T09:24:15.7435713Z 09:24:15.690 [main] DEBUG net.sf.mmm.code.impl.java.source.maven.MavenDependencyCollector - Already visited module project C:\Users\runneradmin\AppData\Local\Temp\junit3304932413915060247\playground\project\maven.project\core
2021-06-09T09:24:15.7441235Z 09:24:15.690 [main] DEBUG net.sf.mmm.code.impl.java.source.maven.MavenDependencyCollector - Collecting dependencies for testing:maven.project:dev-SNAPSHOT
2021-06-09T09:24:15.7458405Z 09:24:15.692 [main] DEBUG net.sf.mmm.code.impl.java.source.maven.MavenDependencyCollector - Collecting dependencies for testing:core:dev-SNAPSHOT
2021-06-09T09:24:15.7463244Z 09:24:15.693 [main] DEBUG net.sf.mmm.code.impl.java.source.maven.MavenDependencyCollector - Adding dependency file:/C:/Users/runneradmin/AppData/Local/Temp/junit3304932413915060247/playground/project/maven.project/core/target/classes/
2021-06-09T09:24:15.7466831Z 09:24:15.694 [main] DEBUG net.sf.mmm.code.impl.java.source.maven.MavenDependencyCollector - Adding dependency file:/C:/Users/runneradmin/AppData/Local/Temp/junit3304932413915060247/playground/project/maven.project/api/target/classes/
2021-06-09T09:24:15.7523373Z com.devonfw.cobigen.api.exception.CobiGenRuntimeException: Compiled class com.maven.project.sampledatamanagement.dataaccess.api.SampleDataEntity has not been found. Most probably you need to build project C:\Users\RUNNER~1\AppData\Local\Temp\junit3304932413915060247\playground\project\maven.project\core.
2021-06-09T09:24:15.7529617Z    at com.devonfw.cobigen.cli.utils.ParsingUtils.getJavaContext(ParsingUtils.java:66)
2021-06-09T09:24:15.7532312Z    at com.devonfw.cobigen.cli.utils.CobiGenUtils.getValidCobiGenInput(CobiGenUtils.java:235)
2021-06-09T09:24:15.7535253Z    at com.devonfw.cobigen.cli.commands.GenerateCommand.preprocess(GenerateCommand.java:149)
2021-06-09T09:24:15.7537609Z    at com.devonfw.cobigen.cli.commands.GenerateCommand.doAction(GenerateCommand.java:113)
2021-06-09T09:24:15.7540379Z    at com.devonfw.cobigen.cli.commands.CommandCommons.call(CommandCommons.java:36)
2021-06-09T09:24:15.7542511Z    at com.devonfw.cobigen.cli.commands.CommandCommons.call(CommandCommons.java:15)
2021-06-09T09:24:15.7544470Z    at picocli.CommandLine.executeUserObject(CommandLine.java:1933)
2021-06-09T09:24:15.7545866Z    at picocli.CommandLine.access$1100(CommandLine.java:145)
2021-06-09T09:24:15.7547673Z    at picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2332)
2021-06-09T09:24:15.7550191Z    at picocli.CommandLine$RunLast.handle(CommandLine.java:2326)
2021-06-09T09:24:15.7552729Z    at picocli.CommandLine$RunLast.handle(CommandLine.java:2291)
2021-06-09T09:24:15.7554008Z    at picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2159)
2021-06-09T09:24:15.7555328Z    at picocli.CommandLine.execute(CommandLine.java:2058)
2021-06-09T09:24:15.7556509Z    at com.devonfw.cobigen.cli.CobiGenCLI.main(CobiGenCLI.java:48)
2021-06-09T09:24:15.7557874Z Caused by: java.lang.NoClassDefFoundError: com/devonfw/module/basic/common/api/entity/GenericEntity
2021-06-09T09:24:15.7559216Z    at java.lang.ClassLoader.defineClass1(Native Method)
2021-06-09T09:24:15.7560870Z    at java.lang.ClassLoader.defineClass(ClassLoader.java:757)
2021-06-09T09:24:15.7562691Z    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
2021-06-09T09:24:15.7564291Z    at java.net.URLClassLoader.defineClass(URLClassLoader.java:468)
2021-06-09T09:24:15.7565543Z    at java.net.URLClassLoader.access$100(URLClassLoader.java:74)
2021-06-09T09:24:15.7566590Z    at java.net.URLClassLoader$1.run(URLClassLoader.java:369)
2021-06-09T09:24:15.7568065Z    at java.net.URLClassLoader$1.run(URLClassLoader.java:363)
2021-06-09T09:24:15.7570363Z    at java.security.AccessController.doPrivileged(Native Method)
2021-06-09T09:24:15.7571695Z    at java.net.URLClassLoader.findClass(URLClassLoader.java:362)
2021-06-09T09:24:15.7572867Z    at java.lang.ClassLoader.loadClass(ClassLoader.java:419)
2021-06-09T09:24:15.7573984Z    at java.lang.ClassLoader.loadClass(ClassLoader.java:352)
2021-06-09T09:24:15.7575076Z    at java.lang.ClassLoader.defineClass1(Native Method)
2021-06-09T09:24:15.7576256Z    at java.lang.ClassLoader.defineClass(ClassLoader.java:757)
2021-06-09T09:24:15.7577720Z    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
2021-06-09T09:24:15.7579277Z    at java.net.URLClassLoader.defineClass(URLClassLoader.java:468)
2021-06-09T09:24:15.7580531Z    at java.net.URLClassLoader.access$100(URLClassLoader.java:74)
2021-06-09T09:24:15.7581597Z    at java.net.URLClassLoader$1.run(URLClassLoader.java:369)
2021-06-09T09:24:15.7582556Z    at java.net.URLClassLoader$1.run(URLClassLoader.java:363)
2021-06-09T09:24:15.7583771Z    at java.security.AccessController.doPrivileged(Native Method)
2021-06-09T09:24:15.7585113Z    at java.net.URLClassLoader.findClass(URLClassLoader.java:362)
2021-06-09T09:24:15.7586258Z    at java.lang.ClassLoader.loadClass(ClassLoader.java:419)
2021-06-09T09:24:15.7587365Z    at java.lang.ClassLoader.loadClass(ClassLoader.java:352)
2021-06-09T09:24:15.7589065Z    at com.devonfw.cobigen.cli.utils.ParsingUtils.getJavaContext(ParsingUtils.java:62)
2021-06-09T09:24:15.7590534Z    ... 13 more
2021-06-09T09:24:15.7591992Z Caused by: java.lang.ClassNotFoundException: com.devonfw.module.basic.common.api.entity.GenericEntity
2021-06-09T09:24:15.7593921Z    at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
2021-06-09T09:24:15.7595083Z    at java.lang.ClassLoader.loadClass(ClassLoader.java:419)
2021-06-09T09:24:15.7596178Z    at java.lang.ClassLoader.loadClass(ClassLoader.java:352)
2021-06-09T09:24:15.7596914Z    ... 36 more

Expected behavior

This should work OS idependent.

Affected version

1.0.0-beta5

hohwille commented 3 years ago

Can we find a way how to reproduce this bug? Would it be possible to create a JUnit for the scenario? I am still not yet convinced that this is an OS specific bug. Maybe also the circumstances of the maven project and repo between the windows and linux setup differ.

maybeec commented 3 years ago

not a problem of mmm, was a problem of caching in GHA