Code Monkey home page Code Monkey logo

maven's Introduction

maven

#自訂套件安裝

mvn install:install-file -Dfile=\local_lib\fastjson-1.2.3.jar -DgroupId=com.alibaba -DartifactId=fastjson -Dversion=1.2.3 -Dpackaging=jar

<dependency>
    <groupId>com.alibaba</groupId>
    <artifactId>fastjson</artifactId>
    <version>1.2.3</version>
</dependency>

Nexus

參考 https://hub.docker.com/r/sonatype/nexus3

https://kknews.cc/zh-tw/education/pgoqap2.html

安裝

docker run -d -p 8083:8081 --name nexus sonatype/nexus3

mvn settings

<server>
	<id>al_test</id>
	<username>admin</username>
	<password>11111111</password>
</server>

pom.xml

<repositories>
    <repository>
        <id>al_test</id>
        <name>Team Nexus Repository</name>
        <url>http://127.0.0.1:8081/repository/al_test/</url>
    </repository>
</repositories>

deploy mvn deploy:deploy-file -DgroupId=cn.kbyte.utils -DartifactId=phone-number-geo -Dversion=0.1 -Dpackaging=jar -Dfile=D:\phone-number-geo\target\phone-number-geo-0.1.jar -Durl=http://127.0.0.1:8081/repository/al_test/ -DrepositoryId=al_test

source root

https://confluence.jetbrains.com/display/IDEADEV/Maven+Integration+FAQ

<build>
 <sourceDirectory>...</sourceDirectory> will be added as Source folder
 <testSourceDirectory>...</testSourceDirectory> will be added as Test Source folder

 <resources>
  <resource>
   <directory>...</directory> will be added as Source folder
  </resource>
 <resources>

 <testResources>
  <testResource>
   <directory>...</directory> will be added as Test Source folder
  </testResource>
 /<testResources>
</build>

參考

maven 標準目錄

https://maven.apache.org/guides/introduction/introduction-to-the-standard-directory-layout.html

maven's People

Contributors

escc1122 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.