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