Skip to content
This repository has been archived by the owner on Apr 28, 2023. It is now read-only.

Drastically reduce Maven log output #612

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ols-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
mvn -B release:update-versions -DreleaseVersion=${{ steps.versionNumber.outputs.value }} -DdevelopmentVersion=${{ steps.versionNumber.outputs.value }}-SNAPSHOT
mvn versions:set -DremoveSnapshot -DgenerateBackupPoms=false -DprocessAllModules=true
- name: Build OLS
run: mvn clean package -DskipTests
run: mvn -B clean package -DskipTests
- name: Create archive
run: |
mkdir ols_jars_${{ github.ref_name }}
Expand Down
3 changes: 2 additions & 1 deletion ols-apps/ols-config-importer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ FROM maven:3.6-jdk-8 AS build
RUN mkdir /opt/ols
COPY . /opt/ols/
COPY build-fix/. /root/.m2/repository/
RUN cd /opt/ols && ls && mvn clean package -DskipTests
ENV MAVEN_OPTS="-Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn"
RUN cd /opt/ols && ls && mvn clean package -B -DskipTests

FROM openjdk:8-jre-alpine
RUN apk add bash
Expand Down
3 changes: 2 additions & 1 deletion ols-apps/ols-indexer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ FROM maven:3.6-jdk-8 AS build
RUN mkdir /opt/ols
COPY . /opt/ols/
COPY build-fix/. /root/.m2/repository/
RUN cd /opt/ols && ls && mvn clean package -DskipTests
ENV MAVEN_OPTS="-Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn"
RUN cd /opt/ols && ls && mvn clean package -B -DskipTests

FROM openjdk:8-jre-alpine
RUN apk add bash
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -173,22 +173,22 @@ else if (deleteOntologies.length > 0){
else {
// otherwise load everything set TOLOAD
for (OntologyDocument document : ontologyRepositoryService.getAllDocumentsByStatus(Status.TOLOAD)) {
// try {
try {
boolean loadResult = ontologyIndexingService.indexOntologyDocument(document);
if (loadResult)
updatedOntologies.add(document.getOntologyId());
else {
haserror = true;
failingOntologies.put(document.getOntologyId(), "An error occurred. Check logs.");
}
// } catch (Throwable t) {
// logger.error("Application failed creating indexes for " + document.getOntologyId() + ": " +
// t.getMessage(), t);
// exceptions.append(t.getMessage());
// exceptions.append("\n");
// haserror = true;
// failingOntologies.put(document.getOntologyId(),t.getMessage());
// }
} catch (Throwable t) {
logger.error("Application failed creating indexes for " + document.getOntologyId() + ": " +
t.getMessage(), t);
exceptions.append(t.getMessage());
exceptions.append("\n");
haserror = true;
failingOntologies.put(document.getOntologyId(),t.getMessage());
}
}
}

Expand Down
3 changes: 2 additions & 1 deletion ols-web/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ FROM maven:3.6-jdk-8 AS build
RUN mkdir /opt/ols
COPY . /opt/ols/
COPY build-fix/. /root/.m2/repository/
RUN cd /opt/ols && ls && mvn clean package -DskipTests
ENV MAVEN_OPTS="-Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn"
RUN cd /opt/ols && ls && mvn -B clean package -DskipTests

FROM openjdk:8-jre-alpine
RUN apk add bash
Expand Down