Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfix/inntekt altinn joark #3508

Merged
merged 11 commits into from
Jun 10, 2024
Merged
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
22 changes: 20 additions & 2 deletions apps/inntektsmelding-generator-service/README.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,39 @@
# Inntektsmelding generator

Microservice for å mappe inntektsmeldinger i JSON format til XML format basert på [kodeverk](https://github.com/navikt/tjenestespesifikasjoner/blob/master/nav-altinn-inntektsmelding/src/main/xsd/).
Microservice for å mappe inntektsmeldinger i JSON format til XML format basert
på [kodeverk](https://github.com/navikt/tjenestespesifikasjoner/blob/master/nav-altinn-inntektsmelding/src/main/xsd/).
Foreløpig er bare 201812 format støttet.

Dette utdaterte biblioteket er brukt for å generere XML, men har blitt manuelt portet til jakarta for å støtte nyere
versjon av rammeverk:

```
implementation 'no.nav.tjenestespesifikasjoner:nav-altinn-inntektsmelding:1.2019.09.25-00.21-49b69f0625e0'
```

## Swagger
Swagger finnes under [/swagger](https://testnav-inntektsmelding-generator-service.intern.dev.nav.no/swagger) -endepunktet til applikasjonen.

Swagger finnes under [/swagger](https://testnav-inntektsmelding-generator-service.intern.dev.nav.no/swagger)
-endepunktet til applikasjonen.

## Lokal kjøring

Ha naisdevice kjørende og kjør InntektsmeldingGeneratorApplicationStarter med følgende argumenter:

```

-Dspring.cloud.vault.token=[Copy token fra Vault]
-Dspring.profiles.active=dev

```

### Utviklerimage

I utviklerimage brukes ikke naisdevice og du må legge til følgende ekstra argumenter:

```

-Djavax.net.ssl.trustStore=[path til lokal truststore]
-Djavax.net.ssl.trustStorePassword=[passord til lokal truststore]

```
12 changes: 7 additions & 5 deletions apps/inntektsmelding-generator-service/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ plugins {

test {
useJUnitPlatform()
jvmArgs '--add-opens', 'java.base/java.lang=ALL-UNNAMED'
}

sonarqube {
Expand All @@ -26,6 +27,7 @@ sonarqube {
}
bootJar {
archiveFileName = "app.jar"
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
}

dependencyManagement {
Expand Down Expand Up @@ -57,18 +59,18 @@ dependencies {

implementation 'org.aspectj:aspectjweaver:1.9.22'

implementation 'javax.xml.bind:jaxb-api:2.4.0-b180830.0359'
implementation 'javax.json.bind:javax.json.bind-api:1.0'
implementation 'javax.activation:activation:1.1.1'
implementation 'jakarta.xml.bind:jakarta.xml.bind-api:4.0.2'
implementation 'org.glassfish.jaxb:jaxb-runtime:4.0.5'
implementation 'com.sun.xml.bind:jaxb-impl:4.0.5'
implementation 'com.sun.xml.bind:jaxb-core:4.0.5'

implementation 'ma.glasnost.orika:orika-core:1.5.4'

implementation 'com.fasterxml.jackson.dataformat:jackson-dataformat-xml'
implementation 'com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.17.0'
implementation 'org.apache.commons:commons-text:1.11.0'

implementation 'net.logstash.logback:logstash-logback-encoder:7.4'
implementation 'no.nav.tjenestespesifikasjoner:nav-altinn-inntektsmelding:1.2019.09.25-00.21-49b69f0625e0'
stigus marked this conversation as resolved.
Show resolved Hide resolved


testImplementation 'org.springframework.boot:spring-boot-starter-test'
testImplementation 'org.springframework.cloud:spring-cloud-contract-wiremock'
Expand Down

This file was deleted.

This file was deleted.

Loading