首页 新闻 会员 周边 捐助

收藏 Maven setting配置profile 执行mvn命令报错

0
悬赏园豆:10 [已关闭问题] 关闭于 2013-03-24 12:56



setting中的:
<profile>
    <id>environment</id>
    <activation>
     <activeByDefault>true</activeByDefault>
    </activation>
    <properties>
     <environment.type>dev</environment.type>
     <propertyl>2</propertyl>
    </properties>
</profile>

<profile>
    <id>product</id>
    <activation>
    <property>
 <name>environment.type</name>
   <value>prod</value>
    </property>
    </activation>
    <properties>
<database.password>xjl</database.password>
<propertyl>3</propertyl>
    </properties>
</profile>

加入后就会出现上面的错误

项目中POM
<profiles>
<profile>
<id>development</id>
<activation>
<property>
<name>environment.type</name>
<value>dev</value>
</property>
</activation>
<properties>
<jdbc.driverClassName>oracle.jdbc.driver.OracleDriver</jdbc.driverClassName>
<jdcb.url>jdbc:oracle:thin:@proddb01:1521:DEV</jdcb.url>
<jdbc.username>dev_user</jdbc.username>
<jdbc.password>xjl</jdbc.password>
</properties>
</profile>


<profile>
<id>production</id>
<activation>
<property>
<name>environment.type</name>
<value>prod</value>
</property>
</activation>
<properties>
<jdbc.driverClassName>com.mysql.jdbc.Driver</jdbc.driverClassName>
<jdcb.url>jdbc:mysql://localhost:3306/production_db</jdcb.url>
<jdbc.username>prod_user</jdbc.username>
<jdbc.password>xjl</jdbc.password>
</properties>
</profile>
 </profiles>
请问如何解决,是不是要激活profile?

真的吗?的主页 真的吗? | 菜鸟二级 | 园豆:202
提问于:2013-03-23 18:57
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册