maven-jar-plugin
Used in:
components
- OverviewOverview
- VersionsVersions
- DependentsDependents
- DependenciesDependencies
<dependency> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-jar-plugin</artifactId> <version>3.2.2</version> </dependency>
<?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/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <parent> <artifactId>maven-plugins</artifactId> <groupId>org.apache.maven.plugins</groupId> <version>34</version> <relativePath>../../pom/maven/maven-plugins/pom.xml</relativePath> </parent> <artifactId>maven-jar-plugin</artifactId> <version>3.2.2</version> <packaging>maven-plugin</packaging> <name>Apache Maven JAR Plugin</name> <description>Builds a Java Archive (JAR) file from the compiled project classes and resources.</description> <contributors> <contributor> <name>Jerome Lacoste</name> <email>jerome@coffeebreaks.org</email> <organization>CoffeeBreaks</organization> <organizationUrl>http://www.coffeebreaks.org</organizationUrl> <timezone>+1</timezone> <roles> <role>Java Developer</role> </roles> </contributor> </contributors> <prerequisites> <maven>${mavenVersion}</maven> </prerequisites> <scm> <connection>scm:git:https://gitbox.apache.org/repos/asf/maven-jar-plugin.git</connection> <developerConnection>scm:git:https://gitbox.apache.org/repos/asf/maven-jar-plugin.git</developerConnection> <url>https://github.com/apache/maven-jar-plugin/tree/${project.scm.tag}</url> <tag>maven-jar-plugin-3.2.2</tag> </scm> <issueManagement> <system>JIRA</system> <url>https://issues.apache.org/jira/browse/MJAR</url> </issueManagement> <ciManagement> <system>Jenkins</system> <url>https://ci-builds.apache.org/job/Maven/job/maven-box/job/maven-jar-plugin/</url> </ciManagement> <distributionManagement> <site> <id>apache.website</id> <url>scm:svn:https://svn.apache.org/repos/asf/maven/website/components/${maven.site.path}</url> </site> </distributionManagement> <properties> <mavenFileManagementVersion>3.0.0</mavenFileManagementVersion> <mavenArchiverVersion>3.5.2</mavenArchiverVersion> <mavenVersion>3.1.0</mavenVersion> <javaVersion>7</javaVersion> <project.build.outputTimestamp>2022-01-08T21:19:00Z</project.build.outputTimestamp> </properties> <dependencies> <dependency> <groupId>org.apache.maven</groupId> <artifactId>maven-plugin-api</artifactId> <version>${mavenVersion}</version> </dependency> <dependency> <groupId>org.apache.maven</groupId> <artifactId>maven-core</artifactId> <version>${mavenVersion}</version> </dependency> <dependency> <groupId>org.apache.maven</groupId> <artifactId>maven-artifact</artifactId> <version>${mavenVersion}</version> </dependency> <dependency> <groupId>org.apache.maven.shared</groupId> <artifactId>file-management</artifactId> <version>${mavenFileManagementVersion}</version> </dependency> <dependency> <groupId>org.apache.maven</groupId> <artifactId>maven-archiver</artifactId> <version>${mavenArchiverVersion}</version> </dependency> <!-- dependencies to annotations --> <dependency> <groupId>org.apache.maven.plugin-tools</groupId> <artifactId>maven-plugin-annotations</artifactId> <scope>provided</scope> </dependency> <!-- ! other dependencies contain references to older versions ! so we define it here explicit to make sure we get the ! correct version for plexus-utils. --> <!-- ! maven-shared-utils is pulled by file-management ! Need to use a more recent version otherwise ! the build will fail. This needed to be kept ! here until a new version of file-management ! has been made. --> <dependency> <groupId>org.apache.maven.shared</groupId> <artifactId>maven-shared-utils</artifactId> <version>3.3.4</version> <scope>runtime</scope> </dependency> <dependency> <groupId>org.codehaus.plexus</groupId> <artifactId>plexus-utils</artifactId> <version>3.3.1</version> <scope>runtime</scope> </dependency> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.13.2</version> <scope>test</scope> </dependency> <dependency> <groupId>org.apache.maven.plugin-testing</groupId> <artifactId>maven-plugin-testing-harness</artifactId> <version>3.1.0</version> <scope>test</scope> </dependency> <dependency> <groupId>org.apache.maven</groupId> <artifactId>maven-compat</artifactId> <version>${mavenVersion}</version> <scope>test</scope> </dependency> </dependencies> <build> <resources> <resource> <directory>src/main/filtered-resources</directory> <filtering>true</filtering> </resource> </resources> <pluginManagement> <plugins> <plugin> <groupId>org.apache.rat</groupId> <artifactId>apache-rat-plugin</artifactId> <configuration> <excludes combine.children="append"> <!-- ! The manifest specification does not describe any method for writing comments into the manifest. --> <exclude>src/it/mjar-71-01/src/main/resources/META-INF/MANIFEST.MF</exclude> <exclude>src/it/mjar-71-02/src/main/resources/META-INF/MANIFEST.MF</exclude> </excludes> </configuration> </plugin> </plugins> </pluginManagement> </build> <profiles> <profile> <id>run-its</id> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-invoker-plugin</artifactId> <configuration> <goals> <goal>clean</goal> <goal>package</goal> </goals> <showErrors>true</showErrors> </configuration> <executions> <execution> <id>integration-test</id> <goals> <goal>install</goal> <goal>integration-test</goal> </goals> </execution> </executions> </plugin> </plugins> </build> </profile> </profiles> </project>