reference jdepend usage instructionsAdd Findbugz Check, detailed configuration reference Findbugz usage instructions,Add Javadoc generation, detailed configuration reference Javadoc usageWith JXR support, JXR is an HTML-formatted tool that generates Java code cross-references and source code, with detailed configuration information referenced JXR usage. Note that JXR is not necessary to run in the build phase. join Cobertura support, which is a code coverage tool that can be used to evaluate th
Licensed to the Apache software Foundation (ASF) under oneor more contributor license agreements. See the NOTICE fileDistributed with the additional informationRegarding copyright ownership. The ASF licenses this fileTo you under the Apache License, Version 2.0 (the"License"); Except in complianceWith the License. Obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0Unless required by applicable law or agreed to in writing,Software distributed under the License is distributed
* Compile, default, applies to all stages and will be published along with the project.* provided, similar to compile, expects the JDK, container or user to provide this dependency. such as Servlet.jar.* Runtime, used only at runtime, such as JDBC driver, for run and test phases.* Test, used only during testing, to compile and run the test code. Will not be published with the project.* System, similar to provided, needs to explicitly provide an jar,maven that contains dependencies and does not f
Http://search.maven.org
Http://repository.apache.orgHttp://www.artifact-repository.orgHttp://mvnrepository.comHttp://www.mvnbrowser.comHttp://www.jarvana.comHttp://mavensearch.net
Pom. xml example:
The basic element of POM. XML, which is used to manage project dependencies on third-party packages. Maven downloads the dependencies of some packages defined in this element to the local repository and allows the project to use them. Ensure that our project can be correctly built and deployed. Dependencies has a dependency element that specifies a package on which the project depends.
Dependency element descriptionGroupid, artifactid, version: group
I recently learned how to use maven. When I read the maven authoritative guide, I encountered a problem during the test based on the example in the book.
In the first example, enter MVN archetype: Create-dgroupid = org. sonatype. mavenbook. ch03 \-dartifactid = simple \-dpackagename = org. sonatype. mavenbook.
Error: the goal you specified requires a project to execute but there is no POM in this directory
The final problem is found because \ In
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
1. Add the local jar package to maven dependency2. Specify the version of the JDK, and the font3. Make the project into a war packageWrite here temporarily, will update again.Use MAVEN to manage your project's Pom file configuration
MAVEN profiles, there are two ways to activate a profile by default:Mode 1: activation > Activebydefault >trueactivebydefault>activation >Mode 2: activation > Property >! Fooproperty>activation>The problem with mode 1 is that as long as the display specifies other profiles, the default is disabled.For mode 2, as long as the Foo attribute is not set, it is always active.With Mode 2, we can set multiple default active profiles at the same time. At the same time, we can disable them at the
Exclude roles attribute does not do serialization jsonconfig Jsonconfig = new Jsonconfig ();Jsonconfig.setexcludes (New string[]{"roles"}); Note that if the JSON object contains a null value, the conversion will error Jsonobject.fromobject (JSON, jsonconfig); Net.sf.json Pom Dependent files
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.