The following error message appears when you package a project today:In the details, it says "an internal error has occurred. Java.lang.NullPointerException ". Search the internet for a bit, found a solution, hereby record.Workaround:1. Close the development environment such as eclipse;2. Locate the configuration file for the workspace where the project is located. Metadata, follow the path below: *\.metadata\.plugins\org.eclipse.core.runtime\.settings, remove the configuration under the setting
.Convert a maven project to a web project
6.1Right-click the project and choose properties.
Select the red box in:
6.2Set deployment assembly
Right-click the project and choose properties> Deployment Assembly.
Right-click the project to open this window. A Deployment Assembly will appear in the list on the left. Click it. (because test is used for testing and does not need to be deployed, you can delete it
Here's a summary of the many ways to package a jar with idea, and later package packages can refer to the following form:
The package form with idea comes in
Package with Maven plugin maven-shade-plugin
Package with Maven plugin maven-assembly-plugin
The way to pack with idea comes in:Open idea fi
MVN 4 Maven Build 5 quick actionIf not operated, same as 5If the operation was done once, the last 5 command will be executed directlyIf the action is multiple times, a selection box is providedSeventh step: View the file structure when we execute MAVEN install Note: If our example is a MAVEN Web project, pu
: \ Users \ chenlei. CL, which can be seen in this folder. m2 folder. By default, this folder is placed in the maven local repository. m2/Repository. All Maven components are stored in the repository for reuse. Yes ~ In the/. m2/reposi-plugin/org/Apache/Maven/plugins/Maven-help-plugins/folder, find the downloaded
the Eclipse project file, so that you can get a good directoryMaven can also use its Eclipse plug-in to manage any project.
You can enter the site
Http://m2eclipse.codehaus.org/to install the plug-in. After the installation is complete and the IDE is restarted, You need to configure this plug-in the eclipse Parameter options,
Set the location of the local repository. This is an important step, because if the default eclipse repository does not match your default requirements,
dialog box, and click Next again (do not select create a simple project, so that we can use archetype to build the skeleton). In the dialog box that appears, select archetype, select Maven-Archetype-quicksort, and click Next. A new dialog box is displayed, asking us to enter information such as groupid, artifactid, ve
first red box represents the new Java project, the second is the Javaweb project, where the first one is selected,After entering the contents of the Red box, click Finish,ecplise to start creating the project, which will connect the network to download the required jar package, the path of the jar package is the path of the configured local repository, my: E:\apache-ma
Read Catalogue
Related books
What is maven?
How to use Maven in eclipse
What does the MAVEN project look like?
Commands used by Maven in eclipse
Objective:
As a result of recent work study, always can meet Maven source code. Alth
1. Import Maven Project
The MAVEN project was written in 4 and is now imported. Select the menu item File, and then select Import, we will see an Import dialog box, select Maven Projects under the Maven directory in the dialog box
path, or in the compile time will be error: No compiler is provided in this environment. Perhaps is running on a JRE rather than a JDK? Next, enter installed JREs's Child execute environment: Select JavaSE-1.5, JavaSE-1.6, JavaSE-1.7 on the left, and on the right, select the JDK version to use at compile time, as shown in: Iv. using the Maven plugin in Eclipse4.1. Import Maven ProjectFile→import
Installing and configuring MAVEN environment variables
Requires a Java environment already in the computer
In the console, enter: echo %JAVA_HOME% See if you can display the path information of Java home;
In the control bar input: java -version See if Java version information is displayed;
Download official website: http://maven.apache.org/download.cgi
Download the compiled version apache-maven-
1. Installing the M2eclipse pluginTo build a Maven project with Eclipse, we need to install the Meeclipse plugin firstClick the Eclipse menu bar Help->eclipse Marketplace to search for the plugin maven integration for Eclipse and click Install, such as:After installation, we'll click File->new->other in the Eclipse menu bar, and we'll see the following in the popup dialog
.
Now the most popular MAVEN warehouse manager is the famous nexus (pronunciation [? n?ks?s], meaning "center, armature" in English), which greatly simplifies the maintenance of its internal warehouses and access to external warehouses. With the Nexus, you have full control over every artifact that is accessed and deployed in the warehouse you maintain in just one place. Nexus is a set of "out-of-the-box"
Using MAVEN with eclipse requires installing the Maven plugin for Eclipse, specifically installing MAVEN plugin installation related articlesBuilding a MAVEN ProjectTaking eclipse3.6 as an example1) Create a simple MAVEN projectClick the Eclipse menu bar File->new->ohter->
install the Eclipse Maven pluginConfigure Maven
Configuring the MAVEN installation directoryOpen window–> perferences–> maven in turn, expand MAVEN's configuration interface, such as;Then click installations–> Add to select the Maven install directory, here my
install the Eclipse Maven pluginConfigure Maven
Configuring the MAVEN installation directoryOpen window–> perferences–> maven in turn, expand MAVEN's configuration interface, such as;Then click installations–> Add to select the Maven install directory, here my
1. If you want maven projects to depend on another maven project, the dependent project must have corresponding jar packages in the maven repository. Therefore, you must execute the mvninstall command on the dependent project. 2. Create the HelloFriend directory of the second project module and the agreed directory structure vcmRlcj01cellspacing0cellpadding0Hello
Some recent projects need to be managed by MAVEN, one of which is to add the previous Eclipse Java Project Project and Web project to MAVEN management, and another scenario is to pull the MAVEN project on SVN locally, Some of the tricky issues encountered in using eclipse, the problem process, and the solution are as follows:1. When you start eclipse after instal
reprint: http://www.iteye.com/topic/1123225? 1. Installing the m2eclipse plugin ??? to use Eclipse Build Maven project, we need to install first Meeclipse Plugins ??? Click the Eclipse menu bar help->eclipse Marketplace search for plugins Maven integration for Eclipse and click Install, such as: ??after the installation, we Eclipse in the menu bar, click File->new->other, in the popup dialog
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.