- Java 21 JDK
- Maven
- Git client
$ git clone https://github.com/tmfg/digitraffic-metadata.git
# Clones a repository to your computer
To configure project copy src/main/resources/application-localhost.template -file as application-localhost.properties and configure it according to your environment.
If you want to disable some jobs, it can be done by adding following line to application.properties file
# Disable jobs. Format: quartz.{jobClassName}.enabled = false
quartz.CameraUpdateJob.enabled = false
See dbroad directory README.md
Before building application with tests enabled, start dbroad instance. See dbroad/README.md.
$ mvn clean install
# Or with out tests
$ mvn clean install -DskipTests
$ mvn spring-boot:run -Dspring-boot.run.profiles=localhost-daemon
Or build the JAR file with:
$ mvn clean package
And run the JAR by typing:
$ java -Dspring.profiles.active=localhost -jar target/metadata-0.0.1-SNAPSHOT.jar
Properties can be found at application-localhost.properties.
Running may also require to specify the active Spring profile by setting -Dspring.profiles.active=localhost.
$ mvn jaxb2:generate
$ mvn versions:display-dependency-updates
$ mvn versions:use-latest-releases versions:update-properties
mvn -Pdepcheck
Report can be found at target/dependency-check-report.html
Oneliner to run dependency check and open the report in default browser (MacOS):
mvn -Pdepcheck; open target/dependency-check-report.html
Running the daemon will produce the below warning on startup unless logging.level.org.springframework.aop.framework.CglibAopProxy=ERROR is configured. The warning is harmless because no AOP behavior is needed on the method WebServiceGatewaySupport.afterPropertiesSet(). It is caused by classes inheriting AbstractLotjuMetadataClient.
org.springframework.aop.framework.CglibAopProxy: Unable to proxy interface-implementing method [public final void org.springframework.ws.client.core.support.WebServiceGatewaySupport.afterPropertiesSet() throws java.lang.Exception] because it is marked as final, consider using interface-based JDK proxies instead.