Exclude jar from ant classpath

前端 未结 2 1821
野性不改
野性不改 2021-01-22 19:17

I\'m trying to make a \"clean maven\" setup on some legacy project that uses ant scripts. I don\'t know much about ant, so my question might seem naive.

I\'m almost done

相关标签:
2条回答
  • 2021-01-22 19:45

    Try using forward slash instead of back slash, i.e.

    <exclude name="*ant/1.7.1/ant-1.7.1.jar"/>

    0 讨论(0)
  • 2021-01-22 20:05

    Try this way:-

    <exclude name="**/ant/1.7.1/ant-1.7.1.jar"/>
    <exclude name="**/ant/1.5/ant-1.5.jar"/> 
    
    0 讨论(0)
提交回复
热议问题