1. 程式人生 > >eclipse錯誤:Missing artifact com.github.pagehelper:pagehelper:jar:3.4.2

eclipse錯誤:Missing artifact com.github.pagehelper:pagehelper:jar:3.4.2

父工程的pom.xml中已有pagehelper的版本號,但是eclipse無法下載下來,依賴的Maven庫中沒有

原來的

        <dependency>
            <groupId>com.github.pagehelper</groupId>
            <artifactId>pagehelper</artifactId>
        </dependency>

改變版本號

        <dependency>
            <groupId>com.github.pagehelper</groupId>
            <artifactId>pagehelper</artifactId>
            <version>3.2.2</version>
        </dependency>

儲存之後,可以看在依賴的Maven中有了pagehelper包。

完畢。

可以改父工程的pom.xml中的版本號,也可以改子工程中的版本號。因為有時候其他子工程也會出現類似的錯誤,最好改父工程的pom.xml