Recently I wrote the maven2 plug-in for project statistics and encountered an exception when publishing it to the maven2 library of java.net:
Daniel @ Daniel-LAPTOP :~ /Work/sources/Java/Maven-statistic-plugin $ MVN deploy
[Info] scanning for projects...
-----------------------------------------------------
This realm = plexus. Core. Child-container [extensions]
URLs [0] = file:/home/Daniel/. m2/Repos
Thanks to the powerful features of maven2, many companies have gradually switched from ant to maven2, and since maven2 already supports running ant scripts, this greatly reduces the difficulty required by the development team to transition from ant to maven2. Compared with ant's relatively open attitude to developers,
Reproduced in: http://bakcom.iteye.com/blog/280604
The running command of maven2 is MVN,
Common commands:
MVN archetype: Create a Maven Project
MVN compile: Compile source code
MVN test-compile: Compile the test code
MVN test: run the unit test in the application.
MVN site: the website that generates project-related information
MVN clean: clears the generated results in the target directory.
MVN package: generate a jar file based on the project
MVN
Looking at the log4j-2.13.jar being infinitely downloaded from every version of each project, you will feel that managing libraries with Maven2 is really environmentally friendly.
In addition, Java class libraries also urgently need to get rid of this situation where a jar package is deployed everywhere without identity or status. It is a good direction for Maven to name the Jar.
In fact, Ruby and php both have such management tools and official websi
Building Seam 2.0 application with NetBeans 6.1 (MAVEN2)
Reprint please retain the author information:
author:88250
blog:http:/blog.csdn.net/dl88250
MSN Gmail qq:dl88250@gmail.com
Table of Contents
Introduction 1
Prerequisites 2
Seam Glimpse 2
Set Up Seammaven Application 3
Create Projects 3
Pom.xml of Seammaven 3
Pom.xml of Seammaven-ear 4
Pom.xml of SEAMMAVEN-EJB 5
Pom.xml of Seammaven-war 10
Application related configurations and sources 13
The
://maven.apache.org/SETTINGS/1.0.0http//maven.apache.org/xsd/settings-1.0.0.xsd "> ... //downloads.planetmirror.com/pub/maven2 ...Id,name: Unique image ID and user-friendly image name. The ID is used to differentiate the mirror element and is used to obtain the corresponding certificate when connected.URL: Mirroring the basic URL, the build system will use this URL to connect to the repository instead of the original warehouse URL.MIRROROF: T
-alternatives -- install/usr/bin/javac/usr/lib/JVM/Java-6-sun-1.6.0.06/bin/javac 300
Next, modify the default JDK.
> Sudo Update-alternatives -- config java. Select the default JDK as follows:
There are 3 choices for the alternative Java (providing/usr/bin/Java ).
Selection path priority status------------------------------------------------------------0/usr/lib/JVM/java-6-openjdk-amd64/JRE/bin/Java 1061 Auto Mode1/usr/lib/JVM/java-6-openjdk-amd64/JRE/bin/Java 1061 manual mode* 2/usr/lib/JVM/Jav
library is configured in the Distributionmanagement segment, and I use the Nexus as the mirror server. For the repository is primarily the configuration of the ID and URL, after the configuration is completed can be released through MVN deploy, of course, if your mirror server requires a user name and password, then you need to do the following configuration in Maven's Settings.xml file:Servers> Server> ID>Mzone-releaseID> username>Deploymentusername> Password>Deployment
Unable to update index for central http://repo1.maven.org/maven2/ is this sentence, after myeclipse is started, the console outputs this sentence:Solution:1. In myeclipse3.4 (my current version), window => preferences => myeclipse enterprise workbench => maven4myeclipse => Maven => disable download repository index updates on startup2. Upstairs! I used myeclipse7.1, which was not found before! Then I finally found it!First, you need window => preferen
For a team, building a unified development environment is a must, and Maven is a good place to help build a unified environment. Here's how to make your unified configuration more efficient.
Preparatory work:
Download the necessary software:
Maven2:http://maven.apache.org/download.html the most important
Maven-proxy: For proxy repository, using proxies to access multiple remote libraries
http://maven-proxy.codehaus.org/
Continuum: A good continu
Another advantage of using MAVEN2 is that there is a unified portal for viewing the progress of the project. This includes the introduction of the project, the introduction of the members, the documentation of the related project, and of course all the progress reports of the project.
Here's an example of how to configure MAVEN to produce a project site.
First create the related site
mvn archetype:create \ -DarchetypeGroupId=org.apache.maven.arc
2.1.0+ mirror
1
Id,name: Unique image ID and user-friendly image name. The ID is used to differentiate the mirror element and is used to obtain the corresponding certificate when connected.
URL: Mirroring the basic URL, the build system will use this URL to connect to the repository instead of the original warehouse URL.
MIRROROF: The ID of the warehouse that the image contains. For example, a mirror that points to the MAVEN central repository (http://repo1.maven.org/
Abstract:
This article discusses how to set up the maven environment used by appfuse and briefly introduces Maven.
Based on the content of the article, we can see that this article mainly involves setting in the eclipse + candy + maven2 environment-translator
Maven2 (for appfuse)
Getting started
Title:[Original translation] maven2 (for appfuse) noviceGetting sta
Maven2 has an increasing influence on project management, and maven2 is used in many projects. Next we will introduce how to use maven2 to quickly create a project prototype and then develop a project based on it. Next we will take a look at how to use maven2 to create a typical three types of projects:Common Java proj
Summary:
This article discusses how to set up the MAVEN environment used by Appfuse and gives a brief introduction to Maven.
Based on the content of the article, you can see that this article is mainly about setting up in the ECLIPSE+CANDY+MAVEN2 environment-translator
Maven2 (for AppFuse) novice
Getting Started
Title:
[Original translation] Maven2 (for AppFus
Reprint: Http://wenku.baidu.com/view/d64147c676eeaeaad1f330d4.html?re=view/*Maven2 + TOMCAT6 + Eclipse integrated ConfigurationConfiguration of Mavenenvironment variable m2_home = Maven home Directoryenvironment variable PATH = Maven Home directory/binApache-maven/conf/setting.xml file1. Create a new MAVEN local warehouse folder Apache-maven2-repo and join Setting.xml to specify the local warehouse location
Maven2 has a growing impact on project management, and many projects use Maven2. Here's how to quickly create a prototype of a project using MAVEN2, and then build on that project. Let's look at how to create a typical three-class project using Maven2:Common Java projects, such as basic packages:MVN archetype:create-dg
After you have configured Tomcat in Java EE Eclipse, you can run the test modification project directly without having to package it into Tomcat to run the view. However, when a team develops a project, the developer's eclipse configuration and project configurations will be very labor-intensive, such as their respective build class path, the different versions of each plug-in, and the different third-party jar packs they refer to. A player in the local compilation, testing, packaging, deploymen
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.