1.请教一下老师,关于实际导入了包但是也加入了编译环境但还是提示无包错误的问题
来源:1-10 ——Maven构建Project-02

Ironxi_work
2018-06-04
1.错误提示:Missing artifact com.online.college:ocCommon:jar:1.0.0-SNAPSHOT 2.自己新建了一个ocService项目,pom文件如下: <?xml version="1.0"?> <project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <modelVersion>4.0.0</modelVersion> <parent> <groupId>com.online</groupId> <artifactId>ocProject</artifactId> <version>0.0.1-SNAPSHOT</version> </parent> <groupId>com.online</groupId> <artifactId>ocService</artifactId> <version>0.0.1-SNAPSHOT</version> <name>ocService</name> <url>http://maven.apache.org</url> <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> </properties> <dependencies> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>3.8.1</version> <scope>test</scope> </dependency> <dependency> <groupId>com.online</groupId> <artifactId>ocCommon</artifactId> <version>1.0.0-SNAPSHOT</version> </dependency> </dependencies> </project> 3.项目名上一直提示红色的感叹号,改改的环境都改了,实在不着调错在哪里,创建的时候基本都选择的默认设置;
写回答
1回答
-
祁聪
2018-06-04
什么开发工具? 用maven install或者package一下就行了
132018-06-05
相似问题