```Hadoop_home= "/opt/cloudera/parcels/cdh-5.6.0-1.cdh5.6.0.p0.45/bin/. /lib/hadoop "For f in $hadoop _home/hadoop-*.jar; DoHadoop_classpath=${hadoop_classpath}: $fDoneFor f in $hadoop _home/lib/*.jar; DoHadoop_classpath=${hadoop_classpath}: $fDoneHadoopvfs_home= "/home/work/tools/java/hadoop-client/hadoop-vfs"For f in $hadoopvfs _home/lib/*.jar; DoHadoop_classpath=${hadoop_classpath}: $fDoneExport Hadoop_classpath=${hadoop_classpath}:/home/boco4a/utils-1.0-snapshot.jarJava-classpath $CLASSPATH:
If your project is built with Maven, you may encounter such problems when the project is online and deployed to the server. The problem is that there is no MAVEN environment on the server, that is, the jar packages in the warehouses (repository) that the project relies on, you need to extract them separately and upload them to the server, the solution:
Pre: Install complete
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 co
plug-in section of your POM file:Listing 1. Use Maven-jar-plugin to modify the MANIFEST. Mf All Maven plugins publish their configuration through an element, in this case, maven-jar-plugin modify its properties, especially the properties of the archive archive file manifest , which controls MANIFEST. The contents of the MF file. Consists of 3 element
one main component, which is needed when other dependencies are generated. Classifier. Source and Javadoc packages are excellent examples of ancillary components. They have a wide range of uses, especially source packages, when you use a third-party dependency, sometimes you want to go directly into that dependent source in the IDE to see the details of its implementation, if the dependency is to publish the source
Reference: http://blog.csdn.net/symgdwyh/article/details/6081532Maven Assembly pluginHttp://maven.apache.org/plugins/maven-assembly-plugin/index.htmlUsageHttp://maven.apache.org/plugins/maven-assembly-plugin/usage.html
Procedure
#1 copy the following code to the Pom. xml file of the maven Project
Jar-with-dependencies
On this issue, Baidu a bit, there will be a lot of answers.For example: http://hooray520.iteye.com/blog/1327658But I use the time, the same way, but just do not pass, the error is:[ERROR] No plugin found for prefix ' install ' on the current project and the PLugin groups [Org.apache.maven.plugins, Org.codehaus.mojo] available from the REpositories [Local (D:\Develop\maven-repository\repository), planetmirror.com (HTTP://DOWNLOADS.PLANETMIRROR.COM/PUB/
Directory:1. Jsonobject Maven Dependency Package2, Idea introduced Maven has a red line, not dependent on3, Jsonobject no Fromobject\\\\\\\\\\\\\\\\\\\\\\\1. Jsonobject Maven Dependency PackageAltogether with one, but the function is all six, I also found on the Internet.Pom.xml as follows:2, Idea introduced Maven has
-and/application/apache-tomcat-7.0.692, 3, 3 configure Tomcat environment variables[Email protected] application]# echo "Export Tomcat_home=/application/tomcat" >>/etc/profile#查看 new additions to the/etc/profile file[Email protected] application]# tail-1/etc/profileExport Tomcat_home=/application/tomcat2, 3, 4 make the environment variable effective#保存之后, execute the following command to make the configured environment variable effective[Email protected] application]# Source/etc/profileThird,
1, the problem arises:
The MAVEN project execution unit test executes normally, but executes the MAVEN command test, reporting an exception:
Org.apache.maven.plugins:maven-compiler-plugin:2.5.1:testcompile (Default-testcompile) on project support: Compilation failure:compilation failure:
[ERROR] E:\workspace\support\src\test\java\com\test\spring\support\ TESTSPRINGCONTEXTHOLDER.JAVA:[7,16] Error:
Understanding of the Maven warehouse see: http://blog.csdn.net/wanghantong/article/details/36427433
the role of scope in the Maven dependency relationship Java code Dependency Scope also introduces
The Java code Pom file can reference some built-in properties (Maven predefined can be used directly) ${basedir} project root directory ${version} for project version
Transferred from: http://lvjun106.iteye.com/blog/1849803The maven-plugin used here is mavne-assembly-plugin.The official website is: http://maven.apache.org/plugins/maven-assembly-plugin/usage.html1. Add this plugin to the pom.xml of the projectXML codeplugin> Artifactid>Maven-assembly-pluginArtifactid> version>2.5.3version> Configuration> Archi
Maven using The-x switch to enable full debug logging. [ERROR] [ERROR] For more information on the errors and possible solutions, please read the following articles:[error] [Help 1] http://c Wiki.apache.org/confluence/display/maven/mojofailureexceptionView CodeCause of the problem:Running the project on the IDE is the JRE used, but the MAVEN packaging project re
Android Maven package bulk replacement of resource files (overlay for skin) amp; AAR package dependency module overwrite Policy
1. AAR package and overwrite
The primary module (APK) overwrites resources of the same name in AAR:
The policy is as follows:
Resource file examples. layout overwrites resources. The valu
Add to Pom.xmlPackage Command: MVN assembly:assembly, after successful execution, a jar package with-jar-with-dependencies end is added to the target folder. This jar package contains the class of all the jars on which the project depends.3. If you do not want the dependent jar package to become class, you can modify t
]------------------------------------------------------------------------C:\USERS\ADMINISTRATORGT;MVN install:install-file-dfile=d:/compojure-1.1.3.jar-dGroupid=compojure-dartifactid=compojure-dversion=1.1.3-dpackaging=jar[INFO] Scanning for projects ...[INFO][INFO]------------------------------------------------------------------------[INFO] Building Maven Stub Project (No POM) 1[INFO]------------------------------------------------------------------
On GitHub, there are a lot of source code that are MAVEN projects, but many do not have jar packages. To find the words on the Internet the first is more difficult, the second is afraid not enough original. With Maven+eclipse, we can visualize the build of the MAVEN project into the jar library package and the source j
MAVEN configuration Jar (WAR) package auto-pack upload Maven server configuration
Create a Jar (war) package project
Create a MAVEN project
To wear a test class in a project
Configure Pom.xml
distributionmana
The maven-plugin used here is mavne-assembly-plugin.The official website is: http://maven.apache.org/plugins/maven-assembly-plugin/usage.html1. Add this plugin to the pom.xml of the projectIf there is a class name, then the latest version number will be added to it,2. Execute MVN assembly:assembly under the current project, and after successful execution, a jar package
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.