我正在使用;with cte as
(select distinct locid from @t)
select cte.locid,
(select top 1 cola from @t t where t.locid = cte.locid AND t.cola is not null) cola ,
(select top 1 colb from @t t where t.locid = cte.locid AND t.colb is not null) colb,
(select top 1 colc from @t t where t.locid = cte.locid AND t.colc is not null) colc,
(select top 1 cold from @t t where t.locid = cte.locid AND t.cold is not null) cold
from cte
来创建rpm-maven-plugin
。我已经使用带过滤器的属性来替换脚本中的属性值:
rpm
在上面的代码中,由于filter属性,属性在Maven构建期间被替换。同样地,我有<mapping>
<directory>${config.path}</directory>
<sources>
<source>
<location>${resources.path}/etc/test.xml</location>
<filter>true</filter>
</source>
</sources>
</mapping>
标签:
postinstallscrtiplet
如何替换postinstall脚本中的属性值,因为没有过滤器属性。有没有办法在postinstall,preremove脚本中替换属性值?