Maven Error

was cached in the local repository, resolution will not be reattempted until the update interval of nexus has elapsed or updates are forced

Solution: 删除本地jar包,rebuild

1
mvn -U clean install

Error: Could not find or load main com.xxx.xxx

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<build>
<sourceDirectory>${basedir}/src/main/kotlin</sourceDirectory>
<testSourceDirectory>${basedir}/src/test/kotlin</testSourceDirectory>
<resources>
<resource>
<directory>${basedir}/src/main/resources</directory>
<filtering>true</filtering>
</resource>
</resources>
<testResources>
<testResource>
<directory>${basedir}/src/test/resources</directory>
<filtering>true</filtering>
</testResource>
</testResources>
</build>