Project pom.xml: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
No edit summary
No edit summary
 
(8 intermediate revisions by the same user not shown)
Line 2: Line 2:
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">


     <name>my-project-name</name>
     <name>User-Friendly Name (projects-directory-name)</name>


     <modelVersion>4.0.0</modelVersion>
     <modelVersion>4.0.0</modelVersion>


     <groupId>io.novaordis.my-project-name</groupId>
     <groupId>io.novaordis.my_project_name</groupId>
     <artifactId>novaordis-my-project-name</artifactId>
     <artifactId>novaordis-my_project_name</artifactId>
     <packaging>jar</packaging>
     <packaging>jar</packaging>


     <version>1</version>
     <version>1.0.0-SNAPSHOT-1</version>


     <properties>
     <properties>
        <!---
              Dependency Versions
        -->
        <slf4j.version>1.7.12</slf4j.version>
        <junit.version>4.12</junit.version>
        <!---
              End of Dependency Versions
        -->
        <source.java.version>1.8</source.java.version>
        <target.java.version>1.8</target.java.version>
        <test.scratch.directory>target/test-scratch</test.scratch.directory>
        <test.log.directory>target</test.log.directory>
         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
         <slf4j-version>1.7.12</slf4j-version>
         <maven.build.timestamp.format>MM/dd/yy</maven.build.timestamp.format>
         <junit-version>4.12</junit-version>
         <release_date>${maven.build.timestamp}</release_date>
     </properties>
     </properties>


Line 22: Line 38:
         <finalName>playground-project-template</finalName>
         <finalName>playground-project-template</finalName>


         <pluginManagement>
         <!-- needed by the version mechanism -->
             <plugins>
        <resources>
                <plugin>
            <resource>
                    <groupId>org.apache.maven.plugins</groupId>
                <directory>src/main/resources</directory>
                    <artifactId>maven-compiler-plugin</artifactId>
                <filtering>true</filtering>
                    <configuration>
             </resource>
                        <source>1.8</source>
        </resources>
                        <target>1.8</target>
 
                    </configuration>
        <plugins>
                </plugin>
            <plugin>
                <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                    <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                    <artifactId>maven-source-plugin</artifactId>
                <configuration>
                    <executions>
                    <source>1.8</source>
                        <execution>
                    <target>1.8</target>
                            <id>attach-sources</id>
                </configuration>
                            <phase>package</phase>
            </plugin>
                            <goals>
            <plugin>
                                <goal>jar</goal>
                <groupId>org.apache.maven.plugins</groupId>
                            </goals>
                <artifactId>maven-source-plugin</artifactId>
                        </execution>
                <executions>
                    </executions>
                    <execution>
                </plugin>
                        <id>attach-sources</id>
            </plugins>
                        <phase>package</phase>
        </pluginManagement>
                        <goals>
                            <goal>jar</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
        </plugins>
     </build>
     </build>
    <dependencyManagement>
        <dependencies>
            <dependency>
                <groupId>org.slf4j</groupId>
                <artifactId>slf4j-api</artifactId>
                <version>${slf4j-version}</version>
            </dependency>
            <dependency>
                <groupId>org.slf4j</groupId>
                <artifactId>slf4j-log4j12</artifactId>
                <version>${slf4j-version}</version>
                <scope>provided</scope>
            </dependency>
            <dependency>
                <groupId>junit</groupId>
                <artifactId>junit</artifactId>
                <version>${junit-version}</version>
                <scope>test</scope>
            </dependency>
        </dependencies>
    </dependencyManagement>


     <dependencies>
     <dependencies>
Line 75: Line 75:
             <groupId>org.slf4j</groupId>
             <groupId>org.slf4j</groupId>
             <artifactId>slf4j-api</artifactId>
             <artifactId>slf4j-api</artifactId>
            <version>${slf4j.version}</version>
         </dependency>
         </dependency>
         <dependency>
         <dependency>
             <groupId>org.slf4j</groupId>
             <groupId>org.slf4j</groupId>
             <artifactId>slf4j-log4j12</artifactId>
             <artifactId>slf4j-log4j12</artifactId>
            <version>${slf4j.version}</version>
            <scope>provided</scope>
         </dependency>
         </dependency>
         <dependency>
         <dependency>
             <groupId>junit</groupId>
             <groupId>junit</groupId>
             <artifactId>junit</artifactId>
             <artifactId>junit</artifactId>
            <version>${junit.version}</version>
            <scope>test</scope>
         </dependency>
         </dependency>
     </dependencies>
     </dependencies>

Latest revision as of 23:44, 31 August 2017

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">

    <name>User-Friendly Name (projects-directory-name)</name>

    <modelVersion>4.0.0</modelVersion>

    <groupId>io.novaordis.my_project_name</groupId>
    <artifactId>novaordis-my_project_name</artifactId>
    <packaging>jar</packaging>

    <version>1.0.0-SNAPSHOT-1</version>

    <properties>

        <!---
               Dependency Versions
        -->

        <slf4j.version>1.7.12</slf4j.version>
        <junit.version>4.12</junit.version>

        <!---
               End of Dependency Versions
        -->

        <source.java.version>1.8</source.java.version>
        <target.java.version>1.8</target.java.version>
        <test.scratch.directory>target/test-scratch</test.scratch.directory>
        <test.log.directory>target</test.log.directory>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <maven.build.timestamp.format>MM/dd/yy</maven.build.timestamp.format>
        <release_date>${maven.build.timestamp}</release_date>
    </properties>

    <build>

        <finalName>playground-project-template</finalName>

        <!-- needed by the version mechanism -->
        <resources>
            <resource>
                <directory>src/main/resources</directory>
                <filtering>true</filtering>
            </resource>
        </resources>

        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <configuration>
                    <source>1.8</source>
                    <target>1.8</target>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-source-plugin</artifactId>
                <executions>
                    <execution>
                        <id>attach-sources</id>
                        <phase>package</phase>
                        <goals>
                            <goal>jar</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>

    <dependencies>
        <dependency>
            <groupId>org.slf4j</groupId>
            <artifactId>slf4j-api</artifactId>
            <version>${slf4j.version}</version>
        </dependency>
        <dependency>
            <groupId>org.slf4j</groupId>
            <artifactId>slf4j-log4j12</artifactId>
            <version>${slf4j.version}</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <version>${junit.version}</version>
            <scope>test</scope>
        </dependency>
    </dependencies>

</project>