Hi, hjw.
I think [1] & [2] may help you.

[1]
https://stackoverflow.com/questions/16866978/maven-cant-find-my-local-artifacts
[2]
https://stackoverflow.com/questions/32571400/remote-repositories-prevents-maven-from-resolving-remote-parent

On Fri, Dec 2, 2022 at 1:44 AM hjw <hjw_em...@163.com> wrote:

> Hi, team.
> Maven always pulls remote decency snapshot jar When I build the Flink
> Kubernetes module.
> I also modified the Kubernetes module and the Flink client module that
> Kubernetes depends on. I hope to rely on my local repositories  instead of
> remote snapshots when executing the build or running unit test.
> I Have tried to delete the _remote.repositories of relation jar, but it
> doesn't work.
>
> *Related information*:
> I have built  and installed  all Flink module to My local repositories  by
> maven command " mvn clean install -DskipTests -Dfast -Paliyun
> -Pskip-webui-build -T 1C".
>
> *Maven build Kubernetes Module command*:
> mvn clean test package -Paliyun
>
> *Here My Maven Setting* :
>   <localRepository>D:\software\maven\repo-flink</localRepository>
>   <mirrors>
>   <mirror>
>     <id>alimaven</id>
>     <name>aliyun maven</name>
>     <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
>     <mirrorOf>central</mirrorOf>
> </mirror>
> </mirrors>
>   <profiles>
>     <profile>
>       <id>aliyun</id>
>       <repositories>
>         <repository>
>           <id>aliyun</id>
>           <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
>           <releases>
>             <enabled>false</enabled>
>           </releases>
>           <snapshots>
>             <enabled>false</enabled>
>             <updatePolicy>never</updatePolicy>
>           </snapshots>
>         </repository>
>       </repositories>
>     </profile>
> </profiles>
>
> --
> Best,
> Hjw
>


-- 
Best,
Hangxiang.

Reply via email to