First, open a command prompt, enter the following command to try the Echo%m2_home% carriage return if the path shown and the installation path are consistent, configuration is not a problem;The cause of this problem may be the path problem, which may be caused by a software installation that changes the system mapping path.The corresponding workaround is to add%systemroot%\system32 to path. Note: You need to add a semicolon before%SystemRoot%\System32.Note: to restart Cmd.exe.Reprinted from http
from:https://my.oschina.net/u/225373/blog/468035Maven skeleton build project slow and outrageous, all in the generating project in Batch mode Wait, the idea status display bar is not runing, and no card dead. View debug information found, is maven get archetype-catalog.xml caused. (opening http://repo1.maven.org/maven2/archetype-catalog.xml with a browser requires a long wait to get to it.) )Workaround:Plus-darchetypecatalog=internal run parameters, Archetype-catalog.xml local access.For Intelli
In order to optimize the need, I need to look at my Maven project (a Java service) how to package the project into a tar.gz package, the various files in the GZ package.
That said, I need to know how MAVEN is putting projects from this:
To become this:
My project is to have a parent module three sub-modules of the Java service, with Maven to manage related dependencies.
The MVN package commands the GZ pack with apps, Bin, Conf, Lib four folders:
T
Problem:
I am trying to install apache maven 3 in Ubuntu 12.04 lts. What I did was open the terminal then I typed the following commands
Export M2_HOME =/usr/local/apache-maven/apache-maven-3.0.5 [Then pressed Enter]
Export M2 = $ M2_HOME/bin [Then pressed Enter]
Export PATH = $ M2: $ PATH [Then pressed Enter]
After that I typed
mvn --version
And it displayed all the necessary information but after closing the terminal, again I typed the command
MVN command format: Must specify a valid lifecycle phase or a goal in the format First Format: lifecycle phase Available lifecycle Phases Are:default life cycle Validate, initialize, generate Install, deploy, clean life cycle pre-clean, clean, post-clean, site life cycle pre-site, site, Post-site, Site-deploy.Second format: A goal in the format To illustrate:See Help plug-in informationMVN help:help[INFO] Maven Help Plugin2.2The Maven Help p
Problem:I am trying to install Apache Maven 3 in Ubuntu 12.04 lts. What I did is open the terminal then I typed the following commands
export m2_home=/usr/local/apache-maven/apache-maven-3.0.5 [then pressed Enter] Li style= "margin:10px 0px; padding:0px; border:0px; Vertical-align:baseline; line-height:1.3; Word-wrap:break-word; Background-color:transparent ">export m2= $M 2_home/bin [then pressed Enter]
export path= $M 2: $PATH [then pressed Enter]
after that I typed
Jenkins error when building a Java project:$ mvn clean installfatal:command execution failedjava.io.ioexception:error=2, No such file or director Yat Java.lang.UNIXProcess.forkAndExec (Native Method) at java.lang.unixprocess.Error Case 2:/var/lib/jenkins/tools/hudson.tasks.maven_maveninstallation/maven_3.5.3/bin/mvn clean installwhich: No Java in (/var/lib/jenkins/tools/hudson.tasks.maven_maveninstallation/
7: Verify the Maven installationNow open the console and execute the following mvn command.
Operating System
Output
Command
Windows
Open Command Console
c:\> mvn --version
Linux
Open Command Terminal
$ mvn --version
Mac
Open Terminal
machine:~ joseph$
Linux
Export path= $M 2: $PATH
Mac
Export path= $M 2: $PATH
Step 7: Verify the Maven installationNow open the console and execute the following mvn command.
Operating System
Output
Command
Windows
Open Command Console
c:\> mvn --version
Linux
Open Command Terminal
$
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,
The project that participates in the company is the Eclipse + maven under Windows. Want to play Maven on your computer, so here's the process of building a MAVEN project under Mac + idea. First installs Maven: 1. Download the latest version of maven:https://maven.apache.org/download.cgi from the Apache web site, mac downloads. tar.gz 2. After decompression, Place the folder in the appropriate directory, e.g./users/sophie/ideaprojects/apache-maven-3.5.2 3. Configure path to add Maven Bin fold
The previous article is relatively simple.
After reading the previous content, we will go to the actual aspect, that is, creating a simple project.
1 mvn archetype:create -DgroupId=org.sonatype.mavenbook.ch03 \2 -DartifactId=simple \3 -DpackageName=org.sonatype.mavenbook
So we got the first blow into the maven field.
It was really cool, and there was a bunch of errors. I read the book for a long time. The command was correct and the case was the same
the company recently migrated svn to git and used maven to manage the code warehouse, so a little bit of research has been done to prepare for automated continuous integration, and here's an analysis of MAVEN's command program mvn: general feeling with Tomcat startup script startup is similar to #!/bin/sh#------------------------------------------------- ---------------------------#licensedtotheapachesoftwarefoundation ( ASF) underone#ormorecontribut
Installation tutorials for 1.mavenis: http://maven.apache.org/download.cgiAfter entering this pageClick Download, then unzip, I change the directory name to MAVEN, directory structure as shownBelow we configure the environment variablesThis is maven_home:At the end of the path variable, add;%maven_home%\bin%; The number cannot be thrown away.Enter mvn-version in cmd, and if the version information appears, install it correctly.2.maven display
\administrator>
When you perform mvn-version or mvn-v, you are normal, as follows:
C:\users\administrator>mvn-version
Apache Maven 3.5.0 (ff8f5e7444045639af65f6095c62210b5713f426; 2017-04-04t03:39:06+08:00)
Maven home:c:\maven\apache-maven-3.5.0\bin\.
Java version:1.8.0_121, vendor:oracle Corporation
java home:c:\program files\java\jdk1.8.0_121\jre
Default LOC
Tags: automatic release validation. GZ gem $path. NET version FTP tool Apache
Download MVN Package
Http://mirrors.cnnic.cn/apache/maven/maven-3/3.0.5/binaries/apache-maven-3.0.5-bin.tar.gz
Download the apache-maven-3.0.5-bin.tar.gz package and use the FTP tool to transfer it to the server.
Unpacking the installation package
Configuring Environment variables
Vi/etc/profile at the end of the add export maven_home
Install node. js with MVN on LinuxThe previous blog briefly talked about the installation of the Ubuntu system, and next talk about the construction of the Web development environment based on node. js on Ubuntu.Node has a great advantage in building network services quickly, sharing the following content to install Nodejs with NVM. In fact, this is the easy-to-understand installation I've used so far.NVM is a version manager of node. It makes it easy
The following is a workaround for the memory overflow error that occurs when you execute a MAVEN Package command todayLocate the Mvn.bat in the bin directory under the MVN directory,Locate @rem Set Maven_opts=-xdebug-xnoagent-djava.compiler=none-xrunjdwp:transport=dt_socket,server=y,suspend=y, address=8000,Add the following statement under this board:Set maven_opts=-xms256m-xmx768m-xx:permsize=128m-xx:maxpermsize=256m Copyright NOTICE: This article
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.