2013-03-05 13 views
12

के साथ कैसे रिलीज़ करूं मैंने अपने पोम में निम्नलिखित एससीएम टैग निर्दिष्ट किए हैं। हालांकि जब मैं एक मेवेन करता हूं release:prepare टैग किए गए टैग में 1.0मैं बिटबकेट + गिट + मेवेन

किसी भी विचार के बजाय संस्करण 1.0-SNAPSHOT है।

<scm> 
    <connection>scm:git:https://<username>@bitbucket.org/<username>/<repo>.git</connection> 
    <developerConnection>scm:git:https://<username>@bitbucket.org/<username>/<repo>.git</developerConnection> 
    <url>https://bitbucket.org/<username>/<project></url> 
</scm> 

उत्तर

20

आदर्श रूप से आप रिलीज करते समय प्रमाणित करने के लिए एसएसएच का उपयोग करेंगे।

<scm> 
    <connection>scm:git:ssh://[email protected]/<username>/<repo>.git</connection> 
    <developerConnection>scm:git:ssh://[email protected]/<username>/<repo>.git</developerConnection> 
    <url>https://bitbucket.org/<username>/<repo>.git</url> 
</scm> 

इस example पर एक नज़र ले जा सकते हैं: उस मामले में आप निम्नलिखित विन्यास का प्रयोग करेंगे।

+0

इस जेन्स के लिए धन्यवाद, इससे मेरी मदद की! हालांकि कृपया ध्यान दें कि उपर्युक्त "कनेक्शन" टैग में एक टाइपो है; bitbucket.org के बाद केवल एक स्लैश होना चाहिए। जिस पीओएम से आपने लिंक किया है वह सही प्रारूप है। उदाहरण के लिए –

+4

लिंक टूटा हुआ है – cahen

+0

एक्सएमएल विकृत दिखता है और यह मुझे इसे संपादित करने नहीं देता है। –

संबंधित मुद्दे