Mvn archetype: create a Maven project mvn compile: compile the source code mvn test-compile: compile the test code mvn test: run the unit test mvn site in the application: mvn clean: Clear the generated results in the target direc
MVN archetype:generate Slow When you create a new MAVEN project1 Phenomenon:Create a new MAVEN project with idea, fill out the various parameters, and when created, the console card is in the "[INFO] generating project in Batch mode" section:Also, at the bottom right of the status bar, the display creation process is still in progress:2 reasonsIdea according to the nature of Maven archetype, is actually executing the
The recent use of the MVN command under CMD will always appear after execution "' cmd ' is not an internal or external command, or an executable program or batch file," such as:Although the execution of the command was successful, it would not have any effect, but as a late obsessive-compulsive disorder, I could never tolerate it. First, the ability to execute the MVN command correctly, stating that MAVEN's
The unit test was carried out in the MAVEN project, but mvn clean again mvn the install project again and tested the unit again. There will be the following error.This error is only reported when the test class in project is not compiled into a. class file due to the default exclusion of packaged test classes when mvn install . so. to passEclipse->project->clean
Unit testing in the MAVEN project, but mvn clean after re-mvn the install project, the unit test again, there will be the following error,Strangely, the feeling is that the . class file in the project is deleted, and the MVN install does not recompile the build. can be done byEclipse->project->cleanRecompile and run the unit test again to succeed.
mvn Install : Install - file
-DgroupId=包名
-DartifactId=项目名
-Dversion=版本号
-Dpackaging=jar
-Dfile=jar文件所在路径
Take Kettle-core.jar as an example:1, willKettle-core.jarThe file is placed under the "D:\JAR_LIB" directory (this directory is arbitrary)2. Execute the command:
mvn Install:Install-file-Dfile=D:\jar_lib\kettle-Core.Jar-DgroupId=org.Pentaho-DartifactId=Kettle-Core-Dversion=4.4.0 -
First talk about installing the MVN step, if it is installed can be ignored; Under the TMP directory 1. Create a MVN directory mkdir MVN Cd/tmp/mvn 2. Download wget http://apache.fayea.com/maven/maven-3/3.3.9/binaries/apache-maven-3.3.9-bin.tar.gz 3. Unzip TAR–XVF apache-maven-3.3.9-bin.tar.gz 4. Move to the Unified di
Users who are developing with Android studio want to integrate the jar, AAR files through the MAVEN remote repository, but how are these files published?Often developers will publish jar files to Sonatype to provide integration to other developers, but Sonatype requires the source code, and in some cases the publisher does not want to provide the source code, so the method described in this article can be used.Here's how to create a warehouse on GitHub, publish the jar and AAR files to maven, an
DescriptionAfter downloading the MAVEN package and configuring the environment variables, execute mvn-version (or-v) error on the command line:1Exception in thread "main" java.lang.unsupportedclassversionerror:org/apache/Ma2ven/cli/mavencli:unsupported Major.minor version 51.03 At Java.lang.ClassLoader.defineClass1 (Native Method)4At Java.lang.ClassLoader.defineClassCond (classloader.java:632)5At Java.lang.ClassLoader.defineClass (classloader.java:616
When using the Maven plugin in Eclipse, run as maven build with an error:-dmaven.multimoduleprojectdirectory system propery is not set. Check $M 2_home environment variable and MVN script match.Baidu to solve the method:You can set up an environment variable m2_home point to your MAVEN installation directorym2_home=d:\apps\apache-maven-3.3.1And then in window->preference->java->installed Jres->editSet in default VM arguments-dmaven.multimoduleprojectd
When you create a MAVEN project template by mvn archetype:generate This interaction, you often get stuck in the generating project in Interactive mode prompt (Figure 1).Read the online post (the article at the bottom of the note), found to get archetype-catalog.xml caused by (browser access to Http://repo1.maven.org/maven2/archetype-catalog.xml, need to wait a long time to get to).In fact, the download will find that Maven offers too many archetype, a
From: http://www.bubuko.com/infodetail-1110458.htmlFirst, ReasonIdea according to the nature of Maven archetype, is actually executing the MVN archetype:generate command, when the command executes, you need to specify a archetype-catalog.xml file.The parameter of the command is-darchetypecatalog, the optional value is: remote,internal, local, etc., to specify where the Archetype-catalog.xml file is to be obtained. The default is remote, which is to do
When I switched myeclipse from version 2013 to myeclipse2014, MAVEN made all sorts of mistakes, so I changed Maven from 3.0.5 to 3.2 1 and changed the default resource path to D:\webserver\ Under the repository path,
Then the path User/administrator executes MVN help:system and wants to download the repository again,
The pom file cannot be found in the error
So casually create a new empty project Testa, and from the project TESTB copy pom.xml file
Problem Description: mvn clean install compiles the project and runs the unit test with the following errorTests Run:3, failures:0, Errors:2, skipped:0, time elapsed:6.343 sec Selectuserinfostest (tech.fullink.eaglehorn.test.UserInfoTest) Time elapsed:0.003 sec Org.apache.ibatis.binding.BindingException:Invalid bound statement (not found): Tech.fullink.eaglehorn.mapper.UserInfoMapper.getUserInfosAt Org.apache.ibatis.binding.mappermethod$sqlcommand.At
With Android Studio user development, you want to integrate the remote repository jar, AAR files through maven. But how do you publish these files to it?The sender will advertise the jar file to Sonatype for integration with other developers, but Sonatype requires the source code, and in some cases the publisher does not want to provide the source code, so the method described in this article can be used. Here's how you can create a warehouse on GitHub. Publish the jar and AAR files to maven, a
If your project is a MVN project, go to the folder where the Pom is located and execute the following command:
1 2 3 4
mvn compile mvn exec :java -Dexec.mainClass= "com.vineetmanohar.module.Main" //mvn exec :java -Dexec.mainClass= "com.vineetmanohar.module.Main" -Dexec.args= "arg0 arg1 arg2" //
its structure is basically the same as the previous Hello World project that was imported.3 Run the MVN commandWe need to enter commands such as MVN clean install on the command line to perform the Maven build, there are corresponding functions in M2eclipse, right click on the MAVEN project or Pom.xml, and then select Run as, you can see the following common MAVEN commands:Select the MAVEN command you want
1. Download the source code, two kinds:1 . MVN dependency:sources 2. mvn eclipse:eclipse-ddownloadsources=True2. Download Javadoc, two kinds:1. mvn dependency:resolve-dclassifier=Javadoc2. MVN eclipse:eclipse-ddownloadjavadocs=True3. Download the source code and JavadocThe above two commands can be executed separately,
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.