0
我使用maven exec插件來運行Mule 3.我有一些屬性在我的屬性文件中正確解析,但是如果我嘗試將它們提供爲JVM選項他們不會得到解決/重寫。下面是我的行家EXEC配置:Mule無法使用maven exec來解析佔位符
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.2.1</version>
<executions>
<execution>
<goals>
<goal>java</goal>
</goals>
</execution>
</executions>
<configuration>
<mainClass>org.mule.MuleServer</mainClass>
<arguments>
<argument>-config</argument>
<argument>src/main/app/prioritisation-api.xml</argument>
<argument>-classpath</argument>
<argument>src/main/app</argument>
<argument>-Dmule3.http.root=http://localhost:8095</argument>
</arguments>
<classpathScope>compile</classpathScope>
</configuration>
</plugin>
我也使用-M-Dmule3.http.root=http://localhost:8095
嘗試,但沒有奏效。
如果您從命令行運行相同的功能,它會工作嗎? –
您的Spring屬性佔位符配置爲允許系統屬性覆蓋? –