In a project, you sometimes need to package a MAVEN project to generate a bat file and run it separately. This article will explain the use of Maven-assembly-plugin plug-in implementation of BAT file packaging.1. First look at the project structure2. Configure the Pom.xml
1. Java Project exported as jar file
1.1 Export with eclips features
This way a lot of tutorials online, do not make a narrative here. Let's just say the downside of this approach is that you can only export Java source files (preferably), and if there are many resource files in your project it's really a hassle. If the pro
First, I declare that this method is only applicable when Microsoft VSS is bound.
1. Disable the Visual Studio IDE environmentIn the process of running Visual Studio IDE, the following steps cannot be performed due to share conflicts. Therefore, you must first disable the IDE environment.
2. Remove version information from the solution file.In Visual Studio 2003, the solution file is a text file suffi
Often encountered such a situation, was originally testing the program test, the creation of a project random name, such as test, but later testing program can be used, want to publish, and then compile the executable program file name is the project name, and can not really express its function, although it is possible to modify the
replaced Int.class so do, oh, we can try.
In addition, if the static method or block to read the properties file, there is one of the most insurance method, is the name of the class itself to get the class object directly, such as this example can be written in Testproperties.class, this is the most insurance method
2 How to get the path:
Problem Description:A period of time before the first computer to import Maven project, but also pom file wrong, and then run the Tomcat report log4j error, has been daoteng nearly one months to run the program successfully, too difficult.Also on the internet for a long time, there is no way to solve my problem. Write down the solution, hoping to help the web just like me to get started.(Just getting starte
During the optimization project, it often begins to focus on time performance, such as codec MIPS or mcps. When the time performance can meet the requirements, we often add the size parameter for comparison, then we need to consider a variety of size. This performance parameter may be clearly described in the project requirements book, and there are more prepared data records in the test performance result
My project has dozens of user roles, each of which has different permissions, so the design of permissions also takes a lot of effort, finally, the permission is configured in the action configuration file of webwork (webwork used in our project. Then, use ant to generate a database script for permissions and generate permission data in the database.
The per
The reason to export the runnable JAR. is because we want to export the referenced jar package with this project, so do not select the Jar fileChoose File/export ... Then java/runnable the jar file and select the class with main () to run, choose extract required libraries into generated JAR. Why export-->runnable Jar file's launch configuration has nothing to ch
The default selection of Tomcat is installed under the C drive under the C:\Program files, so the WebApp file is also selected under C drive Tomcat when I select the bin under the Tomcat.exe display successfully started open Project site display 404 To WebApp file issued now uncompressed War file selection bin under th
Xamarin Open Someone else project could not find the Android.jar fileError message: Could not find Android.jar for API level 23.Open a Xamarin project that is not natively created, and compile with hints that the API cannot be found. But the machine does not have this problem. This is because the Android SDK path for the other computer is saved in the project, an
nlockmgr 100021 4 udp 53046 nlockmgr 100021 1 tcp 38280 nlockmgr 100021 3 TCP 38280 Nlockmgr 100021 4 TCP 38280 Nlockmgr Use Exportfs to view directories that are already shared on this computer:exportfsNFS Client ConfigurationClient for NFS: 192.168.1.190Install NFS and start the service.yum install -y nfs-utilssystemctl enable rpcbind.servicesystemctl start rpcbind.serviceThe client does not need to start the NFS service and only needs to start the Rpcbind service.Check if there is a direct
problem still exists.3, the project is running on other computers, there is no such problem, so compare two computers have what similarities and differences, nothing but JDK version and Eclipse version, the JDK version to replace the same version, the problem persists, replace the Eclipse version, problem resolution.Summary: Later Niang a bit, this issue for Eclipse a bug, replace the latest version of Eclipse to solve the problem.This article is fro
In group projectsLink to all the associated items in the project. o The target file, the C-language function library are merged together to generate the executable file.Write a declaration file, encapsulate it with an. h file, and use the include "Xxx.h" reference declaration in other code 1, the function of the defin
. NET is easy to find, you can use vs quick to define, or directly look for engineering
Recently use PHP, look at other people's code, was require\include around the headache
I can't find a specific fuction.
Novice ask, how to manage the whole project or site, you can quickly find fucntion or class or variable!
Thank you.
Reply to discussion (solution)
When NetBeans imports a project, you can pr
The source of this article: http://blog.csdn.net/chaijunkun/article/details/34805385, reprint please specify. Because I do not regularly collate the relevant blog posts, the corresponding content will be improved. It is therefore highly recommended to view this article in the original source.The combination of Eclipse and MAVEN plug-ins provides a convenient way for us to quickly build a development environment, but maven-compiled class files, configuration files, and packaged files don't really
============ Problem Description ============Find a lot on the Internet. What clean Ah, fix project and the like have tried. Not all. To find a way out.============ Solution 1============Can you say what's wrong, maybe there's a problem with the resource path============ Solution 2============Did you have the SDK? Go to the problems to see what the clues are. Or find a class to paste out, see where error analysis causes============ Solution 3=========
==================== Problem Description ====================Find a lot on the Internet. What clean Ah, fix project and the like have tried. Not all. To find a way out.==================== Solution 1====================Can you say what's wrong, maybe there's a problem with the resource path==================== Solution 2====================Did you have the SDK? Go to the problems to see what the clues are. Or find a class to paste out, see where error
Non-gradle apk file location and Gradle There are some differences, how to find out where is the apk file? I'll go straight, select Project, right-click:In Windows is to select "Show in Exlporer", and then in the directory of the corresponding project to jump out, there will be an out
Generally, we need to add a key file to the project for the plug-in development of CRM and then import the DLL file into the system. What should we do?Right-click the specified project and choose Properties:Click properties. The edit Properties dialog box is displayed:It is recommended that you do not set a password fo
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.