This is an automated email from the ASF dual-hosted git repository. piotrz pushed a commit to branch release/0.9.6 in repository https://gitbox.apache.org/repos/asf/royale-compiler.git
commit 739e3191393386d12665b63370bc2646ccf23f92 Author: Piotr Zarzycki <[email protected]> AuthorDate: Tue Sep 10 12:06:36 2019 +0200 Revert commit: 36a60842ea667eee7d2eeddeb8ab1569d11a667a --- compiler/pom.xml | 1246 +++++++++++++++++------------------ pom.xml | 1474 +++++++++++++++++++++--------------------- royaleunit-ant-tasks/pom.xml | 134 ++-- 3 files changed, 1427 insertions(+), 1427 deletions(-) diff --git a/compiler/pom.xml b/compiler/pom.xml index 27c62d8..842b863 100644 --- a/compiler/pom.xml +++ b/compiler/pom.xml @@ -1,623 +1,623 @@ -<?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> - <groupId>org.apache.royale.compiler</groupId> - <artifactId>royale-compiler-parent</artifactId> - <version>0.9.7-SNAPSHOT</version> - </parent> - - <artifactId>compiler</artifactId> - <version>0.9.7-SNAPSHOT</version> - - <name>Apache Royale: Compiler: Compiler</name> - <description>The Apache Royale Compiler</description> - - <build> - <plugins> - <plugin> - <groupId>io.github.zlika</groupId> - <artifactId>reproducible-build-maven-plugin</artifactId> - <version>0.9</version> - </plugin> - <plugin> - <artifactId>maven-resources-plugin</artifactId> - <version>3.1.0</version> - <executions> - <execution> - <id>copy-externc-resources</id> - <phase>process-test-resources</phase> - <goals> - <goal>copy-resources</goal> - </goals> - <configuration> - <outputDirectory>${basedir}/../compiler-externc/target</outputDirectory> - <resources> - <resource> - <directory>${basedir}/../compiler-externc/src/test/config</directory> - </resource> - </resources> - </configuration> - </execution> - <execution> - <id>copy-custom-resources</id> - <phase>process-test-resources</phase> - <goals> - <goal>copy-resources</goal> - </goals> - <configuration> - <outputDirectory>${basedir}/target</outputDirectory> - <resources> - <resource> - <directory>${basedir}/src/test/config</directory> - </resource> - </resources> - </configuration> - </execution> - </executions> - </plugin> - <!-- - Do all the JFlex code generation - --> - <plugin> - <groupId>de.jflex</groupId> - <artifactId>maven-jflex-plugin</artifactId> - <version>1.4.3</version> - <executions> - <execution> - <id>generate-raw-as-tokenizer</id> - <goals> - <goal>generate</goal> - </goals> - <configuration> - <outputDirectory>target/generated-sources/jflex</outputDirectory> - <lexDefinitions> - <lexDefinition>src/main/jflex/org/apache/royale/compiler/internal/parsing/as/RawASTokenizer.lex</lexDefinition> - </lexDefinitions> - <skeleton>src/main/jflex/org/apache/royale/compiler/internal/parsing/as/skeleton.royale</skeleton> - </configuration> - </execution> - <execution> - <id>generate-raw-as-doc-tokenizer</id> - <goals> - <goal>generate</goal> - </goals> - <configuration> - <outputDirectory>target/generated-sources/jflex</outputDirectory> - <lexDefinitions> - <lexDefinition>src/main/jflex/org/apache/royale/compiler/internal/parsing/as/RawASDocTokenizer.lex</lexDefinition> - </lexDefinitions> - <skeleton>src/main/jflex/org/apache/royale/compiler/internal/parsing/as/skeleton.default</skeleton> - </configuration> - </execution> - <execution> - <id>generate-raw-mxml-tokenizer</id> - <goals> - <goal>generate</goal> - </goals> - <configuration> - <outputDirectory>target/generated-sources/jflex</outputDirectory> - <lexDefinitions> - <lexDefinition>src/main/jflex/org/apache/royale/compiler/internal/parsing/mxml/RawMXMLTokenizer.lex</lexDefinition> - </lexDefinitions> - </configuration> - </execution> - </executions> - </plugin> - <!-- - Do all the Antlr2 code generation - --> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-antlr-plugin</artifactId> - <version>2.0-beta-1</version> - <executions> - <execution> - <id>generate-as-parser</id> - <goals> - <goal>generate</goal> - </goals> - <configuration> - <grammars>org/apache/royale/compiler/internal/parsing/as/ASParser.g</grammars> - </configuration> - </execution> - </executions> - <dependencies> - <dependency> - <groupId>antlr</groupId> - <artifactId>antlr</artifactId> - <version>2.7.7</version> - </dependency> - </dependencies> - </plugin> - - <!-- - The generation of the metadata-parser requires Antlr to - load ImportMetadataTokenTypes.txt. Unfortunately Altlr - looks in the current working directory. The only way to - force it to work, is to start a new process with the - working directory in the directory containing the file. - --> - <plugin> - <groupId>org.codehaus.mojo</groupId> - <artifactId>exec-maven-plugin</artifactId> - <version>1.5.0</version> - <executions> - <execution> - <id>generate-metadata-parser</id> - <phase>generate-sources</phase> - <goals> - <goal>exec</goal> - </goals> - <configuration> - <executable>java</executable> - <arguments> - <argument>-classpath</argument> - <classpath /> - <arguments>antlr.Tool</arguments> - <argument>-o</argument> - <argument>../../../../../../../../../../target/generated-sources/antlr/org/apache/royale/compiler/internal/parsing/as</argument> - <argument>MetadataParser.g</argument> - </arguments> - <workingDirectory>src/main/antlr/org/apache/royale/compiler/internal/parsing/as</workingDirectory> - <sourceRoot>target/generated-sources/antlr</sourceRoot> - </configuration> - </execution> - <execution> - <id>generate-test-js-typedefs</id> - <phase>test-compile</phase> - <goals> - <goal>exec</goal> - </goals> - <configuration> - <executable>java</executable> - <arguments> - <argument>-classpath</argument> - <classpath /> - <arguments>org.apache.royale.compiler.clients.EXTERNC</arguments> - <argument>-load-config+=../compiler-externc/src/test/config/externc-config.xml</argument> - </arguments> - </configuration> - </execution> - <execution> - <id>generate-test-js-swc</id> - <phase>test-compile</phase> - <goals> - <goal>exec</goal> - </goals> - <configuration> - <executable>java</executable> - <arguments> - <argument>-classpath</argument> - <classpath /> - <arguments>org.apache.royale.compiler.clients.COMPC</arguments> - <argument>-load-config+=../compiler-externc/target/compile-as-config.xml</argument> - <argument>-output=../compiler-externc/target/js.swc</argument> - </arguments> - </configuration> - </execution> - <execution> - <id>generate-test-custom-swc</id> - <phase>test-compile</phase> - <goals> - <goal>exec</goal> - </goals> - <configuration> - <executable>java</executable> - <arguments> - <argument>-classpath</argument> - <classpath /> - <arguments>org.apache.royale.compiler.clients.COMPC</arguments> - <argument>-load-config+=target/compile-as-config.xml</argument> - <argument>-output=target/custom.swc</argument> - </arguments> - </configuration> - </execution> - </executions> - </plugin> - - <!-- - Do all the JBurg code generation. - --> - <plugin> - <groupId>net.sourceforge.jburg</groupId> - <artifactId>jburg-maven-plugin</artifactId> - <version>1.10.4</version> - <extensions>true</extensions> - <executions> - <execution> - <id>generate-css-emitter</id> - <goals> - <goal>generate</goal> - </goals> - <configuration> - <includes> - <include>CSSEmitter.jbg</include> - </includes> - <sourceDirectory>src/main/jburg/org/apache/royale/compiler/internal/css/codegen</sourceDirectory> - <outputDirectory>target/generated-sources/jburg/org/apache/royale/compiler/internal/css/codegen</outputDirectory> - </configuration> - </execution> - <execution> - <id>generate-cmc-emitter</id> - <goals> - <goal>generate</goal> - </goals> - <configuration> - <includes> - <include>CmcEmitter.jbg</include> - </includes> - <sourceDirectory>src/main/jburg/org/apache/royale/compiler/internal/as/codegen</sourceDirectory> - <outputDirectory>target/generated-sources/jburg/org/apache/royale/compiler/internal/as/codegen</outputDirectory> - </configuration> - </execution> - </executions> - <configuration> - <!-- debug=true generates the "dump" method for Emitters, which is used for debugging --> - <debug>true</debug> - </configuration> - <dependencies> - <!-- this needs to be first in order to patch jburg --> - <dependency> - <groupId>org.apache.royale.compiler</groupId> - <artifactId>compiler-jburg-types</artifactId> - <version>${compiler-jburg-types.version}</version> - </dependency> - <dependency> - <groupId>net.sourceforge.jburg</groupId> - <artifactId>jburg</artifactId> - <version>1.10.3</version> - </dependency> - </dependencies> - </plugin> - - <!-- - Do all the Antlr3 code generation. - --> - <plugin> - <groupId>org.antlr</groupId> - <artifactId>antlr3-maven-plugin</artifactId> - <version>3.5.2</version> - <executions> - <execution> - <id>generate-csslexer-and-cssparser</id> - <goals> - <goal>antlr</goal> - </goals> - <configuration> - <includes> - <include>CSS.g</include> - </includes> - <sourceDirectory>src/main/antlr3/org/apache/royale/compiler/internal/css</sourceDirectory> - <outputDirectory>target/generated-sources/antlr3/org/apache/royale/compiler/internal/css</outputDirectory> - </configuration> - </execution> - <execution> - <id>generate-csstree</id> - <goals> - <goal>antlr</goal> - </goals> - <configuration> - <includes> - <include>CSSTree.g</include> - </includes> - <sourceDirectory>src/main/antlr3/org/apache/royale/compiler/internal/css</sourceDirectory> - <outputDirectory>target/generated-sources/antlr3/org/apache/royale/compiler/internal/css</outputDirectory> - </configuration> - </execution> - </executions> - </plugin> - - <!-- - Do all the custom processing with the royale build tools. - --> - <plugin> - <groupId>org.apache.royale.compiler</groupId> - <artifactId>compiler-build-tools</artifactId> - <version>${compiler-build-tools.version}</version> - <executions> - <execution> - <id>generate-unknown-tree-handler</id> - <goals> - <goal>generate-unknown-tree-handler</goal> - </goals> - <configuration> - <inputFile>org/apache/royale/compiler/internal/as/codegen/UnknownTreeHandlerPatterns.xml</inputFile> - <outputFile>org/apache/royale/compiler/internal/as/codegen/UnknownTreeHandlerPatterns.java</outputFile> - </configuration> - </execution> - <execution> - <id>add-suppress-unused-warnings-annotations</id> - <goals> - <goal>add-class-annotation</goal> - </goals> - <configuration> - <includes> - <include>antlr/org/apache/royale/compiler/internal/parsing/as/ASParser.java</include> - <include>antlr/org/apache/royale/compiler/internal/parsing/as/ASTokenTypes.java</include> - <include>antlr/org/apache/royale/compiler/internal/parsing/as/MetadataTokenTypes.java</include> - </includes> - <annotation>@SuppressWarnings("unused")</annotation> - </configuration> - </execution> - <execution> - <id>add-suppress-all-warnings-annotations-css</id> - <goals> - <goal>add-class-annotation</goal> - </goals> - <configuration> - <includes> - <include>antlr3/org/apache/royale/compiler/internal/css/CSSLexer.java</include> - <include>antlr3/org/apache/royale/compiler/internal/css/CSSParser.java</include> - </includes> - <annotation>@SuppressWarnings("all")</annotation> - <dateStart>// $ANTLR 3.5.2 ***CSS.g</dateStart> - </configuration> - </execution> - <execution> - <id>add-suppress-all-warnings-annotations-csstree</id> - <goals> - <goal>add-class-annotation</goal> - </goals> - <configuration> - <includes> - <include>antlr3/org/apache/royale/compiler/internal/css/CSSTree.java</include> - </includes> - <annotation>@SuppressWarnings("all")</annotation> - <dateStart>// $ANTLR 3.5.2 ***CSSTree.g</dateStart> - </configuration> - </execution> - <execution> - <id>add-suppress-all-warnings-annotations-jburg</id> - <goals> - <goal>add-class-annotation</goal> - </goals> - <configuration> - <includes> - <include>antlr/org/apache/royale/compiler/internal/parsing/as/MetadataParser.java</include> - </includes> - <annotation>@SuppressWarnings("all")</annotation> - </configuration> - </execution> - <execution> - <id>add-suppress-rawtypes-unchecked-unused-warnings-annotations</id> - <goals> - <goal>add-class-annotation</goal> - </goals> - <configuration> - <includes> - <include>jburg/org/apache/royale/compiler/internal/css/codegen/CSSEmitter.java</include> - <include>jburg/org/apache/royale/compiler/internal/as/codegen/CmcEmitter.java</include> - </includes> - <annotation>@SuppressWarnings({"rawtypes", "unchecked", "unused"})</annotation> - <dateStart>/* Generated</dateStart> - <dateEnd> by JBurg</dateEnd> - </configuration> - </execution> - <execution> - <id>generate-problems-enum</id> - <goals> - <goal>generate-problems-enum</goal> - </goals> - </execution> - <execution> - <id>generate-problems-resource-bundle</id> - <goals> - <goal>generate-problems-resource-bundle</goal> - </goals> - </execution> - </executions> - </plugin> - - <!-- Make the surefire execute all unit-tests --> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-surefire-plugin</artifactId> - <version>2.19</version> - <configuration> - <includes> - <include>**/*Tests.java</include> - </includes> - <excludes> - <exclude>as/**/*Tests.java</exclude> - <exclude>f/**</exclude> - <exclude>mxml/tags/**</exclude> - <exclude>properties/**</exclude> - <exclude>**/MXMLComponentTagTests.java</exclude> - <exclude>**/MXMLComponentNodeTests.java</exclude> - <exclude>**/MXMLHTTPServiceTagTests.java</exclude> - <exclude>**/MXMLModelTagTests.java</exclude> - <exclude>**/MXMLRemoteObjectNodeTests.java</exclude> - <exclude>**/MXMLWebServiceNodeTests.java</exclude> - <exclude>**/MXMLDesignLayerNodeTests.java</exclude> - <exclude>**/MXMLHTTPServiceNodeTests.java</exclude> - <exclude>**/MXMLModelNodeTests.java</exclude> - <exclude>**/MXMLRemoteObjectTagTests.java</exclude> - <exclude>**/MXMLStateNodeTests.java</exclude> - <exclude>**/MXMLVectorNodeTests.java</exclude> - <exclude>**/MXMLWebServiceTagTests.java</exclude> - </excludes> - </configuration> - </plugin> - - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-failsafe-plugin</artifactId> - <version>2.18.1</version> - <configuration> - <includes> - <include>as/**/*Tests.java</include> - </includes> - <excludes> - <exclude>f/**</exclude> - <exclude>mxml/tags/**</exclude> - <exclude>properties/**</exclude> - <exclude>**/MXMLComponentTagTests.java</exclude> - <exclude>**/MXMLComponentNodeTests.java</exclude> - <exclude>**/MXMLHTTPServiceTagTests.java</exclude> - <exclude>**/MXMLModelTagTests.java</exclude> - <exclude>**/MXMLRemoteObjectNodeTests.java</exclude> - <exclude>**/MXMLWebServiceNodeTests.java</exclude> - <exclude>**/MXMLDesignLayerNodeTests.java</exclude> - <exclude>**/MXMLHTTPServiceNodeTests.java</exclude> - <exclude>**/MXMLModelNodeTests.java</exclude> - <exclude>**/MXMLRemoteObjectTagTests.java</exclude> - <exclude>**/MXMLStateNodeTests.java</exclude> - <exclude>**/MXMLVectorNodeTests.java</exclude> - <exclude>**/MXMLWebServiceTagTests.java</exclude> - </excludes> - </configuration> - </plugin> - </plugins> - </build> - - <profiles> - <!-- - This profile adds one test, that relies on the original FDK being - available as it compiles each project in the framework/projects - directory. It requires some environment variables being set. - --> - <profile> - <id>include-sdk-compile-tests</id> - <build> - <plugins> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-failsafe-plugin</artifactId> - <configuration> - <includes combine.children="append"> - <include>f/**/*Tests.java</include> - <include>mxml/**/*Tests.java</include> - <include>properties/**/*Tests.java</include> - <include>**/MXMLComponentTagTests.java</include> - <include>**/MXMLComponentNodeTests.java</include> - <include>**/MXMLHTTPServiceTagTests.java</include> - <include>**/MXMLModelTagTests.java</include> - <include>**/MXMLRemoteObjectNodeTests.java</include> - <include>**/MXMLWebServiceNodeTests.java</include> - <include>**/MXMLDesignLayerNodeTests.java</include> - <include>**/MXMLHTTPServiceNodeTests.java</include> - <include>**/MXMLModelNodeTests.java</include> - <include>**/MXMLRemoteObjectTagTests.java</include> - <include>**/MXMLStateNodeTests.java</include> - <include>**/MXMLVectorNodeTests.java</include> - <include>**/MXMLWebServiceTagTests.java</include> - </includes> - </configuration> - </plugin> - </plugins> - </build> - </profile> - </profiles> - - <dependencies> - <dependency> - <groupId>org.apache.royale.compiler</groupId> - <artifactId>compiler-jburg-types</artifactId> - <version>${compiler-jburg-types.version}</version> - </dependency> - <dependency> - <groupId>org.apache.royale.compiler</groupId> - <artifactId>compiler-common</artifactId> - <version>0.9.7-SNAPSHOT</version> - </dependency> - <dependency> - <groupId>org.apache.flex</groupId> - <artifactId>flex-tool-api</artifactId> - <version>1.0.0</version> - </dependency> - <dependency> - <groupId>commons-io</groupId> - <artifactId>commons-io</artifactId> - <version>2.4</version> - </dependency> - <dependency> - <groupId>commons-cli</groupId> - <artifactId>commons-cli</artifactId> - <version>1.2</version> - </dependency> - <dependency> - <groupId>org.antlr</groupId> - <artifactId>antlr</artifactId> - <version>3.3</version> - </dependency> - <dependency> - <groupId>com.google.guava</groupId> - <artifactId>guava</artifactId> - <version>25.1-jre</version> - </dependency> - <dependency> - <groupId>net.sourceforge.jburg</groupId> - <artifactId>jburg</artifactId> - <version>1.10.3</version> - </dependency> - <dependency> - <groupId>de.jflex</groupId> - <artifactId>jflex</artifactId> - <version>1.6.0</version> - <exclusions> - <exclusion> - <groupId>org.apache.ant</groupId> - <artifactId>ant</artifactId> - </exclusion> - </exclusions> - </dependency> - <dependency> - <groupId>org.b1.pack</groupId> - <artifactId>lzma-sdk-4j</artifactId> - <version>9.22.0</version> - </dependency> - - <dependency> - <groupId>org.apache.royale.compiler</groupId> - <artifactId>compiler-test-utils</artifactId> - <version>0.9.7-SNAPSHOT</version> - <scope>test</scope> - </dependency> - <dependency> - <groupId>org.apache.royale.compiler</groupId> - <artifactId>compiler-externc</artifactId> - <version>0.9.7-SNAPSHOT</version> - </dependency> - <dependency> - <groupId>junit</groupId> - <artifactId>junit</artifactId> - <version>4.10</version> - <scope>test</scope> - </dependency> - <!-- TODO: Currently only needed for the duplicate FlashplayerSecurityHandler --> - <dependency> - <groupId>org.apache.commons</groupId> - <artifactId>commons-lang3</artifactId> - <version>3.4</version> - <scope>test</scope> - </dependency> - <dependency> - <groupId>com.adobe.flash.framework</groupId> - <artifactId>playerglobal</artifactId> - <version>${flash.version}</version> - <type>swc</type> - <scope>test</scope> - </dependency> - </dependencies> - -</project> +<?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> + <groupId>org.apache.royale.compiler</groupId> + <artifactId>royale-compiler-parent</artifactId> + <version>0.9.6-SNAPSHOT</version> + </parent> + + <artifactId>compiler</artifactId> + <version>0.9.6-SNAPSHOT</version> + + <name>Apache Royale: Compiler: Compiler</name> + <description>The Apache Royale Compiler</description> + + <build> + <plugins> + <plugin> + <groupId>io.github.zlika</groupId> + <artifactId>reproducible-build-maven-plugin</artifactId> + <version>0.9</version> + </plugin> + <plugin> + <artifactId>maven-resources-plugin</artifactId> + <version>3.1.0</version> + <executions> + <execution> + <id>copy-externc-resources</id> + <phase>process-test-resources</phase> + <goals> + <goal>copy-resources</goal> + </goals> + <configuration> + <outputDirectory>${basedir}/../compiler-externc/target</outputDirectory> + <resources> + <resource> + <directory>${basedir}/../compiler-externc/src/test/config</directory> + </resource> + </resources> + </configuration> + </execution> + <execution> + <id>copy-custom-resources</id> + <phase>process-test-resources</phase> + <goals> + <goal>copy-resources</goal> + </goals> + <configuration> + <outputDirectory>${basedir}/target</outputDirectory> + <resources> + <resource> + <directory>${basedir}/src/test/config</directory> + </resource> + </resources> + </configuration> + </execution> + </executions> + </plugin> + <!-- + Do all the JFlex code generation + --> + <plugin> + <groupId>de.jflex</groupId> + <artifactId>maven-jflex-plugin</artifactId> + <version>1.4.3</version> + <executions> + <execution> + <id>generate-raw-as-tokenizer</id> + <goals> + <goal>generate</goal> + </goals> + <configuration> + <outputDirectory>target/generated-sources/jflex</outputDirectory> + <lexDefinitions> + <lexDefinition>src/main/jflex/org/apache/royale/compiler/internal/parsing/as/RawASTokenizer.lex</lexDefinition> + </lexDefinitions> + <skeleton>src/main/jflex/org/apache/royale/compiler/internal/parsing/as/skeleton.royale</skeleton> + </configuration> + </execution> + <execution> + <id>generate-raw-as-doc-tokenizer</id> + <goals> + <goal>generate</goal> + </goals> + <configuration> + <outputDirectory>target/generated-sources/jflex</outputDirectory> + <lexDefinitions> + <lexDefinition>src/main/jflex/org/apache/royale/compiler/internal/parsing/as/RawASDocTokenizer.lex</lexDefinition> + </lexDefinitions> + <skeleton>src/main/jflex/org/apache/royale/compiler/internal/parsing/as/skeleton.default</skeleton> + </configuration> + </execution> + <execution> + <id>generate-raw-mxml-tokenizer</id> + <goals> + <goal>generate</goal> + </goals> + <configuration> + <outputDirectory>target/generated-sources/jflex</outputDirectory> + <lexDefinitions> + <lexDefinition>src/main/jflex/org/apache/royale/compiler/internal/parsing/mxml/RawMXMLTokenizer.lex</lexDefinition> + </lexDefinitions> + </configuration> + </execution> + </executions> + </plugin> + <!-- + Do all the Antlr2 code generation + --> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-antlr-plugin</artifactId> + <version>2.0-beta-1</version> + <executions> + <execution> + <id>generate-as-parser</id> + <goals> + <goal>generate</goal> + </goals> + <configuration> + <grammars>org/apache/royale/compiler/internal/parsing/as/ASParser.g</grammars> + </configuration> + </execution> + </executions> + <dependencies> + <dependency> + <groupId>antlr</groupId> + <artifactId>antlr</artifactId> + <version>2.7.7</version> + </dependency> + </dependencies> + </plugin> + + <!-- + The generation of the metadata-parser requires Antlr to + load ImportMetadataTokenTypes.txt. Unfortunately Altlr + looks in the current working directory. The only way to + force it to work, is to start a new process with the + working directory in the directory containing the file. + --> + <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>exec-maven-plugin</artifactId> + <version>1.5.0</version> + <executions> + <execution> + <id>generate-metadata-parser</id> + <phase>generate-sources</phase> + <goals> + <goal>exec</goal> + </goals> + <configuration> + <executable>java</executable> + <arguments> + <argument>-classpath</argument> + <classpath /> + <arguments>antlr.Tool</arguments> + <argument>-o</argument> + <argument>../../../../../../../../../../target/generated-sources/antlr/org/apache/royale/compiler/internal/parsing/as</argument> + <argument>MetadataParser.g</argument> + </arguments> + <workingDirectory>src/main/antlr/org/apache/royale/compiler/internal/parsing/as</workingDirectory> + <sourceRoot>target/generated-sources/antlr</sourceRoot> + </configuration> + </execution> + <execution> + <id>generate-test-js-typedefs</id> + <phase>test-compile</phase> + <goals> + <goal>exec</goal> + </goals> + <configuration> + <executable>java</executable> + <arguments> + <argument>-classpath</argument> + <classpath /> + <arguments>org.apache.royale.compiler.clients.EXTERNC</arguments> + <argument>-load-config+=../compiler-externc/src/test/config/externc-config.xml</argument> + </arguments> + </configuration> + </execution> + <execution> + <id>generate-test-js-swc</id> + <phase>test-compile</phase> + <goals> + <goal>exec</goal> + </goals> + <configuration> + <executable>java</executable> + <arguments> + <argument>-classpath</argument> + <classpath /> + <arguments>org.apache.royale.compiler.clients.COMPC</arguments> + <argument>-load-config+=../compiler-externc/target/compile-as-config.xml</argument> + <argument>-output=../compiler-externc/target/js.swc</argument> + </arguments> + </configuration> + </execution> + <execution> + <id>generate-test-custom-swc</id> + <phase>test-compile</phase> + <goals> + <goal>exec</goal> + </goals> + <configuration> + <executable>java</executable> + <arguments> + <argument>-classpath</argument> + <classpath /> + <arguments>org.apache.royale.compiler.clients.COMPC</arguments> + <argument>-load-config+=target/compile-as-config.xml</argument> + <argument>-output=target/custom.swc</argument> + </arguments> + </configuration> + </execution> + </executions> + </plugin> + + <!-- + Do all the JBurg code generation. + --> + <plugin> + <groupId>net.sourceforge.jburg</groupId> + <artifactId>jburg-maven-plugin</artifactId> + <version>1.10.4</version> + <extensions>true</extensions> + <executions> + <execution> + <id>generate-css-emitter</id> + <goals> + <goal>generate</goal> + </goals> + <configuration> + <includes> + <include>CSSEmitter.jbg</include> + </includes> + <sourceDirectory>src/main/jburg/org/apache/royale/compiler/internal/css/codegen</sourceDirectory> + <outputDirectory>target/generated-sources/jburg/org/apache/royale/compiler/internal/css/codegen</outputDirectory> + </configuration> + </execution> + <execution> + <id>generate-cmc-emitter</id> + <goals> + <goal>generate</goal> + </goals> + <configuration> + <includes> + <include>CmcEmitter.jbg</include> + </includes> + <sourceDirectory>src/main/jburg/org/apache/royale/compiler/internal/as/codegen</sourceDirectory> + <outputDirectory>target/generated-sources/jburg/org/apache/royale/compiler/internal/as/codegen</outputDirectory> + </configuration> + </execution> + </executions> + <configuration> + <!-- debug=true generates the "dump" method for Emitters, which is used for debugging --> + <debug>true</debug> + </configuration> + <dependencies> + <!-- this needs to be first in order to patch jburg --> + <dependency> + <groupId>org.apache.royale.compiler</groupId> + <artifactId>compiler-jburg-types</artifactId> + <version>${compiler-jburg-types.version}</version> + </dependency> + <dependency> + <groupId>net.sourceforge.jburg</groupId> + <artifactId>jburg</artifactId> + <version>1.10.3</version> + </dependency> + </dependencies> + </plugin> + + <!-- + Do all the Antlr3 code generation. + --> + <plugin> + <groupId>org.antlr</groupId> + <artifactId>antlr3-maven-plugin</artifactId> + <version>3.5.2</version> + <executions> + <execution> + <id>generate-csslexer-and-cssparser</id> + <goals> + <goal>antlr</goal> + </goals> + <configuration> + <includes> + <include>CSS.g</include> + </includes> + <sourceDirectory>src/main/antlr3/org/apache/royale/compiler/internal/css</sourceDirectory> + <outputDirectory>target/generated-sources/antlr3/org/apache/royale/compiler/internal/css</outputDirectory> + </configuration> + </execution> + <execution> + <id>generate-csstree</id> + <goals> + <goal>antlr</goal> + </goals> + <configuration> + <includes> + <include>CSSTree.g</include> + </includes> + <sourceDirectory>src/main/antlr3/org/apache/royale/compiler/internal/css</sourceDirectory> + <outputDirectory>target/generated-sources/antlr3/org/apache/royale/compiler/internal/css</outputDirectory> + </configuration> + </execution> + </executions> + </plugin> + + <!-- + Do all the custom processing with the royale build tools. + --> + <plugin> + <groupId>org.apache.royale.compiler</groupId> + <artifactId>compiler-build-tools</artifactId> + <version>${compiler-build-tools.version}</version> + <executions> + <execution> + <id>generate-unknown-tree-handler</id> + <goals> + <goal>generate-unknown-tree-handler</goal> + </goals> + <configuration> + <inputFile>org/apache/royale/compiler/internal/as/codegen/UnknownTreeHandlerPatterns.xml</inputFile> + <outputFile>org/apache/royale/compiler/internal/as/codegen/UnknownTreeHandlerPatterns.java</outputFile> + </configuration> + </execution> + <execution> + <id>add-suppress-unused-warnings-annotations</id> + <goals> + <goal>add-class-annotation</goal> + </goals> + <configuration> + <includes> + <include>antlr/org/apache/royale/compiler/internal/parsing/as/ASParser.java</include> + <include>antlr/org/apache/royale/compiler/internal/parsing/as/ASTokenTypes.java</include> + <include>antlr/org/apache/royale/compiler/internal/parsing/as/MetadataTokenTypes.java</include> + </includes> + <annotation>@SuppressWarnings("unused")</annotation> + </configuration> + </execution> + <execution> + <id>add-suppress-all-warnings-annotations-css</id> + <goals> + <goal>add-class-annotation</goal> + </goals> + <configuration> + <includes> + <include>antlr3/org/apache/royale/compiler/internal/css/CSSLexer.java</include> + <include>antlr3/org/apache/royale/compiler/internal/css/CSSParser.java</include> + </includes> + <annotation>@SuppressWarnings("all")</annotation> + <dateStart>// $ANTLR 3.5.2 ***CSS.g</dateStart> + </configuration> + </execution> + <execution> + <id>add-suppress-all-warnings-annotations-csstree</id> + <goals> + <goal>add-class-annotation</goal> + </goals> + <configuration> + <includes> + <include>antlr3/org/apache/royale/compiler/internal/css/CSSTree.java</include> + </includes> + <annotation>@SuppressWarnings("all")</annotation> + <dateStart>// $ANTLR 3.5.2 ***CSSTree.g</dateStart> + </configuration> + </execution> + <execution> + <id>add-suppress-all-warnings-annotations-jburg</id> + <goals> + <goal>add-class-annotation</goal> + </goals> + <configuration> + <includes> + <include>antlr/org/apache/royale/compiler/internal/parsing/as/MetadataParser.java</include> + </includes> + <annotation>@SuppressWarnings("all")</annotation> + </configuration> + </execution> + <execution> + <id>add-suppress-rawtypes-unchecked-unused-warnings-annotations</id> + <goals> + <goal>add-class-annotation</goal> + </goals> + <configuration> + <includes> + <include>jburg/org/apache/royale/compiler/internal/css/codegen/CSSEmitter.java</include> + <include>jburg/org/apache/royale/compiler/internal/as/codegen/CmcEmitter.java</include> + </includes> + <annotation>@SuppressWarnings({"rawtypes", "unchecked", "unused"})</annotation> + <dateStart>/* Generated</dateStart> + <dateEnd> by JBurg</dateEnd> + </configuration> + </execution> + <execution> + <id>generate-problems-enum</id> + <goals> + <goal>generate-problems-enum</goal> + </goals> + </execution> + <execution> + <id>generate-problems-resource-bundle</id> + <goals> + <goal>generate-problems-resource-bundle</goal> + </goals> + </execution> + </executions> + </plugin> + + <!-- Make the surefire execute all unit-tests --> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-surefire-plugin</artifactId> + <version>2.19</version> + <configuration> + <includes> + <include>**/*Tests.java</include> + </includes> + <excludes> + <exclude>as/**/*Tests.java</exclude> + <exclude>f/**</exclude> + <exclude>mxml/tags/**</exclude> + <exclude>properties/**</exclude> + <exclude>**/MXMLComponentTagTests.java</exclude> + <exclude>**/MXMLComponentNodeTests.java</exclude> + <exclude>**/MXMLHTTPServiceTagTests.java</exclude> + <exclude>**/MXMLModelTagTests.java</exclude> + <exclude>**/MXMLRemoteObjectNodeTests.java</exclude> + <exclude>**/MXMLWebServiceNodeTests.java</exclude> + <exclude>**/MXMLDesignLayerNodeTests.java</exclude> + <exclude>**/MXMLHTTPServiceNodeTests.java</exclude> + <exclude>**/MXMLModelNodeTests.java</exclude> + <exclude>**/MXMLRemoteObjectTagTests.java</exclude> + <exclude>**/MXMLStateNodeTests.java</exclude> + <exclude>**/MXMLVectorNodeTests.java</exclude> + <exclude>**/MXMLWebServiceTagTests.java</exclude> + </excludes> + </configuration> + </plugin> + + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-failsafe-plugin</artifactId> + <version>2.18.1</version> + <configuration> + <includes> + <include>as/**/*Tests.java</include> + </includes> + <excludes> + <exclude>f/**</exclude> + <exclude>mxml/tags/**</exclude> + <exclude>properties/**</exclude> + <exclude>**/MXMLComponentTagTests.java</exclude> + <exclude>**/MXMLComponentNodeTests.java</exclude> + <exclude>**/MXMLHTTPServiceTagTests.java</exclude> + <exclude>**/MXMLModelTagTests.java</exclude> + <exclude>**/MXMLRemoteObjectNodeTests.java</exclude> + <exclude>**/MXMLWebServiceNodeTests.java</exclude> + <exclude>**/MXMLDesignLayerNodeTests.java</exclude> + <exclude>**/MXMLHTTPServiceNodeTests.java</exclude> + <exclude>**/MXMLModelNodeTests.java</exclude> + <exclude>**/MXMLRemoteObjectTagTests.java</exclude> + <exclude>**/MXMLStateNodeTests.java</exclude> + <exclude>**/MXMLVectorNodeTests.java</exclude> + <exclude>**/MXMLWebServiceTagTests.java</exclude> + </excludes> + </configuration> + </plugin> + </plugins> + </build> + + <profiles> + <!-- + This profile adds one test, that relies on the original FDK being + available as it compiles each project in the framework/projects + directory. It requires some environment variables being set. + --> + <profile> + <id>include-sdk-compile-tests</id> + <build> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-failsafe-plugin</artifactId> + <configuration> + <includes combine.children="append"> + <include>f/**/*Tests.java</include> + <include>mxml/**/*Tests.java</include> + <include>properties/**/*Tests.java</include> + <include>**/MXMLComponentTagTests.java</include> + <include>**/MXMLComponentNodeTests.java</include> + <include>**/MXMLHTTPServiceTagTests.java</include> + <include>**/MXMLModelTagTests.java</include> + <include>**/MXMLRemoteObjectNodeTests.java</include> + <include>**/MXMLWebServiceNodeTests.java</include> + <include>**/MXMLDesignLayerNodeTests.java</include> + <include>**/MXMLHTTPServiceNodeTests.java</include> + <include>**/MXMLModelNodeTests.java</include> + <include>**/MXMLRemoteObjectTagTests.java</include> + <include>**/MXMLStateNodeTests.java</include> + <include>**/MXMLVectorNodeTests.java</include> + <include>**/MXMLWebServiceTagTests.java</include> + </includes> + </configuration> + </plugin> + </plugins> + </build> + </profile> + </profiles> + + <dependencies> + <dependency> + <groupId>org.apache.royale.compiler</groupId> + <artifactId>compiler-jburg-types</artifactId> + <version>${compiler-jburg-types.version}</version> + </dependency> + <dependency> + <groupId>org.apache.royale.compiler</groupId> + <artifactId>compiler-common</artifactId> + <version>0.9.6-SNAPSHOT</version> + </dependency> + <dependency> + <groupId>org.apache.flex</groupId> + <artifactId>flex-tool-api</artifactId> + <version>1.0.0</version> + </dependency> + <dependency> + <groupId>commons-io</groupId> + <artifactId>commons-io</artifactId> + <version>2.4</version> + </dependency> + <dependency> + <groupId>commons-cli</groupId> + <artifactId>commons-cli</artifactId> + <version>1.2</version> + </dependency> + <dependency> + <groupId>org.antlr</groupId> + <artifactId>antlr</artifactId> + <version>3.3</version> + </dependency> + <dependency> + <groupId>com.google.guava</groupId> + <artifactId>guava</artifactId> + <version>25.1-jre</version> + </dependency> + <dependency> + <groupId>net.sourceforge.jburg</groupId> + <artifactId>jburg</artifactId> + <version>1.10.3</version> + </dependency> + <dependency> + <groupId>de.jflex</groupId> + <artifactId>jflex</artifactId> + <version>1.6.0</version> + <exclusions> + <exclusion> + <groupId>org.apache.ant</groupId> + <artifactId>ant</artifactId> + </exclusion> + </exclusions> + </dependency> + <dependency> + <groupId>org.b1.pack</groupId> + <artifactId>lzma-sdk-4j</artifactId> + <version>9.22.0</version> + </dependency> + + <dependency> + <groupId>org.apache.royale.compiler</groupId> + <artifactId>compiler-test-utils</artifactId> + <version>0.9.6-SNAPSHOT</version> + <scope>test</scope> + </dependency> + <dependency> + <groupId>org.apache.royale.compiler</groupId> + <artifactId>compiler-externc</artifactId> + <version>0.9.6-SNAPSHOT</version> + </dependency> + <dependency> + <groupId>junit</groupId> + <artifactId>junit</artifactId> + <version>4.10</version> + <scope>test</scope> + </dependency> + <!-- TODO: Currently only needed for the duplicate FlashplayerSecurityHandler --> + <dependency> + <groupId>org.apache.commons</groupId> + <artifactId>commons-lang3</artifactId> + <version>3.4</version> + <scope>test</scope> + </dependency> + <dependency> + <groupId>com.adobe.flash.framework</groupId> + <artifactId>playerglobal</artifactId> + <version>${flash.version}</version> + <type>swc</type> + <scope>test</scope> + </dependency> + </dependencies> + +</project> diff --git a/pom.xml b/pom.xml index c88d9a5..74410cd 100644 --- a/pom.xml +++ b/pom.xml @@ -1,737 +1,737 @@ -<?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> - <groupId>org.apache</groupId> - <artifactId>apache</artifactId> - <version>18</version> - </parent> - - <groupId>org.apache.royale.compiler</groupId> - <artifactId>royale-compiler-parent</artifactId> - <version>0.9.7-SNAPSHOT</version> - <packaging>pom</packaging> - - <name>Apache Royale: Compiler: Parent</name> - <description>The Apache Royale Project</description> - - <scm> - <connection>scm:git:https://github.com/apache/royale-compiler.git</connection> - <developerConnection>scm:git:https://github.com/apache/royale-compiler.git</developerConnection> - <url>scm:git:https://github.com/apache/royale-compiler.git</url> - <tag>release/0.9.6</tag> - </scm> - - <properties> - <java.version>1.6</java.version> - <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> - <project.reporting.outputencoding>UTF-8</project.reporting.outputencoding> - <maven.version>3.3.1</maven.version> - - <flex.version>4.15.0</flex.version> - <flash.version>20.0</flash.version> - <air.version>20.0</air.version> - - <jburgTypesRequired>true</jburgTypesRequired> - <skipgpg>false</skipgpg> - <compiler-build-tools.version>1.1.0</compiler-build-tools.version> - <compiler-jburg-types.version>1.1.0</compiler-jburg-types.version> - - <!-- URL of the ASF SonarQube server --> - <sonar.host.url>https://builds.apache.org/analysis</sonar.host.url> - <!-- Tell sonar where the coverage reports are located --> - <sonar.jacoco.reportPath>${project.build.directory}/coverage-reports/jacoco-ut.exec</sonar.jacoco.reportPath> - <sonar.jacoco.itReportPath>${project.build.directory}/coverage-reports/jacoco-it.exec</sonar.jacoco.itReportPath> - <!-- Exclude all generated code --> - <sonar.exclusions>file:**/generated-sources/**</sonar.exclusions> - - <website.path>latest-dev</website.path> - </properties> - - <!-- Only configure the site distribution as the rest is handled by the apache parent --> - <distributionManagement> - <site> - <id>apache.website</id> - <url>scm:git:https://github.com/apache/royale-compiler.git</url> - </site> - </distributionManagement> - - <issueManagement> - <system>GitHub</system> - <url>https://github.com/apache/royale-compiler/issues</url> - </issueManagement> - - <mailingLists> - <mailingList> - <name>Apache Royale User List</name> - <subscribe>[email protected]</subscribe> - <unsubscribe>[email protected]</unsubscribe> - <post>[email protected]</post> - <archive>http://mail-archives.apache.org/mod_mbox/royale-users/</archive> - </mailingList> - <mailingList> - <name>Apache Royale Developer List</name> - <subscribe>[email protected]</subscribe> - <unsubscribe>[email protected]</unsubscribe> - <post>[email protected]</post> - <archive>http://mail-archives.apache.org/mod_mbox/royale-dev/</archive> - </mailingList> - </mailingLists> - - <!-- - As the compiler build uses the jburg plugin which has a dependency on - the compiler-jburg-types artifact that are part of this project. We therefore have - a utils profile, that builds these these artifacts so Maven doesn't fail - as it resolves plugin dependencies before starting the build. - After one build with "-P -main,utils" (don't use main profile, use utils profile - has been built, the default build should be able to do it's job. - --> - <profiles> - <profile> - <id>utils</id> - <activation> - <activeByDefault>false</activeByDefault> - </activation> - <properties> - <jburgTypesRequired>false</jburgTypesRequired> - </properties> - <modules> - <module>compiler-build-tools</module> - <module>compiler-jburg-types</module> - </modules> - <build> - <plugins> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-gpg-plugin</artifactId> - <configuration> - <skip>${skipgpg}</skip><!--true to skip gpg if building release on CI server --> - </configuration> - </plugin> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-release-plugin</artifactId> - <version>2.5.3</version> - <configuration> - <providerImplementations> - <git>jgit</git> - </providerImplementations> - </configuration> - <dependencies> - <dependency> - <groupId>org.apache.maven.scm</groupId> - <artifactId>maven-scm-provider-jgit</artifactId> - <version>1.11.2-SNAPSHOT</version> - </dependency> - <dependency> - <groupId>org.apache.maven.scm</groupId> - <artifactId>maven-scm-api</artifactId> - <version>1.11.2-SNAPSHOT</version> - </dependency> - </dependencies> - </plugin> - </plugins> - </build> - </profile> - <profile> - <id>main</id> - <activation> - <activeByDefault>true</activeByDefault> - </activation> - <modules> - <module>compiler-common</module> - <module>compiler-externc</module> - <module>compiler</module> - <module>compiler-jx</module> - <module>compiler-test-utils</module> - <module>swfutils</module> - <module>debugger</module> - <module>flex-compiler-oem</module> - <module>royale-ant-tasks</module> - <module>royaleunit-ant-tasks</module> - <!--<module>royale-maven-extension</module>--> - <module>royale-maven-plugin</module> - </modules> - <build> - <plugins> - <plugin> - <groupId>net.sourceforge.jburg</groupId> - <artifactId>jburg-maven-plugin</artifactId> - <version>1.10.4</version> - <dependencies> - <dependency> - <groupId>org.apache.royale.compiler</groupId> - <artifactId>compiler-jburg-types</artifactId> - <version>${compiler-jburg-types.version}</version> - </dependency> - </dependencies> - </plugin> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-release-plugin</artifactId> - <version>2.5.3</version> - <configuration> - <providerImplementations> - <git>jgit</git> - </providerImplementations> - </configuration> - <dependencies> - <dependency> - <groupId>org.apache.maven.scm</groupId> - <artifactId>maven-scm-provider-jgit</artifactId> - <version>1.11.2-SNAPSHOT</version> - </dependency> - <dependency> - <groupId>org.apache.maven.scm</groupId> - <artifactId>maven-scm-api</artifactId> - <version>1.11.2-SNAPSHOT</version> - </dependency> - </dependencies> - </plugin> - </plugins> - </build> - </profile> - <profile> - <id>apache-release</id> - <activation> - <activeByDefault>false</activeByDefault> - </activation> - <properties> - <website.path>${project.version}</website.path> - </properties> - </profile> - <profile> - <id>upload-release-to-staging</id> - <activation> - <activeByDefault>false</activeByDefault> - </activation> - <modules><!-- only run on top-level, not for each module --> - </modules> - <build> - <plugins> - <plugin> - <groupId>org.codehaus.mojo</groupId> - <artifactId>wagon-maven-plugin</artifactId> - <version>2.0.0</version> - <configuration> - <includes>**</includes> - <serverId>apache.releases.https</serverId> - <url>https://repository.apache.org/service/local/staging/deploy/maven2</url> - </configuration> - </plugin> - </plugins> - </build> - </profile> - </profiles> - - <build> - <plugins> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-gpg-plugin</artifactId> - <configuration> - <skip>${skipgpg}</skip><!--true to skip gpg if building release on CI server --> - </configuration> - </plugin> - <!-- Check if all source files have the required apache license headers --> - <plugin> - <groupId>org.apache.rat</groupId> - <artifactId>apache-rat-plugin</artifactId> - <version>0.12</version> - <executions> - <execution> - <id>license-check</id> - <phase>verify</phase> - <goals> - <goal>check</goal> - </goals> - </execution> - </executions> - <configuration> - <excludes> - <exclude>LICENSE*</exclude> - <exclude>NOTICE*</exclude> - <exclude>README*</exclude> - <exclude>RELEASE_NOTES*</exclude> - <!-- Modules which are excluded from the build --> - <!-- FlashBuilder settings. frameworks/fb.properties contains Alex' path entries and should be removed --> - <exclude>fb.properties</exclude> - <!-- FlashBuilder / Eclipse settings. If checked in, they should have apache headers --> - <exclude>**/.settings/**</exclude> - <exclude>**/*.classpath</exclude> - <exclude>**/*.project</exclude> - <!-- Ignore IntelliJ IDEA project files --> - <exclude>**/*.iml</exclude> - <exclude>**/.idea/**</exclude> - <!-- Ignore VSCode/Java project files --> - <exclude>**/.factorypath</exclude> - <!-- - Exclude any eventually existing content of target directories. - Some times when building with a bigger maven reactor and then - with a smaller one, RAT will complain about stuff still in the - target directories. We don't want that. - --> - <exclude>**/target/**</exclude> - <exclude>**/release-dir/**</exclude> - <!-- Stuff an Ant build might have left behind. --> - <exclude>lib/**</exclude> - <!-- - In case of an ANT based release the typedefs are included as a - subdirectory. We need to exclude this directory from the compiler checks - as the typedefs build will handle all content in that directory - --> - <exclude>royale-typedefs/**</exclude> - <!-- This file is used to get reproducible builds. See royale-maven-plugin/pom.xml - for more info. - --> - <exclude>**/src/main/sisu/javax.inject.Named</exclude> - </excludes> - </configuration> - <dependencies> - <dependency> - <groupId>org.apache.maven.doxia</groupId> - <artifactId>doxia-core</artifactId> - <version>1.6</version> - <exclusions> - <exclusion> - <groupId>xerces</groupId> - <artifactId>xercesImpl</artifactId> - </exclusion> - </exclusions> - </dependency> - </dependencies> - </plugin> - - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-dependency-plugin</artifactId> - <version>3.0.0</version> - <executions> - <execution> - <id>analyze</id> - <goals> - <goal>analyze-only</goal> - </goals> - <configuration> - <failOnWarning>false</failOnWarning> - </configuration> - </execution> - </executions> - </plugin> - - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-compiler-plugin</artifactId> - <version>3.5.1</version> - <configuration> - <source>${java.version}</source> - <target>${java.version}</target> - </configuration> - </plugin> - - <plugin> - <groupId>org.jacoco</groupId> - <artifactId>jacoco-maven-plugin</artifactId> - <version>0.7.9</version> - <executions> - <!-- - Prepares the property pointing to the JaCoCo runtime agent which - is passed as VM argument when Maven the Surefire plugin is executed. - --> - <execution> - <id>pre-unit-test</id> - <goals> - <goal>prepare-agent</goal> - </goals> - <configuration> - <!-- Sets the path to the file which contains the execution data. --> - <destFile>${project.build.directory}/coverage-reports/jacoco-ut.exec</destFile> - <!-- - Sets the name of the property containing the settings - for JaCoCo runtime agent. - --> - <propertyName>surefireArgLine</propertyName> - </configuration> - </execution> - <!-- - Ensures that the code coverage report for unit tests is created after - unit tests have been run. - --> - <execution> - <id>post-unit-test</id> - <phase>test</phase> - <goals> - <goal>report</goal> - </goals> - <configuration> - <!-- Sets the path to the file which contains the execution data. --> - <dataFile>${project.build.directory}/coverage-reports/jacoco-ut.exec</dataFile> - <!-- Sets the output directory for the code coverage report. --> - <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory> - </configuration> - </execution> - <!-- - Prepares the property pointing to the JaCoCo runtime agent which - is passed as VM argument when Maven the Failsafe plugin is executed. - --> - <execution> - <id>pre-integration-test</id> - <phase>pre-integration-test</phase> - <goals> - <goal>prepare-agent</goal> - </goals> - <configuration> - <!-- Sets the path to the file which contains the execution data. --> - <destFile>${project.build.directory}/coverage-reports/jacoco-it.exec</destFile> - <!-- - Sets the name of the property containing the settings - for JaCoCo runtime agent. - --> - <propertyName>failsafeArgLine</propertyName> - </configuration> - </execution> - <!-- - Ensures that the code coverage report for integration tests after - integration tests have been run. - --> - <execution> - <id>post-integration-test</id> - <phase>post-integration-test</phase> - <goals> - <goal>report</goal> - </goals> - <configuration> - <!-- Sets the path to the file which contains the execution data. --> - <dataFile>${project.build.directory}/coverage-reports/jacoco-it.exec</dataFile> - <!-- Sets the output directory for the code coverage report. --> - <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory> - </configuration> - </execution> - </executions> - </plugin> - - <!-- Make the surefire execute all unit-tests --> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-surefire-plugin</artifactId> - <version>2.19</version> - <configuration> - <argLine>${surefireArgLine}</argLine> - <systemPropertyVariables> - <buildType>Maven</buildType> - <flexVersion>${flex.version}</flexVersion> - <flashVersion>${flash.version}</flashVersion> - <airVersion>${air.version}</airVersion> - <mavenLocalRepoDir>${settings.localRepository}</mavenLocalRepoDir> - </systemPropertyVariables> - <!-- - Currently some tests need this to be disabled, - but actually this is a bug. For now I'll disable - them to avoid problems during the maven migration. - After this is finished, we should defnitely fix - the tests so assertions can be enabled. - --> - <enableAssertions>false</enableAssertions> - </configuration> - </plugin> - - <!-- Make the failsafe execute all integration-tests --> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-failsafe-plugin</artifactId> - <version>2.18.1</version> - <executions> - <execution> - <goals> - <goal>integration-test</goal> - <goal>verify</goal> - </goals> - </execution> - </executions> - <configuration> - <argLine>${failsafeArgLine}</argLine> - <systemPropertyVariables> - <buildType>Maven</buildType> - <flexVersion>${flex.version}</flexVersion> - <flashVersion>${flash.version}</flashVersion> - <airVersion>${air.version}</airVersion> - <mavenLocalRepoDir>${settings.localRepository}</mavenLocalRepoDir> - <FLASHPLAYER_DEBUGGER>${env.FLASHPLAYER_DEBUGGER}</FLASHPLAYER_DEBUGGER> - </systemPropertyVariables> - </configuration> - </plugin> - - <!-- Plugin to detect problems with JDK incompatibilities --> - <plugin> - <groupId>org.codehaus.mojo</groupId> - <artifactId>animal-sniffer-maven-plugin</artifactId> - <version>1.15</version> - <executions> - <execution> - <id>check-jdk-1.6</id> - <phase>test</phase> - <goals> - <goal>check</goal> - </goals> - </execution> - </executions> - <configuration> - <signature> - <groupId>org.codehaus.mojo.signature</groupId> - <artifactId>java16</artifactId> - <version>1.1</version> - </signature> - </configuration> - </plugin> - - <!-- Configure the Site generation --> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-site-plugin</artifactId> - <!-- Downgraded to 3.4 as 3.5 and 3.5.1 seem to have issues with the velocity tools --> - <version>3.7.1</version> - <configuration> - <generateReports>true</generateReports> - <generateSitemap>true</generateSitemap> - <relativizeDecorationLinks>false</relativizeDecorationLinks> - <locales>en</locales> - <inputEncoding>${project.build.sourceEncoding}</inputEncoding> - <outputEncoding>${project.reporting.outputencoding}</outputEncoding> - </configuration> - <dependencies> - <dependency> - <groupId>commons-lang</groupId> - <artifactId>commons-lang</artifactId> - <version>2.6</version> - </dependency> - <dependency> - <groupId>org.apache.maven.doxia</groupId> - <artifactId>doxia-core</artifactId> - <version>1.6</version> - </dependency> - <!-- All dependencies needed by the reflow skin --> - <dependency> - <groupId>lt.velykis.maven.skins</groupId> - <artifactId>reflow-velocity-tools</artifactId> - <version>1.1.1</version> - </dependency> - <dependency> - <groupId>org.apache.velocity</groupId> - <artifactId>velocity</artifactId> - <version>1.7</version> - </dependency> - </dependencies> - </plugin> - - <!-- - Make the maven-site-plugin stage the output in the "asf-site" branch - --> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-scm-publish-plugin</artifactId> - <version>3.0.0</version> - <executions> - <execution> - <id>scm-publish</id> - <phase>site-deploy</phase> - <!-- deploy site with maven-scm-publish-plugin --> - <goals> - <goal>publish-scm</goal> - </goals> - <configuration> - <!-- mono-module doesn't require site:stage --> - <content>${project.build.directory}/site</content> - <!-- branch where to deploy --> - <scmBranch>asf-site</scmBranch> - </configuration> - </execution> - </executions> - </plugin> - - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-javadoc-plugin</artifactId> - <version>2.10.4</version> - </plugin> - - <plugin> - <groupId>org.sonarsource.scanner.maven</groupId> - <artifactId>sonar-maven-plugin</artifactId> - <version>3.2</version> - </plugin> - </plugins> - - <pluginManagement> - <plugins> - <plugin> - <groupId>io.github.zlika</groupId> - <artifactId>reproducible-build-maven-plugin</artifactId> - <version>0.9</version> - <executions> - <execution> - <goals> - <goal>strip-jar</goal> - </goals> - </execution> - </executions> - </plugin> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-javadoc-plugin</artifactId> - <version>2.10.4</version> - <configuration> - <tags> - <tag> - <name>goal</name> - <placement>a</placement> - <head>Goal:</head> - </tag> - <tag> - <name>phase</name> - <placement>a</placement> - <head>Phase:</head> - </tag> - <tag> - <name>threadSafe</name> - <placement>a</placement> - <head>Thread Safe:</head> - </tag> - <tag> - <name>requiresDependencyResolution</name> - <placement>a</placement> - <head>Requires Dependency Resolution:</head> - </tag> - <tag> - <name>requiresProject</name> - <placement>a</placement> - <head>Requires Project:</head> - </tag> - </tags> - <!-- TODO: This should only be a measure of last resort --> - <failOnError>false</failOnError> - </configuration> - </plugin> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-scm-plugin</artifactId> - <version>1.10.0</version> - </plugin> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-resources-plugin</artifactId> - <version>3.1.0</version> - </plugin> - </plugins> - </pluginManagement> - </build> - - <reporting> - <plugins> - - <!-- Generates a changelog report from GIT commits --> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-changelog-plugin</artifactId> - <version>2.3</version> - <configuration> - <!-- Automatically link Jira issues --> - <issueLinkUrl>https://issues.apache.org/jira/browse/%ISSUE%</issueLinkUrl> - </configuration> - </plugin> - - <!-- Generates a report with the details of the unit- and integrationtests --> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-surefire-report-plugin</artifactId> - <version>2.19.1</version> - </plugin> - - <!-- Generates a report with the test coverages --> - <plugin> - <groupId>org.jacoco</groupId> - <artifactId>jacoco-maven-plugin</artifactId> - <version>0.7.9</version> - </plugin> - - <!-- Generates a report with the SonarQube analysis reports --> - <plugin> - <groupId>org.codehaus.sonar-plugins</groupId> - <artifactId>maven-report</artifactId> - <version>0.1</version> - </plugin> - - <!-- Generate the JavaDoc API documentation --> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-javadoc-plugin</artifactId> - <version>2.10.4</version> - </plugin> - </plugins> - </reporting> - - <repositories> - <repository> - <id>apache-release</id> - <url>https://repository.apache.org/content/repositories/releases</url> - <releases> - <enabled>true</enabled> - </releases> - <snapshots> - <enabled>false</enabled> - </snapshots> - </repository> - <repository> - <id>apache-snapshots</id> - <url>https://repository.apache.org/content/repositories/snapshots</url> - <releases> - <enabled>false</enabled> - </releases> - <snapshots> - <enabled>true</enabled> - </snapshots> - </repository> - </repositories> - - <pluginRepositories> - <pluginRepository> - <id>apache-plugins-release</id> - <url>https://repository.apache.org/content/repositories/releases</url> - <releases> - <enabled>true</enabled> - </releases> - <snapshots> - <enabled>false</enabled> - </snapshots> - </pluginRepository> - <pluginRepository> - <id>apache-plugins-snapshots</id> - <url>https://repository.apache.org/content/repositories/snapshots</url> - <releases> - <enabled>false</enabled> - </releases> - <snapshots> - <enabled>true</enabled> - </snapshots> - </pluginRepository> - </pluginRepositories> - -</project> +<?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> + <groupId>org.apache</groupId> + <artifactId>apache</artifactId> + <version>18</version> + </parent> + + <groupId>org.apache.royale.compiler</groupId> + <artifactId>royale-compiler-parent</artifactId> + <version>0.9.6-SNAPSHOT</version> + <packaging>pom</packaging> + + <name>Apache Royale: Compiler: Parent</name> + <description>The Apache Royale Project</description> + + <scm> + <connection>scm:git:https://github.com/apache/royale-compiler.git</connection> + <developerConnection>scm:git:https://github.com/apache/royale-compiler.git</developerConnection> + <url>scm:git:https://github.com/apache/royale-compiler.git</url> + <tag>release/0.9.6</tag> + </scm> + + <properties> + <java.version>1.6</java.version> + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> + <project.reporting.outputencoding>UTF-8</project.reporting.outputencoding> + <maven.version>3.3.1</maven.version> + + <flex.version>4.15.0</flex.version> + <flash.version>20.0</flash.version> + <air.version>20.0</air.version> + + <jburgTypesRequired>true</jburgTypesRequired> + <skipgpg>false</skipgpg> + <compiler-build-tools.version>1.1.0-SNAPSHOT</compiler-build-tools.version> + <compiler-jburg-types.version>1.1.0-SNAPSHOT</compiler-jburg-types.version> + + <!-- URL of the ASF SonarQube server --> + <sonar.host.url>https://builds.apache.org/analysis</sonar.host.url> + <!-- Tell sonar where the coverage reports are located --> + <sonar.jacoco.reportPath>${project.build.directory}/coverage-reports/jacoco-ut.exec</sonar.jacoco.reportPath> + <sonar.jacoco.itReportPath>${project.build.directory}/coverage-reports/jacoco-it.exec</sonar.jacoco.itReportPath> + <!-- Exclude all generated code --> + <sonar.exclusions>file:**/generated-sources/**</sonar.exclusions> + + <website.path>latest-dev</website.path> + </properties> + + <!-- Only configure the site distribution as the rest is handled by the apache parent --> + <distributionManagement> + <site> + <id>apache.website</id> + <url>scm:git:https://github.com/apache/royale-compiler.git</url> + </site> + </distributionManagement> + + <issueManagement> + <system>GitHub</system> + <url>https://github.com/apache/royale-compiler/issues</url> + </issueManagement> + + <mailingLists> + <mailingList> + <name>Apache Royale User List</name> + <subscribe>[email protected]</subscribe> + <unsubscribe>[email protected]</unsubscribe> + <post>[email protected]</post> + <archive>http://mail-archives.apache.org/mod_mbox/royale-users/</archive> + </mailingList> + <mailingList> + <name>Apache Royale Developer List</name> + <subscribe>[email protected]</subscribe> + <unsubscribe>[email protected]</unsubscribe> + <post>[email protected]</post> + <archive>http://mail-archives.apache.org/mod_mbox/royale-dev/</archive> + </mailingList> + </mailingLists> + + <!-- + As the compiler build uses the jburg plugin which has a dependency on + the compiler-jburg-types artifact that are part of this project. We therefore have + a utils profile, that builds these these artifacts so Maven doesn't fail + as it resolves plugin dependencies before starting the build. + After one build with "-P -main,utils" (don't use main profile, use utils profile + has been built, the default build should be able to do it's job. + --> + <profiles> + <profile> + <id>utils</id> + <activation> + <activeByDefault>false</activeByDefault> + </activation> + <properties> + <jburgTypesRequired>false</jburgTypesRequired> + </properties> + <modules> + <module>compiler-build-tools</module> + <module>compiler-jburg-types</module> + </modules> + <build> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-gpg-plugin</artifactId> + <configuration> + <skip>${skipgpg}</skip><!--true to skip gpg if building release on CI server --> + </configuration> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-release-plugin</artifactId> + <version>2.5.3</version> + <configuration> + <providerImplementations> + <git>jgit</git> + </providerImplementations> + </configuration> + <dependencies> + <dependency> + <groupId>org.apache.maven.scm</groupId> + <artifactId>maven-scm-provider-jgit</artifactId> + <version>1.11.2-SNAPSHOT</version> + </dependency> + <dependency> + <groupId>org.apache.maven.scm</groupId> + <artifactId>maven-scm-api</artifactId> + <version>1.11.2-SNAPSHOT</version> + </dependency> + </dependencies> + </plugin> + </plugins> + </build> + </profile> + <profile> + <id>main</id> + <activation> + <activeByDefault>true</activeByDefault> + </activation> + <modules> + <module>compiler-common</module> + <module>compiler-externc</module> + <module>compiler</module> + <module>compiler-jx</module> + <module>compiler-test-utils</module> + <module>swfutils</module> + <module>debugger</module> + <module>flex-compiler-oem</module> + <module>royale-ant-tasks</module> + <module>royaleunit-ant-tasks</module> + <!--<module>royale-maven-extension</module>--> + <module>royale-maven-plugin</module> + </modules> + <build> + <plugins> + <plugin> + <groupId>net.sourceforge.jburg</groupId> + <artifactId>jburg-maven-plugin</artifactId> + <version>1.10.4</version> + <dependencies> + <dependency> + <groupId>org.apache.royale.compiler</groupId> + <artifactId>compiler-jburg-types</artifactId> + <version>${compiler-jburg-types.version}</version> + </dependency> + </dependencies> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-release-plugin</artifactId> + <version>2.5.3</version> + <configuration> + <providerImplementations> + <git>jgit</git> + </providerImplementations> + </configuration> + <dependencies> + <dependency> + <groupId>org.apache.maven.scm</groupId> + <artifactId>maven-scm-provider-jgit</artifactId> + <version>1.11.2-SNAPSHOT</version> + </dependency> + <dependency> + <groupId>org.apache.maven.scm</groupId> + <artifactId>maven-scm-api</artifactId> + <version>1.11.2-SNAPSHOT</version> + </dependency> + </dependencies> + </plugin> + </plugins> + </build> + </profile> + <profile> + <id>apache-release</id> + <activation> + <activeByDefault>false</activeByDefault> + </activation> + <properties> + <website.path>${project.version}</website.path> + </properties> + </profile> + <profile> + <id>upload-release-to-staging</id> + <activation> + <activeByDefault>false</activeByDefault> + </activation> + <modules><!-- only run on top-level, not for each module --> + </modules> + <build> + <plugins> + <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>wagon-maven-plugin</artifactId> + <version>2.0.0</version> + <configuration> + <includes>**</includes> + <serverId>apache.releases.https</serverId> + <url>https://repository.apache.org/service/local/staging/deploy/maven2</url> + </configuration> + </plugin> + </plugins> + </build> + </profile> + </profiles> + + <build> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-gpg-plugin</artifactId> + <configuration> + <skip>${skipgpg}</skip><!--true to skip gpg if building release on CI server --> + </configuration> + </plugin> + <!-- Check if all source files have the required apache license headers --> + <plugin> + <groupId>org.apache.rat</groupId> + <artifactId>apache-rat-plugin</artifactId> + <version>0.12</version> + <executions> + <execution> + <id>license-check</id> + <phase>verify</phase> + <goals> + <goal>check</goal> + </goals> + </execution> + </executions> + <configuration> + <excludes> + <exclude>LICENSE*</exclude> + <exclude>NOTICE*</exclude> + <exclude>README*</exclude> + <exclude>RELEASE_NOTES*</exclude> + <!-- Modules which are excluded from the build --> + <!-- FlashBuilder settings. frameworks/fb.properties contains Alex' path entries and should be removed --> + <exclude>fb.properties</exclude> + <!-- FlashBuilder / Eclipse settings. If checked in, they should have apache headers --> + <exclude>**/.settings/**</exclude> + <exclude>**/*.classpath</exclude> + <exclude>**/*.project</exclude> + <!-- Ignore IntelliJ IDEA project files --> + <exclude>**/*.iml</exclude> + <exclude>**/.idea/**</exclude> + <!-- Ignore VSCode/Java project files --> + <exclude>**/.factorypath</exclude> + <!-- + Exclude any eventually existing content of target directories. + Some times when building with a bigger maven reactor and then + with a smaller one, RAT will complain about stuff still in the + target directories. We don't want that. + --> + <exclude>**/target/**</exclude> + <exclude>**/release-dir/**</exclude> + <!-- Stuff an Ant build might have left behind. --> + <exclude>lib/**</exclude> + <!-- + In case of an ANT based release the typedefs are included as a + subdirectory. We need to exclude this directory from the compiler checks + as the typedefs build will handle all content in that directory + --> + <exclude>royale-typedefs/**</exclude> + <!-- This file is used to get reproducible builds. See royale-maven-plugin/pom.xml + for more info. + --> + <exclude>**/src/main/sisu/javax.inject.Named</exclude> + </excludes> + </configuration> + <dependencies> + <dependency> + <groupId>org.apache.maven.doxia</groupId> + <artifactId>doxia-core</artifactId> + <version>1.6</version> + <exclusions> + <exclusion> + <groupId>xerces</groupId> + <artifactId>xercesImpl</artifactId> + </exclusion> + </exclusions> + </dependency> + </dependencies> + </plugin> + + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-dependency-plugin</artifactId> + <version>3.0.0</version> + <executions> + <execution> + <id>analyze</id> + <goals> + <goal>analyze-only</goal> + </goals> + <configuration> + <failOnWarning>false</failOnWarning> + </configuration> + </execution> + </executions> + </plugin> + + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-compiler-plugin</artifactId> + <version>3.5.1</version> + <configuration> + <source>${java.version}</source> + <target>${java.version}</target> + </configuration> + </plugin> + + <plugin> + <groupId>org.jacoco</groupId> + <artifactId>jacoco-maven-plugin</artifactId> + <version>0.7.9</version> + <executions> + <!-- + Prepares the property pointing to the JaCoCo runtime agent which + is passed as VM argument when Maven the Surefire plugin is executed. + --> + <execution> + <id>pre-unit-test</id> + <goals> + <goal>prepare-agent</goal> + </goals> + <configuration> + <!-- Sets the path to the file which contains the execution data. --> + <destFile>${project.build.directory}/coverage-reports/jacoco-ut.exec</destFile> + <!-- + Sets the name of the property containing the settings + for JaCoCo runtime agent. + --> + <propertyName>surefireArgLine</propertyName> + </configuration> + </execution> + <!-- + Ensures that the code coverage report for unit tests is created after + unit tests have been run. + --> + <execution> + <id>post-unit-test</id> + <phase>test</phase> + <goals> + <goal>report</goal> + </goals> + <configuration> + <!-- Sets the path to the file which contains the execution data. --> + <dataFile>${project.build.directory}/coverage-reports/jacoco-ut.exec</dataFile> + <!-- Sets the output directory for the code coverage report. --> + <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory> + </configuration> + </execution> + <!-- + Prepares the property pointing to the JaCoCo runtime agent which + is passed as VM argument when Maven the Failsafe plugin is executed. + --> + <execution> + <id>pre-integration-test</id> + <phase>pre-integration-test</phase> + <goals> + <goal>prepare-agent</goal> + </goals> + <configuration> + <!-- Sets the path to the file which contains the execution data. --> + <destFile>${project.build.directory}/coverage-reports/jacoco-it.exec</destFile> + <!-- + Sets the name of the property containing the settings + for JaCoCo runtime agent. + --> + <propertyName>failsafeArgLine</propertyName> + </configuration> + </execution> + <!-- + Ensures that the code coverage report for integration tests after + integration tests have been run. + --> + <execution> + <id>post-integration-test</id> + <phase>post-integration-test</phase> + <goals> + <goal>report</goal> + </goals> + <configuration> + <!-- Sets the path to the file which contains the execution data. --> + <dataFile>${project.build.directory}/coverage-reports/jacoco-it.exec</dataFile> + <!-- Sets the output directory for the code coverage report. --> + <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory> + </configuration> + </execution> + </executions> + </plugin> + + <!-- Make the surefire execute all unit-tests --> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-surefire-plugin</artifactId> + <version>2.19</version> + <configuration> + <argLine>${surefireArgLine}</argLine> + <systemPropertyVariables> + <buildType>Maven</buildType> + <flexVersion>${flex.version}</flexVersion> + <flashVersion>${flash.version}</flashVersion> + <airVersion>${air.version}</airVersion> + <mavenLocalRepoDir>${settings.localRepository}</mavenLocalRepoDir> + </systemPropertyVariables> + <!-- + Currently some tests need this to be disabled, + but actually this is a bug. For now I'll disable + them to avoid problems during the maven migration. + After this is finished, we should defnitely fix + the tests so assertions can be enabled. + --> + <enableAssertions>false</enableAssertions> + </configuration> + </plugin> + + <!-- Make the failsafe execute all integration-tests --> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-failsafe-plugin</artifactId> + <version>2.18.1</version> + <executions> + <execution> + <goals> + <goal>integration-test</goal> + <goal>verify</goal> + </goals> + </execution> + </executions> + <configuration> + <argLine>${failsafeArgLine}</argLine> + <systemPropertyVariables> + <buildType>Maven</buildType> + <flexVersion>${flex.version}</flexVersion> + <flashVersion>${flash.version}</flashVersion> + <airVersion>${air.version}</airVersion> + <mavenLocalRepoDir>${settings.localRepository}</mavenLocalRepoDir> + <FLASHPLAYER_DEBUGGER>${env.FLASHPLAYER_DEBUGGER}</FLASHPLAYER_DEBUGGER> + </systemPropertyVariables> + </configuration> + </plugin> + + <!-- Plugin to detect problems with JDK incompatibilities --> + <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>animal-sniffer-maven-plugin</artifactId> + <version>1.15</version> + <executions> + <execution> + <id>check-jdk-1.6</id> + <phase>test</phase> + <goals> + <goal>check</goal> + </goals> + </execution> + </executions> + <configuration> + <signature> + <groupId>org.codehaus.mojo.signature</groupId> + <artifactId>java16</artifactId> + <version>1.1</version> + </signature> + </configuration> + </plugin> + + <!-- Configure the Site generation --> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-site-plugin</artifactId> + <!-- Downgraded to 3.4 as 3.5 and 3.5.1 seem to have issues with the velocity tools --> + <version>3.7.1</version> + <configuration> + <generateReports>true</generateReports> + <generateSitemap>true</generateSitemap> + <relativizeDecorationLinks>false</relativizeDecorationLinks> + <locales>en</locales> + <inputEncoding>${project.build.sourceEncoding}</inputEncoding> + <outputEncoding>${project.reporting.outputencoding}</outputEncoding> + </configuration> + <dependencies> + <dependency> + <groupId>commons-lang</groupId> + <artifactId>commons-lang</artifactId> + <version>2.6</version> + </dependency> + <dependency> + <groupId>org.apache.maven.doxia</groupId> + <artifactId>doxia-core</artifactId> + <version>1.6</version> + </dependency> + <!-- All dependencies needed by the reflow skin --> + <dependency> + <groupId>lt.velykis.maven.skins</groupId> + <artifactId>reflow-velocity-tools</artifactId> + <version>1.1.1</version> + </dependency> + <dependency> + <groupId>org.apache.velocity</groupId> + <artifactId>velocity</artifactId> + <version>1.7</version> + </dependency> + </dependencies> + </plugin> + + <!-- + Make the maven-site-plugin stage the output in the "asf-site" branch + --> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-scm-publish-plugin</artifactId> + <version>3.0.0</version> + <executions> + <execution> + <id>scm-publish</id> + <phase>site-deploy</phase> + <!-- deploy site with maven-scm-publish-plugin --> + <goals> + <goal>publish-scm</goal> + </goals> + <configuration> + <!-- mono-module doesn't require site:stage --> + <content>${project.build.directory}/site</content> + <!-- branch where to deploy --> + <scmBranch>asf-site</scmBranch> + </configuration> + </execution> + </executions> + </plugin> + + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-javadoc-plugin</artifactId> + <version>2.10.4</version> + </plugin> + + <plugin> + <groupId>org.sonarsource.scanner.maven</groupId> + <artifactId>sonar-maven-plugin</artifactId> + <version>3.2</version> + </plugin> + </plugins> + + <pluginManagement> + <plugins> + <plugin> + <groupId>io.github.zlika</groupId> + <artifactId>reproducible-build-maven-plugin</artifactId> + <version>0.9</version> + <executions> + <execution> + <goals> + <goal>strip-jar</goal> + </goals> + </execution> + </executions> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-javadoc-plugin</artifactId> + <version>2.10.4</version> + <configuration> + <tags> + <tag> + <name>goal</name> + <placement>a</placement> + <head>Goal:</head> + </tag> + <tag> + <name>phase</name> + <placement>a</placement> + <head>Phase:</head> + </tag> + <tag> + <name>threadSafe</name> + <placement>a</placement> + <head>Thread Safe:</head> + </tag> + <tag> + <name>requiresDependencyResolution</name> + <placement>a</placement> + <head>Requires Dependency Resolution:</head> + </tag> + <tag> + <name>requiresProject</name> + <placement>a</placement> + <head>Requires Project:</head> + </tag> + </tags> + <!-- TODO: This should only be a measure of last resort --> + <failOnError>false</failOnError> + </configuration> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-scm-plugin</artifactId> + <version>1.10.0</version> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-resources-plugin</artifactId> + <version>3.1.0</version> + </plugin> + </plugins> + </pluginManagement> + </build> + + <reporting> + <plugins> + + <!-- Generates a changelog report from GIT commits --> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-changelog-plugin</artifactId> + <version>2.3</version> + <configuration> + <!-- Automatically link Jira issues --> + <issueLinkUrl>https://issues.apache.org/jira/browse/%ISSUE%</issueLinkUrl> + </configuration> + </plugin> + + <!-- Generates a report with the details of the unit- and integrationtests --> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-surefire-report-plugin</artifactId> + <version>2.19.1</version> + </plugin> + + <!-- Generates a report with the test coverages --> + <plugin> + <groupId>org.jacoco</groupId> + <artifactId>jacoco-maven-plugin</artifactId> + <version>0.7.9</version> + </plugin> + + <!-- Generates a report with the SonarQube analysis reports --> + <plugin> + <groupId>org.codehaus.sonar-plugins</groupId> + <artifactId>maven-report</artifactId> + <version>0.1</version> + </plugin> + + <!-- Generate the JavaDoc API documentation --> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-javadoc-plugin</artifactId> + <version>2.10.4</version> + </plugin> + </plugins> + </reporting> + + <repositories> + <repository> + <id>apache-release</id> + <url>https://repository.apache.org/content/repositories/releases</url> + <releases> + <enabled>true</enabled> + </releases> + <snapshots> + <enabled>false</enabled> + </snapshots> + </repository> + <repository> + <id>apache-snapshots</id> + <url>https://repository.apache.org/content/repositories/snapshots</url> + <releases> + <enabled>false</enabled> + </releases> + <snapshots> + <enabled>true</enabled> + </snapshots> + </repository> + </repositories> + + <pluginRepositories> + <pluginRepository> + <id>apache-plugins-release</id> + <url>https://repository.apache.org/content/repositories/releases</url> + <releases> + <enabled>true</enabled> + </releases> + <snapshots> + <enabled>false</enabled> + </snapshots> + </pluginRepository> + <pluginRepository> + <id>apache-plugins-snapshots</id> + <url>https://repository.apache.org/content/repositories/snapshots</url> + <releases> + <enabled>false</enabled> + </releases> + <snapshots> + <enabled>true</enabled> + </snapshots> + </pluginRepository> + </pluginRepositories> + +</project> diff --git a/royaleunit-ant-tasks/pom.xml b/royaleunit-ant-tasks/pom.xml index 58c2a96..24b1984 100644 --- a/royaleunit-ant-tasks/pom.xml +++ b/royaleunit-ant-tasks/pom.xml @@ -1,67 +1,67 @@ -<?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> - <groupId>org.apache.royale.compiler</groupId> - <artifactId>royale-compiler-parent</artifactId> - <version>0.9.7-SNAPSHOT</version> - </parent> - - <artifactId>royaleunit-ant-tasks</artifactId> - <version>0.9.7-SNAPSHOT</version> - - <name>Apache Royale: RoyaleUnit Ant Tasks</name> - - <dependencies> - <dependency> - <groupId>org.apache.ant</groupId> - <artifactId>ant</artifactId> - <version>1.7.0</version> - </dependency> - <dependency> - <groupId>org.apache.ant</groupId> - <artifactId>ant-launcher</artifactId> - <version>1.7.0</version> - </dependency> - <dependency> - <groupId>org.apache.ant</groupId> - <artifactId>ant-testutil</artifactId> - <version>1.7.0</version> - </dependency> - <dependency> - <groupId>dom4j</groupId> - <artifactId>dom4j</artifactId> - <version>1.6.1</version> - </dependency> - <dependency> - <groupId>org.java-websocket</groupId> - <artifactId>Java-WebSocket</artifactId> - <version>1.4.0</version> - </dependency> - <dependency> - <groupId>org.slf4j</groupId> - <artifactId>slf4j-simple</artifactId> - <version>1.7.25</version> - </dependency> - </dependencies> - -</project> +<?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> + <groupId>org.apache.royale.compiler</groupId> + <artifactId>royale-compiler-parent</artifactId> + <version>0.9.6-SNAPSHOT</version> + </parent> + + <artifactId>royaleunit-ant-tasks</artifactId> + <version>0.9.6-SNAPSHOT</version> + + <name>Apache Royale: RoyaleUnit Ant Tasks</name> + + <dependencies> + <dependency> + <groupId>org.apache.ant</groupId> + <artifactId>ant</artifactId> + <version>1.7.0</version> + </dependency> + <dependency> + <groupId>org.apache.ant</groupId> + <artifactId>ant-launcher</artifactId> + <version>1.7.0</version> + </dependency> + <dependency> + <groupId>org.apache.ant</groupId> + <artifactId>ant-testutil</artifactId> + <version>1.7.0</version> + </dependency> + <dependency> + <groupId>dom4j</groupId> + <artifactId>dom4j</artifactId> + <version>1.6.1</version> + </dependency> + <dependency> + <groupId>org.java-websocket</groupId> + <artifactId>Java-WebSocket</artifactId> + <version>1.4.0</version> + </dependency> + <dependency> + <groupId>org.slf4j</groupId> + <artifactId>slf4j-simple</artifactId> + <version>1.7.25</version> + </dependency> + </dependencies> + +</project>
