build: add maven settings.xml and fix status history mapper queries

This commit is contained in:
pnoker
2024-06-19 01:05:33 +08:00
parent 480250f565
commit ece2fed884
4 changed files with 49 additions and 4 deletions
+45
View File
@@ -0,0 +1,45 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Copyright 2016-present the IoT DC3 original author or authors.
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ https://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
<!-- mirrors
| This is a list of mirrors to be used in downloading artifacts from remote repositories.
|
| It works like this: a POM may declare a repository to use in resolving certain artifacts.
| However, this repository may have problems with heavy traffic at times, so people have mirrored
| it to several places.
|
| That repository definition will have a unique id, so we can create a mirror reference for that
| repository, to be used as an alternate download site. The mirror site will be the preferred
| server for that repository.
|-->
<mirrors>
<mirror>
<id>public</id>
<mirrorOf>public</mirrorOf>
<name>Aliyun Apache Maven Public Packages</name>
<url>https://maven.aliyun.com/repository/public</url>
</mirror>
</mirrors>
</settings>
@@ -29,7 +29,6 @@
from dc3_device_status_history
where device_id = #{id}
and deleted = 0
order by create_time desc
limit 2;
order by create_time desc limit 2;
</select>
</mapper>
@@ -28,7 +28,6 @@
from dc3_driver_status_history
where driver_id = #{id}
and deleted = 0
order by create_time desc
limit 2;
order by create_time desc limit 2;
</select>
</mapper>
+2
View File
@@ -130,6 +130,8 @@
</profiles>
<modules>
<module>dc3-api</module>
<module>dc3-common</module>
<module>dc3-center</module>
<module>dc3-driver</module>
<module>dc3-gateway</module>