nutzboot-parent里配置了
<dependencyManagement>
<dependency>
<groupId>org.freemarker</groupId>
<artifactId>freemarker</artifactId>
<version>2.3.26-incubating</version>
</dependency>
</dependencyManagement>
在nutzboot-starter-freemarker里的dependencies内引用:
<dependencies>
<dependency>
<groupId>org.freemarker</groupId>
<artifactId>freemarker</artifactId>
</dependency>
</dependencies>
然后执行clean报错:
[WARNING]
[WARNING] Some problems were encountered while building the effective settings
[WARNING] Unrecognised tag: 'repositories' (position: START_TAG seen ...</mirrors>\r\n\t\r\n\t<repositories>... @18:16) @ E:\dev\apache-maven-3.5.2\conf\settings.xml, line 18, column 16
[WARNING] Unrecognised tag: 'repositories' (position: START_TAG seen ...</mirrors>\r\n\t\r\n\t<repositories>... @18:16) @ E:\dev\apache-maven-3.5.2\conf\settings.xml, line 18, column 16
[WARNING]
[INFO] Scanning for projects...
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[ERROR] 'dependencies.dependency.version' for org.freemarker:freemarker:jar is missing. @ org.nutz:nutzboot-starter-freemarker:[unknown-version], E:\idea_workspace\nutzboot\nutzboot-starter\nutzboot-starter-freemarker\pom.xml, line 58, column 21
@
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project org.nutz:nutzboot-starter-freemarker:2.1.1 (E:\idea_workspace\nutzboot\nutzboot-starter\nutzboot-starter-freemarker\pom.xml) has 1 error
[ERROR] 'dependencies.dependency.version' for org.freemarker:freemarker:jar is missing. @ org.nutz:nutzboot-starter-freemarker:[unknown-version], E:\idea_workspace\nutzboot\nutzboot-starter\nutzboot-starter-freemarker\pom.xml, line 58, column 21
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
纳闷了,按道理来讲应该可以直接用的呀