Tags: HTTP Io ar ad line as TT C XML
Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-clean-plugin/2.4.1/maven-clean-plugin-2.4.1.pomLine 9: Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-install-plugin/2.3.1/maven-install-plugin-2.3.1.pomLine 14: Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-deploy-plugin/2.7/maven-deploy-plugin-2.7.pomLine 19: Downloading: http://repo.maven.apache.org/maven2/org/
in.The entrance.py file code is as followsImportTestsuites.test_baiduImporttestsuites.test_baidu_newImportUnitTestif __name__=="__main__": Suite=UnitTest. TestSuite () suite.addtest (Testsuites.test_baidu.test_baidu ('Test_baisu')) Suite.addtest (Testsuites.test_baidu_new.test_baidu_new ('test_new')) Runner=UnitTest. Texttestrunner () Runner.run (suite)?My side of the successful implementation, after Baidu search is done, close the browser, and then start to perform the news search use cases.Th
Spring AOP-related core packages, already included in the Spring-context and spring-tx Pom files
Cglib packages are used for dynamic proxies, class based proxies
The following two ASPECTJ-related packages are used to support slicing programming
ASPECTJRT Bag is a ASPECTJ runtime bag.
Aspectjweaver is AspectJ's woven bag.Aspectj
Cannot load driver class:com.mysql.jdbc.DriverHow to add a JDBC driver in the pom file
To-start with, the jar that I need to connect to MySQL 5.5 should have been Mysql-connector-java-5.1.15-bin.jar but Sql-connector-java-5.1.15.jar. Secondly, this jar isn't available in Maven repository so I needed to manually add it to M Y local maven repository and then added it as a dependency to my pom.xml.
Adding Mysql-connector-java-5.1.15.jar to the local mave
1 MAVEN file structure
The written program is placed in the Src/main/java directory
Write the program's configuration file in the Src/main/resources directory
The test program is written in the Src/test/java directory
Test the configuration files required by the program in the Src/test/resoures directory
2 POM file structure, plug-in development
These four properties must be
GroupId: The package path is stored, such as CN.EDU.ZTTC
Ar
Android maven pom. xml
Reference to http://spring.io/guides/gs/maven-android/
The pom. xml of a typical Android maven project is as follows:
4.0.0
Org. hello
Gs-maven-android
0.1.0
Apk
UTF-8
UTF-8
I found that the plug-in from the eclipse market is still quite useful and installedAfter the m2eclipse-wtp, added support for eclipse web projects, good to use.
The installation sequence should be noted:
InstallM2e, and then installM2eclipse-wtp.
First install the second m2e, and then install the m2eclipse-wtp
Otherwise, errors such as the following are continuously reported:
No plugin found for prefix 'war 'in the current project and in the plugin groups [] available from the
1. In the POM, the default source code directory is:Sourcedirectory to configure, you can configure only one source code directory,For the resource directory, you can configure more than one of the following ways.1 Resources>2 Resource>3 Directory>Src/main/javaDirectory>4 includes>5 include>**/*.propertiesinclude>6 include>**/*.xmlinclude>7 include>**/*.tldinclude>8
An error in Eclipse's tip in its pom file is as follows:Plugin execution not covered by lifecycle Configuration:org.apache.maven.plugins:maven-compiler-plugin:3.1: Compile (Execution:default-compile, phase:compile)This means that M2E does not define the plug-in when it executes the MAVEN lifecycle management, so there is a hint of an error, in fact M2E provides an extension mechanism, and we can eliminate this error message by doing the following:1. E
Maven project-fixed Plugin execution not covered by lifecycle configuration: org. codehaus. mojo: build-helper-maven-plugin: 1.8: add-resource (execution: add-resource, phase: generate-resources) pom. xml error,
1: pom. xml Code
2: the error message is as follows:
Plugin execution not covered by lifecycle configuration: org.codehaus.mojo:build-helper-maven-plugin:1.8: add-resource (execution: add-resou
The reason is because the operating system is different, enclose all the parameters in quotation marks.As shown below:MVN install:install-file "-dfile=cobra.jar" "-dgroupid=com.cobra" "-dartifactid=cobra" "-dversion=0.98.4" "- Dpackaging=jar ""-dgeneratepom=true "See http://stackoverflow.com/questions/6704813/maven-generating-pom-file/11199865#11199865Maven installs a third-party jar to the local presence of the goal you specified requires a project t
name
Description
Spring-boot-starter
Core POM, which includes automatic configuration support, a log library, and support for YAML configuration files.
Spring-boot-starter-amqp
Support AMQP via Spring-rabbit.
Spring-boot-starter-aop
Includes SPRING-AOP and AspectJ to support facet-oriented programming (AOP).
Spring-boot-starter-batch
Supports Spring Batch, includin
Transferred from: http://blog.csdn.net/happylife_haha/article/details/52755425Pom File Error: The matching wildcard is strict, but no declaration can be found for element ' Dubbo:service '.Workaround:Find the Dubbo jar package, unzip it and locate it under the Meta-inf folder dubbo.xsdIn Eclipse, click Windows-->preferrence-->xml-->xmlcatalogSelect Add-->catalog Entry-->file systemLocate the Dubbo.xsd file.Key:http://code.alibabatech.com/schema/dubbo/dubbo.xsdClick OK and click OK.Right-click on
[INFO] BUILD FAILURE[INFO]------------------------------------------------------------------------[INFO] Total time:3.608s[INFO] Finished At:thu Feb 10:50:14 CST 2015[INFO] Final memory:17m/45m[INFO]------------------------------------------------------------------------Package org.apache.commons.httpclient does not existPackage org.apache.commons.httpclient does not existBut my http-client-3.1.jar is imported into the project, but not in the Pom file
Maven Parent-child relationship
The parent project must be packaged in a pom such as
Child project inherits most of the properties of the parent project using
Parent Project
Sub-project
maven Specifies the packing method type (Jar,war) and the package name,
Specify the name of the packaged file under some directories, exclude some directories, introduce some directories, filter the directory files
In general, I will specify the package in the
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.