· KLDP.org · KLDP.net · KLDP Wiki · KLDP BBS ·
Android Mirroring/Pom Xml

AndroidMirroring/pom.xml


  • Project Object Model
    • XML file
    • contains information about the project and configuration details used by Maven to build the project
    • default values
      • target: the build directory
      • src/main/java: the source directory
      • src/test/java: the test source directory

  • project
    • the top-level element in all Maven pom.xml files
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"^M
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
  • xmlns
    • specifies the default namespace declaration. This declaration tells the schema-validator that all the elements used in this XML document are declared in the "http://maven.apache.org/POM/4.0.0" namespace.
  • xmlns:xsi=
    • Once you have the XML Schema Instance namespace available
  • xsi:schemaLocation=
    • you can use the schemaLocation attribute. This attribute has two values, separated by a space. The first value is the namespace to use. The second value is the location of the XML schema to use for that namespace

  • modelVersion
    • This element indicates what version of the object model this POM is using. The version of the model itself changes very infrequently but it is mandatory in order to ensure stability of use if and when the Maven developers deem it necessary to change the model.

  • name
    • This element indicates the display name used for the project. This is often used in Maven's generated documentation.
  • uri
    • This element indicates where the project's site can be found. This is often used in Maven's generated documentation.

  • groupid
    • This element indicates the unique identifier of the organization or group that created the project. The groupId is one of the key identifiers of a project and is typically based on the fully qualified domain name of your organization. For example org.apache.maven.plugins is the designated groupId for all Maven plugins

  • artifactId
    • This element indicates the unique base name of the primary artifact being generated by this project. The primary artifact for a project is typically a JAR file. Secondary artifacts like source bundles also use the artifactId as part of their final name. A typical artifact produced by Maven would have the form <artifactId>-<version>.<extension> (for example, myapp-1.0.jar).

  • packaging
    • This element indicates the package type to be used by this artifact (e.g. JAR, WAR, EAR, etc.). This not only means if the artifact produced is JAR, WAR, or EAR but can also indicate a specific lifecycle to use as part of the build process. (The lifecycle is a topic we will deal with further on in the guide. For now, just keep in mind that the indicated packaging of a project can play a part in customizing the build lifecycle.) The default value for the packaging element is JAR so you do not have to specify this for most projects.

  • version
    • This element indicates the version of the artifact generated by the project. Maven goes a long way to help you with version management and you will often see the SNAPSHOT designator in a version, which indicates that a project is in a state of development. We will discuss the use of snapshots and how they work further on in this guide.

  • properties
    • maven project properties
    • maven settings properties
      • settings.x
    • environment variable properties
      • env..x
    • java system properties
    • user defined properties
    <properties>^M
        <app.class>com.ribomation.droidAtScreen.DroidAtScreenApplication</app.class>^M
        <compile.java.version>1.6</compile.java.version>^M
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>^M
        <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>^M
        <maven.build.timestamp.format>yyyy-MM-dd</maven.build.timestamp.format>^M
        <timestamp>${maven.build.timestamp}</timestamp>^M
    </properties>^M

  • dependency
    • system dependency: deprecated

gradle


  • gradle: /usr/bin/gradle /usr/share/gradle
    • plug-in, dependency, reposiroty
    • cache:
  • export PATH=/usr/share/gradle/bin:$PATH
  • task structure
    • phase
    • configuration phase, configuration block

  • java project
    • plug-in
    • src directory

ID
Password
Join
To criticize the incompetent is easy; it is more difficult to criticize the competent.


sponsored by andamiro
sponsored by cdnetworks
sponsored by HP

Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2016-10-06 10:26:32
Processing time 0.0075 sec