[ https://issues.apache.org/jira/browse/MNG-6321?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16314925#comment-16314925 ]
Karl Heinz Marbaise commented on MNG-6321: ------------------------------------------ First please do not use system Scope dependencies in your application furthermore please try to make a repeatable example and format your description correctly cause it's hard to read. > <url> tag result in propertityPlaceHolder replace error > -------------------------------------------------------- > > Key: MNG-6321 > URL: https://issues.apache.org/jira/browse/MNG-6321 > Project: Maven > Issue Type: Bug > Components: Artifacts and Repositories > Affects Versions: 3.3.9 > Environment: spring 4.2.0.RELEASE,maven 3.3.9,mac os x 10.11, > jdk1.8, > Reporter: yongma > Labels: maven > Attachments: ApplicationContext-mvc.xml, ApplicationContext.xml > > > <modelVersion>4.0.0</modelVersion> > <groupId>FH</groupId> > <artifactId>data-center-outchannel</artifactId> > <packaging>war</packaging> > <version>0.0.2</version> > <name>FHM Maven Webapp</name> > {color:red}<url>http://maven.apache.org</url>{color} > <properties> > > <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> > <javax-activation.version>1.1</javax-activation.version> > <spring.version>4.0.4.RELEASE</spring.version> > > <mysql-connector-java.version>5.1.34</mysql-connector-java.version> > <tomcat-jdbc.version>7.0.61</tomcat-jdbc.version> > <mysql-driver.version>5.1.30</mysql-driver.version> > > <mybatis-generator-maven-plugin.version>1.3.4-SNAPSHOT</mybatis-generator-maven-plugin.version> > <mybatis.generator.overwrite>true</mybatis.generator.overwrite> > > <mybatis.generator.configurationFile>src/main/resources/autogen/generatorConfig.xml > </mybatis.generator.configurationFile> > > <mybatis.generator.outputDirectory>${project.build.directory}/generated-sources/mybatis-generator > </mybatis.generator.outputDirectory> > <dubbo.version>2.5.3</dubbo.version> > <uid-worker.version>2.2.2</uid-worker.version> > <zk-client.version>0.5</zk-client.version> > <zk.version>3.4.6</zk.version> > > <super-diamond-client.version>2.0.0</super-diamond-client.version> > </properties> > <profiles> > <profile> > <id>dev</id> > <properties> > <manage.env>dev</manage.env> > </properties> > </profile> > <profile> > <id>product</id> > <properties> > <manage.env>product</manage.env> > </properties> > </profile> > </profiles> > <dependencies> > <!-- spring start --> > <dependency> > <groupId>org.springframework</groupId> > <artifactId>spring-aop</artifactId> > <version>${spring.version}</version> > </dependency> > <dependency> > <groupId>org.springframework</groupId> > <artifactId>spring-aspects</artifactId> > <version>${spring.version}</version> > </dependency> > <dependency> > <groupId>org.springframework</groupId> > <artifactId>spring-beans</artifactId> > <version>${spring.version}</version> > </dependency> > <dependency> > <groupId>org.springframework</groupId> > <artifactId>spring-context</artifactId> > <version>${spring.version}</version> > </dependency> > <dependency> > <groupId>org.springframework</groupId> > <artifactId>spring-context-support</artifactId> > <version>${spring.version}</version> > </dependency> > <dependency> > <groupId>org.springframework</groupId> > <artifactId>spring-core</artifactId> > <version>${spring.version}</version> > </dependency> > <dependency> > <groupId>org.springframework</groupId> > <artifactId>spring-dao</artifactId> > <version>2.0.8</version> > </dependency> > <dependency> > <groupId>org.springframework</groupId> > <artifactId>spring-expression</artifactId> > <version>${spring.version}</version> > </dependency> > <dependency> > <groupId>org.springframework</groupId> > <artifactId>spring-jdbc</artifactId> > <version>${spring.version}</version> > </dependency> > <dependency> > <groupId>org.springframework</groupId> > <artifactId>spring-mock</artifactId> > <version>2.0.8</version> > </dependency> > <dependency> > <groupId>org.springframework</groupId> > <artifactId>spring-orm</artifactId> > <version>${spring.version}</version> > </dependency> > <dependency> > <groupId>org.springframework</groupId> > <artifactId>spring-test</artifactId> > <version>${spring.version}</version> > </dependency> > <dependency> > <groupId>org.springframework</groupId> > <artifactId>spring-tx</artifactId> > <version>${spring.version}</version> > </dependency> > <dependency> > <groupId>org.springframework</groupId> > <artifactId>spring-web</artifactId> > <version>${spring.version}</version> > </dependency> > <dependency> > <groupId>org.springframework</groupId> > <artifactId>spring-test</artifactId> > <version>${spring.version}</version> > </dependency> > <dependency> > <groupId>org.springframework</groupId> > <artifactId>spring-webmvc</artifactId> > <version>${spring.version}</version> > </dependency> > <!-- spring end --> > <dependency> > <groupId>com.alibaba</groupId> > <artifactId>dubbo</artifactId> > <version>${dubbo.version}</version> > <exclusions> > <exclusion> > <groupId>org.springframework</groupId> > <artifactId>spring</artifactId> > </exclusion> > </exclusions> > </dependency> > <!--全局唯一主键服务--> > <dependency> > <groupId>com.treefinance.commonservice</groupId> > <artifactId>guid-service-facade</artifactId> > <version>${uid-worker.version}</version> > </dependency> > <!-- 配置中心 --> > <dependency> > <groupId>com.github.diamond</groupId> > <artifactId>super-diamond-client</artifactId> > <version>${super-diamond-client.version}</version> > </dependency> > <!-- super-diamond 配置中心使用 --> > <dependency> > <groupId>io.netty</groupId> > <artifactId>netty-all</artifactId> > <version>4.0.42.Final</version> > </dependency> > <dependency> > <groupId>com.google.guava</groupId> > <artifactId>guava</artifactId> > <version>20.0</version> > </dependency> > <dependency> > <groupId>com.101tec</groupId> > <artifactId>zkclient</artifactId> > <version>${zk-client.version}</version> > <exclusions> > <exclusion> > <groupId>org.slf4j</groupId> > <artifactId>slf4j-log4j12</artifactId> > </exclusion> > </exclusions> > </dependency> > <dependency> > <groupId>org.apache.zookeeper</groupId> > <artifactId>zookeeper</artifactId> > <version>${zk.version}</version> > <exclusions> > <exclusion> > <groupId>org.slf4j</groupId> > <artifactId>slf4j-log4j12</artifactId> > </exclusion> > </exclusions> > </dependency> > <dependency> > <groupId>mysql</groupId> > <artifactId>mysql-connector-java</artifactId> > <version>${mysql-connector-java.version}</version> > </dependency> > <dependency> > <groupId>postgresql</groupId> > <artifactId>postgresql</artifactId> > <version>8.1-408.jdbc3</version> > </dependency> > <dependency> > <groupId>org.apache.tomcat</groupId> > <artifactId>tomcat-jdbc</artifactId> > <version>${tomcat-jdbc.version}</version> > </dependency> > <dependency> > <groupId>javax.servlet</groupId> > <artifactId>servlet-api</artifactId> > <version>2.5</version> > </dependency> > <dependency> > <groupId>aopalliance</groupId> > <artifactId>aopalliance</artifactId> > <version>1.0</version> > </dependency> > <dependency> > <groupId>org.apache.james</groupId> > <artifactId>apache-mime4j</artifactId> > <version>0.6.1</version> > </dependency> > <!-- junit 单元测试 --> > <dependency> > <groupId>junit</groupId> > <artifactId>junit</artifactId> > <version>4.12</version> > </dependency> > <dependency> > <groupId>asm</groupId> > <artifactId>asm</artifactId> > <version>3.3.1</version> > </dependency> > <dependency> > <groupId>org.apache.axis</groupId> > <artifactId>axis</artifactId> > <version>1.4</version> > </dependency> > <dependency> > <groupId>cglib</groupId> > <artifactId>cglib-nodep</artifactId> > <version>3.1</version> > </dependency> > <dependency> > <groupId>commons-beanutils</groupId> > <artifactId>commons-beanutils</artifactId> > <version>1.9.2</version> > </dependency> > <dependency> > <groupId>commons-codec</groupId> > <artifactId>commons-codec</artifactId> > <version>1.10</version> > </dependency> > <dependency> > <groupId>commons-collections</groupId> > <artifactId>commons-collections</artifactId> > <version>3.2.1</version> > </dependency> > <dependency> > <groupId>commons-discovery</groupId> > <artifactId>commons-discovery</artifactId> > <version>0.5</version> > </dependency> > <dependency> > <groupId>commons-fileupload</groupId> > <artifactId>commons-fileupload</artifactId> > <version>1.3.1</version> > </dependency> > <dependency> > <groupId>commons-httpclient</groupId> > <artifactId>commons-httpclient</artifactId> > <version>3.1</version> > </dependency> > <dependency> > <groupId>commons-io</groupId> > <artifactId>commons-io</artifactId> > <version>2.4</version> > </dependency> > <dependency> > <groupId>commons-lang</groupId> > <artifactId>commons-lang</artifactId> > <version>2.6</version> > </dependency> > <dependency> > <groupId>commons-logging</groupId> > <artifactId>commons-logging</artifactId> > <version>1.2</version> > </dependency> > <dependency> > <groupId>dom4j</groupId> > <artifactId>dom4j</artifactId> > <version>1.6.1</version> > </dependency> > <dependency> > <groupId>com.alibaba</groupId> > <artifactId>druid</artifactId> > <version>1.0.9</version> > </dependency> > <dependency> > <groupId>net.sf.ehcache</groupId> > <artifactId>ehcache-core</artifactId> > <version>2.6.9</version> > </dependency> > <dependency> > <groupId>net.sf.ezmorph</groupId> > <artifactId>ezmorph</artifactId> > <version>1.0.6</version> > </dependency> > <dependency> > <groupId>org.freemarker</groupId> > <artifactId>freemarker</artifactId> > <version>2.3.21</version> > </dependency> > <dependency> > <groupId>com.google.code.gson</groupId> > <artifactId>gson</artifactId> > <version>2.3.1</version> > </dependency> > <dependency> > <groupId>org.apache.httpcomponents</groupId> > <artifactId>httpcore</artifactId> > <version>4.4</version> > </dependency> > <dependency> > <groupId>org.apache.httpcomponents</groupId> > <artifactId>httpmime</artifactId> > <version>4.3.6</version> > </dependency> > <dependency> > <groupId>com.fasterxml.jackson.core</groupId> > <artifactId>jackson-core</artifactId> > <version>2.4.4</version> > </dependency> > <dependency> > <groupId>org.codehaus.jackson</groupId> > <artifactId>jackson-mapper-asl</artifactId> > <version>1.9.13</version> > </dependency> > <dependency> > <groupId>javax.xml</groupId> > <artifactId>jaxrpc</artifactId> > <version>1.1</version> > </dependency> > <dependency> > <groupId>jstl</groupId> > <artifactId>jstl</artifactId> > <version>1.2</version> > </dependency> > <dependency> > <groupId>log4j</groupId> > <artifactId>log4j</artifactId> > <version>1.2.17</version> > </dependency> > <dependency> > <groupId>org.mybatis</groupId> > <artifactId>mybatis</artifactId> > <version>3.2.1</version> > </dependency> > <dependency> > <groupId>org.mybatis</groupId> > <artifactId>mybatis-spring</artifactId> > <version>1.2.0</version> > </dependency> > <dependency> > <groupId>org.slf4j</groupId> > <artifactId>slf4j-api</artifactId> > <version>1.7.9</version> > </dependency> > <dependency> > <groupId>org.slf4j</groupId> > <artifactId>slf4j-log4j12</artifactId> > <version>1.7.9</version> > </dependency> > <dependency> > <groupId>taglibs</groupId> > <artifactId>standard</artifactId> > <version>1.1.2</version> > </dependency> > <dependency> > <groupId>wsdl4j</groupId> > <artifactId>wsdl4j</artifactId> > <version>1.6.3</version> > </dependency> > <!-- axis-ant --> > <dependency> > <groupId>axis-ant</groupId> > <artifactId>axis-ant</artifactId> > <version>1.0</version> > <scope>system</scope> > > <systemPath>${pom.basedir}/src/main/webapp/WEB-INF/lib/axis-ant.jar</systemPath> > </dependency> > <!-- fcexporter --> > <dependency> > <groupId>fcexporter</groupId> > <artifactId>fcexporter</artifactId> > <version>1.0</version> > <scope>system</scope> > > <systemPath>${pom.basedir}/src/main/webapp/WEB-INF/lib/fcexporter.jar</systemPath> > </dependency> > <!-- fcexporthandler --> > <dependency> > <groupId>fcexporthandler</groupId> > <artifactId>fcexporthandler</artifactId> > <version>1.0</version> > <scope>system</scope> > > <systemPath>${pom.basedir}/src/main/webapp/WEB-INF/lib/fcexporthandler.jar</systemPath> > </dependency> > <!-- fchelper --> > <dependency> > <groupId>fchelper</groupId> > <artifactId>fchelper</artifactId> > <version>1.0</version> > <scope>system</scope> > > <systemPath>${pom.basedir}/src/main/webapp/WEB-INF/lib/fchelper.jar</systemPath> > </dependency> > <!-- fcsampleshelper --> > <dependency> > <groupId>fcsampleshelper</groupId> > <artifactId>fcsampleshelper</artifactId> > <version>1.0</version> > <scope>system</scope> > > <systemPath>${pom.basedir}/src/main/webapp/WEB-INF/lib/fcsampleshelper.jar</systemPath> > </dependency> > <!-- fctl --> > <dependency> > <groupId>fctl</groupId> > <artifactId>fctl</artifactId> > <version>1.0</version> > <scope>system</scope> > > <systemPath>${pom.basedir}/src/main/webapp/WEB-INF/lib/fctl.jar</systemPath> > </dependency> > <!-- json-lib-2.4-jdk15.jar --> > <dependency> > <groupId>jsonlib</groupId> > <artifactId>jsonlib</artifactId> > <version>1.0</version> > <scope>system</scope> > > <systemPath>${pom.basedir}/src/main/webapp/WEB-INF/lib/json-lib-2.4-jdk15.jar</systemPath> > </dependency> > <!-- jackjson-all-1.7.6 --> > <!--<dependency>--> > <!--<groupId>jackson</groupId>--> > <!--<artifactId>jackson</artifactId>--> > <!--<version>1.0</version>--> > <!--<scope>system</scope>--> > > <!--<systemPath>${project.basedir}/src/main/webapp/WEB-INF/lib/jackson-all-1.7.6.jar</systemPath>--> > <!--</dependency>--> > <!-- jpush-java-libraryV2 --> > <dependency> > <groupId>jpush</groupId> > <artifactId>jpush</artifactId> > <version>1.0</version> > <scope>system</scope> > > <systemPath>${pom.basedir}/src/main/webapp/WEB-INF/lib/jpush-java-libraryV2.jar</systemPath> > </dependency> > <!-- mail --> > <dependency> > <groupId>mail</groupId> > <artifactId>mail</artifactId> > <version>1.0</version> > <scope>system</scope> > > <systemPath>${pom.basedir}/src/main/webapp/WEB-INF/lib/mail.jar</systemPath> > </dependency> > <!--mybatis-ehcache-1.0.3 --> > <dependency> > <groupId>mybatis-ehcache</groupId> > <artifactId>mybatis-ehcache</artifactId> > <version>1.0</version> > <scope>system</scope> > > <systemPath>${pom.basedir}/src/main/webapp/WEB-INF/lib/mybatis-ehcache-1.0.3.jar</systemPath> > </dependency> > <!-- mybatis-oscache-1.0 --> > <dependency> > <groupId>mybatis-oscache</groupId> > <artifactId>mybatis-oscache</artifactId> > <version>1.0</version> > <scope>system</scope> > > <systemPath>${pom.basedir}/src/main/webapp/WEB-INF/lib/mybatis-oscache-1.0.1.jar</systemPath> > </dependency> > <!-- ojdbc6 --> > <dependency> > <groupId>ojdbc6</groupId> > <artifactId>ojdbc6</artifactId> > <version>1.0</version> > <scope>system</scope> > > <systemPath>${pom.basedir}/src/main/webapp/WEB-INF/lib/ojdbc6.jar</systemPath> > </dependency> > <!-- pinyin4j-2.5.0 --> > <dependency> > <groupId>pinyin4j</groupId> > <artifactId>pinyin4j</artifactId> > <version>1.0</version> > <scope>system</scope> > > <systemPath>${pom.basedir}/src/main/webapp/WEB-INF/lib/pinyin4j-2.5.0.jar</systemPath> > </dependency> > <!-- poi-3.11-20141221 --> > <dependency> > <groupId>poi</groupId> > <artifactId>poi </artifactId> > <version>1.0</version> > <scope>system</scope> > > <systemPath>${pom.basedir}/src/main/webapp/WEB-INF/lib/poi-3.11-20141221.jar</systemPath> > </dependency> > <!-- poi-examples-3.11-20141221 --> > <dependency> > <groupId>poi-examples</groupId> > <artifactId>poi-examples</artifactId> > <version>1.0</version> > <scope>system</scope> > > <systemPath>${pom.basedir}/src/main/webapp/WEB-INF/lib/poi-examples-3.11-20141221.jar</systemPath> > </dependency> > <!--poi-excelant-3.11-20141221 --> > <dependency> > <groupId>poi-excelant</groupId> > <artifactId>poi-excelant</artifactId> > <version>1.0</version> > <scope>system</scope> > > <systemPath>${pom.basedir}/src/main/webapp/WEB-INF/lib/poi-excelant-3.11-20141221.jar</systemPath> > </dependency> > <!--poi-ooxml-3.11-20141221 --> > <dependency> > <groupId>poi-ooxml</groupId> > <artifactId>poi-ooxml</artifactId> > <version>1.0</version> > <scope>system</scope> > > <systemPath>${pom.basedir}/src/main/webapp/WEB-INF/lib/poi-ooxml-3.11-20141221.jar</systemPath> > </dependency> > <!-- poi-ooxml-schemas-3.11-20141221 --> > <dependency> > <groupId>poi-ooxml-schemas</groupId> > <artifactId>poi-ooxml-schemas</artifactId> > <version>1.0</version> > <scope>system</scope> > > <systemPath>${pom.basedir}/src/main/webapp/WEB-INF/lib/poi-ooxml-schemas-3.11-20141221.jar</systemPath> > </dependency> > <!-- poi-scratchpad-3.11-20141221 --> > <dependency> > <groupId>poi-scratchpad</groupId> > <artifactId>poi-scratchpad</artifactId> > <version>1.0</version> > <scope>system</scope> > > <systemPath>${pom.basedir}/src/main/webapp/WEB-INF/lib/poi-scratchpad-3.11-20141221.jar</systemPath> > </dependency> > <!--QRCode --> > <dependency> > <groupId>QRCode</groupId> > <artifactId>QRCode</artifactId> > <version>1.0</version> > <scope>system</scope> > > <systemPath>${pom.basedir}/src/main/webapp/WEB-INF/lib/QRCode.jar</systemPath> > </dependency> > <!-- saaj --> > <dependency> > <groupId>saaj</groupId> > <artifactId>saaj</artifactId> > <version>1.0</version> > <scope>system</scope> > > <systemPath>${pom.basedir}/src/main/webapp/WEB-INF/lib/saaj.jar</systemPath> > </dependency> > <!-- shiro-all --> > <dependency> > <groupId>shiro</groupId> > <artifactId>shiro</artifactId> > <version>1.0</version> > <scope>system</scope> > > <systemPath>${pom.basedir}/src/main/webapp/WEB-INF/lib/shiro-all-1.2.3.jar</systemPath> > </dependency> > <!-- sun.misc.BASE64Decoder --> > <dependency> > <groupId>sun-misc</groupId> > <artifactId>sun-misc</artifactId> > <version>1.0</version> > <scope>system</scope> > > <systemPath>${pom.basedir}/src/main/webapp/WEB-INF/lib/sun.misc.BASE64Decoder.jar</systemPath> > </dependency> > <!-- ueditor --> > <dependency> > <groupId>ueditor</groupId> > <artifactId>ueditor</artifactId> > <version>1.0</version> > <scope>system</scope> > > <systemPath>${pom.basedir}/src/main/webapp/WEB-INF/lib/ueditor.jar</systemPath> > </dependency> > <!-- java_websocket --> > <dependency> > <groupId>java_websocket</groupId> > <artifactId>java_websocket</artifactId> > <version>1.0</version> > <scope>system</scope> > > <systemPath>${pom.basedir}/src/main/webapp/WEB-INF/lib/java_websocket.jar</systemPath> > </dependency> > <!-- weixinapi --> > <dependency> > <groupId>weixinapi</groupId> > <artifactId>weixinapi</artifactId> > <version>1.0</version> > <scope>system</scope> > > <systemPath>${pom.basedir}/src/main/webapp/WEB-INF/lib/weixinapi.jar</systemPath> > </dependency> > <!-- weaver-1.6.8.RELEASE.jar --> > <dependency> > <groupId>weaver-1.6.8</groupId> > <artifactId>weaver-1.6.8</artifactId> > <version>1.0</version> > <scope>system</scope> > > <systemPath>${pom.basedir}/src/main/webapp/WEB-INF/lib/com.springsource.org.aspectj.weaver-1.6.8.RELEASE.jar</systemPath> > </dependency> > </dependencies> > <build> > <finalName>data-center-outchannel</finalName> > <plugins> > <plugin> > <groupId>org.apache.maven.plugins</groupId> > <artifactId>maven-compiler-plugin</artifactId> > <version>3.3</version> > <configuration> > <source>1.8</source> > <target>1.8</target> > </configuration> > </plugin> > <plugin> > <artifactId>maven-war-plugin</artifactId> > <version>3.0.0</version> > <configuration> > <archiveClasses>true</archiveClasses> > <webResources> > <resource> > > <directory>src/main/resources</directory> > > <targetPath>WEB-INF/classes</targetPath> > > <filtering>true</filtering> > <excludes> > > <exclude>**/diamond.properties</exclude> > </excludes> > </resource> > </webResources> > </configuration> > </plugin> > <plugin> > <groupId>org.mybatis.generator</groupId> > > <artifactId>mybatis-generator-maven-plugin</artifactId> > > <version>${mybatis-generator-maven-plugin.version}</version> > <dependencies> > <dependency> > <groupId>postgresql</groupId> > > <artifactId>postgresql</artifactId> > <version>8.1-408.jdbc3</version> > </dependency> > <dependency> > <groupId>mysql</groupId> > > <artifactId>mysql-connector-java</artifactId> > <version>5.1.44</version> > </dependency> > </dependencies> > <configuration> > > <configurationFile>src/main/resources/autogen/generatorConfig-outChannel.xml</configurationFile> > </configuration> > </plugin> > </plugins> > </build> > <bean id="dataSource" parent="dataSourceParent"> > <property name="url" value="${color:red}{url}{color}" /> > <property name="username" value="${username}" /> > <property name="password" value="${password}" /> > </bean> > if the url variable named ${url}, then the value chenged to <url> tag's value -- This message was sent by Atlassian JIRA (v6.4.14#64029)