The configuration file in the Maven project cannot be found or packaged. The maven configuration file
When we use maven to develop a project, a resource directory is automatically created during model creation. This directory is used to store configuration files, we put the configuration file in this directory to package the project.
Sometimes we put the conf
This article is part of the publication of AAR to Maven warehouse using Gradle
========================================================QiujuerBlog: Blog.csdn.net/qiujuerWebsite: www.qiujuer.netOpen Source Library: github.com/qiujuer/genius-androidReprint Please specify source: http://blog.csdn.net/qiujuer/article/details/44195199--open source of learning, for open source, beginner's mentality, with June mutual encouragement!======================
to configure the user library for MyEclipse :1). =============================================================================2). =============================================================================3). =============================================================================Create a new MAVEN project:1) =============================================================================2) =========================================================
Ensure the TOMCAT7 configuration is complete. Install M2eclipse plug-in;Here are the specific ways to use it:
TOMCAT7 User and Permissions configuration: In the Conf directory, locate Tomcat-users.xml, add Manager permissions to the user. Here I have used the permissions are added to the Admin user, the specific code is as follows:"Admin-gui"/>"Admin-script"/>"Manager-gui"/>"Manager-script"/>"MANAGER-JMX"/>"Manager-status"/>"Admin"password="Password"roles="Manager-gui,manager-script,manager-
2014-08-04 23:21 2 people read Comments (0) Favorites Edit Delete Directory (?) [+][-]
Create a new servlet under the Srcmainjava
Modify Webxml
New JSP
Test
In our previous blog, we built a Web project using MAVEN, where we write a simple servlet and test it.1. Under Src/main/java, create a new servlet[Java]View Plaincopyprint?
"font-weight:normal;"> Packagecom.deppon.text01.action;
Import java.io.IOException;
The Describes how to use the assembly package configuration file before, and here's how to package the entire project into a single executable jar. During system testing, a separate jar is required to test with the other integration team. For the first time, the jar package was chosen with assembly plugin, because our test program was inside Src/test/java, and assembly could automatically pack the test package and test dependencies, as follows: 1. Create Package Test Class and Test dependency'
Large project team, divided into development environment, test environment, production environment, different configuration, or data source, or server, or database, etc.
The question is, how do you use MAVEN to package for different environments?
MAVEN provides the concept of profile to solve such problems by simply using variable substitution; For example, the test project directory structure is shown in
An exception occurred when Maven project was imported to MyEclipse: Could not get mojo execution paramater value
Solution:
An error occurred at this time:Could not get Mojo execution paramater valueThe exception will be error one box: The contents of the box:Plugin org.apache.maven.plugins:maven-compiler-plugin:2.0.2 or one of its dependenciesCould not being Resolved:transfer Error:connection timed out:no further informationorg.codehaus.plexus:plexus
Reproduced in: http://nileader.blog.51cto.com/1381108/449956
In the project release, you may encounter this situation, I hope that the project source code to maintain the same premise, you want to be able to target different operating environment to obtain the corresponding running package. (e.g. War pack)
It is possible to use a configuration file to solve this problem. You can put some parameters in the project and the running environment in the configuration file, each environment, so that b
If you've used Maven plugins in Eclipse, you'll probably have this experience: Configure the path to the settings.xml file. What does the settings.xml file do, and why should it be configured? As you can see from the file name of Settings.xml, it is the configuration file used to set MAVEN parameters. Also, Settings.xml is the global configuration file for maven.
Build Maven private server and maven
Recently, the company's personnel revolution has resulted in the departure of a group of employees. I feel a sudden increase in pressure. I am working on android and want to work on the background interface. It's a little hard. It's already 30 minutes, there are still various kinds of hard work, but as a technical control, such happiness cannot be understood by others. I
Errors frequently encountered in maven and maven
1. eclipse cocould not resolve archetype. This occurs when you select archetype when creating a project in eclipse:
An error occurred when creating a maven project:
Cocould not resolve archetype org. apache. maven. archetypes: maven
Maven Repository Information Analysis site recommendation, maven repository information site
Maven is a dependency of java. It is a packaging and management tool. maven is required for a slightly larger java project.
As java grows, maven repositories become larger and larg
MAVEN Configuration Environment PC Environment :windows (Linux configuration is similar) JDK: Requires more than 1.5 versions ide:myeclipse (using the same as other, for example IntelliJ, here I take myeclipse for example)Maven Download Download the latest version of Maven at www.apache.org. (I'm using maven3.3.1.) After the download is complete, unzip and place
Actually in the work, I used maven for a long time, but the recent development environment without MAVEN, so again. For later convenience, write down the general steps in this.1. Download the MAVEN installation packageDownload Apache-maven-3.2.3-bin.zip and unzip to the specified installation directory2. Configuring th
First spit, I stepped on a lot of pits, tears, ah, because not familiar with Maven, there are eclipse bugs, online article information asymmetry ... Well, back to the point, we need to be like this: A project is made up of multiple projects. Because the project is complex and large, it is better to divide it into multiple subprojects (or engineering). So the question is, how do the dependencies of the parent and child engineering work? What to do wit
The company's project needs to export data to excel and PDF. We have used VBA and poi before. This time we will use Jasper reports. During this time, we encountered a problem about subreport, which has been resolved, for your reference.
First of
There are 2 cases where you need to issue the MAVEN command manually including a jar to Maven's local repository.
The jar to be used does not exist in the central repository of Maven.
You have created a custom jar, and another Maven project needs to be used.
PS, or there are many jars that do not support Maven.Case studyFor example, Kaptcha, whi
Three Maven packaging methods (conversion) and maven packaging methods
Maven can use the mvn package command to package the project. If Java-jar xxx is used. when running the jar file, "no main manifest attribute, in xxx. jar "(Main-Class is not set), ClassNotFoundException (dependent package cannot be found), and other errors.
To run a jar package directly throu
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.