Skip to content

Commit

Permalink
Merge pull request #7523 from jaikiran/pr-7521
Browse files Browse the repository at this point in the history
Load JSON parent first for logging
  • Loading branch information
aloubyansky authored Mar 3, 2020
2 parents 3fbdbc3 + 2f3c1df commit 9c009c0
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
7 changes: 7 additions & 0 deletions devtools/maven/src/main/java/io/quarkus/maven/DevMojo.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
import java.util.zip.ZipEntry;
import java.util.zip.ZipOutputStream;

import org.apache.maven.artifact.Artifact;
import org.apache.maven.execution.MavenSession;
import org.apache.maven.model.Dependency;
import org.apache.maven.model.Plugin;
Expand Down Expand Up @@ -603,6 +604,12 @@ void prepare() throws Exception {

addToClassPaths(classPathManifest, devModeContext, wiringClassesDirectory);

//in most cases these are not used, however they need to be present for some
//parent-first cases such as logging
for (Artifact appDep : project.getArtifacts()) {
addToClassPaths(classPathManifest, devModeContext, appDep.getFile());
}

//we also want to add the maven plugin jar to the class path
//this allows us to just directly use classes, without messing around copying them
//to the runner jar
Expand Down
4 changes: 4 additions & 0 deletions extensions/jsonp/runtime/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@
<excludedArtifact>javax.json:javax.json-api</excludedArtifact>
<excludedArtifact>org.glassfish:javax.json</excludedArtifact>
</excludedArtifacts>
<parentFirstArtifacts>
<parentFirstArtifact>org.glassfish:jakarta.json</parentFirstArtifact>
<parentFirstArtifact>jakarta.json:jakarta.json-api</parentFirstArtifact>
</parentFirstArtifacts>
</configuration>
</plugin>
<plugin>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,12 @@
<groupId>io.quarkus</groupId>
<artifactId>quarkus-undertow-websockets</artifactId>
</dependency>
<!-- quarkus-logging-json dependency to make sure application start
doesn't fail in dev mode due to classloading issues (see issue#7469) -->
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-logging-json</artifactId>
</dependency>
<dependency>
<groupId>org.webjars</groupId>
<artifactId>bootstrap</artifactId>
Expand Down

0 comments on commit 9c009c0

Please sign in to comment.