3
有没有办法按属性激活配置文件,而不是检查特定值检查版本范围。 这里就是我试图做maven激活属性值和版本
<properties>
<frontend-maven-plugin.version>0.0.16</frontend-maven-plugin.version>
</properties>
...
...
<profile>
<id>new_version_of_frontend</id>
<activation>
<property>
<name>maven.version</name>
<value>3.1.0</value>
</property>
<properties>
<frontend-maven-plugin.version>0.0.23</frontend-maven-plugin.version>
</properties>
</activation>
</profile>
因此上述作品(设置前端插件版本0.0.23当Maven的版本是3.1.0
我想要做的是改变条件3.1.0及以上类似
<value>[3.1.0,)</value>
但属性值检查不支持版本范围。是否有任何其他的方式来做到这一点?甚至是否版本3.1+