Menu

#104 add a Maven 2 POM to the project

None
closed
nobody
None
5
2019-05-18
2008-02-04
Anonymous
No

add a Maven 2 POM to the dnsjava project and deploy the POM in the Maven central repository.

Discussion

  • Nobody/Anonymous

    Logged In: NO

    The pom.xml could be as following
    if you refactor the project as a standard Maven project layout

    ./org/ --> src/main/java/
    ./*.java --> src/main/java/
    tests/ --> src/test/java/
    README, ... -> src/site/

    Kind regards
    Didier

    pom.xml
    -------
    <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">
    <modelVersion>4.0.0</modelVersion>
    <groupId>org.xbill</groupId>
    <artifactId>dnsjava</artifactId>
    <packaging>jar</packaging>
    <version>2.0.6</version>
    <name>dnsjava</name>
    <description>
    dnsjava is an implementation of DNS in Java. It supports all defined record
    types (including the DNSSEC types), and unknown types. It can be used for
    queries, zone transfers, and dynamic updates. It includes a cache which can be
    used by clients, and an authoritative only server. It supports TSIG
    authenticated messages, partial DNSSEC verification, and EDNS0. It is fully
    thread safe. It can be used to replace the native DNS support in Java.

    dnsjava was started as an excuse to learn Java. It was useful for testing new
    features in BIND without rewriting the C resolver. It was then cleaned up and
    extended in order to be used as a testing framework for DNS interoperability
    testing. The high level API and caching resolver were added to make it useful
    to a wider audience. The authoritative only server was added as proof of
    concept.
    </description>

    <dependencies>
    <dependency>
    <groupId>junit</groupId>
    <artifactId>junit</artifactId>
    <version>3.8.1</version>
    <scope>test</scope>
    </dependency>
    </dependencies>
    <build>
    <plugins>
    <plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-jar-plugin</artifactId>
    <configuration>
    <archive>
    <manifest>
    <mainClass>dig</mainClass>
    <addClasspath>true</addClasspath>
    </manifest>
    </archive>
    </configuration>
    </plugin>
    <plugin>
    <artifactId>maven-source-plugin</artifactId>
    <executions>
    <execution>
    <phase>package</phase>
    <goals>
    <goal>jar</goal>
    </goals>
    </execution>
    </executions>
    </plugin>
    <plugin>
    <artifactId>maven-javadoc-plugin</artifactId>
    <configuration>
    <minmemory>128m</minmemory>
    <maxmemory>512</maxmemory>
    </configuration>
    <executions>
    <execution>
    <phase>package</phase>
    <goals>
    <goal>jar</goal>
    </goals>
    </execution>
    </executions>
    </plugin>
    </plugins>
    </build>

    <reporting>
    <plugins>
    <plugin>
    <artifactId>maven-project-info-reports-plugin</artifactId>
    </plugin>
    <plugin>
    <artifactId>maven-pmd-plugin</artifactId>
    <configuration>
    <linkXref>true</linkXref>
    <sourceEncoding>utf-8</sourceEncoding>
    <minimumTokens>100</minimumTokens>
    </configuration>
    <reportSets>
    <reportSet>
    <reports>
    <report>pmd</report>
    <report>cpd</report>
    </reports>
    </reportSet>
    </reportSets>
    </plugin>
    <plugin>
    <groupId>net.objectlab</groupId>
    <artifactId>mvn-qalab-plugin</artifactId>
    <version>2.2</version>
    <reportSets>
    <reportSet>
    <reports>
    <report>report-merge-chart</report>
    <report>report-movers-all</report>
    </reports>
    </reportSet>
    </reportSets>
    </plugin>
    <plugin>
    <artifactId>maven-javadoc-plugin</artifactId>
    <configuration>
    <minmemory>128m</minmemory>
    <maxmemory>512</maxmemory>
    <excludePackageNames>spoon.support.*</excludePackageNames>
    </configuration>
    </plugin>
    <plugin>
    <artifactId>maven-jxr-plugin</artifactId>
    </plugin>
    <plugin>
    <groupId>org.codehaus.mojo</groupId>
    <artifactId>taglist-maven-plugin</artifactId>
    <configuration>
    <tags>TODO, @todo, FIXME, @deprecated</tags>
    </configuration>
    </plugin>
    <plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-changes-plugin</artifactId>
    <version>2.0-beta-2</version>
    <configuration>
    <issueLinkTemplate>%URL%/tracker/index.php?aid=%ISSUE%</issueLinkTemplate>
    </configuration>
    <reportSets>
    <reportSet>
    <reports>
    <report>changes-report</report>
    </reports>
    </reportSet>
    </reportSets>
    </plugin>
    </plugins>
    </reporting>

    </project>

     
  • Ingo

    Ingo - 2019-05-18

    Ticket moved from /p/dnsjava/feature-requests/10/

     
  • Ingo

    Ingo - 2019-05-18
    • Status: open --> closed