Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
76 commits
Select commit Hold shift + click to select a range
1aa98ba
Upgrade to SXGEO 0.3.0 (meaning Orekit 13)
aburie-cs Nov 21, 2025
acff0d7
Cleaning orginal file
aburie-cs Dec 11, 2025
d433fb7
Start rework script to generate references
Dec 17, 2025
0c90a19
Update to SXGEO 0.3.1
Dec 18, 2025
1d1fe39
Enabling Unit Tests in the CI/CD Pipeline
sdinot Aug 13, 2026
4771e2f
Test CI not passing
aburie-cs Aug 14, 2026
acdae00
Test CI not passing
aburie-cs Aug 14, 2026
7177bc6
Test CI not passing
aburie-cs Aug 14, 2026
cf1b2bd
Test CI not passing
aburie-cs Aug 14, 2026
d2a7458
Add log information for CI tests
aburie-cs Aug 14, 2026
1b981ef
Cancel log CI
aburie-cs Aug 14, 2026
0fd362d
Correct path in test delete()
aburie-cs Sep 3, 2026
fc5ac7c
remove unnecessary import
aburie-cs Sep 3, 2026
814f0bc
Remove duplicata
aburie-cs Sep 3, 2026
5dd30f4
Test SonarCloud in JVM 21
aburie-cs Sep 9, 2026
4735246
Test SonarCloud in JVM 21
aburie-cs Sep 9, 2026
ae9d62c
Test SonarCloud in JVM 21
aburie-cs Sep 9, 2026
679c7e1
Remove unecessary import
aburie-cs Sep 9, 2026
5c99991
Test SonarCloud in JVM 21
aburie-cs Sep 9, 2026
7df1d8a
Test SonarCloud in JVM 21
aburie-cs Sep 9, 2026
fac9239
Test SonarCloud in JVM 21
aburie-cs Sep 9, 2026
3585e21
Test SonarCloud in JVM 21
aburie-cs Sep 9, 2026
351d929
Test SonarCloud in JVM 21
aburie-cs Sep 9, 2026
bf8b7b2
Test SonarCloud in JVM 21
aburie-cs Sep 9, 2026
93186c1
Test SonarCloud in JVM 21
aburie-cs Sep 9, 2026
949dcad
Test SonarCloud in JVM 21
aburie-cs Sep 9, 2026
f6989a8
Test SonarCloud in JVM 21
aburie-cs Sep 9, 2026
0802ca2
Clean-up file
aburie-cs Sep 9, 2026
488689b
Update of referances for CI andrework of the generation script
Sep 11, 2026
6ffe2ec
Update thresholds
aburie-cs Sep 11, 2026
de047b6
git merge main 1.3
aburie-cs Sep 11, 2026
c67d759
Add possibility to deactivate checks
aburie-cs Sep 15, 2026
37aa2df
Update Ref script for bands bugs in direct
Sep 15, 2026
a637c4d
Add new reference generation file
aburie-cs Oct 15, 2026
4efeee1
Update script and references for src/test/java/esa/sen2vm/Sen2VMCheck…
Oct 15, 2026
def2ef9
Correct unit test and adapt threshold
Oct 16, 2026
6970f14
Correct one typo in test
aburie-cs Oct 16, 2026
2bec5ee
Update last thresholds
aburie-cs Oct 16, 2026
ba18aca
Cleaning
aburie-cs Oct 16, 2026
8bf04c9
Closes #80, Closes #85
aburie-cs Oct 16, 2026
e86d0e1
.
aburie-cs Nov 5, 2026
8a20f13
Update build env
aburie-cs Nov 5, 2026
1df3d06
Update Build Env for SonarCloud
aburie-cs Nov 6, 2026
3bc22c1
Correct SonarCloud link to build-env
aburie-cs Nov 6, 2026
da16a4e
Correct SonarCloud link to build-env
aburie-cs Nov 6, 2026
e9a6154
Merge branch tu-enabling-in-ci
aburie-cs Nov 6, 2026
500dee2
Correct SonarCloud link to build-env
aburie-cs Nov 6, 2026
196a895
Correct CI
aburie-cs Nov 6, 2026
849edc6
Use maven in sonar
aburie-cs Nov 6, 2026
59a89ef
Use maven in sonar
aburie-cs Nov 6, 2026
8c964cb
Full sonar action name
aburie-cs Nov 6, 2026
4926a2a
Closed #91
aburie-cs Nov 6, 2026
c81dfca
Closed #91
aburie-cs Nov 6, 2026
aa01c28
Remove TODO
aburie-cs Nov 6, 2026
6915ccd
Reduce SonarCloud Warnings
aburie-cs Nov 6, 2026
dc739bf
Reduce SonarCloud Warnings
aburie-cs Nov 6, 2026
0082b6f
Reduce SonarCloud Warnings
aburie-cs Nov 6, 2026
a425d16
Reduce SonarCloud Warnings
aburie-cs Nov 6, 2026
ce8c7cd
Reduce SonarCloud Warnings
aburie-cs Nov 6, 2026
960ba83
Reduce SonarCloud Warnings
aburie-cs Nov 6, 2026
d113e4f
Reduce SonarCloud Warnings
aburie-cs Nov 6, 2026
bcb4a19
Reduce SonarCloud Warnings
aburie-cs Nov 6, 2026
f4eb758
Reduce SonarCloud Warnings
aburie-cs Nov 6, 2026
6c2928d
Reduce SonarCloud Warnings
aburie-cs Nov 6, 2026
1ad1ffb
Reduce SonarCloud Warnings
aburie-cs Nov 6, 2026
e5c76c1
Activate JaCoCo for SonarCloud coverage analysis
aburie-cs Nov 12, 2026
cd1d1fd
Remove debug log
aburie-cs Nov 12, 2026
0f1fb2f
Update req for security alerts
aburie-cs Nov 13, 2026
41009e4
Activate mvn dependency Check
aburie-cs Nov 13, 2026
d4cf2d0
Add NVD_API_KEY for dependency checks and update changelog
aburie-cs Nov 13, 2026
2515cdd
Add NVD_API_KEY for dependency checks
aburie-cs Nov 13, 2026
2e203c2
Add NVD_API_KEY
aburie-cs Nov 13, 2026
29f6175
Add NVD_API_KEY
aburie-cs Nov 13, 2026
5e4c81c
Add NVD_API retry and delay
aburie-cs Nov 13, 2026
83477dd
Correct vulnerabilities
aburie-cs Nov 13, 2026
e02ea4a
Correct vulnerabilities
aburie-cs Nov 13, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
9 changes: 7 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,17 @@ jobs:
name: Build
runs-on: ubuntu-latest
container:
image: ghcr.io/sen2vm/sen2vm-build-env:0.1.0
image: ghcr.io/sen2vm/sen2vm-build-env:1.1.0
env:
JAVA_HOME: /usr/lib/jvm/java-1.8-openjdk
PATH: /usr/lib/jvm/java-1.8-openjdk/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
MAVEN_CLI_OPTS: "-s .CI/maven-settings.xml --file pom.xml --batch-mode --update-snapshots"
steps:
- uses: actions/checkout@v4
- name: Check Java Version
run: |
java -version
mvn -version
- name: Build
run: mvn $MAVEN_CLI_OPTS install
- name: Deploy
Expand All @@ -28,7 +34,6 @@ jobs:
exit 1
fi
mvn $MAVEN_CLI_OPTS deploy \
-DskipTests=true \
-Dmaven.repository.target=${{ github.repository }}
else
echo "Tag '$TAG_NAME' does not follow SemVer format. No artifact released."
Expand Down
80 changes: 62 additions & 18 deletions .github/workflows/sonarcloud.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,26 +44,70 @@ env:
jobs:
Analysis:
runs-on: ubuntu-latest

container:
image: ghcr.io/sen2vm/sen2vm-build-env:1.1.0

steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0

- name: Check analysis environment
shell: bash
run: |
echo "JAVA_HOME=$JAVA_HOME"
echo "java:"
java -version
echo "javac:"
javac -version
echo "Maven:"
mvn -version
echo "GDAL:"
gdal-config --version

- name: Analyze with SonarCloud
if: env.SONAR_TOKEN_DEFINED == 'true'
# You can pin the exact commit or the version.
# uses: SonarSource/sonarcloud-github-action@v2.2.0
uses: SonarSource/sonarcloud-github-action@4006f663ecaf1f8093e8e4abb9227f6041f52216
shell: bash
env:
JAVA_HOME: /usr/lib/jvm/java-21-openjdk
PATH: /usr/lib/jvm/java-21-openjdk/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
with:
# Additional arguments for the SonarScanner CLI
args:
# Unique keys of your project and organization. You can find them in SonarCloud > Information (bottom-left menu)
# mandatory
-Dsonar.projectKey=${GITHUB_REPOSITORY//\//_}
-Dsonar.organization=${GITHUB_REPOSITORY_OWNER}
# Comma-separated paths to directories containing main source files.
#-Dsonar.sources= # optional, default is project base directory
# Comma-separated paths to directories containing test source files.
#-Dsonar.tests= # optional. For more info about Code Coverage, please refer to https://docs.sonarcloud.io/enriching/test-coverage/overview/
# Adds more detail to both client and server-side analysis logs, activating DEBUG mode for the scanner, and adding client-side environment variables and system properties to the server-side log of analysis report processing.
#-Dsonar.verbose= # optional, default is false
# When you need the analysis to take place in a directory other than the one from which it was launched, default is .
projectBaseDir: .
run: |
java -version
mvn -version

mvn \
-s .CI/maven-settings.xml \
--file pom.xml \
--batch-mode \
verify \
org.sonarsource.scanner.maven:sonar-maven-plugin:sonar \
-Dsonar.projectKey=sen2vm-core \
-Dsonar.organization=sen2vm

- name: OWASP Dependency Check (Java 21)
shell: bash
env:
JAVA_HOME: /usr/lib/jvm/java-21-openjdk
PATH: /usr/lib/jvm/java-21-openjdk/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
NVD_API_KEY: ${{ secrets.NVD_API_KEY }}
run: |
java -version
mvn -version

# Verification of secret without printing its value
if [ -z "$NVD_API_KEY" ]; then
echo "::error::NVD_API_KEY is missing"
exit 1
fi

mvn \
-s .CI/maven-settings.xml \
--file pom.xml \
--batch-mode \
org.owasp:dependency-check-maven:13.0.0:check \
-DnvdApiKeyEnvironmentVariable=NVD_API_KEY \
-DnvdMaxRetryCount=20 \
-DnvdApiDelay=5000 \
-DfailBuildOnCVSS=7.0
13 changes: 10 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,22 @@

* Fix:

*
* Check existing granules in output before long DEM check: #80
* Fix CI (#82):
* Activate back mvn tests in CI
* Put back SonarCloud analysis
* Reduce SonarCloud warnings
* Put on dependency check
* Update dependencies for Notebooks venv

* Feature:

*
* Upgrade dependencis (SXGEO 0.3.1 with now official rugged usage; it required a Orekit 13 migration instead of 11): #30

* Doc:

*
* Correct link to Orekit-folder: #85
* Update link to TILPAR in CDSE DEM Download: #91

## 1.3.0 (2026-07-17)

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ Inputs required by Sen2VM are:
* Additional information for configuration.

> [!NOTE]
> The orekit-data is required to process the grid. During the first run, the orekit-data is extracted from the JAR file (.jar) and placed in the same directory as the JAR. The orekit-data can be replaced by the user if needed. The official orekit-data is available https://github.com/sen2vm/sen2vm-core/tree/main/orekit-data.
> The orekit-data is required to process the grid. During the first run, the orekit-data is extracted from the JAR file (.jar) and placed in the same directory as the JAR. The orekit-data can be replaced by the user if needed. The official orekit-data is available https://github.com/sen2vm/sen2vm-core/tree/main/src/main/resources/orekit-data.

Inputs description can be access at [Inputs](documentation/Input/input_description.md)

Expand Down
2 changes: 1 addition & 1 deletion documentation/Input/DEM_CDSE_Download.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ The [CDSE-Copernicus-DEM-downloader](https://github.com/senbox-org/CDSE-Copernic
cd CDSE-Copernicus-DEM-downloader
```

2. Download the Copernicus Sentinel-2 tiling system KML file from [Sentiwiki](https://sentiwiki.copernicus.eu/__attachments/1692737/S2A_OPER_GIP_TILPAR_MPC__20151209T095117_V20150622T000000_21000101T000000_B00.zip), unzip it, and place the KML file in `./cdse-copernicus-dem-downloader/auxiliary/`.
2. Download the Copernicus Sentinel-2 tiling system KML file from [Sentiwiki](https://sentiwiki.copernicus.eu/__attachments/a_69a662aa1cb30487acc66009f09b1dcfa9e4e32f92af1c3b2dd1fc8a3c011738/S2A_OPER_GIP_TILPAR_MPC__20151209T095117_V20150622T000000_21000101T000000_B00.zip), unzip it, and place the KML file in `./cdse-copernicus-dem-downloader/auxiliary/`.

3. Create and activate the conda environment:

Expand Down
2 changes: 1 addition & 1 deletion documentation/Input/input_description.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
* Additional information for configuration.

> [!NOTE]
> The orekit-data is required to process the grid. During the first run, the orekit-data is extracted from the JAR file (.jar) and placed in the same directory as the JAR. The orekit-data can be replaced by the user if needed. The official orekit-data is available https://github.com/sen2vm/sen2vm-core/tree/main/orekit-data.
> The orekit-data is required to process the grid. During the first run, the orekit-data is extracted from the JAR file (.jar) and placed in the same directory as the JAR. The orekit-data can be replaced by the user if needed. The official orekit-data is available https://github.com/sen2vm/sen2vm-core/tree/main/src/main/resources/orekit-data.

Please note that the <mark>[orthorectification notebook](../../sen2vm-notebook/README_Notebooks.md)</mark> is available to ease configuration and usage.

Expand Down
97 changes: 73 additions & 24 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@

<groupId>esa.sen2vm</groupId>
<artifactId>sen2vm-core</artifactId>
<!-- NOTE: remind to change also the SEN2VM_VERSION in the Dokerfile-->
<version>1.3.0</version>
<version>2.0.0</version>


<name>sen2vm-core</name>
<url>https://github.com/sen2vm/sen2vm-core</url>
Expand All @@ -16,12 +16,11 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<maven.compiler.release>8</maven.compiler.release>
<jaxb.plugin.version>2.5.0</jaxb.plugin.version>
<!-- cots version -->
<gdal.version>3.6.2</gdal.version>
<sxgeo.version>0.2.1</sxgeo.version>
<sxgeo.orekit-tools.version>1.2</sxgeo.orekit-tools.version>
<sxgeo.hipparchus.version>2.3</sxgeo.hipparchus.version>
<sxgeo.version>0.3.1</sxgeo.version>
<commons-compress.version>1.26.0</commons-compress.version>
<maven.repository.target>sen2vm/sen2vm-core</maven.repository.target>
</properties>
Expand All @@ -41,6 +40,21 @@
</repository>
</repositories>
<dependencies>

<!-- JAXB API: namespace javax.xml.bin -->
<dependency>
<groupId>javax.xml.bind</groupId>
<artifactId>jaxb-api</artifactId>
<version>2.3.1</version>
</dependency>

<!-- JAXB Runtime: implementation -->
<dependency>
<groupId>org.glassfish.jaxb</groupId>
<artifactId>jaxb-runtime</artifactId>
<version>2.3.8</version>
</dependency>

<dependency>
<groupId>commons-cli</groupId>
<artifactId>commons-cli</artifactId>
Expand All @@ -62,12 +76,6 @@
<artifactId>json-simple</artifactId>
<version>1.1</version>
</dependency>
<dependency>
<groupId>org.codehaus.mojo</groupId>
<artifactId>jaxb2-maven-plugin</artifactId>
<version>${jaxb.plugin.version}</version>
<type>maven-plugin</type>
</dependency>
<!-- cots -->
<dependency>
<groupId>org.gdal</groupId>
Expand All @@ -82,19 +90,30 @@
<version>${sxgeo.version}</version>
</dependency>
<dependency>
<groupId>org.hipparchus</groupId>
<artifactId>hipparchus-core</artifactId>
<version>${sxgeo.hipparchus.version}</version>
<groupId>org.apache.commons</groupId>
<artifactId>commons-compress</artifactId>
<version>${commons-compress.version}</version>
</dependency>

<!-- Fix CVE-2025-48735 and CVE-20219-10086 -->
<dependency>
<groupId>commons-beanutils</groupId>
<artifactId>commons-beanutils</artifactId>
<version>1.11.0</version>
</dependency>
<dependency>
<groupId>org.orekit</groupId>
<artifactId>orekit-tools</artifactId>
<version>${sxgeo.orekit-tools.version}</version>

<!-- Fix Jackson vulnerabilities -->
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>2.18.9</version>
</dependency>

<!-- Fix Commons Lang vulnerability -->
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-compress</artifactId>
<version>${commons-compress.version}</version>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
<version>3.18.0</version>
</dependency>
</dependencies>

Expand Down Expand Up @@ -124,10 +143,9 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<version>3.13.0</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
<release>8</release>
</configuration>
</plugin>
<!-- XJC plugin to generate java class from xsd -->
Expand Down Expand Up @@ -225,6 +243,37 @@
</descriptorRefs>
</configuration>
</plugin>
<plugin>
<groupId>org.owasp</groupId>
<artifactId>dependency-check-maven</artifactId>
<version>13.0.0</version>
<configuration>
<failBuildOnCVSS>7.0</failBuildOnCVSS>
</configuration>
</plugin>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.8.14</version>
<executions>
<!-- Attach JaCoCo agent before running tests -->
<execution>
<id>prepare-agent</id>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>

<!-- Generate XML/HTML coverage report -->
<execution>
<id>report</id>
<phase>test</phase>
<goals>
<goal>report</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>

<pluginManagement><!-- lock down plugins versions to avoid using Maven defaults (may be moved to parent pom) -->
Expand Down
2 changes: 1 addition & 1 deletion sen2vm-notebook/README_Notebooks.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ WORKDIR
In the notebook directory create your venv:

```bash
python3 -m venv .venv
python3.12 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
```
Expand Down
10 changes: 5 additions & 5 deletions sen2vm-notebook/src/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
affine==2.4.0
asttokens==3.0.1
attrs==25.4.0
certifi==2025.11.12
certifi==2026.10.18
charset-normalizer==3.4.4
click==8.3.1
click-plugins==1.1.1.2
Expand All @@ -10,7 +10,7 @@ comm==0.2.3
debugpy==1.8.17
decorator==5.2.1
executing==2.2.1
idna==3.11
idna==3.15
ipykernel==7.1.0
ipython==9.8.0
ipython_pygments_lexers==1.1.1
Expand All @@ -33,12 +33,12 @@ pyparsing==3.2.5
python-dateutil==2.9.0.post0
pyzmq==27.1.0
rasterio==1.4.3
requests==2.32.5
requests==2.33
scipy
six==1.17.0
stack-data==0.6.3
tornado==6.5.2
tornado==6.6
traitlets==5.14.3
urllib3==2.6.1
urllib3==2.8.0
utm==0.8.1
wcwidth==0.2.14
Loading
Loading