maven pom 错误

benyzhous 发布于 2014/12/31 00:48
阅读 194
收藏 0

不知道这个错误怎么搞了,折腾到现在还没找出来怎么搞

<?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.kaishuhezi</groupId>

<artifactId>parent</artifactId>

<version>0.0.1-SNAPSHOT</version>

</parent>

<artifactId>api-android</artifactId>

<name>api-android</name>

<url>http://maven.apache.org</url>

<properties>

<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

<jdbc.url>jdbc:mysql://localhost:3306/abc</jdbc.url>

<jdbc.username>root</jdbc.username>

<jdbc.password>root</jdbc.password>

</properties>

<dependencies>

<dependency>

<groupId>junit</groupId>

<artifactId>junit</artifactId>

<version>3.8.1</version>

<scope>test</scope>

</dependency>


</dependencies>


<build>

<resources>

<resource>

<directory>src/main/resources</directory>

<filtering>true</filtering>

</resource>

</resources>


<plugins>

</plugins>

</build>



<profiles>

<profile>

<id>development</id>

<activation>

<activeByDefault>true</activeByDefault>

</activation>

<build>

<filters>

<filter>profile-development.properties</filter>

</filters>

</build>

</profile>

<profile>

<id>production</id>

<build>

<filters>

<filter>profile-production.properties</filter>

</filters>

</build>

</profile>

</profiles>

</project>

加载中
0
benyzhous
benyzhous

恩,问题已经得到解决,<filter>profile-production.properties</filter>这里改成了<filter>src/main/resources/profile-production.properties</filter>

返回顶部
顶部