現在用maven建構多子產品工程
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.sincetimes.website</groupId>
<artifactId>demo-parent</artifactId>
<version>0.0.1</version>
<name>${project.artifactId}</name>
<url>http://maven.apache.org</url>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>1.3.5.RELEASE</version>
</parent>
<modules>
<module>../hq_website_app_demo_core</module>
<module>../hq_website_app_demo_security</module>
</modules>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
</dependencies>
<packaging>pom</packaging>
</project>
mvn clean,mvn package, mvn install均提示以下錯誤
Non-resolvable parent POM for.....
解決方法如下
<profiles>
<profile>
<modules>
<module>../hq_website_app_demo_core</module>
<module>../hq_website_app_demo_security</module>
</modules>
</profile>
</profiles>