Maven related built-in variables

Source: Internet
Author: User
Tags port number root directory

1. Maven built-in variable description: ${basedir} project root directory ${project.build.directory} build directory, default to target ${project.build.outputdirectory} build process output directory, The default is target/classes ${project.build.finalname} output name, default is ${project.artifactid}-${project.version} ${ Project.packaging} package type, default to jar ${project.xxx} contents of any node of the current Pom file

2. Some commands:

Generate Eclipse Project files: mvn Eclipse:clean eclipse:eclipse-ddownloadsources
-dsurefire.usefile=false
-dmaven.surefire.debug . Before using this command, set the breakpoint in the code you are about to debug, and then run the command. After the command executes for a while, its build process displays a message: Listening for transport dt_socket at address:5005. After you see this message, in Eclipse, in the Debug Configuration window, create a new remote Java Application,port set to 5005, and then click the "Debug" button. After that, the MVN command will continue to execute until the code that has the breakpoint is run, and then you can debug the running code in eclipse.

 3. Maven Jetty Plug-in Commands: (info: http://wiki.eclipse.org/Jetty/Feature/Jetty_Maven_Plugin) Start: mvn jetty:run     The default port number is 8080. When starting, set the port number:  mvn-djetty.port=9999 jetty:run debug Start: Mvndebug jetty:run     After startup, the specific debug port is displayed

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.