Skip to content

Commit

Permalink
MET-6224 changes in pom files
Browse files Browse the repository at this point in the history
  • Loading branch information
pWoz committed Dec 3, 2024
1 parent 714bcdc commit a481eab
Show file tree
Hide file tree
Showing 14 changed files with 191 additions and 9 deletions.
6 changes: 3 additions & 3 deletions .run/ValidationJob.run.xml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="ValidationJob" type="Application" factoryName="Application" nameIsGenerated="true">
<configuration default="false" name="ValidationJob" type="Application" factoryName="Application">
<option name="INCLUDE_PROVIDED_SCOPE" value="true" />
<option name="MAIN_CLASS_NAME" value="eu.europeana.metis.ValidationJob" />
<option name="MAIN_CLASS_NAME" value="eu.europeana.processing.validation.ValidationJob" />
<module name="metis-processing-engine-validation" />
<option name="PROGRAM_PARAMETERS" value="--datasetId 12 --executionId 1755776870684870440 --validationType VALIDATION_INTERNAL --chunkSize 12 --datasource.url jdbc:postgresql://localhost:5432/spring-batch-metis-poc --datasource.username admin --datasource.password admin" />
<option name="VM_PARAMETERS" value="--add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.util=ALL-UNNAMED --add-opens java.base/java.time=ALL-UNNAMED --add-opens java.base/java.util.concurrent.atomic=ALL-UNNAMED" />
<extension name="coverage">
<pattern>
<option name="PATTERN" value="eu.europeana.metis.*" />
<option name="PATTERN" value="eu.europeana.metis.processing.*" />
<option name="ENABLED" value="true" />
</pattern>
</extension>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ public class DbConnectionProvider implements Serializable, AutoCloseable {

public DbConnectionProvider(ParameterTool parameterTool) {
HikariConfig config=new HikariConfig();
config.setDriverClassName("org.postgresql.Driver");
config.setJdbcUrl(parameterTool.getRequired(JobParamName.DATASOURCE_URL));
config.setUsername(parameterTool.get(JobParamName.DATASOURCE_USERNAME));
config.setPassword(parameterTool.get(JobParamName.DATASOURCE_PASSWORD));
Expand Down
2 changes: 1 addition & 1 deletion docker/build-docker-images.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ docker build --no-cache -t flink:1.18.1-java21_poc .
cd ..
cd flink-node
echo building :: flink-node $(pwd)
docker build --no-cache -t metis-processing-engine-flink:1.20-java21 .
docker build --no-cache -t metis-processing-engine-flink:1.18.1-java21 .

30 changes: 30 additions & 0 deletions enrichment/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,34 @@
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<executions>
<execution>
<id>make-assembly</id>
<configuration>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
<appendAssemblyId>false</appendAssemblyId>
<archive>
<manifest>
<mainClass>
eu.europeana.processing.enrichment.EnrichmentJob
</mainClass>
</manifest>
</archive>
</configuration>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>

</project>
30 changes: 30 additions & 0 deletions indexing/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,34 @@

</dependencies>

<build>
<plugins>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<executions>
<execution>
<id>make-assembly</id>
<configuration>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
<appendAssemblyId>false</appendAssemblyId>
<archive>
<manifest>
<mainClass>
eu.europeana.processing.indexing.IndexingJob
</mainClass>
</manifest>
</archive>
</configuration>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>

</project>
1 change: 0 additions & 1 deletion media/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@
<execution>
<id>make-assembly</id>
<configuration>
<finalName>media-job</finalName>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
Expand Down
30 changes: 30 additions & 0 deletions normalization/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,34 @@

</dependencies>

<build>
<plugins>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<executions>
<execution>
<id>make-assembly</id>
<configuration>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
<appendAssemblyId>false</appendAssemblyId>
<archive>
<manifest>
<mainClass>
eu.europeana.processing.normalization.NormalizationJob
</mainClass>
</manifest>
</archive>
</configuration>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>

</project>
30 changes: 30 additions & 0 deletions oai/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,34 @@

</dependencies>

<build>
<plugins>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<executions>
<execution>
<id>make-assembly</id>
<configuration>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
<appendAssemblyId>false</appendAssemblyId>
<archive>
<manifest>
<mainClass>
eu.europeana.processing.oai.OAIJob
</mainClass>
</manifest>
</archive>
</configuration>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>

</project>
30 changes: 30 additions & 0 deletions transformation/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,34 @@

</dependencies>

<build>
<plugins>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<executions>
<execution>
<id>make-assembly</id>
<configuration>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
<appendAssemblyId>false</appendAssemblyId>
<archive>
<manifest>
<mainClass>
eu.europeana.metis.transformation.TransformationJob
</mainClass>
</manifest>
</archive>
</configuration>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>

</project>
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
package eu.europeana.metis;
package eu.europeana.processing.transformation;


import eu.europeana.processing.MetisJob;
import eu.europeana.processing.job.JobName;
import eu.europeana.processing.model.ExecutionRecord;
import eu.europeana.processing.model.ExecutionRecordResult;
import eu.europeana.processing.transformation.processor.TransformationOperator;
import org.apache.flink.streaming.api.functions.ProcessFunction;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package eu.europeana.metis;
package eu.europeana.processing.transformation.processor;

import eu.europeana.metis.transformation.service.*;
import eu.europeana.processing.job.JobName;
Expand Down
30 changes: 30 additions & 0 deletions validation/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,34 @@

</dependencies>

<build>
<plugins>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<executions>
<execution>
<id>make-assembly</id>
<configuration>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
<appendAssemblyId>false</appendAssemblyId>
<archive>
<manifest>
<mainClass>
eu.europeana.processing.validation.ValidationJob
</mainClass>
</manifest>
</archive>
</configuration>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>

</project>
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
package eu.europeana.metis;
package eu.europeana.processing.validation;

import eu.europeana.processing.MetisJob;
import eu.europeana.processing.job.JobParamName;
import eu.europeana.processing.model.ExecutionRecord;
import eu.europeana.processing.model.ExecutionRecordResult;
import eu.europeana.processing.validation.processor.ValidationOperator;
import org.apache.flink.api.java.utils.ParameterTool;
import org.apache.flink.streaming.api.functions.ProcessFunction;
import org.slf4j.Logger;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package eu.europeana.metis;
package eu.europeana.processing.validation.processor;

import eu.europeana.metis.transformation.service.TransformationException;
import eu.europeana.metis.transformation.service.XsltTransformer;
Expand Down

0 comments on commit a481eab

Please sign in to comment.