会员可以在此提问,百战程序员老师有问必答
对大家有帮助的问答会被标记为“推荐”
看完课程过来浏览一下别人提的问题,会帮你学得更全面
截止目前,同学们一共提了 132600个问题
JAVA 全系列/第二阶段:JAVA 基础深化和提高/数据结构 24422楼

代码会报错,没看懂报的是啥错误

<?xml version="1.0" encoding="UTF-8" ?>
<books xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:noNamespaceSchemaLocation="books.xsd">
    <book id="1001">
        <name>java开发实战</name>
        <author>张小一</author>
        <price>36.1</price>
    </book>
    <book id="1022">
        <name>mysql</name>
        <author>张小二</author>
        <price>78.1</price>
    </book>
</books>
<?xml version="1.0"   encoding="UTF-8" ?>
<xs:schema  xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:element name="books">
        <xs:complexType>
            <xs:sequence>
                <xs:element name="book" maxOccurs="unbounded">
                    <xs:complexTypen>
                        <xs:squence>
                            <xs:element name="name" type="xs:string"></xs:element>
                            <xs:element name="author" type="xs:string"></xs:element>
                            <xs:element name="price" type="xs:double"></xs:element>
                        </xs:squence>
                        <xs:attribute name="id" type="xs:positiveInteger" use="required"></xs:attribute>
                    </xs:complexTypen>
                </xs:element>
            </xs:sequence>
        </xs:complexType>
    </xs:element>
</xs:schema>

图片.png

图片.png

JAVA 全系列/第二阶段:JAVA 基础深化和提高/XML 技术(旧) 24423楼
JAVA 全系列/第六阶段:项目管理与SSM框架/Mybatis 24425楼
Python 全系列/第二阶段:Python 深入与提高/文件处理 24426楼
Python 全系列/第五阶段:数据库编程/mysql介绍与环境安装 24430楼

我父项目的POM文件如下:

<>
    <>4.0.0</>

    <>
        <>org.springframework.boot</>
        <>spring-boot-starter-parent</>
        <>2.2.6.RELEASE</>
        </> </>

    <>com.cerana</>
    <>open-his</>
    <>1.0</>
    <>pom</>
    <>门诊管理系统</>

    <>
        <>1.8</>
        <>1.5.3</>
        <>1.1.21</>
        <>3.3.1.tmp</>
        <>1.26.7</>
        <>3.2.3</>
        <>1.2.62</>
        <>5.1.1</>
        <>1.19</>
        <>2.7.5</>
    </>

    <>
        <>
            <>
                <>com.alibaba</>
                <>druid-spring-boot-starter</>
                <>${druid.version}</>
            </>
            <>
                <>com.baomidou</>
                <>mybatis-plus-boot-starter</>
                <>${mybatis-plus.version}</>
            </>
            <>
                <>org.apache.shiro</>
                <>shiro-spring-boot-web-starter</>
                <>${shiro-boot.version}</>
            </>
            <>
                <>com.github.tobato</>
                <>fastdfs-client</>
                <>${fastdfs.version}</>
            </>
            <>
                <>org.crazycake</>
                <>shiro-redis</>
                <>${shiro-redis.version}</>
            </>

            <>
                <>com.alibaba</>
                <>fastjson</>
                <>${fastjson.version}</>
            </>

            <>
                <>cn.hutool</>
                <>hutool-all</>
                <>${hutool.version}</>
            </>
            <>
                <>eu.bitwalker</>
                <>UserAgentUtils</>
                <>${bitwalker.version}</>
            </>

            <>
                <>org.apache.dubbo</>
                <>dubbo-spring-boot-starter</>
                <>${dubbo.version}</>
            </>
            <>
                <>org.apache.dubbo</>
                <>dubbo-dependencies-zookeeper</>
                <>${dubbo.version}</>
                <>pom</>
                <>
                    <>
                        <>org.slf4j</>
                        <>slf4j-log4j12</>
                    </>
                </>
            </>
        </>
    </>

</>


结果发现好多包导不进来:

image.png

导不进来的包具体有:

druid-spring-boot-starter

mybatis-plus-boot-starter

shiro-spring-boot-web-starter

fastdfs-client

shiro-redis

hutool-all

dubbo-dependencies-zookeeper


我使用的IDEA版本:2019 2.2

我使用的maven版本3.6.0,且已做了如下的阿里云镜像

<mirror>

<id>nexus-aliyun</id>

<mirrorOf>*</mirrorOf>

<name>Nexus aliyun</name>

<url>http://maven.aliyun.com/nexus/content/groups/public</url>

</mirror>


请问:

  1.  可能是什么原因导致包到不进来?

  2. 要如何解决?

JAVA 全系列/第二十一阶段:分布式医疗云平台/项目环境搭建(旧) 24431楼
Python 全系列/第二阶段:Python 深入与提高/模块 24434楼
JAVA 全系列/第二十一阶段:分布式医疗云平台/项目环境搭建(旧) 24435楼

课程分类

百战程序员微信公众号

百战程序员微信小程序

©2014-2025百战汇智(北京)科技有限公司 All Rights Reserved 北京亦庄经济开发区科创十四街 赛蒂国际工业园
网站维护:百战汇智(北京)科技有限公司
京公网安备 11011402011233号    京ICP备18060230号-3    营业执照    经营许可证:京B2-20212637