home | career | drupal | java | mac | mysql | perl | scala | uml | unix  

Commons Net example source code file (pom.xml)

This example Commons Net source code file (pom.xml) is included in the DevDaily.com "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.

Java - Commons Net tags/keywords

apache, apache, asf, cannot, commons, commons, exclude, exclude, extension-name, issue, license, license, see, you

The Commons Net pom.xml source code

<?xml version="1.0" encoding="UTF-8"?>
<!--

   Licensed to the Apache Software Foundation (ASF) under one or more
   contributor license agreements.  See the NOTICE file distributed with
   this work for additional information regarding copyright ownership.
   The ASF licenses this file to You under the Apache License, Version 2.0
   (the "License"); you may not use this file except in compliance with
   the License.  You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.

-->

<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">
    <parent>
        <groupId>org.apache.commons
        <artifactId>commons-parent
        <version>21
    </parent>
    <modelVersion>4.0.0
    <groupId>commons-net
    <artifactId>commons-net
    <version>3.0.1
    <name>Commons Net
    <!-- N.B. the description content is deliberately not indented 
     ! to improve the layout of the Release Notes generated by mvn changes:announcement-generate 
    -->
    <description>
Apache Commons Net library contains a collection of network utilities and protocol implementations.
Supported protocols include: Echo, Finger, FTP, NNTP, NTP, POP3(S), SMTP(S), Telnet, Whois
    </description>
    <url>http://commons.apache.org/net/
    <issueManagement>
        <system>jira
        <url>http://issues.apache.org/jira/browse/NET
    </issueManagement>
    <inceptionYear>2001
    <scm>
        <connection>scm:svn:http://svn.apache.org/repos/asf/commons/proper/net/trunk
        <developerConnection>scm:svn:https://svn.apache.org/repos/asf/commons/proper/net/trunk
        <url>http://svn.apache.org/viewvc/commons/proper/net/trunk
    </scm>

    <developers>
        <developer>
            <name>Jeffrey D. Brekke
            <id>brekke
            <email>Jeff.Brekke@qg.com
            <organization>Quad/Graphics, Inc.
        </developer>
        <developer>
            <name>Steve Cohen
            <id>scohen
            <email>scohen@apache.org
            <organization>javactivity.org
        </developer>
        <developer>
            <name>Bruno D'Avanzo
            <id>brudav
            <email>bruno.davanzo@hp.com
            <organization>Hewlett-Packard
        </developer>
        <developer>
            <name>Daniel F. Savarese
            <id>dfs
            <email>dfs@apache.org
            <organization>
                <a href="http://www.savarese.com/">Savarese Software Research</a>
            </organization>
        </developer>
        <developer>
            <name>Rory Winston
            <id>rwinston
            <email>rwinston@apache.org
            <organization />
        </developer>
    </developers>

    <contributors>
        <contributor>
            <name>Rob Hasselbaum
            <email>rhasselbaum@alumni.ithaca.edu
        </contributor>
        <contributor>
            <name>Mario Ivankovits
            <email>mario@ops.co.at
        </contributor>
        <contributor>
            <name>Tapan Karecha
            <email>tapan@india.hp.com
        </contributor>
        <contributor>
            <name>Winston Ojeda
            <email>Winston.Ojeda@qg.com
            <organization>Quad/Graphics, Inc.
        </contributor>
        <contributor>
            <name>Ted Wise
            <email>ctwise@bellsouth.net
        </contributor>
        <contributor>
            <name>Bogdan Drozdowski
            <email>bogdandr # op dot pl
        </contributor>
    </contributors>

    <dependencies>
        <dependency>
            <groupId>junit
            <artifactId>junit
            <version>4.8.2
            <scope>test
        </dependency>
    </dependencies>

    <properties>
        <maven.compile.source>1.5
        <maven.compile.target>1.5
        <commons.javadoc.java.link>http://download.oracle.com/javase/1.5.0/docs/api/
        <commons.componentid>net
        <commons.release.version>3.0.1
        <commons.rc.version>RC1
        <commons.release.desc>(Requires Java 1.5 or later)
        <commons.release.2.version>1.4.1
        <!-- Override Commons parent, as version 1.4.1 does not use the -bin suffix -->
        <commons.release.2.binary.suffix />
        <commons.release.2.desc>(Requires Java 1.3 or later)
        <commons.jira.id>NET
        <commons.jira.pid>12310487
    </properties> 

    <build>
        <plugins>

            <!-- Exclude examples from binary jar -->
            <plugin>
                <groupId>org.apache.maven.plugins
                <artifactId>maven-jar-plugin
                <configuration>
                    <excludes>
                        <exclude>examples/**
                    </excludes>
                </configuration>
            </plugin>

            <!-- Exclude examples from source jar -->
            <plugin>
                <groupId>org.apache.maven.plugins
                <artifactId>maven-source-plugin
                <configuration>
                    <excludes>
                        <exclude>examples/**
                    </excludes>
                </configuration>
            </plugin>

            <plugin>
                <groupId>org.apache.maven.plugins
                <artifactId>maven-surefire-plugin
                <configuration>
                    <excludes>
                        <exclude>**/*FunctionalTest.java
                        <exclude>**/*POP3*.java
                        <!-- JUnit4 and/or Surefire does not like a class with a private constructor -->
                        <exclude>**/TestSetupParameters.java
                    </excludes>
                </configuration>
            </plugin>

            <plugin>
                <artifactId>maven-assembly-plugin
                <configuration>
                    <descriptors>
                        <descriptor>src/assembly/bin.xml
                        <descriptor>src/assembly/src.xml
                    </descriptors>
                    <tarLongFileMode>gnu
                </configuration>
            </plugin>

            <plugin>
                <artifactId>maven-antrun-plugin
                <executions>
                    <execution>
                        <phase>package
                        <configuration>
                            <target>
                                <jar destfile="target/commons-net-ftp-${project.version}.jar">
                                    <metainf dir="${basedir}" includes="NOTICE.txt,LICENSE.txt" />
                                    <manifest>
                                        <attribute name="Extension-Name" value="org.apache.commons.net" />
                                        <attribute name="Specification-Title" value="${project.name}" />
                                        <attribute name="Implementation-Title" value="${project.name}" />
                                        <attribute name="Implementation-Vendor" value="${project.organization.name}" />
                                        <attribute name="Implementation-Version" value="${project.version}" />
                                        <attribute name="Implementation-Vendor-Id" value="org.apache" />
                                        <attribute name="X-Compile-Source-JDK" value="${maven.compile.source}" />
                                        <attribute name="X-Compile-Target-JDK" value="${maven.compile.target}" />
                                    </manifest>
                                    <fileset dir="target/classes" includes="org/apache/commons/net/ftp/**,org/apache/commons/net/*,org/apache/commons/net/io/*,org/apache/commons/net/util/*" />
                                </jar>
                                <!-- 
                                    Create the binary examples jar, which will be added to the binary zip/tgz, 
                                    but not deployed independently to Maven
                                -->
                                <jar destfile="target/commons-net-examples-${project.version}.jar">
                                    <metainf dir="${basedir}" includes="NOTICE.txt,LICENSE.txt" />
                                    <manifest>
                                        <attribute name="Extension-Name" value="org.apache.commons.net" />
                                        <attribute name="Specification-Title" value="${project.name}" />
                                        <attribute name="Implementation-Title" value="${project.name}" />
                                        <attribute name="Implementation-Vendor" value="${project.organization.name}" />
                                        <attribute name="Implementation-Version" value="${project.version}" />
                                        <attribute name="Implementation-Vendor-Id" value="org.apache" />
                                        <attribute name="X-Compile-Source-JDK" value="${maven.compile.source}" />
                                        <attribute name="X-Compile-Target-JDK" value="${maven.compile.target}" />
                                    </manifest>
                                    <fileset dir="target/classes" includes="examples/**" />
                                </jar>
                            </target>
                        </configuration>
                        <goals>
                            <goal>run
                        </goals>
                    </execution>
                </executions>
            </plugin>
            <!--  Attaches the commons-net-ftp JAR to the Maven lifecycle
                  to ensure that it will be signed and deployed as normal -->
            <plugin>
                <groupId>org.codehaus.mojo
                <artifactId>build-helper-maven-plugin
                <version>1.2
                <executions>
                    <execution>
                        <id>attach-artifacts
                        <phase>package
                        <goals>
                            <goal>attach-artifact
                        </goals>
                        <configuration>
                            <artifacts>
                                <artifact>
                                    <file>target/commons-net-ftp-${project.version}.jar
                                    <type>jar
                                    <classifier>ftp
                                </artifact>
                            </artifacts>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
            <!-- Repeat the configuration here for use when directly invoking the plugin -->
            <plugin>
                <groupId>org.apache.maven.plugins
                <artifactId>maven-changes-plugin
                <version>2.4
                <configuration>
                   <!-- Cannot use outputDirectory to place the file, 
                        as that affects the HTML output, so use relative path instead 
                    -->
                   <announcementFile>../../RELEASE-NOTES.txt
                    <issueLinkTemplatePerSystem>
                        <default>%URL%/%ISSUE%
                    </issueLinkTemplatePerSystem>
                    <template>release-notes.vm
                    <templateDirectory>src/changes
                </configuration>
            </plugin>

            <!-- Exclude examples from Javadoc jar -->
            <plugin>
                <groupId>org.apache.maven.plugins
                <artifactId>maven-javadoc-plugin
                <configuration>
                    <excludePackageNames>examples.*
                </configuration>
            </plugin>

        </plugins>

    </build>

    <reporting>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins
                <artifactId>maven-changes-plugin
                <version>2.3
                <configuration>
                    <issueLinkTemplatePerSystem>
                        <default>%URL%/%ISSUE%
                    </issueLinkTemplatePerSystem>
                    <template>release-notes.vm
                    <templateDirectory>src/changes
                </configuration>
                <reportSets>
                    <reportSet>
                        <reports>
                            <report>changes-report
                            <report>jira-report
                        </reports>
                    </reportSet>
                </reportSets>
            </plugin>

            <plugin>
                <groupId>org.codehaus.mojo
                <artifactId>findbugs-maven-plugin
                <configuration>
                    <excludeFilterFile>findbugs-exclude-filter.xml
                </configuration>
            </plugin>

            <plugin>
                <groupId>org.codehaus.mojo
                <artifactId>clirr-maven-plugin
                <version>2.2.2
                <configuration>
                    <comparisonVersion>2.2
                    <minSeverity>info
                    <excludes>
                      <exclude>examples/**
                    </excludes>
                </configuration>
            </plugin>

            <plugin>
                <groupId>org.apache.maven.plugins
                <artifactId>maven-javadoc-plugin
                <configuration>
                    <excludePackageNames>examples.*
                </configuration>
            </plugin>

        </plugins>
    </reporting>

    <profiles>   
      <profile>
        <id>rc
        <distributionManagement>
          <!-- Cannot define in parent ATM, see COMMONSSITE-26 -->
          <site>
            <id>apache.website
            <name>Apache Commons Release Candidate Staging Site
            <url>${commons.deployment.protocol}://people.apache.org/www/people.apache.org/builds/commons/${commons.componentid}/${commons.release.version}/${commons.rc.version}/site
          </site>
        </distributionManagement>
      </profile>
    </profiles>

</project>

Other Commons Net examples (source code examples)

Here is a short list of links related to this Commons Net pom.xml source code file:



my book on functional programming

 

new blog posts

 

Copyright 1998-2019 Alvin Alexander, alvinalexander.com
All Rights Reserved.

A percentage of advertising revenue from
pages under the /java/jwarehouse URI on this website is
paid back to open source projects.