jdk
116 строк · 4.9 Кб
1<!--
2Copyright (c) 2017, 2018, Oracle and/or its affiliates. All rights reserved.
3
4Redistribution and use in source and binary forms, with or without
5modification, are permitted provided that the following conditions
6are met:
7
8- Redistributions of source code must retain the above copyright
9notice, this list of conditions and the following disclaimer.
10
11- Redistributions in binary form must reproduce the above copyright
12notice, this list of conditions and the following disclaimer in the
13documentation and/or other materials provided with the distribution.
14
15- Neither the name of Oracle nor the names of its
16contributors may be used to endorse or promote products derived
17from this software without specific prior written permission.
18
19THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
20IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
21THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
22PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
23CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
24EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
25PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
26PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
27LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
28NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
29SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30-->
31
32<project xmlns="https://maven.apache.org/POM/4.0.0" xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance"33xsi:schemaLocation="https://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">34<modelVersion>4.0.0</modelVersion>35<groupId>com.sun.hotspot.tools.compiler</groupId>36<artifactId>LogCompilation</artifactId>37<packaging>jar</packaging>38<version>1.0-SNAPSHOT</version>39<name>LogCompilation</name>40<url>https://maven.apache.org</url>41<dependencies>42<dependency>43<groupId>junit</groupId>44<artifactId>junit</artifactId>45<version>4.13.1</version>46<scope>test</scope>47</dependency>48</dependencies>49<build>50<plugins>51<plugin>52<groupId>org.apache.maven.plugins</groupId>53<artifactId>maven-shade-plugin</artifactId>54<version>3.1.0</version>55<executions>56<execution>57<phase>package</phase>58<goals>59<goal>shade</goal>60</goals>61<configuration>62<transformers>63<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">64<mainClass>com.sun.hotspot.tools.compiler.LogCompilation</mainClass>65</transformer>66</transformers>67<createDependencyReducedPom>false</createDependencyReducedPom>68</configuration>69</execution>70</executions>71</plugin>72<plugin>73<groupId>org.apache.maven.plugins</groupId>74<artifactId>maven-compiler-plugin</artifactId>75<version>3.7.0</version>76<configuration>77<source>1.8</source>78<target>1.8</target>79</configuration>80</plugin>81<plugin>82<groupId>org.apache.maven.plugins</groupId>83<artifactId>maven-release-plugin</artifactId>84<version>2.5.3</version>85</plugin>86<plugin>87<groupId>org.apache.maven.plugins</groupId>88<artifactId>maven-javadoc-plugin</artifactId>89<version>3.0.0-M1</version>90</plugin>91<plugin>92<groupId>org.apache.maven.plugins</groupId>93<artifactId>maven-surefire-plugin</artifactId>94<version>3.0.0-M2</version>95</plugin>96<plugin>97<artifactId>maven-antrun-plugin</artifactId>98<version>1.8</version>99<executions>100<execution>101<id>copy</id>102<phase>package</phase>103<configuration>104<target>105<copy file="${basedir}/target/${artifactId}-${version}.jar" tofile="${basedir}/logc.jar"/>106</target>107</configuration>108<goals>109<goal>run</goal>110</goals>111</execution>112</executions>113</plugin>114</plugins>115</build>116</project>117