Download snakeyaml-1.21.jar file

Introduction

You can download snakeyaml-1.21.jar in this page.

License

Apache License Version 2.0

Type List

snakeyaml-1.21.jar file has the following types.

META-INF/MANIFEST.MF
META-INF/maven/org.yaml/snakeyaml/pom.properties
META-INF/maven/org.yaml/snakeyaml/pom.xml
org.yaml.snakeyaml.DumperOptions.class
org.yaml.snakeyaml.LoaderOptions.class
org.yaml.snakeyaml.TypeDescription.class
org.yaml.snakeyaml.Yaml.class
org.yaml.snakeyaml.composer.Composer.class
org.yaml.snakeyaml.composer.ComposerException.class
org.yaml.snakeyaml.constructor.AbstractConstruct.class
org.yaml.snakeyaml.constructor.BaseConstructor.class
org.yaml.snakeyaml.constructor.Construct.class
org.yaml.snakeyaml.constructor.Constructor.class
org.yaml.snakeyaml.constructor.ConstructorException.class
org.yaml.snakeyaml.constructor.CustomClassLoaderConstructor.class
org.yaml.snakeyaml.constructor.DuplicateKeyException.class
org.yaml.snakeyaml.constructor.SafeConstructor.class
org.yaml.snakeyaml.emitter.Emitable.class
org.yaml.snakeyaml.emitter.Emitter.class
org.yaml.snakeyaml.emitter.EmitterException.class
org.yaml.snakeyaml.emitter.EmitterState.class
org.yaml.snakeyaml.emitter.ScalarAnalysis.class
org.yaml.snakeyaml.error.Mark.class
org.yaml.snakeyaml.error.MarkedYAMLException.class
org.yaml.snakeyaml.error.YAMLException.class
org.yaml.snakeyaml.events.AliasEvent.class
org.yaml.snakeyaml.events.CollectionEndEvent.class
org.yaml.snakeyaml.events.CollectionStartEvent.class
org.yaml.snakeyaml.events.DocumentEndEvent.class
org.yaml.snakeyaml.events.DocumentStartEvent.class
org.yaml.snakeyaml.events.Event.class
org.yaml.snakeyaml.events.ImplicitTuple.class
org.yaml.snakeyaml.events.MappingEndEvent.class
org.yaml.snakeyaml.events.MappingStartEvent.class
org.yaml.snakeyaml.events.NodeEvent.class
org.yaml.snakeyaml.events.ScalarEvent.class
org.yaml.snakeyaml.events.SequenceEndEvent.class
org.yaml.snakeyaml.events.SequenceStartEvent.class
org.yaml.snakeyaml.events.StreamEndEvent.class
org.yaml.snakeyaml.events.StreamStartEvent.class
org.yaml.snakeyaml.extensions.compactnotation.CompactConstructor.class
org.yaml.snakeyaml.extensions.compactnotation.CompactData.class
org.yaml.snakeyaml.extensions.compactnotation.PackageCompactConstructor.class
org.yaml.snakeyaml.external.biz.base64Coder.Base64Coder.class
org.yaml.snakeyaml.external.com.google.gdata.util.common.base.Escaper.class
org.yaml.snakeyaml.external.com.google.gdata.util.common.base.PercentEscaper.class
org.yaml.snakeyaml.external.com.google.gdata.util.common.base.UnicodeEscaper.class
org.yaml.snakeyaml.introspector.BeanAccess.class
org.yaml.snakeyaml.introspector.FieldProperty.class
org.yaml.snakeyaml.introspector.GenericProperty.class
org.yaml.snakeyaml.introspector.MethodProperty.class
org.yaml.snakeyaml.introspector.MissingProperty.class
org.yaml.snakeyaml.introspector.Property.class
org.yaml.snakeyaml.introspector.PropertySubstitute.class
org.yaml.snakeyaml.introspector.PropertyUtils.class
org.yaml.snakeyaml.nodes.AnchorNode.class
org.yaml.snakeyaml.nodes.CollectionNode.class
org.yaml.snakeyaml.nodes.MappingNode.class
org.yaml.snakeyaml.nodes.Node.class
org.yaml.snakeyaml.nodes.NodeId.class
org.yaml.snakeyaml.nodes.NodeTuple.class
org.yaml.snakeyaml.nodes.ScalarNode.class
org.yaml.snakeyaml.nodes.SequenceNode.class
org.yaml.snakeyaml.nodes.Tag.class
org.yaml.snakeyaml.parser.Parser.class
org.yaml.snakeyaml.parser.ParserException.class
org.yaml.snakeyaml.parser.ParserImpl.class
org.yaml.snakeyaml.parser.Production.class
org.yaml.snakeyaml.parser.VersionTagsTuple.class
org.yaml.snakeyaml.reader.ReaderException.class
org.yaml.snakeyaml.reader.StreamReader.class
org.yaml.snakeyaml.reader.UnicodeReader.class
org.yaml.snakeyaml.representer.BaseRepresenter.class
org.yaml.snakeyaml.representer.Represent.class
org.yaml.snakeyaml.representer.Representer.class
org.yaml.snakeyaml.representer.SafeRepresenter.class
org.yaml.snakeyaml.resolver.Resolver.class
org.yaml.snakeyaml.resolver.ResolverTuple.class
org.yaml.snakeyaml.scanner.Constant.class
org.yaml.snakeyaml.scanner.Scanner.class
org.yaml.snakeyaml.scanner.ScannerException.class
org.yaml.snakeyaml.scanner.ScannerImpl.class
org.yaml.snakeyaml.scanner.SimpleKey.class
org.yaml.snakeyaml.serializer.AnchorGenerator.class
org.yaml.snakeyaml.serializer.NumberAnchorGenerator.class
org.yaml.snakeyaml.serializer.Serializer.class
org.yaml.snakeyaml.serializer.SerializerException.class
org.yaml.snakeyaml.tokens.AliasToken.class
org.yaml.snakeyaml.tokens.AnchorToken.class
org.yaml.snakeyaml.tokens.BlockEndToken.class
org.yaml.snakeyaml.tokens.BlockEntryToken.class
org.yaml.snakeyaml.tokens.BlockMappingStartToken.class
org.yaml.snakeyaml.tokens.BlockSequenceStartToken.class
org.yaml.snakeyaml.tokens.CommentToken.class
org.yaml.snakeyaml.tokens.DirectiveToken.class
org.yaml.snakeyaml.tokens.DocumentEndToken.class
org.yaml.snakeyaml.tokens.DocumentStartToken.class
org.yaml.snakeyaml.tokens.FlowEntryToken.class
org.yaml.snakeyaml.tokens.FlowMappingEndToken.class
org.yaml.snakeyaml.tokens.FlowMappingStartToken.class
org.yaml.snakeyaml.tokens.FlowSequenceEndToken.class
org.yaml.snakeyaml.tokens.FlowSequenceStartToken.class
org.yaml.snakeyaml.tokens.KeyToken.class
org.yaml.snakeyaml.tokens.ScalarToken.class
org.yaml.snakeyaml.tokens.StreamEndToken.class
org.yaml.snakeyaml.tokens.StreamStartToken.class
org.yaml.snakeyaml.tokens.TagToken.class
org.yaml.snakeyaml.tokens.TagTuple.class
org.yaml.snakeyaml.tokens.Token.class
org.yaml.snakeyaml.tokens.ValueToken.class
org.yaml.snakeyaml.tokens.WhitespaceToken.class
org.yaml.snakeyaml.util.ArrayStack.class
org.yaml.snakeyaml.util.ArrayUtils.class
org.yaml.snakeyaml.util.PlatformFeatureDetector.class
org.yaml.snakeyaml.util.UriEncoder.class

Pom

snakeyaml-1.21.pom file content.

<?xml version="1.0" encoding="utf-8"?>
<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.yaml</groupId>
    <artifactId>snakeyaml</artifactId>
    <version>1.21</version>
    <packaging>bundle</packaging>
    <properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <project.scm.id>bitbucket</project.scm.id>
        <release.repo.url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</release.repo.url>
        <snapshot.repo.url>https://oss.sonatype.org/content/repositories/snapshots/</snapshot.repo.url>
        <maven.compiler.source>1.6</maven.compiler.source>
        <maven.compiler.target>1.6</maven.compiler.target>
        <maven.javadoc.failOnError>false</maven.javadoc.failOnError>
        <spring.version>3.2.17.RELEASE</spring.version>
        <maven-bundle-plugin.version>3.5.0</maven-bundle-plugin.version>
        <cobertura-maven-plugin.version>2.7</cobertura-maven-plugin.version>
        <maven-site-plugin.version>3.6</maven-site-plugin.version>
        <maven-surefire-plugin.version>2.19.1</maven-surefire-plugin.version>
        <jdk9-illegal-access-level>deny</jdk9-illegal-access-level>
    </properties>
    <name>SnakeYAML</name>
    <description>YAML 1.1 parser and emitter for Java</description>
    <inceptionYear>2008</inceptionYear>
    <url>http://www.snakeyaml.org</url>
    <issueManagement>
        <system>Bitbucket</system>
        <url>https://bitbucket.org/asomov/snakeyaml/issues</url>
    </issueManagement>
    <!--ciManagement>
        <system>jenkins</system>
        <url>https://snakeyaml.ci.cloudbees.com/job/SnakeYAML/</url>
    </ciManagement-->
    <mailingLists>
        <mailingList>
            <name>SnakeYAML developers and users List</name>
            <post>snakeyaml-core@googlegroups.com</post>
        </mailingList>
    </mailingLists>
    <scm>
        <connection>scm:hg:http://bitbucket.org/asomov/snakeyaml</connection>
        <developerConnection>scm:hg:ssh://hg@bitbucket.org/asomov/snakeyaml</developerConnection>
        <url>https://bitbucket.org/asomov/snakeyaml/src</url>
        <tag>snakeyaml-1.21</tag>
    </scm>
    <licenses>
        <license>
            <name>Apache License, Version 2.0</name>
            <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
            <distribution>repo</distribution>
        </license>
    </licenses>
    <developers>
        <developer>
            <id>asomov</id>
            <name>Andrey Somov</name>
            <email>public.somov@gmail.com</email>
        </developer>
        <developer>
            <id>maslovalex</id>
            <name>Alexander Maslov</name>
            <email>alexander.maslov@gmail.com</email>
        </developer>
        <developer>
            <id>Jordan</id>
            <name>Jordan Angold</name>
            <email>jordanangold@gmail.com</email>
        </developer>
    </developers>
    <dependencies>
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <version>4.12</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.apache.commons</groupId>
            <artifactId>commons-lang3</artifactId>
            <version>3.4</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>commons-io</groupId>
            <artifactId>commons-io</artifactId>
            <version>2.5</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-core</artifactId>
            <version>${spring.version}</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-beans</artifactId>
            <version>${spring.version}</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-context-support</artifactId>
            <version>${spring.version}</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.apache.velocity</groupId>
            <artifactId>velocity</artifactId>
            <version>1.6.2</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>joda-time</groupId>
            <artifactId>joda-time</artifactId>
            <version>1.6</version>
            <scope>test</scope>
        </dependency>
    </dependencies>
    <distributionManagement>
        <repository>
            <id>sonatype-nexus-staging</id>
            <name>Nexus Release Repository</name>
            <url>${release.repo.url}</url>
        </repository>
        <snapshotRepository>
            <id>sonatype-nexus-staging</id>
            <name>Sonatype Nexus Snapshots</name>
            <url>${snapshot.repo.url}</url>
            <uniqueVersion>false</uniqueVersion>
        </snapshotRepository>
    </distributionManagement>
    <build>
        <testResources>
            <testResource>
                <directory>${basedir}/src/test/resources</directory>
                <filtering>true</filtering>
            </testResource>
        </testResources>
        <pluginManagement>
            <plugins>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-javadoc-plugin</artifactId>
                    <version>2.10.4</version>
                    <configuration>
                        <excludePackageNames>org.yaml.snakeyaml.external.*</excludePackageNames>
                    </configuration>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-site-plugin</artifactId>
                    <version>${maven-site-plugin.version}</version>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-jar-plugin</artifactId>
                    <version>3.0.2</version>
                </plugin>
                <plugin>
                    <groupId>org.codehaus.mojo</groupId>
                    <artifactId>cobertura-maven-plugin</artifactId>
                    <version>${cobertura-maven-plugin.version}</version>
                </plugin>
                <plugin>
                  <groupId>org.apache.maven.plugins</groupId>
                  <artifactId>maven-compiler-plugin</artifactId>
                  <version>3.6.0</version>
                </plugin>
                <plugin>
                  <groupId>org.codehaus.mojo</groupId>
                  <artifactId>build-helper-maven-plugin</artifactId>
                  <version>1.12</version>
                </plugin>
                <plugin>
                  <groupId>org.apache.maven.plugins</groupId>
                  <artifactId>maven-surefire-plugin</artifactId>
                  <version>${maven-surefire-plugin.version}</version>
                </plugin>
            </plugins>
        </pluginManagement>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-enforcer-plugin</artifactId>
                <version>1.4.1</version>
                <executions>
                    <execution>
                        <id>enforce-maven</id>
                        <goals>
                            <goal>enforce</goal>
                        </goals>
                        <configuration>
                            <rules>
                                <requireMavenVersion>
                                    <version>3.0.5</version>
                                </requireMavenVersion>
                            </rules>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                 <configuration>
                    <source>${maven.compiler.source}</source>
                    <target>${maven.compiler.target}</target>
                    <encoding>${project.build.sourceEncoding}</encoding>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-surefire-plugin</artifactId>
                <configuration>
                    <argLine>-Xmx512m</argLine>
                    <includes>
                        <include>**/*Test.java</include>
                    </includes>
                    <excludes>
                        <exclude>**/StressTest.java</exclude>
                        <exclude>**/ParallelTest.java</exclude>
                    </excludes>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-eclipse-plugin</artifactId>
                <version>2.10</version>
                <configuration>
                    <buildOutputDirectory>bin</buildOutputDirectory>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-changes-plugin</artifactId>
                <version>2.12.1</version>
                <executions>
                    <execution>
                        <id>validate-changes</id>
                        <phase>pre-site</phase>
                        <goals>
                            <goal>changes-validate</goal>
                        </goals>
                        <configuration>
                            <failOnError>true</failOnError>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-source-plugin</artifactId>
                <version>3.0.1</version>
                <executions>
                    <execution>
                        <goals>
                            <goal>jar-no-fork</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-javadoc-plugin</artifactId>
                <configuration>
                    <links>
                        <link>https://docs.oracle.com/javase/6/docs/api/</link>
                    </links>
                </configuration>
                <executions>
                    <execution>
                        <id>attach-javadocs</id>
                        <goals>
                            <goal>jar</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>com.mycila.maven-license-plugin</groupId>
                <artifactId>maven-license-plugin</artifactId>
                <version>1.10.b1</version>
                <configuration>
                    <header>src/etc/header.txt</header>
                    <quiet>false</quiet>
                    <failIfMissing>true</failIfMissing>
                    <aggregate>false</aggregate>
                    <includes>
                        <include>src/**/*.java</include>
                    </includes>
                    <excludes>
                        <exclude>src/main/java/org/yaml/snakeyaml/external/**</exclude>
                    </excludes>
                    <useDefaultExcludes>true</useDefaultExcludes>
                    <useDefaultMapping>true</useDefaultMapping>
                    <strictCheck>true</strictCheck>
                    <encoding>UTF-8</encoding>
                </configuration>
                <executions>
                    <execution>
                        <phase>site</phase>
                        <goals>
                            <goal>format</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>org.apache.felix</groupId>
                <artifactId>maven-bundle-plugin</artifactId>
                <version>${maven-bundle-plugin.version}</version>
                <extensions>true</extensions>
                <configuration>
                    <instructions>
                        <_nouses>true</_nouses>
                        <Export-Package>
                            !org.yaml.snakeyaml.external*,
                            org.yaml.snakeyaml.*;version=${project.version}
                        </Export-Package>
                    </instructions>
                </configuration>
            </plugin>
            <plugin>
                <artifactId>maven-site-plugin</artifactId>
                <version>${maven-site-plugin.version}</version>
                <executions>
                    <execution>
                        <id>attach-descriptor</id>
                        <goals>
                            <goal>attach-descriptor</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-release-plugin</artifactId>
                <version>2.5.3</version>
                <configuration>
                    <autoVersionSubmodules>true</autoVersionSubmodules>
                    <useReleaseProfile>false</useReleaseProfile>
                    <releaseProfiles>android,release</releaseProfiles>
                    <goals>deploy nexus-staging:release</goals>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.sonatype.plugins</groupId>
                <artifactId>nexus-staging-maven-plugin</artifactId>
                <version>1.6.7</version>
                <extensions>true</extensions>
                <configuration>
                    <serverId>sonatype-nexus-staging</serverId>
                    <nexusUrl>https://oss.sonatype.org/</nexusUrl>
                    <autoReleaseAfterClose>false</autoReleaseAfterClose>
                </configuration>
            </plugin>
        </plugins>
    </build>
    <reporting>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-changes-plugin</artifactId>
                <version>2.11</version>
                <configuration>
                    <issueLinkTemplate>https://bitbucket.org/asomov/snakeyaml/issues/%ISSUE%</issueLinkTemplate>
                </configuration>
                <reportSets>
                    <reportSet>
                        <reports>
                            <report>changes-report</report>
                        </reports>
                    </reportSet>
                </reportSets>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-surefire-report-plugin</artifactId>
                <version>${maven-surefire-plugin.version}</version>
                <configuration>
                    <showSuccess>true</showSuccess>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-javadoc-plugin</artifactId>
                <reportSets>
                    <reportSet>
                        <id>html</id>
                        <configuration>
                            <doctitle>API for ${project.name} ${project.version}</doctitle>
                            <windowtitle>API for ${project.name} ${project.version}</windowtitle>
                            <testDoctitle>Test API for ${project.name} ${project.version}</testDoctitle>
                            <testWindowtitle>Test API for ${project.name} ${project.version}</testWindowtitle>
                        </configuration>
                        <reports>
                            <report>javadoc</report>
                        </reports>
                    </reportSet>
                </reportSets>
            </plugin>
        </plugins>
    </reporting>
    <profiles>
        <profile>
            <id>toolchain</id>
            <activation>
                <file>
                    <exists>${user.home}/.m2/toolchains.xml</exists>
                </file>
            </activation>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-toolchains-plugin</artifactId>
                        <version>1.1</version>
                        <executions>
                            <execution>
                                <phase>validate</phase>
                                <goals>
                                    <goal>toolchain</goal>
                                </goals>
                            </execution>
                        </executions>
                        <configuration>
                            <toolchains>
                                <jdk>
                                    <version>${maven.compiler.target}</version>
                                </jdk>
                            </toolchains>
                        </configuration>
                    </plugin>
                </plugins>
            </build>
        </profile>
        <profile>
            <id>build-is-under-jdk6</id>
            <activation>
                <jdk>1.6</jdk>
            </activation>
            <properties>
                <maven-bundle-plugin.version>2.5.4</maven-bundle-plugin.version>
            </properties>
        </profile>
        <profile>
            <id>with-coverage</id>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.codehaus.mojo</groupId>
                        <artifactId>cobertura-maven-plugin</artifactId>
                        <configuration>
                            <check>
                                <totalBranchRate>80</totalBranchRate>
                                <totalLineRate>95</totalLineRate>
                            </check>
                            <formats>
                                <format>html</format>
                                <format>xml</format>
                            </formats>
                            <instrumentation>
                                <excludes>
                                    <exclude>org/yaml/snakeyaml/external/**</exclude>
                                </excludes>
                            </instrumentation>
                        </configuration>
                        <executions>
                            <execution>
                                <goals>
                                    <goal>clean</goal>
                                    <goal>check</goal>
                                </goals>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
            </build>
            <reporting>
                <plugins>
                    <plugin>
                        <groupId>org.codehaus.mojo</groupId>
                        <artifactId>cobertura-maven-plugin</artifactId>
                        <configuration>
                            <check>
                                <branchRate>85</branchRate>
                                <lineRate>85</lineRate>
                                <haltOnFailure>true</haltOnFailure>
                            </check>
                            <formats>
                                <format>html</format>
                                <format>xml</format>
                            </formats>
                        </configuration>
                        <reportSets>
                            <reportSet>
                                <reports>
                                    <report>cobertura</report>
                                </reports>
                            </reportSet>
                        </reportSets>
                    </plugin>
                </plugins>
            </reporting>
        </profile>
        <profile>
            <id>with-java8-tests</id>
            <properties>
                <maven.compiler.source>1.8</maven.compiler.source>
                <maven.compiler.target>1.8</maven.compiler.target>
            </properties>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.codehaus.mojo</groupId>
                        <artifactId>build-helper-maven-plugin</artifactId>
                        <executions>
                            <execution>
                                <id>add-java8-test-source</id>
                                <phase>generate-test-sources</phase>
                                <goals>
                                    <goal>add-test-source</goal>
                                </goals>
                                <configuration>
                                    <sources>
                                        <source>${basedir}/src/test/java7/</source>
                                        <source>${basedir}/src/test/java8/</source>
                                    </sources>
                                </configuration>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
            </build>
        </profile>
        <profile>
          <id>with-java9-tests</id>
          <properties>
            <maven.compiler.source>9</maven.compiler.source>
            <maven.compiler.target>9</maven.compiler.target>
          </properties>
          <build>
            <plugins>
              <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-surefire-plugin</artifactId>
                <configuration>
                  <argLine>--illegal-access=${jdk9-illegal-access-level} -Xmx512m</argLine>
                </configuration>
              </plugin>
              <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <configuration>
                  <compilerArgs>
                    <!-- arg>-Xlint:unchecked</arg -->
                    <arg>-Xlint:deprecation</arg>
                  </compilerArgs>
                </configuration>
              </plugin>
              <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>build-helper-maven-plugin</artifactId>
                <executions>
                  <execution>
                    <id>add-java9-test-source</id>
                    <phase>generate-test-sources</phase>
                    <goals>
                      <goal>add-test-source</goal>
                    </goals>
                    <configuration>
                      <sources>
                        <source>${basedir}/src/test/java7/</source>
                        <source>${basedir}/src/test/java8/</source>
                        <source>${basedir}/src/test/java9/</source>
                      </sources>
                    </configuration>
                  </execution>
                </executions>
              </plugin>
            </plugins>
          </build>
        </profile>
        <profile>
            <id>release</id>
            <activation>
                <property>
                    <name>performRelease</name>
                    <value>true</value>
                </property>
            </activation>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-gpg-plugin</artifactId>
                        <version>1.6</version>
                        <executions>
                            <execution>
                                <id>sign-artifacts</id>
                                <phase>verify</phase>
                                <goals>
                                    <goal>sign</goal>
                                </goals>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
            </build>
        </profile>
        <profile>
            <id>findbugs</id>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.codehaus.mojo</groupId>
                        <artifactId>findbugs-maven-plugin</artifactId>
                        <version>3.0.4</version>
                    </plugin>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-pmd-plugin</artifactId>
                        <version>3.7</version>
                    </plugin>
                </plugins>
            </build>
            <reporting>
                <plugins>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-jxr-plugin</artifactId>
                        <version>2.5</version>
                    </plugin>
                    <plugin>
                        <groupId>org.codehaus.mojo</groupId>
                        <artifactId>findbugs-maven-plugin</artifactId>
                        <version>3.0.4</version>
                    </plugin>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-pmd-plugin</artifactId>
                        <version>3.6</version>
                        <configuration>
                            <linkXref>true</linkXref>
                            <sourceEncoding>utf-8</sourceEncoding>
                            <minimumTokens>100</minimumTokens>
                            <targetJdk>1.5</targetJdk>
                            <excludes>
                                <exclude>**/external/*.java</exclude>
                            </excludes>
                        </configuration>
                    </plugin>
                </plugins>
            </reporting>
        </profile>
        <profile>
            <id>android</id>
            <properties>
                <android.src>${project.build.directory}/android/src</android.src>
                <android.src.main>${android.src}/main/java</android.src.main>
                <android.src.test>${android.src}/test/java</android.src.test>
                <android.classes>${project.build.directory}/android/classes/</android.classes>
                <android.test.classes>${project.build.directory}/android/test-classes/</android.test.classes>
            </properties>
            <build>
                <plugins>
                    <plugin>
                        <artifactId>maven-resources-plugin</artifactId>
                        <version>3.0.2</version>
                        <executions>
                            <execution>
                                <id>copy-src-for-android</id>
                                <phase>generate-sources</phase>
                                <goals>
                                    <goal>copy-resources</goal>
                                </goals>
                                <configuration>
                                    <outputDirectory>${android.src.main}</outputDirectory>
                                    <resources>
                                        <resource>
                                            <directory>${basedir}/src/main/java</directory>
                                            <filtering>false</filtering>
                                            <excludes>
                                                <exclude>org/yaml/snakeyaml/introspector/MethodProperty.java</exclude>
                                            </excludes>
                                        </resource>
                                    </resources>
                                </configuration>
                            </execution>
                            <execution>
                                <id>copy-test-src-for-android</id>
                                <phase>generate-sources</phase>
                                <goals>
                                    <goal>copy-resources</goal>
                                </goals>
                                <configuration>
                                    <outputDirectory>${android.src.test}</outputDirectory>
                                    <resources>
                                        <resource>
                                            <directory>${basedir}/src/test/java</directory>
                                            <filtering>false</filtering>
                                            <excludes>
                                                <exclude>org/yaml/snakeyaml/introspector/MethodProperty.java</exclude>
                                            </excludes>
                                        </resource>
                                    </resources>
                                </configuration>
                            </execution>
                            <execution>
                                <id>copy-test-resources-for-android</id>
                                <phase>process-test-resources</phase>
                                <goals>
                                    <goal>copy-resources</goal>
                                </goals>
                                <configuration>
                                    <outputDirectory>${android.test.classes}</outputDirectory>
                                    <resources>
                                        <resource>
                                            <directory>${basedir}/src/test/resources</directory>
                                            <filtering>true</filtering>
                                        </resource>
                                    </resources>
                                </configuration>
                            </execution>
                        </executions>
                    </plugin>

                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-patch-plugin</artifactId>
                        <version>1.2</version>
                        <configuration>
                            <patchDirectory>${basedir}/src/patches/android/</patchDirectory>
                            <targetDirectory>${android.src}</targetDirectory>
                            <skipApplication>false</skipApplication>
                            <strip>2</strip>
                        </configuration>
                        <executions>
                            <execution>
                                <id>android-patches</id>
                                <phase>process-sources</phase>
                                <goals>
                                    <goal>apply</goal>
                                </goals>
                                <configuration>
                                    <patchTrackingFile>${project.build.directory}/android/patches-applied.txt</patchTrackingFile>
                                    <naturalOrderProcessing>true</naturalOrderProcessing>
                                </configuration>
                            </execution>
                        </executions>
                    </plugin>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-antrun-plugin</artifactId>
                        <version>1.8</version>
                        <executions>
                            <execution>
                                <id>build-for-android</id>
                                <phase>compile</phase>
                                <goals>
                                    <goal>run</goal>
                                </goals>
                                <configuration>
                                    <target>
                                        <mkdir dir="${android.classes}" />
                                        <mkdir dir="${android.test.classes}" />

                                        <!-- compile patched sources -->
                                        <javac srcdir="${android.src.main}" destdir="${android.classes}" classpath="${android.classes}" encoding="${project.build.sourceEncoding}" target="1.6" source="1.6" debug="true" includeantruntime="false" fork="true" />

                                        <!-- compile test classes. Exclude some - not for BeanAccess.FIELD -->
                                        <javac srcdir="${android.src.test}:${basedir}/src/test/resources" destdir="${android.test.classes}" classpath="${android.classes}:${android.test.classes}:${junit:junit:jar}:${org.springframework:spring-core:jar}:${org.springframework:spring-beans:jar}:${org.springframework:spring-context:jar}:${org.apache.velocity:velocity:jar}:${joda-time:joda-time:jar}:${commons-io:commons-io:jar}:${commons-lang:commons-lang:jar}:${org.hamcrest:hamcrest-core:jar}" encoding="${project.build.sourceEncoding}" target="1.6" source="1.6" debug="true" includeantruntime="false" fork="true">

                                            <exclude name="org/yaml/snakeyaml/introspector/MethodPropertyTest.java" />
                                            <exclude name="org/yaml/snakeyaml/representer/FilterPropertyToDumpTest.java" />
                                            <exclude name="org/yaml/snakeyaml/issues/issue60/CustomOrderTest.java" />
                                            <exclude name="org/yaml/snakeyaml/issues/issue29/FlexibleScalarStylesInJavaBeanTest.java" />
                                            <!-- uses filtered resources. Addidional tricks needed to be able to run under current build -->
                                            <exclude name="org/yaml/snakeyaml/issues/issue318/ContextClassLoaderTest.java" />
                                        </javac>
                                    </target>

                                </configuration>
                            </execution>
                        </executions>
                    </plugin>
                    <plugin>
                        <artifactId>maven-surefire-plugin</artifactId>
                        <executions>
                            <execution>
                                <id>test-android</id>
                                <phase>test</phase>
                                <goals>
                                    <goal>test</goal>
                                </goals>
                                <configuration>
                                    <classesDirectory>${android.classes}</classesDirectory>
                                    <reportsDirectory>${project.build.directory}/android/surefire-reports
                                    </reportsDirectory>
                                    <testClassesDirectory>${android.test.classes}</testClassesDirectory>
                                    <!--
                                    We ignore test failures for android build at the moment.
                                    Most of the FAILs are because of testing with "property" not "field" access.
                                    But we still fail whole build if there are test errors.
                                    -->
                                    <testFailureIgnore>true</testFailureIgnore>
                                </configuration>
                            </execution>
                        </executions>
                    </plugin>
                    <plugin>
                        <artifactId>maven-jar-plugin</artifactId>
                        <executions>
                            <execution>
                                <id>package-android-jar</id>
                                <phase>package</phase>
                                <goals>
                                    <goal>jar</goal>
                                </goals>
                                <configuration>
                                    <classesDirectory>${android.classes}</classesDirectory>
                                    <classifier>android</classifier>
                                </configuration>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
            </build>
        </profile>
    </profiles>
</project>

POM Entry

<dependency>
   <groupId>org.yaml</groupId>
   <artifactId>snakeyaml</artifactId>
   <version>1.21</version>
</dependency>

Download

If you think the following snakeyaml-1.21.jar downloaded from Maven central repository is inappropriate, such as containing malicious code/tools or violating the copyright, please email , thanks.



Download snakeyaml-1.21.jar file




PreviousNext

Related