• 请不要在回答技术问题时复制粘贴 AI 生成的内容
Powered
V2EX  ›  程序员

一个 gradle 构建的项目怎样转成 maven 构建?

  •  
  •   Powered · Oct 20, 2016 · 4955 views
    This topic created in 3491 days ago, the information mentioned may be changed or developed.

    网上找到的是:

    
    apply plugin: 'java'
    apply plugin: 'maven'
    
    
    group = 'com.101tec'
    version = '0.7-dev'
    sourceCompatibility = 1.6
    
    然后./gradlew build ,成功后将在build\poms目录下生成pom-default.xml文件,把它复制到根目录下,改名成pom.xml即可
    

    可是自己试了不成功,求助

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5683 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 07:57 · PVG 15:57 · LAX 00:57 · JFK 03:57
    ♥ Do have faith in what you're doing.