├── .asf.yaml ├── .github ├── ISSUE_TEMPLATE │ ├── BUG.yml │ ├── FEATURE.yml │ └── config.yml ├── dependabot.yml ├── pull_request_template.md ├── release-drafter.yml └── workflows │ ├── maven.yml │ ├── pr-automation.yml │ └── release-drafter.yml ├── .gitignore ├── Jenkinsfile ├── README.md ├── deploySite.sh ├── pom.xml └── src ├── it ├── mrm │ ├── repository │ │ └── localhost │ │ │ └── com.soebes.nine.jar │ │ │ └── 1.0-SNAPSHOT │ │ │ ├── com.soebes.nine.jar-1.0-SNAPSHOT.jar │ │ │ └── com.soebes.nine.jar-1.0-SNAPSHOT.pom │ └── settings.xml └── projects │ ├── MJLINK-26 │ ├── invoker.properties │ ├── pom.xml │ ├── src │ │ └── main │ │ │ └── java │ │ │ ├── com │ │ │ └── corporate │ │ │ │ └── project │ │ │ │ └── Main.java │ │ │ └── module-info.java │ └── verify.groovy │ ├── MJLINK-3_improveVerboseOutput │ ├── invoker.properties │ └── pom.xml │ ├── MJLINK-40_includeLocales │ ├── invoker.properties │ ├── pom.xml │ └── verify.groovy │ ├── MJLINK-41_addoptions-11 │ ├── invoker.properties │ ├── pom.xml │ ├── src │ │ └── main │ │ │ └── configs │ │ │ └── config.test │ └── verify.groovy │ ├── MJLINK-4_dependencyResolution │ └── pom.xml │ ├── MJLINK-52_classifiers │ ├── invoker.properties │ ├── pom.xml │ ├── src │ │ └── main │ │ │ └── java │ │ │ ├── com │ │ │ └── corporate │ │ │ │ └── project │ │ │ │ └── Main.java │ │ │ └── module-info.java │ └── verify.groovy │ ├── MJLINK-52_classifiers_duplicate_classifier │ ├── invoker.properties │ ├── pom.xml │ ├── src │ │ └── main │ │ │ └── java │ │ │ ├── com │ │ │ └── corporate │ │ │ │ └── project │ │ │ │ └── Main.java │ │ │ └── module-info.java │ └── verify.groovy │ ├── MJLINK-52_classifiers_duplicate_default │ ├── invoker.properties │ ├── pom.xml │ ├── src │ │ └── main │ │ │ └── java │ │ │ ├── com │ │ │ └── corporate │ │ │ │ └── project │ │ │ │ └── Main.java │ │ │ └── module-info.java │ └── verify.groovy │ ├── MJLINK-52_classifiers_jarproject │ ├── invoker.properties │ ├── pom.xml │ ├── src │ │ └── main │ │ │ └── java │ │ │ ├── com │ │ │ └── corporate │ │ │ │ └── project │ │ │ │ └── Main.java │ │ │ └── module-info.java │ └── verify.groovy │ ├── MJLINK-6_allowSetJmodPath │ ├── invoker.properties │ ├── pom.xml │ ├── src │ │ └── main │ │ │ └── java │ │ │ ├── com │ │ │ └── corporate │ │ │ │ └── project │ │ │ │ └── Main.java │ │ │ └── module-info.java │ └── verify.groovy │ ├── MJLINK-77_compress-parameters │ ├── invoker.properties │ ├── pom.xml │ ├── src │ │ └── main │ │ │ └── java │ │ │ ├── com │ │ │ └── corporate │ │ │ │ └── project │ │ │ │ └── Main.java │ │ │ └── module-info.java │ └── verify.groovy │ ├── MJLINK-80_additionalResources │ ├── pom.xml │ ├── src │ │ └── jlink │ │ │ └── resources │ │ │ └── README.md │ └── verify.groovy │ ├── MJLINK-9_reactor │ ├── api │ │ ├── pom.xml │ │ └── src │ │ │ └── main │ │ │ └── java │ │ │ ├── com │ │ │ └── reactor │ │ │ │ └── project │ │ │ │ └── api │ │ │ │ ├── Currency.java │ │ │ │ └── Money.java │ │ │ └── module-info.java │ ├── app │ │ ├── pom.xml │ │ └── src │ │ │ └── main │ │ │ └── java │ │ │ ├── com │ │ │ └── reactor │ │ │ │ └── project │ │ │ │ └── app │ │ │ │ └── App.java │ │ │ └── module-info.java │ ├── dist │ │ ├── pom.xml │ │ └── src │ │ │ └── main │ │ │ └── java │ │ │ └── module-info.java │ ├── invoker.properties │ ├── pom.xml │ └── verify.groovy │ ├── cli-options │ ├── add-options │ │ ├── invoker.properties │ │ ├── pom.xml │ │ ├── src │ │ │ └── main │ │ │ │ └── configs │ │ │ │ └── config.test │ │ └── verify.groovy │ ├── bind-services │ │ ├── invoker.properties │ │ ├── pom.xml │ │ ├── src │ │ │ └── main │ │ │ │ └── configs │ │ │ │ └── config.test │ │ └── verify.groovy │ ├── compress-0 │ │ ├── invoker.properties │ │ ├── pom.xml │ │ ├── src │ │ │ └── main │ │ │ │ └── configs │ │ │ │ └── config.test │ │ └── verify.groovy │ ├── compress-1 │ │ ├── invoker.properties │ │ ├── pom.xml │ │ ├── src │ │ │ └── main │ │ │ │ └── configs │ │ │ │ └── config.test │ │ └── verify.groovy │ ├── compress-2 │ │ ├── invoker.properties │ │ ├── pom.xml │ │ ├── src │ │ │ └── main │ │ │ │ └── configs │ │ │ │ └── config.test │ │ └── verify.groovy │ ├── disable-plugin │ │ ├── invoker.properties │ │ ├── pom.xml │ │ ├── src │ │ │ └── main │ │ │ │ └── configs │ │ │ │ └── config.test │ │ └── verify.groovy │ ├── endian-big │ │ ├── invoker.properties │ │ ├── pom.xml │ │ ├── src │ │ │ └── main │ │ │ │ └── configs │ │ │ │ └── config.test │ │ └── verify.groovy │ ├── endian │ │ ├── invoker.properties │ │ ├── pom.xml │ │ ├── src │ │ │ └── main │ │ │ │ └── configs │ │ │ │ └── config.test │ │ └── verify.groovy │ ├── ignore-signing-information │ │ ├── invoker.properties │ │ ├── pom.xml │ │ ├── src │ │ │ └── main │ │ │ │ └── configs │ │ │ │ └── config.test │ │ └── verify.groovy │ ├── no-header-files │ │ ├── invoker.properties │ │ ├── pom.xml │ │ ├── src │ │ │ └── main │ │ │ │ └── configs │ │ │ │ └── config.test │ │ └── verify.groovy │ ├── no-man-pages │ │ ├── invoker.properties │ │ ├── pom.xml │ │ ├── src │ │ │ └── main │ │ │ │ └── configs │ │ │ │ └── config.test │ │ └── verify.groovy │ ├── strip-debug │ │ ├── invoker.properties │ │ ├── pom.xml │ │ ├── src │ │ │ └── main │ │ │ │ └── configs │ │ │ │ └── config.test │ │ └── verify.groovy │ └── suggest-providers │ │ ├── invoker.properties │ │ ├── pom.xml │ │ ├── src │ │ └── main │ │ │ └── configs │ │ │ └── config.test │ │ └── verify.groovy │ ├── setup-jar-module-info │ ├── invoker.properties │ ├── pom.xml │ └── src │ │ └── main │ │ └── java │ │ ├── module-info.java │ │ └── myproject │ │ └── HelloWorld.java │ └── setup-jar │ ├── invoker.properties │ ├── pom.xml │ └── src │ └── main │ └── java │ └── myproject │ └── HelloWorld.java ├── main ├── filtered-resources │ └── META-INF │ │ └── plexus │ │ └── components.xml └── java │ └── org │ └── apache │ └── maven │ └── plugins │ └── jlink │ ├── AbstractJLinkExecutor.java │ ├── AbstractJLinkMojo.java │ ├── AbstractJLinkToolchainExecutor.java │ ├── JLinkExecutor.java │ └── JLinkMojo.java ├── site ├── apt │ ├── index.apt.vm │ └── usage.apt.vm ├── resources │ └── download.cgi ├── site.xml └── xdoc │ └── download.xml.vm └── test └── java └── org └── apache └── maven └── plugins └── jlink ├── AbstractJLinkMojoTest.java ├── JLinkMojoTest.java └── MultipleLauncherTest.java /.asf.yaml: -------------------------------------------------------------------------------- 1 | # 2 | # Licensed to the Apache Software Foundation (ASF) under one or more 3 | # contributor license agreements. See the NOTICE file distributed with 4 | # this work for additional information regarding copyright ownership. 5 | # The ASF licenses this file to You under the Apache License, Version 2.0 6 | # (the "License"); you may not use this file except in compliance with 7 | # the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | # 17 | # see https://s.apache.org/asfyaml 18 | github: 19 | description: "Apache Maven JLink Plugin" 20 | homepage: https://maven.apache.org/plugins/maven-jlink-plugin/ 21 | labels: 22 | - java 23 | - build-management 24 | - maven-plugins 25 | - maven-jlink-plugin 26 | - maven 27 | enabled_merge_buttons: 28 | squash: true 29 | merge: false 30 | rebase: true 31 | autolink_jira: 32 | - MJLINK 33 | features: 34 | issues: true 35 | notifications: 36 | commits: commits@maven.apache.org 37 | issues: issues@maven.apache.org 38 | pullrequests: issues@maven.apache.org 39 | jira_options: link label 40 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/BUG.yml: -------------------------------------------------------------------------------- 1 | # 2 | # Licensed to the Apache Software Foundation (ASF) under one or more 3 | # contributor license agreements. See the NOTICE file distributed with 4 | # this work for additional information regarding copyright ownership. 5 | # The ASF licenses this file to You under the Apache License, Version 2.0 6 | # (the "License"); you may not use this file except in compliance with 7 | # the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | # 17 | 18 | # https://docs.github.com/en/communities/using-templates-to-encourage-useful-issues-and-pull-requests/syntax-for-githubs-form-schema 19 | 20 | name: Bug Report 21 | description: File a bug report 22 | labels: ["bug"] 23 | 24 | body: 25 | - type: markdown 26 | attributes: 27 | value: | 28 | Thanks for taking the time to fill out this bug report. 29 | 30 | Simple fixes in single PRs do not require issues. 31 | 32 | **Do you use the latest project version?** 33 | 34 | - type: input 35 | id: version 36 | attributes: 37 | label: Affected version 38 | validations: 39 | required: true 40 | 41 | - type: textarea 42 | id: massage 43 | attributes: 44 | label: Bug description 45 | validations: 46 | required: true 47 | 48 | 49 | 50 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/FEATURE.yml: -------------------------------------------------------------------------------- 1 | # 2 | # Licensed to the Apache Software Foundation (ASF) under one or more 3 | # contributor license agreements. See the NOTICE file distributed with 4 | # this work for additional information regarding copyright ownership. 5 | # The ASF licenses this file to You under the Apache License, Version 2.0 6 | # (the "License"); you may not use this file except in compliance with 7 | # the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | # 17 | 18 | # https://docs.github.com/en/communities/using-templates-to-encourage-useful-issues-and-pull-requests/syntax-for-githubs-form-schema 19 | 20 | name: Feature request 21 | description: File a proposal for new feature, improvement 22 | labels: ["enhancement"] 23 | 24 | body: 25 | - type: markdown 26 | attributes: 27 | value: | 28 | Thanks for taking the time to fill out this new feature, improvement proposal. 29 | - type: textarea 30 | id: massage 31 | attributes: 32 | label: New feature, improvement proposal 33 | validations: 34 | required: true 35 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/config.yml: -------------------------------------------------------------------------------- 1 | # 2 | # Licensed to the Apache Software Foundation (ASF) under one or more 3 | # contributor license agreements. See the NOTICE file distributed with 4 | # this work for additional information regarding copyright ownership. 5 | # The ASF licenses this file to You under the Apache License, Version 2.0 6 | # (the "License"); you may not use this file except in compliance with 7 | # the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | # 17 | 18 | # https://docs.github.com/en/communities/using-templates-to-encourage-useful-issues-and-pull-requests/configuring-issue-templates-for-your-repository#configuring-the-template-chooser 19 | 20 | blank_issues_enabled: false 21 | 22 | contact_links: 23 | 24 | - name: Project Mailing Lists 25 | url: https://maven.apache.org/mailing-lists.html 26 | about: Please ask a question or discuss here 27 | 28 | -------------------------------------------------------------------------------- /.github/dependabot.yml: -------------------------------------------------------------------------------- 1 | # 2 | # Licensed to the Apache Software Foundation (ASF) under one or more 3 | # contributor license agreements. See the NOTICE file distributed with 4 | # this work for additional information regarding copyright ownership. 5 | # The ASF licenses this file to You under the Apache License, Version 2.0 6 | # (the "License"); you may not use this file except in compliance with 7 | # the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | # 17 | version: 2 18 | updates: 19 | - package-ecosystem: maven 20 | directory: "/" 21 | schedule: 22 | interval: daily 23 | time: '04:00' 24 | open-pull-requests-limit: 10 25 | ignore: 26 | # Ignore Maven 3.2.1+ 27 | - dependency-name: org.apache.maven.plugin-testing:maven-plugin-testing-tools 28 | versions: 29 | - ">=3.2.0" 30 | - dependency-name: org.apache.maven.plugin-testing:maven-plugin-testing-harness 31 | versions: 32 | - ">=3.2.0" 33 | - package-ecosystem: "github-actions" 34 | directory: "/" 35 | schedule: 36 | interval: "daily" -------------------------------------------------------------------------------- /.github/pull_request_template.md: -------------------------------------------------------------------------------- 1 | Following this checklist to help us incorporate your 2 | contribution quickly and easily: 3 | 4 | - [ ] Make sure there is a [GitHub issue](https://github.com/apache/maven-jlink-plugin/issues) filed 5 | for the change (usually before you start working on it). Trivial changes like typos do not 6 | require a GitHub issue. Your pull request should address just this issue, without 7 | pulling in other changes. 8 | - [ ] Each commit in the pull request should have a meaningful subject line and body. 9 | - [ ] Format the pull request title like `[#] - Fixes bug in ApproximateQuantiles`, 10 | where you replace `#` with the appropriate GitHub issue. Best practice 11 | is to use the GitHub issue title in the pull request title and in the first line of the 12 | commit message. 13 | - [ ] Write a pull request description that is detailed enough to understand what the pull request does, how, and why. 14 | - [ ] Run `mvn clean verify` to make sure basic checks pass. A more thorough check will 15 | be performed on your pull request automatically. 16 | - [ ] You have run the integration tests successfully (`mvn -Prun-its clean verify`). 17 | 18 | If your pull request is about ~20 lines of code you don't need to sign an 19 | [Individual Contributor License Agreement](https://www.apache.org/licenses/icla.pdf) if you are unsure 20 | please ask on the developers list. 21 | 22 | To make clear that you license your contribution under 23 | the [Apache License Version 2.0, January 2004](http://www.apache.org/licenses/LICENSE-2.0) 24 | you have to acknowledge this by using the following check-box. 25 | 26 | - [ ] I hereby declare this contribution to be licenced under the [Apache License Version 2.0, January 2004](http://www.apache.org/licenses/LICENSE-2.0) 27 | 28 | - [ ] In any other case, please file an [Apache Individual Contributor License Agreement](https://www.apache.org/licenses/icla.pdf). 29 | 30 | -------------------------------------------------------------------------------- /.github/release-drafter.yml: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, 12 | # software distributed under the License is distributed on an 13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | # KIND, either express or implied. See the License for the 15 | # specific language governing permissions and limitations 16 | # under the License. 17 | 18 | _extends: maven-gh-actions-shared 19 | tag-template: maven-jlink-plugin-$NEXT_MINOR_VERSION 20 | -------------------------------------------------------------------------------- /.github/workflows/maven.yml: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, 12 | # software distributed under the License is distributed on an 13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | # KIND, either express or implied. See the License for the 15 | # specific language governing permissions and limitations 16 | # under the License. 17 | 18 | name: Java CI 19 | 20 | on: [ push, pull_request ] 21 | 22 | jobs: 23 | build: 24 | 25 | strategy: 26 | matrix: 27 | os: [ ubuntu-latest, windows-latest, macOS-latest ] 28 | java: [ 11, 17, 21 ] 29 | dist: [ 'temurin', 'semeru' ] 30 | exclude: 31 | - os: macos-latest 32 | dist: 'semeru' 33 | 34 | fail-fast: false 35 | 36 | runs-on: ${{ matrix.os }} 37 | 38 | steps: 39 | - name: Checkout 40 | uses: actions/checkout@v4 41 | 42 | - name: Set up JDK 43 | uses: actions/setup-java@v4 44 | with: 45 | distribution: ${{ matrix.dist }} 46 | java-version: ${{ matrix.java }} 47 | cache: 'maven' 48 | 49 | - name: Build with Maven 50 | run: mvn verify --errors --batch-mode --show-version -Prun-its 51 | -------------------------------------------------------------------------------- /.github/workflows/pr-automation.yml: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, 12 | # software distributed under the License is distributed on an 13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | # KIND, either express or implied. See the License for the 15 | # specific language governing permissions and limitations 16 | # under the License. 17 | 18 | name: PR Automation 19 | on: 20 | pull_request_target: 21 | types: 22 | - closed 23 | 24 | jobs: 25 | pr-automation: 26 | name: PR Automation 27 | uses: apache/maven-gh-actions-shared/.github/workflows/pr-automation.yml@v4 28 | -------------------------------------------------------------------------------- /.github/workflows/release-drafter.yml: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, 12 | # software distributed under the License is distributed on an 13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | # KIND, either express or implied. See the License for the 15 | # specific language governing permissions and limitations 16 | # under the License. 17 | 18 | name: Release Drafter 19 | on: 20 | push: 21 | branches: 22 | - master 23 | jobs: 24 | update_release_draft: 25 | uses: apache/maven-gh-actions-shared/.github/workflows/release-drafter.yml@v4 26 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | target/ 2 | .project 3 | .classpath 4 | .settings/ 5 | .svn/ 6 | bin/ 7 | # Intellij 8 | *.ipr 9 | *.iml 10 | .idea 11 | out/ 12 | .DS_Store 13 | /bootstrap 14 | /dependencies.xml 15 | .java-version 16 | -------------------------------------------------------------------------------- /Jenkinsfile: -------------------------------------------------------------------------------- 1 | /** 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | asfMavenTlpPlgnBuild([ 21 | 'jdks': ['11', '17', '20'] 22 | ]) 23 | -------------------------------------------------------------------------------- /deploySite.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # 4 | # Licensed to the Apache Software Foundation (ASF) under one 5 | # or more contributor license agreements. See the NOTICE file 6 | # distributed with this work for additional information 7 | # regarding copyright ownership. The ASF licenses this file 8 | # to you under the Apache License, Version 2.0 (the 9 | # "License"); you may not use this file except in compliance 10 | # with the License. You may obtain a copy of the License at 11 | # 12 | # http://www.apache.org/licenses/LICENSE-2.0 13 | # 14 | # Unless required by applicable law or agreed to in writing, 15 | # software distributed under the License is distributed on an 16 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 17 | # KIND, either express or implied. See the License for the 18 | # specific language governing permissions and limitations 19 | # under the License. 20 | # 21 | 22 | mvn -DdependencyDetailsEnabled=false -Preporting site site:stage $@ 23 | mvn scm-publish:publish-scm $@ 24 | -------------------------------------------------------------------------------- /src/it/mrm/repository/localhost/com.soebes.nine.jar/1.0-SNAPSHOT/com.soebes.nine.jar-1.0-SNAPSHOT.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/maven-jlink-plugin/77e787e2adb1dd8932ea32cb5de40d3781fc82b0/src/it/mrm/repository/localhost/com.soebes.nine.jar/1.0-SNAPSHOT/com.soebes.nine.jar-1.0-SNAPSHOT.jar -------------------------------------------------------------------------------- /src/it/mrm/repository/localhost/com.soebes.nine.jar/1.0-SNAPSHOT/com.soebes.nine.jar-1.0-SNAPSHOT.pom: -------------------------------------------------------------------------------- 1 | 2 | 3 | 21 | 22 | 23 | 24 | 4.0.0 25 | 26 | localhost 27 | com.soebes.nine.jar 28 | 1.0-SNAPSHOT 29 | 30 | 31 | -------------------------------------------------------------------------------- /src/it/mrm/settings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 21 | 22 | 23 | 24 | 25 | mrm-maven-plugin 26 | Mock Repository Manager 27 | @mrm.repository.url@ 28 | * 29 | 30 | 31 | 32 | 33 | it-repo 34 | 35 | 36 | snapshots 37 | @mrm.repository.url@ 38 | 39 | true 40 | ignore 41 | never 42 | 43 | 44 | true 45 | ignore 46 | always 47 | 48 | 49 | 50 | 51 | 52 | snapshots 53 | @mrm.repository.url@ 54 | 55 | true 56 | ignore 57 | never 58 | 59 | 60 | true 61 | ignore 62 | always 63 | 64 | 65 | 66 | 67 | 68 | 69 | it-repo 70 | 71 | 72 | -------------------------------------------------------------------------------- /src/it/projects/MJLINK-26/invoker.properties: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, 12 | # software distributed under the License is distributed on an 13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | # KIND, either express or implied. See the License for the 15 | # specific language governing permissions and limitations 16 | # under the License. 17 | invoker.goals = clean package 18 | -------------------------------------------------------------------------------- /src/it/projects/MJLINK-26/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 20 | 21 | 24 | 4.0.0 25 | org.apache.maven.plugins 26 | maven-jlink-plugin-mjlink-26 27 | 96.0 28 | jlink 29 | Maven 30 | https://maven.apache.org 31 | Test JLink create a image from a module without any dependency. 32 | 33 | 1.9 34 | 1.9 35 | UTF-8 36 | 37 | 38 | 39 | 40 | org.apache.maven.plugins 41 | maven-compiler-plugin 42 | 3.8.0 43 | 44 | 1.9 45 | 1.9 46 | 47 | 48 | 49 | org.apache.maven.plugins 50 | maven-jlink-plugin 51 | @project.version@ 52 | true 53 | 54 | 55 | 56 | 57 | -------------------------------------------------------------------------------- /src/it/projects/MJLINK-26/src/main/java/com/corporate/project/Main.java: -------------------------------------------------------------------------------- 1 | package com.corporate.project; 2 | 3 | /* 4 | * Licensed to the Apache Software Foundation (ASF) under one 5 | * or more contributor license agreements. See the NOTICE file 6 | * distributed with this work for additional information 7 | * regarding copyright ownership. The ASF licenses this file 8 | * to you under the Apache License, Version 2.0 (the 9 | * "License"); you may not use this file except in compliance 10 | * with the License. You may obtain a copy of the License at 11 | * 12 | * http://www.apache.org/licenses/LICENSE-2.0 13 | * 14 | * Unless required by applicable law or agreed to in writing, 15 | * software distributed under the License is distributed on an 16 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 17 | * KIND, either express or implied. See the License for the 18 | * specific language governing permissions and limitations 19 | * under the License. 20 | */ 21 | 22 | public class Main 23 | { 24 | public static void main( String[] args ) 25 | { 26 | System.out.println( "Main one from Java 9+" ); 27 | if ( args.length > 0 ) 28 | { 29 | for ( String arg : args ) 30 | { 31 | System.out.println( " Arg: '" + arg + "'" ); 32 | } 33 | } 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /src/it/projects/MJLINK-26/src/main/java/module-info.java: -------------------------------------------------------------------------------- 1 | 2 | /* 3 | * Licensed to the Apache Software Foundation (ASF) under one 4 | * or more contributor license agreements. See the NOTICE file 5 | * distributed with this work for additional information 6 | * regarding copyright ownership. The ASF licenses this file 7 | * to you under the Apache License, Version 2.0 (the 8 | * "License"); you may not use this file except in compliance 9 | * with the License. You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, 14 | * software distributed under the License is distributed on an 15 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 | * KIND, either express or implied. See the License for the 17 | * specific language governing permissions and limitations 18 | * under the License. 19 | */ 20 | 21 | module com.corporate.project { 22 | requires java.base; 23 | exports com.corporate.project; 24 | } 25 | -------------------------------------------------------------------------------- /src/it/projects/MJLINK-26/verify.groovy: -------------------------------------------------------------------------------- 1 | 2 | /* 3 | * Licensed to the Apache Software Foundation (ASF) under one 4 | * or more contributor license agreements. See the NOTICE file 5 | * distributed with this work for additional information 6 | * regarding copyright ownership. The ASF licenses this file 7 | * to you under the Apache License, Version 2.0 (the 8 | * "License"); you may not use this file except in compliance 9 | * with the License. You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, 14 | * software distributed under the License is distributed on an 15 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 | * KIND, either express or implied. See the License for the 17 | * specific language governing permissions and limitations 18 | * under the License. 19 | */ 20 | 21 | import java.io.*; 22 | import java.util.*; 23 | import java.util.jar.*; 24 | import org.codehaus.plexus.util.*; 25 | 26 | boolean result = true; 27 | 28 | try 29 | { 30 | File target = new File( basedir, "target" ); 31 | if ( !target.exists() || !target.isDirectory() ) 32 | { 33 | System.err.println( "target file is missing or not a directory." ); 34 | return false; 35 | } 36 | File artifact = new File( target, "maven-jlink-plugin-mjlink-26-96.0.zip" ); 37 | if ( !artifact.exists() || artifact.isDirectory() ) 38 | { 39 | System.err.println( "maven-jlink-plugin-mjlink-26-96.0.zip file is missing or is a directory." ); 40 | return false; 41 | } 42 | 43 | } 44 | catch( Throwable e ) 45 | { 46 | e.printStackTrace(); 47 | result = false; 48 | } 49 | 50 | return result; 51 | -------------------------------------------------------------------------------- /src/it/projects/MJLINK-3_improveVerboseOutput/invoker.properties: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, 12 | # software distributed under the License is distributed on an 13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | # KIND, either express or implied. See the License for the 15 | # specific language governing permissions and limitations 16 | # under the License. 17 | invoker.goals = clean install 18 | -------------------------------------------------------------------------------- /src/it/projects/MJLINK-3_improveVerboseOutput/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 21 | 22 | 25 | 4.0.0 26 | org.apache.maven.plugins.jlink.its 27 | mjlink3 28 | 1.0.0-SNAPSHOT 29 | jlink 30 | 31 | 32 | 1.9 33 | 1.9 34 | UTF-8 35 | 36 | 37 | 38 | 39 | 40 | asm 41 | org.ow2.asm 42 | 9.0 43 | 44 | 45 | 46 | 47 | 48 | 49 | org.apache.maven.plugins 50 | maven-jlink-plugin 51 | @project.version@ 52 | true 53 | 54 | true 55 | true 56 | true 57 | 58 | 59 | 60 | 61 | 62 | 63 | org.apache.maven.plugins 64 | maven-compiler-plugin 65 | 3.8.0 66 | 67 | ${maven.compiler.source} 68 | ${maven.compiler.target} 69 | 70 | 71 | 72 | 73 | 74 | 75 | -------------------------------------------------------------------------------- /src/it/projects/MJLINK-40_includeLocales/invoker.properties: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, 12 | # software distributed under the License is distributed on an 13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | # KIND, either express or implied. See the License for the 15 | # specific language governing permissions and limitations 16 | # under the License. 17 | invoker.goals = clean install 18 | -------------------------------------------------------------------------------- /src/it/projects/MJLINK-40_includeLocales/verify.groovy: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | import java.io.*; 21 | import java.util.*; 22 | import java.util.jar.*; 23 | import org.codehaus.plexus.util.*; 24 | 25 | boolean result = false; 26 | 27 | try 28 | { 29 | File buildLog = new File( basedir, "build.log" ); 30 | if ( !buildLog.exists() || buildLog.isDirectory() ) 31 | { 32 | System.err.println( "build.log file is missing or is a directory." ); 33 | return false; 34 | } 35 | 36 | def line = buildLog.eachLine { line -> 37 | if (line.contains('--include-locales, en,ja,de,*-IN')) 38 | { 39 | result = true; 40 | } 41 | } 42 | } 43 | catch( Throwable e ) 44 | { 45 | e.printStackTrace(); 46 | } 47 | 48 | return result; 49 | -------------------------------------------------------------------------------- /src/it/projects/MJLINK-41_addoptions-11/invoker.properties: -------------------------------------------------------------------------------- 1 | # suppress inspection "UnusedProperty" for whole file 2 | # Licensed to the Apache Software Foundation (ASF) under one 3 | # or more contributor license agreements. See the NOTICE file 4 | # distributed with this work for additional information 5 | # regarding copyright ownership. The ASF licenses this file 6 | # to you under the Apache License, Version 2.0 (the 7 | # "License"); you may not use this file except in compliance 8 | # with the License. You may obtain a copy of the License at 9 | # 10 | # http://www.apache.org/licenses/LICENSE-2.0 11 | # 12 | # Unless required by applicable law or agreed to in writing, 13 | # software distributed under the License is distributed on an 14 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | # KIND, either express or implied. See the License for the 16 | # specific language governing permissions and limitations 17 | # under the License. 18 | invoker.java.version = 9-13 19 | invoker.goals = clean package 20 | invoker.buildResult = failure 21 | # must not use toolchain 22 | -------------------------------------------------------------------------------- /src/it/projects/MJLINK-41_addoptions-11/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 20 | 21 | 24 | 4.0.0 25 | org.apache.maven.plugins.it 26 | MJLINK-41.not.14 27 | 101.0 28 | jlink 29 | Maven 30 | http://maven.apache.org 31 | Test JLink CLI Options --add-options using java 11 (which must fail without toolchain). 32 | 33 | 11 34 | UTF-8 35 | 36 | 37 | 38 | localhost 39 | first-jar-module-info 40 | 99.0 41 | 42 | 43 | 44 | 45 | 46 | org.apache.maven.plugins 47 | maven-compiler-plugin 48 | 3.8.0 49 | 50 | 51 | org.apache.maven.plugins 52 | maven-jlink-plugin 53 | @project.version@ 54 | true 55 | 56 | 57 | -Xmx128m 58 | --enable-preview 59 | -Dvar=value 60 | 61 | 62 | 63 | 64 | 65 | 66 | -------------------------------------------------------------------------------- /src/it/projects/MJLINK-41_addoptions-11/src/main/configs/config.test: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | Test configuration file which should be located in config/config.test in 21 | resulting jmod file. -------------------------------------------------------------------------------- /src/it/projects/MJLINK-41_addoptions-11/verify.groovy: -------------------------------------------------------------------------------- 1 | 2 | /* 3 | * Licensed to the Apache Software Foundation (ASF) under one 4 | * or more contributor license agreements. See the NOTICE file 5 | * distributed with this work for additional information 6 | * regarding copyright ownership. The ASF licenses this file 7 | * to you under the Apache License, Version 2.0 (the 8 | * "License"); you may not use this file except in compliance 9 | * with the License. You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, 14 | * software distributed under the License is distributed on an 15 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 | * KIND, either express or implied. See the License for the 17 | * specific language governing permissions and limitations 18 | * under the License. 19 | */ 20 | 21 | import java.io.* 22 | import java.util.* 23 | import java.util.jar.* 24 | import org.codehaus.plexus.util.* 25 | 26 | String buildlog = new File( basedir, "build.log").text 27 | assert buildlog.contains( "org.apache.maven.plugin.MojoFailureException" ) 28 | assert buildlog.contains( "needs at least a Java 14" ) 29 | 30 | 31 | -------------------------------------------------------------------------------- /src/it/projects/MJLINK-4_dependencyResolution/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 21 | 22 | 25 | 4.0.0 26 | org.apache.maven.plugins.jlink.its 27 | mjlink4 28 | 1.0.0-SNAPSHOT 29 | jlink 30 | 31 | 32 | 33 | 34 | org.apache.maven.plugins 35 | maven-jlink-plugin 36 | @project.version@ 37 | true 38 | 39 | true 40 | true 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | asm 50 | org.ow2.asm 51 | 6.0 52 | 53 | 54 | 55 | -------------------------------------------------------------------------------- /src/it/projects/MJLINK-52_classifiers/invoker.properties: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, 12 | # software distributed under the License is distributed on an 13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | # KIND, either express or implied. See the License for the 15 | # specific language governing permissions and limitations 16 | # under the License. 17 | invoker.goals = clean package 18 | -------------------------------------------------------------------------------- /src/it/projects/MJLINK-52_classifiers/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 20 | 21 | 24 | 4.0.0 25 | org.apache.maven.plugins 26 | maven-jlink-plugin-mjlink-52 27 | 96.0 28 | jlink 29 | Maven 30 | https://maven.apache.org 31 | Test JLink creates archives with classifiers. 32 | 33 | 9 34 | UTF-8 35 | 36 | 37 | 38 | 39 | org.apache.maven.plugins 40 | maven-compiler-plugin 41 | 3.8.0 42 | 43 | 44 | org.apache.maven.plugins 45 | maven-jlink-plugin 46 | @project.version@ 47 | true 48 | 49 | jlink 50 | 51 | 52 | 53 | 54 | 55 | -------------------------------------------------------------------------------- /src/it/projects/MJLINK-52_classifiers/src/main/java/com/corporate/project/Main.java: -------------------------------------------------------------------------------- 1 | package com.corporate.project; 2 | 3 | /* 4 | * Licensed to the Apache Software Foundation (ASF) under one 5 | * or more contributor license agreements. See the NOTICE file 6 | * distributed with this work for additional information 7 | * regarding copyright ownership. The ASF licenses this file 8 | * to you under the Apache License, Version 2.0 (the 9 | * "License"); you may not use this file except in compliance 10 | * with the License. You may obtain a copy of the License at 11 | * 12 | * http://www.apache.org/licenses/LICENSE-2.0 13 | * 14 | * Unless required by applicable law or agreed to in writing, 15 | * software distributed under the License is distributed on an 16 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 17 | * KIND, either express or implied. See the License for the 18 | * specific language governing permissions and limitations 19 | * under the License. 20 | */ 21 | 22 | public class Main 23 | { 24 | public static void main( String[] args ) 25 | { 26 | System.out.println( "Main one from Java 9+" ); 27 | if ( args.length > 0 ) 28 | { 29 | for ( String arg : args ) 30 | { 31 | System.out.println( " Arg: '" + arg + "'" ); 32 | } 33 | } 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /src/it/projects/MJLINK-52_classifiers/src/main/java/module-info.java: -------------------------------------------------------------------------------- 1 | 2 | /* 3 | * Licensed to the Apache Software Foundation (ASF) under one 4 | * or more contributor license agreements. See the NOTICE file 5 | * distributed with this work for additional information 6 | * regarding copyright ownership. The ASF licenses this file 7 | * to you under the Apache License, Version 2.0 (the 8 | * "License"); you may not use this file except in compliance 9 | * with the License. You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, 14 | * software distributed under the License is distributed on an 15 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 | * KIND, either express or implied. See the License for the 17 | * specific language governing permissions and limitations 18 | * under the License. 19 | */ 20 | 21 | module com.corporate.project { 22 | requires java.base; 23 | exports com.corporate.project; 24 | } 25 | -------------------------------------------------------------------------------- /src/it/projects/MJLINK-52_classifiers/verify.groovy: -------------------------------------------------------------------------------- 1 | 2 | /* 3 | * Licensed to the Apache Software Foundation (ASF) under one 4 | * or more contributor license agreements. See the NOTICE file 5 | * distributed with this work for additional information 6 | * regarding copyright ownership. The ASF licenses this file 7 | * to you under the Apache License, Version 2.0 (the 8 | * "License"); you may not use this file except in compliance 9 | * with the License. You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, 14 | * software distributed under the License is distributed on an 15 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 | * KIND, either express or implied. See the License for the 17 | * specific language governing permissions and limitations 18 | * under the License. 19 | */ 20 | 21 | import java.io.*; 22 | import java.util.*; 23 | import java.util.jar.*; 24 | import org.codehaus.plexus.util.*; 25 | 26 | try 27 | { 28 | File target = new File( basedir, "target" ) 29 | if ( !target.exists() || !target.isDirectory() ) 30 | { 31 | System.err.println( "target file is missing or not a directory." ) 32 | return false 33 | } 34 | 35 | File artifact = new File( target, "maven-jlink-plugin-mjlink-52-96.0-jlink.zip" ) 36 | if ( !artifact.exists() || artifact.isDirectory() ) 37 | { 38 | System.err.println( "maven-jlink-plugin-mjlink-52-96.0-jlink.zip file is missing or is a directory." ) 39 | return false 40 | } 41 | 42 | return true 43 | } 44 | catch( Throwable e ) 45 | { 46 | e.printStackTrace() 47 | return false 48 | } 49 | -------------------------------------------------------------------------------- /src/it/projects/MJLINK-52_classifiers_duplicate_classifier/invoker.properties: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, 12 | # software distributed under the License is distributed on an 13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | # KIND, either express or implied. See the License for the 15 | # specific language governing permissions and limitations 16 | # under the License. 17 | invoker.goals = clean package 18 | -------------------------------------------------------------------------------- /src/it/projects/MJLINK-52_classifiers_duplicate_classifier/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 20 | 21 | 24 | 4.0.0 25 | org.apache.maven.plugins 26 | maven-jlink-plugin-mjlink-52 27 | 96.0 28 | jar 29 | Maven 30 | https://maven.apache.org 31 | Test JLink does not fail on duplicate classifiers. 32 | 33 | 9 34 | UTF-8 35 | 36 | 37 | 38 | 39 | org.apache.maven.plugins 40 | maven-compiler-plugin 41 | 3.8.0 42 | 43 | 44 | org.apache.maven.plugins 45 | maven-jlink-plugin 46 | @project.version@ 47 | 48 | 49 | primary-jlink 50 | 51 | jlink 52 | 53 | 54 | jlink1 55 | 56 | 57 | 58 | secondary-jlink 59 | package 60 | 61 | jlink 62 | 63 | 64 | jlink1 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | -------------------------------------------------------------------------------- /src/it/projects/MJLINK-52_classifiers_duplicate_classifier/src/main/java/com/corporate/project/Main.java: -------------------------------------------------------------------------------- 1 | package com.corporate.project; 2 | 3 | /* 4 | * Licensed to the Apache Software Foundation (ASF) under one 5 | * or more contributor license agreements. See the NOTICE file 6 | * distributed with this work for additional information 7 | * regarding copyright ownership. The ASF licenses this file 8 | * to you under the Apache License, Version 2.0 (the 9 | * "License"); you may not use this file except in compliance 10 | * with the License. You may obtain a copy of the License at 11 | * 12 | * http://www.apache.org/licenses/LICENSE-2.0 13 | * 14 | * Unless required by applicable law or agreed to in writing, 15 | * software distributed under the License is distributed on an 16 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 17 | * KIND, either express or implied. See the License for the 18 | * specific language governing permissions and limitations 19 | * under the License. 20 | */ 21 | 22 | public class Main 23 | { 24 | public static void main( String[] args ) 25 | { 26 | System.out.println( "Main one from Java 9+" ); 27 | if ( args.length > 0 ) 28 | { 29 | for ( String arg : args ) 30 | { 31 | System.out.println( " Arg: '" + arg + "'" ); 32 | } 33 | } 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /src/it/projects/MJLINK-52_classifiers_duplicate_classifier/src/main/java/module-info.java: -------------------------------------------------------------------------------- 1 | 2 | /* 3 | * Licensed to the Apache Software Foundation (ASF) under one 4 | * or more contributor license agreements. See the NOTICE file 5 | * distributed with this work for additional information 6 | * regarding copyright ownership. The ASF licenses this file 7 | * to you under the Apache License, Version 2.0 (the 8 | * "License"); you may not use this file except in compliance 9 | * with the License. You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, 14 | * software distributed under the License is distributed on an 15 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 | * KIND, either express or implied. See the License for the 17 | * specific language governing permissions and limitations 18 | * under the License. 19 | */ 20 | 21 | module com.corporate.project { 22 | requires java.base; 23 | exports com.corporate.project; 24 | } 25 | -------------------------------------------------------------------------------- /src/it/projects/MJLINK-52_classifiers_duplicate_classifier/verify.groovy: -------------------------------------------------------------------------------- 1 | 2 | /* 3 | * Licensed to the Apache Software Foundation (ASF) under one 4 | * or more contributor license agreements. See the NOTICE file 5 | * distributed with this work for additional information 6 | * regarding copyright ownership. The ASF licenses this file 7 | * to you under the Apache License, Version 2.0 (the 8 | * "License"); you may not use this file except in compliance 9 | * with the License. You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, 14 | * software distributed under the License is distributed on an 15 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 | * KIND, either express or implied. See the License for the 17 | * specific language governing permissions and limitations 18 | * under the License. 19 | */ 20 | 21 | import java.io.*; 22 | import java.util.*; 23 | import java.util.jar.*; 24 | import org.codehaus.plexus.util.*; 25 | 26 | try 27 | { 28 | File target = new File( basedir, "target" ); 29 | if ( !target.exists() || !target.isDirectory() ) 30 | { 31 | System.err.println( "target file is missing or not a directory." ); 32 | return false; 33 | } 34 | File artifact = new File( target, "maven-jlink-plugin-mjlink-52-96.0-jlink1.zip" ); 35 | if ( !artifact.exists() || artifact.isDirectory() ) 36 | { 37 | System.err.println( "maven-jlink-plugin-mjlink-52-96.0-jlink1.zip file is missing or is a directory." ); 38 | return false; 39 | } 40 | 41 | return true; 42 | } 43 | catch( Throwable e ) 44 | { 45 | e.printStackTrace(); 46 | return false; 47 | } 48 | -------------------------------------------------------------------------------- /src/it/projects/MJLINK-52_classifiers_duplicate_default/invoker.properties: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, 12 | # software distributed under the License is distributed on an 13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | # KIND, either express or implied. See the License for the 15 | # specific language governing permissions and limitations 16 | # under the License. 17 | invoker.goals = clean package 18 | invoker.buildResult = failure 19 | -------------------------------------------------------------------------------- /src/it/projects/MJLINK-52_classifiers_duplicate_default/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 20 | 21 | 24 | 4.0.0 25 | org.apache.maven.plugins 26 | maven-jlink-plugin-mjlink-52 27 | 96.0 28 | jlink 29 | Maven 30 | https://maven.apache.org 31 | Test JLink fails on duplicate default artifact. 32 | 33 | 9 34 | UTF-8 35 | 36 | 37 | 38 | 39 | org.apache.maven.plugins 40 | maven-compiler-plugin 41 | 3.8.0 42 | 43 | 44 | org.apache.maven.plugins 45 | maven-jlink-plugin 46 | @project.version@ 47 | true 48 | 49 | 50 | default-jlink 51 | 52 | 53 | 54 | secondary-jlink 55 | package 56 | 57 | jlink 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | -------------------------------------------------------------------------------- /src/it/projects/MJLINK-52_classifiers_duplicate_default/src/main/java/com/corporate/project/Main.java: -------------------------------------------------------------------------------- 1 | package com.corporate.project; 2 | 3 | /* 4 | * Licensed to the Apache Software Foundation (ASF) under one 5 | * or more contributor license agreements. See the NOTICE file 6 | * distributed with this work for additional information 7 | * regarding copyright ownership. The ASF licenses this file 8 | * to you under the Apache License, Version 2.0 (the 9 | * "License"); you may not use this file except in compliance 10 | * with the License. You may obtain a copy of the License at 11 | * 12 | * http://www.apache.org/licenses/LICENSE-2.0 13 | * 14 | * Unless required by applicable law or agreed to in writing, 15 | * software distributed under the License is distributed on an 16 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 17 | * KIND, either express or implied. See the License for the 18 | * specific language governing permissions and limitations 19 | * under the License. 20 | */ 21 | 22 | public class Main 23 | { 24 | public static void main( String[] args ) 25 | { 26 | System.out.println( "Main one from Java 9+" ); 27 | if ( args.length > 0 ) 28 | { 29 | for ( String arg : args ) 30 | { 31 | System.out.println( " Arg: '" + arg + "'" ); 32 | } 33 | } 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /src/it/projects/MJLINK-52_classifiers_duplicate_default/src/main/java/module-info.java: -------------------------------------------------------------------------------- 1 | 2 | /* 3 | * Licensed to the Apache Software Foundation (ASF) under one 4 | * or more contributor license agreements. See the NOTICE file 5 | * distributed with this work for additional information 6 | * regarding copyright ownership. The ASF licenses this file 7 | * to you under the Apache License, Version 2.0 (the 8 | * "License"); you may not use this file except in compliance 9 | * with the License. You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, 14 | * software distributed under the License is distributed on an 15 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 | * KIND, either express or implied. See the License for the 17 | * specific language governing permissions and limitations 18 | * under the License. 19 | */ 20 | 21 | module com.corporate.project { 22 | requires java.base; 23 | exports com.corporate.project; 24 | } 25 | -------------------------------------------------------------------------------- /src/it/projects/MJLINK-52_classifiers_duplicate_default/verify.groovy: -------------------------------------------------------------------------------- 1 | 2 | /* 3 | * Licensed to the Apache Software Foundation (ASF) under one 4 | * or more contributor license agreements. See the NOTICE file 5 | * distributed with this work for additional information 6 | * regarding copyright ownership. The ASF licenses this file 7 | * to you under the Apache License, Version 2.0 (the 8 | * "License"); you may not use this file except in compliance 9 | * with the License. You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, 14 | * software distributed under the License is distributed on an 15 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 | * KIND, either express or implied. See the License for the 17 | * specific language governing permissions and limitations 18 | * under the License. 19 | */ 20 | 21 | import java.io.*; 22 | import java.util.*; 23 | import java.util.jar.*; 24 | import org.codehaus.plexus.util.*; 25 | 26 | try 27 | { 28 | File target = new File( basedir, "target" ); 29 | if ( !target.exists() || !target.isDirectory() ) 30 | { 31 | System.err.println( "target file is missing or not a directory." ); 32 | return false; 33 | } 34 | File artifact = new File( target, "maven-jlink-plugin-mjlink-52-96.0.zip" ); 35 | if ( !artifact.exists() || artifact.isDirectory() ) 36 | { 37 | System.err.println( "maven-jlink-plugin-mjlink-52-96.0.zip file is missing or is a directory." ); 38 | return false; 39 | } 40 | 41 | return true; 42 | } 43 | catch( Throwable e ) 44 | { 45 | e.printStackTrace(); 46 | return false; 47 | } 48 | -------------------------------------------------------------------------------- /src/it/projects/MJLINK-52_classifiers_jarproject/invoker.properties: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, 12 | # software distributed under the License is distributed on an 13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | # KIND, either express or implied. See the License for the 15 | # specific language governing permissions and limitations 16 | # under the License. 17 | invoker.goals = clean package 18 | -------------------------------------------------------------------------------- /src/it/projects/MJLINK-52_classifiers_jarproject/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 20 | 21 | 24 | 4.0.0 25 | org.apache.maven.plugins 26 | maven-jlink-plugin-mjlink-52 27 | 96.0 28 | jar 29 | Maven 30 | https://maven.apache.org 31 | Test JLink creates an additional archive with classifiers on a jar-packaged project. 32 | 33 | 9 34 | UTF-8 35 | 36 | 37 | 38 | 39 | org.apache.maven.plugins 40 | maven-compiler-plugin 41 | 3.8.0 42 | 43 | 44 | org.apache.maven.plugins 45 | maven-jlink-plugin 46 | @project.version@ 47 | true 48 | 49 | 50 | create-dist 51 | package 52 | 53 | jlink 54 | 55 | 56 | jlink 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | -------------------------------------------------------------------------------- /src/it/projects/MJLINK-52_classifiers_jarproject/src/main/java/com/corporate/project/Main.java: -------------------------------------------------------------------------------- 1 | package com.corporate.project; 2 | 3 | /* 4 | * Licensed to the Apache Software Foundation (ASF) under one 5 | * or more contributor license agreements. See the NOTICE file 6 | * distributed with this work for additional information 7 | * regarding copyright ownership. The ASF licenses this file 8 | * to you under the Apache License, Version 2.0 (the 9 | * "License"); you may not use this file except in compliance 10 | * with the License. You may obtain a copy of the License at 11 | * 12 | * http://www.apache.org/licenses/LICENSE-2.0 13 | * 14 | * Unless required by applicable law or agreed to in writing, 15 | * software distributed under the License is distributed on an 16 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 17 | * KIND, either express or implied. See the License for the 18 | * specific language governing permissions and limitations 19 | * under the License. 20 | */ 21 | 22 | public class Main 23 | { 24 | public static void main( String[] args ) 25 | { 26 | System.out.println( "Main one from Java 9+" ); 27 | if ( args.length > 0 ) 28 | { 29 | for ( String arg : args ) 30 | { 31 | System.out.println( " Arg: '" + arg + "'" ); 32 | } 33 | } 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /src/it/projects/MJLINK-52_classifiers_jarproject/src/main/java/module-info.java: -------------------------------------------------------------------------------- 1 | 2 | /* 3 | * Licensed to the Apache Software Foundation (ASF) under one 4 | * or more contributor license agreements. See the NOTICE file 5 | * distributed with this work for additional information 6 | * regarding copyright ownership. The ASF licenses this file 7 | * to you under the Apache License, Version 2.0 (the 8 | * "License"); you may not use this file except in compliance 9 | * with the License. You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, 14 | * software distributed under the License is distributed on an 15 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 | * KIND, either express or implied. See the License for the 17 | * specific language governing permissions and limitations 18 | * under the License. 19 | */ 20 | 21 | module com.corporate.project { 22 | requires java.base; 23 | exports com.corporate.project; 24 | } 25 | -------------------------------------------------------------------------------- /src/it/projects/MJLINK-52_classifiers_jarproject/verify.groovy: -------------------------------------------------------------------------------- 1 | 2 | /* 3 | * Licensed to the Apache Software Foundation (ASF) under one 4 | * or more contributor license agreements. See the NOTICE file 5 | * distributed with this work for additional information 6 | * regarding copyright ownership. The ASF licenses this file 7 | * to you under the Apache License, Version 2.0 (the 8 | * "License"); you may not use this file except in compliance 9 | * with the License. You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, 14 | * software distributed under the License is distributed on an 15 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 | * KIND, either express or implied. See the License for the 17 | * specific language governing permissions and limitations 18 | * under the License. 19 | */ 20 | 21 | import java.io.*; 22 | import java.util.*; 23 | import java.util.jar.*; 24 | import org.codehaus.plexus.util.*; 25 | 26 | try 27 | { 28 | File target = new File( basedir, "target" ) 29 | if ( !target.exists() || !target.isDirectory() ) 30 | { 31 | System.err.println( "target file is missing or not a directory." ) 32 | return false 33 | } 34 | 35 | File primaryArtifact = new File( target, "maven-jlink-plugin-mjlink-52-96.0.jar" ) 36 | if ( !primaryArtifact.exists() || primaryArtifact.isDirectory() ) 37 | { 38 | System.err.println( "maven-jlink-plugin-mjlink-52-96.0.jar file is missing or is a directory." ) 39 | return false 40 | } 41 | 42 | File jlinkArtifact = new File( target, "maven-jlink-plugin-mjlink-52-96.0-jlink.zip" ) 43 | if ( !jlinkArtifact.exists() || jlinkArtifact.isDirectory() ) 44 | { 45 | System.err.println( "maven-jlink-plugin-mjlink-52-96.0-jlink.zip file is missing or is a directory." ) 46 | return false 47 | } 48 | 49 | return true 50 | } 51 | catch( Throwable e ) 52 | { 53 | e.printStackTrace() 54 | return false 55 | } 56 | -------------------------------------------------------------------------------- /src/it/projects/MJLINK-6_allowSetJmodPath/invoker.properties: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, 12 | # software distributed under the License is distributed on an 13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | # KIND, either express or implied. See the License for the 15 | # specific language governing permissions and limitations 16 | # under the License. 17 | invoker.goals = clean package 18 | -------------------------------------------------------------------------------- /src/it/projects/MJLINK-6_allowSetJmodPath/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 20 | 21 | 24 | 4.0.0 25 | org.apache.maven.plugins 26 | maven-jlink-plugin-mjlink-6 27 | 96.0 28 | jlink 29 | https://issues.apache.org/jira/browse/MJLINK-6 30 | 31 | Test JLink create a distributable JVM that is not currently used 32 | 33 | 1.9 34 | 1.9 35 | UTF-8 36 | 37 | 38 | 39 | 40 | org.apache.maven.plugins 41 | maven-compiler-plugin 42 | 3.8.0 43 | 44 | 1.9 45 | 1.9 46 | 47 | 48 | 49 | org.apache.maven.plugins 50 | maven-jlink-plugin 51 | @project.version@ 52 | true 53 | 54 | ${java.home} 55 | 56 | 57 | 58 | 59 | 60 | -------------------------------------------------------------------------------- /src/it/projects/MJLINK-6_allowSetJmodPath/src/main/java/com/corporate/project/Main.java: -------------------------------------------------------------------------------- 1 | package com.corporate.project; 2 | 3 | /* 4 | * Licensed to the Apache Software Foundation (ASF) under one 5 | * or more contributor license agreements. See the NOTICE file 6 | * distributed with this work for additional information 7 | * regarding copyright ownership. The ASF licenses this file 8 | * to you under the Apache License, Version 2.0 (the 9 | * "License"); you may not use this file except in compliance 10 | * with the License. You may obtain a copy of the License at 11 | * 12 | * http://www.apache.org/licenses/LICENSE-2.0 13 | * 14 | * Unless required by applicable law or agreed to in writing, 15 | * software distributed under the License is distributed on an 16 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 17 | * KIND, either express or implied. See the License for the 18 | * specific language governing permissions and limitations 19 | * under the License. 20 | */ 21 | 22 | public class Main 23 | { 24 | public static void main( String[] args ) 25 | { 26 | System.out.println( "Main one from Java 9+" ); 27 | if ( args.length > 0 ) 28 | { 29 | for ( String arg : args ) 30 | { 31 | System.out.println( " Arg: '" + arg + "'" ); 32 | } 33 | } 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /src/it/projects/MJLINK-6_allowSetJmodPath/src/main/java/module-info.java: -------------------------------------------------------------------------------- 1 | 2 | /* 3 | * Licensed to the Apache Software Foundation (ASF) under one 4 | * or more contributor license agreements. See the NOTICE file 5 | * distributed with this work for additional information 6 | * regarding copyright ownership. The ASF licenses this file 7 | * to you under the Apache License, Version 2.0 (the 8 | * "License"); you may not use this file except in compliance 9 | * with the License. You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, 14 | * software distributed under the License is distributed on an 15 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 | * KIND, either express or implied. See the License for the 17 | * specific language governing permissions and limitations 18 | * under the License. 19 | */ 20 | 21 | module com.corporate.project { 22 | requires java.base; 23 | exports com.corporate.project; 24 | } 25 | -------------------------------------------------------------------------------- /src/it/projects/MJLINK-6_allowSetJmodPath/verify.groovy: -------------------------------------------------------------------------------- 1 | 2 | /* 3 | * Licensed to the Apache Software Foundation (ASF) under one 4 | * or more contributor license agreements. See the NOTICE file 5 | * distributed with this work for additional information 6 | * regarding copyright ownership. The ASF licenses this file 7 | * to you under the Apache License, Version 2.0 (the 8 | * "License"); you may not use this file except in compliance 9 | * with the License. You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, 14 | * software distributed under the License is distributed on an 15 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 | * KIND, either express or implied. See the License for the 17 | * specific language governing permissions and limitations 18 | * under the License. 19 | */ 20 | 21 | import java.io.* 22 | import java.util.* 23 | import java.util.jar.* 24 | import org.codehaus.plexus.util.* 25 | 26 | File target = new File( basedir, "target" ); 27 | assert target.isDirectory() 28 | 29 | File artifact = new File( target, "maven-jlink-plugin-mjlink-6-96.0.zip" ); 30 | assert artifact.isFile() -------------------------------------------------------------------------------- /src/it/projects/MJLINK-77_compress-parameters/invoker.properties: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, 12 | # software distributed under the License is distributed on an 13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | # KIND, either express or implied. See the License for the 15 | # specific language governing permissions and limitations 16 | # under the License. 17 | invoker.java.version = 21+ 18 | invoker.goals = clean package 19 | -------------------------------------------------------------------------------- /src/it/projects/MJLINK-77_compress-parameters/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 20 | 21 | 24 | 4.0.0 25 | org.apache.maven.plugins 26 | maven-jlink-plugin-mjlink-77 27 | 96.0 28 | jlink 29 | Maven 30 | https://maven.apache.org 31 | Test JLink JDK21+ compress parameter. 32 | 33 | 21 34 | UTF-8 35 | 36 | 37 | 38 | 39 | org.apache.maven.plugins 40 | maven-compiler-plugin 41 | 3.12.0 42 | 43 | 21 44 | 45 | 46 | 47 | org.apache.maven.plugins 48 | maven-jlink-plugin 49 | @project.version@ 50 | true 51 | 52 | zip-1 53 | 54 | 55 | 56 | 57 | 58 | -------------------------------------------------------------------------------- /src/it/projects/MJLINK-77_compress-parameters/src/main/java/com/corporate/project/Main.java: -------------------------------------------------------------------------------- 1 | package com.corporate.project; 2 | 3 | /* 4 | * Licensed to the Apache Software Foundation (ASF) under one 5 | * or more contributor license agreements. See the NOTICE file 6 | * distributed with this work for additional information 7 | * regarding copyright ownership. The ASF licenses this file 8 | * to you under the Apache License, Version 2.0 (the 9 | * "License"); you may not use this file except in compliance 10 | * with the License. You may obtain a copy of the License at 11 | * 12 | * http://www.apache.org/licenses/LICENSE-2.0 13 | * 14 | * Unless required by applicable law or agreed to in writing, 15 | * software distributed under the License is distributed on an 16 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 17 | * KIND, either express or implied. See the License for the 18 | * specific language governing permissions and limitations 19 | * under the License. 20 | */ 21 | 22 | public class Main 23 | { 24 | public static void main( String[] args ) 25 | { 26 | System.out.println( "Main one from Java 9+" ); 27 | if ( args.length > 0 ) 28 | { 29 | for ( String arg : args ) 30 | { 31 | System.out.println( " Arg: '" + arg + "'" ); 32 | } 33 | } 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /src/it/projects/MJLINK-77_compress-parameters/src/main/java/module-info.java: -------------------------------------------------------------------------------- 1 | 2 | /* 3 | * Licensed to the Apache Software Foundation (ASF) under one 4 | * or more contributor license agreements. See the NOTICE file 5 | * distributed with this work for additional information 6 | * regarding copyright ownership. The ASF licenses this file 7 | * to you under the Apache License, Version 2.0 (the 8 | * "License"); you may not use this file except in compliance 9 | * with the License. You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, 14 | * software distributed under the License is distributed on an 15 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 | * KIND, either express or implied. See the License for the 17 | * specific language governing permissions and limitations 18 | * under the License. 19 | */ 20 | 21 | module com.corporate.project { 22 | requires java.base; 23 | exports com.corporate.project; 24 | } 25 | -------------------------------------------------------------------------------- /src/it/projects/MJLINK-77_compress-parameters/verify.groovy: -------------------------------------------------------------------------------- 1 | 2 | /* 3 | * Licensed to the Apache Software Foundation (ASF) under one 4 | * or more contributor license agreements. See the NOTICE file 5 | * distributed with this work for additional information 6 | * regarding copyright ownership. The ASF licenses this file 7 | * to you under the Apache License, Version 2.0 (the 8 | * "License"); you may not use this file except in compliance 9 | * with the License. You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, 14 | * software distributed under the License is distributed on an 15 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 | * KIND, either express or implied. See the License for the 17 | * specific language governing permissions and limitations 18 | * under the License. 19 | */ 20 | 21 | import java.io.*; 22 | import java.util.*; 23 | import java.util.jar.*; 24 | import org.codehaus.plexus.util.*; 25 | 26 | boolean result = true; 27 | 28 | try 29 | { 30 | File target = new File( basedir, "target" ); 31 | if ( !target.exists() || !target.isDirectory() ) 32 | { 33 | System.err.println( "target file is missing or not a directory." ); 34 | return false; 35 | } 36 | File artifact = new File( target, "maven-jlink-plugin-mjlink-77-96.0.zip" ); 37 | if ( !artifact.exists() || artifact.isDirectory() ) 38 | { 39 | System.err.println( "maven-jlink-plugin-mjlink-77-96.0.zip file is missing or is a directory." ); 40 | return false; 41 | } 42 | 43 | def buildLog = new File(basedir, "build.log") 44 | def found = false 45 | buildLog.eachLine{line -> 46 | if (line.contains("--compress, zip-1")) { 47 | found = true 48 | } 49 | } 50 | if (!found) { 51 | System.err.println( "Not found in build.log: '--compress, zip-1'." ) 52 | return false 53 | } 54 | 55 | } 56 | catch( Throwable e ) 57 | { 58 | e.printStackTrace(); 59 | result = false; 60 | } 61 | 62 | return result; 63 | -------------------------------------------------------------------------------- /src/it/projects/MJLINK-80_additionalResources/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 20 | 21 | 24 | 4.0.0 25 | org.apache.maven.plugins 26 | maven-jlink-plugin-mjlink-80 27 | 42.0.0 28 | jlink 29 | Test adding extra resources 30 | 31 | 9 32 | UTF-8 33 | 34 | 35 | 36 | 37 | org.apache.maven.plugins 38 | maven-jlink-plugin 39 | @project.version@ 40 | true 41 | 42 | 43 | java.base 44 | 45 | 46 | 47 | src/jlink/resources 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | -------------------------------------------------------------------------------- /src/it/projects/MJLINK-80_additionalResources/src/jlink/resources/README.md: -------------------------------------------------------------------------------- 1 | 17 | 18 | This application has been created with the JLink tool! -------------------------------------------------------------------------------- /src/it/projects/MJLINK-80_additionalResources/verify.groovy: -------------------------------------------------------------------------------- 1 | 2 | /* 3 | * Licensed to the Apache Software Foundation (ASF) under one 4 | * or more contributor license agreements. See the NOTICE file 5 | * distributed with this work for additional information 6 | * regarding copyright ownership. The ASF licenses this file 7 | * to you under the Apache License, Version 2.0 (the 8 | * "License"); you may not use this file except in compliance 9 | * with the License. You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, 14 | * software distributed under the License is distributed on an 15 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 | * KIND, either express or implied. See the License for the 17 | * specific language governing permissions and limitations 18 | * under the License. 19 | */ 20 | 21 | import java.io.*; 22 | import java.util.*; 23 | import java.util.zip.*; 24 | 25 | assert new File( basedir, 'target/maven-jlink/default/README.md' ).exists() 26 | 27 | def file = new File( basedir, 'target/maven-jlink-plugin-mjlink-80-42.0.0.zip') 28 | 29 | assert new ZipFile(file).getEntry('README.md') -------------------------------------------------------------------------------- /src/it/projects/MJLINK-9_reactor/api/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 20 | 21 | 24 | 4.0.0 25 | 26 | 27 | org.apache.maven.plugins 28 | maven-jlink-plugin-mjlink-9 29 | 96.0 30 | ../pom.xml 31 | 32 | 33 | 34 | maven-jlink-plugin-mjlink-9-api 35 | 36 | jar 37 | mjlink-9-api 38 | https://maven.apache.org 39 | 40 | mjlink-9-api 41 | 42 | 43 | -------------------------------------------------------------------------------- /src/it/projects/MJLINK-9_reactor/api/src/main/java/com/reactor/project/api/Currency.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package com.reactor.project.api; 21 | 22 | import java.util.StringJoiner; 23 | 24 | public class Currency 25 | { 26 | 27 | String value; 28 | 29 | public Currency ( String value ) 30 | { 31 | this.value = value; 32 | } 33 | 34 | public String getValue () 35 | { 36 | return this.value; 37 | } 38 | 39 | @Override 40 | public String toString () 41 | { 42 | return new StringJoiner(", ", Currency.class.getSimpleName() + "[", "]") 43 | .add("value='" + value + "'") 44 | .toString(); 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /src/it/projects/MJLINK-9_reactor/api/src/main/java/com/reactor/project/api/Money.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package com.reactor.project.api; 21 | 22 | import java.math.BigDecimal; 23 | import java.util.StringJoiner; 24 | 25 | public class Money 26 | { 27 | 28 | private final Currency currency; 29 | 30 | private final BigDecimal amount; 31 | 32 | public Money ( Currency currency, BigDecimal amount ) 33 | { 34 | this.currency = currency; 35 | this.amount = amount; 36 | } 37 | 38 | public Currency getCurrencyType () 39 | { 40 | return currency; 41 | } 42 | 43 | public BigDecimal getAmount () 44 | { 45 | return amount; 46 | } 47 | 48 | @Override 49 | public String toString () 50 | { 51 | return new StringJoiner(", ", Money.class.getSimpleName() + "[", "]") 52 | .add("currency=" + currency) 53 | .add("amount=" + amount) 54 | .toString(); 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /src/it/projects/MJLINK-9_reactor/api/src/main/java/module-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | module com.reactor.project.api { 21 | requires java.base; 22 | exports com.reactor.project.api; 23 | } 24 | -------------------------------------------------------------------------------- /src/it/projects/MJLINK-9_reactor/app/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 20 | 21 | 24 | 4.0.0 25 | 26 | 27 | org.apache.maven.plugins 28 | maven-jlink-plugin-mjlink-9 29 | 96.0 30 | ../pom.xml 31 | 32 | 33 | maven-jlink-plugin-mjlink-9-app 34 | jar 35 | mjlink-9-app 36 | https://maven.apache.org 37 | 38 | mjlink-9-app 39 | 40 | 41 | 42 | org.apache.maven.plugins 43 | maven-jlink-plugin-mjlink-9-api 44 | ${project.version} 45 | 46 | 47 | 48 | 49 | -------------------------------------------------------------------------------- /src/it/projects/MJLINK-9_reactor/app/src/main/java/com/reactor/project/app/App.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package com.reactor.project.app; 21 | 22 | import com.reactor.project.api.Currency; 23 | import com.reactor.project.api.Money; 24 | 25 | import java.math.BigDecimal; 26 | 27 | public class App 28 | { 29 | 30 | public static void main ( String[] args ) 31 | { 32 | Money money = new Money(new Currency("Euro"), BigDecimal.ZERO); 33 | 34 | System.out.println("Money: [" + money + "]"); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /src/it/projects/MJLINK-9_reactor/app/src/main/java/module-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | module com.reactor.project.app { 21 | requires java.base; 22 | requires com.reactor.project.api; 23 | 24 | exports com.reactor.project.app; 25 | } 26 | -------------------------------------------------------------------------------- /src/it/projects/MJLINK-9_reactor/dist/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 20 | 21 | 24 | 4.0.0 25 | 26 | 27 | org.apache.maven.plugins 28 | maven-jlink-plugin-mjlink-9 29 | 96.0 30 | ../pom.xml 31 | 32 | 33 | maven-jlink-plugin-mjlink-9-dist 34 | jlink 35 | mjlink-9-jlink 36 | https://maven.apache.org 37 | 38 | mjlink-9-jlink 39 | 40 | 41 | 42 | org.apache.maven.plugins 43 | maven-jlink-plugin-mjlink-9-app 44 | ${project.version} 45 | 46 | 47 | 48 | 49 | 50 | 51 | org.apache.maven.plugins 52 | maven-jlink-plugin 53 | true 54 | 55 | reactorapp=com.reactor.project.app/com.reactor.project.app.App 56 | 57 | 58 | 59 | 60 | 61 | -------------------------------------------------------------------------------- /src/it/projects/MJLINK-9_reactor/dist/src/main/java/module-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | module com.reactor.project.dist { 21 | requires com.reactor.project.app; 22 | 23 | } 24 | -------------------------------------------------------------------------------- /src/it/projects/MJLINK-9_reactor/invoker.properties: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, 12 | # software distributed under the License is distributed on an 13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | # KIND, either express or implied. See the License for the 15 | # specific language governing permissions and limitations 16 | # under the License. 17 | invoker.goals = clean package 18 | -------------------------------------------------------------------------------- /src/it/projects/MJLINK-9_reactor/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 20 | 21 | 24 | 4.0.0 25 | org.apache.maven.plugins 26 | maven-jlink-plugin-mjlink-9 27 | 96.0 28 | pom 29 | Maven 30 | https://maven.apache.org 31 | 32 | Test JLink create a image from a reactor project. 33 | 34 | 35 | 9 36 | UTF-8 37 | 38 | 39 | 40 | api 41 | app 42 | dist 43 | 44 | 45 | 46 | 47 | 48 | 49 | org.apache.maven.plugins 50 | maven-compiler-plugin 51 | 3.8.1 52 | 53 | 54 | org.apache.maven.plugins 55 | maven-jlink-plugin 56 | @project.version@ 57 | true 58 | 59 | 60 | 61 | 62 | 63 | org.apache.maven.plugins 64 | maven-compiler-plugin 65 | 66 | 9 67 | 68 | 69 | 70 | 71 | 72 | -------------------------------------------------------------------------------- /src/it/projects/MJLINK-9_reactor/verify.groovy: -------------------------------------------------------------------------------- 1 | 2 | /* 3 | * Licensed to the Apache Software Foundation (ASF) under one 4 | * or more contributor license agreements. See the NOTICE file 5 | * distributed with this work for additional information 6 | * regarding copyright ownership. The ASF licenses this file 7 | * to you under the Apache License, Version 2.0 (the 8 | * "License"); you may not use this file except in compliance 9 | * with the License. You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, 14 | * software distributed under the License is distributed on an 15 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 | * KIND, either express or implied. See the License for the 17 | * specific language governing permissions and limitations 18 | * under the License. 19 | */ 20 | 21 | import java.io.* 22 | import java.util.* 23 | import java.util.jar.* 24 | import org.codehaus.plexus.util.* 25 | 26 | File target = new File( basedir, "app/target" ) 27 | assert target.isDirectory() 28 | 29 | File jarArtifact = new File( target, "maven-jlink-plugin-mjlink-9-app-96.0.jar" ) 30 | assert jarArtifact.isFile() 31 | 32 | File distTarget = new File( basedir, "dist/target" ) 33 | assert distTarget.isDirectory() 34 | 35 | File artifact = new File( distTarget, "maven-jlink-plugin-mjlink-9-dist-96.0.zip" ) 36 | assert artifact.isFile() 37 | 38 | // optional: check if it contains a launcher script 39 | -------------------------------------------------------------------------------- /src/it/projects/cli-options/add-options/invoker.properties: -------------------------------------------------------------------------------- 1 | # suppress inspection "UnusedProperty" for whole file 2 | # Licensed to the Apache Software Foundation (ASF) under one 3 | # or more contributor license agreements. See the NOTICE file 4 | # distributed with this work for additional information 5 | # regarding copyright ownership. The ASF licenses this file 6 | # to you under the Apache License, Version 2.0 (the 7 | # "License"); you may not use this file except in compliance 8 | # with the License. You may obtain a copy of the License at 9 | # 10 | # http://www.apache.org/licenses/LICENSE-2.0 11 | # 12 | # Unless required by applicable law or agreed to in writing, 13 | # software distributed under the License is distributed on an 14 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | # KIND, either express or implied. See the License for the 16 | # specific language governing permissions and limitations 17 | # under the License. 18 | invoker.java.version = 14+ 19 | invoker.goals = clean package 20 | -------------------------------------------------------------------------------- /src/it/projects/cli-options/add-options/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 20 | 21 | 24 | 4.0.0 25 | org.apache.maven.plugins 26 | maven-jlink-plugin-cli-options-add-options 27 | 101.0 28 | jlink 29 | Maven 30 | http://maven.apache.org 31 | Test JLink CLI Options --add-options. 32 | 33 | 14 34 | UTF-8 35 | 36 | 37 | 38 | localhost 39 | first-jar-module-info 40 | 99.0 41 | 42 | 43 | 44 | 45 | 46 | org.apache.maven.plugins 47 | maven-compiler-plugin 48 | 3.8.0 49 | 50 | 51 | org.apache.maven.plugins 52 | maven-jlink-plugin 53 | @project.version@ 54 | true 55 | 56 | 57 | -Xmx128m 58 | --enable-preview 59 | -Dvar=value 60 | 61 | 62 | 63 | 64 | 65 | 66 | -------------------------------------------------------------------------------- /src/it/projects/cli-options/add-options/src/main/configs/config.test: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | Test configuration file which should be located in config/config.test in 21 | resulting jmod file. -------------------------------------------------------------------------------- /src/it/projects/cli-options/add-options/verify.groovy: -------------------------------------------------------------------------------- 1 | 2 | /* 3 | * Licensed to the Apache Software Foundation (ASF) under one 4 | * or more contributor license agreements. See the NOTICE file 5 | * distributed with this work for additional information 6 | * regarding copyright ownership. The ASF licenses this file 7 | * to you under the Apache License, Version 2.0 (the 8 | * "License"); you may not use this file except in compliance 9 | * with the License. You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, 14 | * software distributed under the License is distributed on an 15 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 | * KIND, either express or implied. See the License for the 17 | * specific language governing permissions and limitations 18 | * under the License. 19 | */ 20 | 21 | import java.io.* 22 | import java.util.* 23 | import java.util.jar.* 24 | import org.codehaus.plexus.util.* 25 | 26 | String buildlog = new File( basedir, "build.log").text 27 | assert buildlog.contains( "--add-options=-Xmx128m --enable-preview -Dvar=value" ) 28 | assert buildlog.contains( "addOptions = [-Xmx128m, --enable-preview, -Dvar=value]" ) 29 | 30 | File target = new File( basedir, "target" ) 31 | assert target.isDirectory() 32 | 33 | File artifact = new File( target, "maven-jlink-plugin-cli-options-add-options-101.0.zip" ) 34 | assert artifact.isFile() 35 | -------------------------------------------------------------------------------- /src/it/projects/cli-options/bind-services/invoker.properties: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, 12 | # software distributed under the License is distributed on an 13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | # KIND, either express or implied. See the License for the 15 | # specific language governing permissions and limitations 16 | # under the License. 17 | invoker.goals = clean package 18 | -------------------------------------------------------------------------------- /src/it/projects/cli-options/bind-services/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 20 | 21 | 24 | 4.0.0 25 | org.apache.maven.plugins 26 | maven-jlink-plugin-cli-options-bind-services 27 | 99.0 28 | jlink 29 | Maven 30 | http://maven.apache.org 31 | Test JLink CLI Options --bind-services. 32 | 33 | 1.9 34 | 1.9 35 | UTF-8 36 | 37 | 38 | 39 | localhost 40 | first-jar-module-info 41 | 99.0 42 | 43 | 44 | 45 | 46 | 47 | org.apache.maven.plugins 48 | maven-compiler-plugin 49 | 3.8.0 50 | 51 | 1.9 52 | 1.9 53 | 54 | 55 | 56 | org.apache.maven.plugins 57 | maven-jlink-plugin 58 | @project.version@ 59 | true 60 | 61 | true 62 | 63 | 64 | 65 | 66 | 67 | -------------------------------------------------------------------------------- /src/it/projects/cli-options/bind-services/src/main/configs/config.test: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | Test configuration file which should be located in config/config.test in 21 | resulting jmod file. -------------------------------------------------------------------------------- /src/it/projects/cli-options/bind-services/verify.groovy: -------------------------------------------------------------------------------- 1 | 2 | /* 3 | * Licensed to the Apache Software Foundation (ASF) under one 4 | * or more contributor license agreements. See the NOTICE file 5 | * distributed with this work for additional information 6 | * regarding copyright ownership. The ASF licenses this file 7 | * to you under the Apache License, Version 2.0 (the 8 | * "License"); you may not use this file except in compliance 9 | * with the License. You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, 14 | * software distributed under the License is distributed on an 15 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 | * KIND, either express or implied. See the License for the 17 | * specific language governing permissions and limitations 18 | * under the License. 19 | */ 20 | 21 | import java.io.*; 22 | import java.util.*; 23 | import java.util.jar.*; 24 | import org.codehaus.plexus.util.*; 25 | 26 | boolean result = true; 27 | 28 | try 29 | { 30 | File target = new File( basedir, "target" ); 31 | if ( !target.exists() || !target.isDirectory() ) 32 | { 33 | System.err.println( "target file is missing or not a directory." ); 34 | return false; 35 | } 36 | File artifact = new File( target, "maven-jlink-plugin-cli-options-bind-services-99.0.zip" ); 37 | if ( !artifact.exists() || artifact.isDirectory() ) 38 | { 39 | System.err.println( "maven-jlink-plugin-cli-options-bind-services-99.0.zip file is missing or is a directory." ); 40 | return false; 41 | } 42 | 43 | } 44 | catch( Throwable e ) 45 | { 46 | e.printStackTrace(); 47 | result = false; 48 | } 49 | 50 | return result; 51 | -------------------------------------------------------------------------------- /src/it/projects/cli-options/compress-0/invoker.properties: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, 12 | # software distributed under the License is distributed on an 13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | # KIND, either express or implied. See the License for the 15 | # specific language governing permissions and limitations 16 | # under the License. 17 | invoker.goals = clean package 18 | -------------------------------------------------------------------------------- /src/it/projects/cli-options/compress-0/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 20 | 21 | 24 | 4.0.0 25 | org.apache.maven.plugins 26 | maven-jlink-plugin-cli-options-compress0 27 | 99.0 28 | jlink 29 | Maven 30 | http://maven.apache.org 31 | Test JLink CLI Options --compress 0. 32 | 33 | 1.9 34 | 1.9 35 | UTF-8 36 | 37 | 38 | 39 | localhost 40 | first-jar-module-info 41 | 99.0 42 | 43 | 44 | 45 | 46 | 47 | org.apache.maven.plugins 48 | maven-compiler-plugin 49 | 3.8.0 50 | 51 | 1.9 52 | 1.9 53 | 54 | 55 | 56 | org.apache.maven.plugins 57 | maven-jlink-plugin 58 | @project.version@ 59 | true 60 | 61 | 0 62 | 63 | 64 | 65 | 66 | 67 | -------------------------------------------------------------------------------- /src/it/projects/cli-options/compress-0/src/main/configs/config.test: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | Test configuration file which should be located in config/config.test in 21 | resulting jmod file. -------------------------------------------------------------------------------- /src/it/projects/cli-options/compress-0/verify.groovy: -------------------------------------------------------------------------------- 1 | 2 | /* 3 | * Licensed to the Apache Software Foundation (ASF) under one 4 | * or more contributor license agreements. See the NOTICE file 5 | * distributed with this work for additional information 6 | * regarding copyright ownership. The ASF licenses this file 7 | * to you under the Apache License, Version 2.0 (the 8 | * "License"); you may not use this file except in compliance 9 | * with the License. You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, 14 | * software distributed under the License is distributed on an 15 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 | * KIND, either express or implied. See the License for the 17 | * specific language governing permissions and limitations 18 | * under the License. 19 | */ 20 | 21 | import java.io.*; 22 | import java.util.*; 23 | import java.util.jar.*; 24 | import org.codehaus.plexus.util.*; 25 | 26 | boolean result = true; 27 | 28 | try 29 | { 30 | File target = new File( basedir, "target" ); 31 | if ( !target.exists() || !target.isDirectory() ) 32 | { 33 | System.err.println( "target file is missing or not a directory." ); 34 | return false; 35 | } 36 | File artifact = new File( target, "maven-jlink-plugin-cli-options-compress0-99.0.zip" ); 37 | if ( !artifact.exists() || artifact.isDirectory() ) 38 | { 39 | System.err.println( "maven-jlink-plugin-cli-options-compress0-99.0.zip file is missing or is a directory." ); 40 | return false; 41 | } 42 | 43 | } 44 | catch( Throwable e ) 45 | { 46 | e.printStackTrace(); 47 | result = false; 48 | } 49 | 50 | return result; 51 | -------------------------------------------------------------------------------- /src/it/projects/cli-options/compress-1/invoker.properties: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, 12 | # software distributed under the License is distributed on an 13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | # KIND, either express or implied. See the License for the 15 | # specific language governing permissions and limitations 16 | # under the License. 17 | invoker.goals = clean package 18 | -------------------------------------------------------------------------------- /src/it/projects/cli-options/compress-1/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 20 | 21 | 24 | 4.0.0 25 | org.apache.maven.plugins 26 | maven-jlink-plugin-cli-options-compress1 27 | 99.0 28 | jlink 29 | Maven 30 | http://maven.apache.org 31 | Test JLink CLI Options --compress 1. 32 | 33 | 1.9 34 | 1.9 35 | UTF-8 36 | 37 | 38 | 39 | localhost 40 | first-jar-module-info 41 | 99.0 42 | 43 | 44 | 45 | 46 | 47 | org.apache.maven.plugins 48 | maven-compiler-plugin 49 | 3.8.0 50 | 51 | 1.9 52 | 1.9 53 | 54 | 55 | 56 | org.apache.maven.plugins 57 | maven-jlink-plugin 58 | @project.version@ 59 | true 60 | 61 | 1 62 | 63 | 64 | 65 | 66 | 67 | -------------------------------------------------------------------------------- /src/it/projects/cli-options/compress-1/src/main/configs/config.test: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | Test configuration file which should be located in config/config.test in 21 | resulting jmod file. -------------------------------------------------------------------------------- /src/it/projects/cli-options/compress-1/verify.groovy: -------------------------------------------------------------------------------- 1 | 2 | /* 3 | * Licensed to the Apache Software Foundation (ASF) under one 4 | * or more contributor license agreements. See the NOTICE file 5 | * distributed with this work for additional information 6 | * regarding copyright ownership. The ASF licenses this file 7 | * to you under the Apache License, Version 2.0 (the 8 | * "License"); you may not use this file except in compliance 9 | * with the License. You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, 14 | * software distributed under the License is distributed on an 15 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 | * KIND, either express or implied. See the License for the 17 | * specific language governing permissions and limitations 18 | * under the License. 19 | */ 20 | 21 | import java.io.*; 22 | import java.util.*; 23 | import java.util.jar.*; 24 | import org.codehaus.plexus.util.*; 25 | 26 | boolean result = true; 27 | 28 | try 29 | { 30 | File target = new File( basedir, "target" ); 31 | if ( !target.exists() || !target.isDirectory() ) 32 | { 33 | System.err.println( "target file is missing or not a directory." ); 34 | return false; 35 | } 36 | File artifact = new File( target, "maven-jlink-plugin-cli-options-compress1-99.0.zip" ); 37 | if ( !artifact.exists() || artifact.isDirectory() ) 38 | { 39 | System.err.println( "maven-jlink-plugin-cli-options-compress1-99.0.zip file is missing or is a directory." ); 40 | return false; 41 | } 42 | 43 | } 44 | catch( Throwable e ) 45 | { 46 | e.printStackTrace(); 47 | result = false; 48 | } 49 | 50 | return result; 51 | -------------------------------------------------------------------------------- /src/it/projects/cli-options/compress-2/invoker.properties: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, 12 | # software distributed under the License is distributed on an 13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | # KIND, either express or implied. See the License for the 15 | # specific language governing permissions and limitations 16 | # under the License. 17 | invoker.goals = clean package 18 | -------------------------------------------------------------------------------- /src/it/projects/cli-options/compress-2/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 20 | 21 | 24 | 4.0.0 25 | org.apache.maven.plugins 26 | maven-jlink-plugin-cli-options-compress2 27 | 99.0 28 | jlink 29 | Maven 30 | http://maven.apache.org 31 | Test JLink CLI Options --compress 2. 32 | 33 | 1.9 34 | 1.9 35 | UTF-8 36 | 37 | 38 | 39 | localhost 40 | first-jar-module-info 41 | 99.0 42 | 43 | 44 | 45 | 46 | 47 | org.apache.maven.plugins 48 | maven-compiler-plugin 49 | 3.8.0 50 | 51 | 1.9 52 | 1.9 53 | 54 | 55 | 56 | org.apache.maven.plugins 57 | maven-jlink-plugin 58 | @project.version@ 59 | true 60 | 61 | 2 62 | 63 | 64 | 65 | 66 | 67 | -------------------------------------------------------------------------------- /src/it/projects/cli-options/compress-2/src/main/configs/config.test: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | Test configuration file which should be located in config/config.test in 21 | resulting jmod file. -------------------------------------------------------------------------------- /src/it/projects/cli-options/compress-2/verify.groovy: -------------------------------------------------------------------------------- 1 | 2 | /* 3 | * Licensed to the Apache Software Foundation (ASF) under one 4 | * or more contributor license agreements. See the NOTICE file 5 | * distributed with this work for additional information 6 | * regarding copyright ownership. The ASF licenses this file 7 | * to you under the Apache License, Version 2.0 (the 8 | * "License"); you may not use this file except in compliance 9 | * with the License. You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, 14 | * software distributed under the License is distributed on an 15 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 | * KIND, either express or implied. See the License for the 17 | * specific language governing permissions and limitations 18 | * under the License. 19 | */ 20 | 21 | import java.io.*; 22 | import java.util.*; 23 | import java.util.jar.*; 24 | import org.codehaus.plexus.util.*; 25 | 26 | boolean result = true; 27 | 28 | try 29 | { 30 | File target = new File( basedir, "target" ); 31 | if ( !target.exists() || !target.isDirectory() ) 32 | { 33 | System.err.println( "target file is missing or not a directory." ); 34 | return false; 35 | } 36 | File artifact = new File( target, "maven-jlink-plugin-cli-options-compress2-99.0.zip" ); 37 | if ( !artifact.exists() || artifact.isDirectory() ) 38 | { 39 | System.err.println( "maven-jlink-plugin-cli-options-compress2-99.0.zip file is missing or is a directory." ); 40 | return false; 41 | } 42 | 43 | } 44 | catch( Throwable e ) 45 | { 46 | e.printStackTrace(); 47 | result = false; 48 | } 49 | 50 | return result; 51 | -------------------------------------------------------------------------------- /src/it/projects/cli-options/disable-plugin/invoker.properties: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, 12 | # software distributed under the License is distributed on an 13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | # KIND, either express or implied. See the License for the 15 | # specific language governing permissions and limitations 16 | # under the License. 17 | invoker.goals = clean package 18 | -------------------------------------------------------------------------------- /src/it/projects/cli-options/disable-plugin/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 20 | 21 | 24 | 4.0.0 25 | org.apache.maven.plugins 26 | maven-jlink-plugin-cli-options-disable-plugin 27 | 99.0 28 | jlink 29 | Maven 30 | http://maven.apache.org 31 | Test JLink CLI Options --disable-plugin compress. 32 | 33 | 1.9 34 | 1.9 35 | UTF-8 36 | 37 | 38 | 39 | localhost 40 | first-jar-module-info 41 | 99.0 42 | 43 | 44 | 45 | 46 | 47 | org.apache.maven.plugins 48 | maven-compiler-plugin 49 | 3.8.0 50 | 51 | 1.9 52 | 1.9 53 | 54 | 55 | 56 | org.apache.maven.plugins 57 | maven-jlink-plugin 58 | @project.version@ 59 | true 60 | 61 | compress 62 | 63 | 64 | 65 | 66 | 67 | -------------------------------------------------------------------------------- /src/it/projects/cli-options/disable-plugin/src/main/configs/config.test: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | Test configuration file which should be located in config/config.test in 21 | resulting jmod file. -------------------------------------------------------------------------------- /src/it/projects/cli-options/disable-plugin/verify.groovy: -------------------------------------------------------------------------------- 1 | 2 | /* 3 | * Licensed to the Apache Software Foundation (ASF) under one 4 | * or more contributor license agreements. See the NOTICE file 5 | * distributed with this work for additional information 6 | * regarding copyright ownership. The ASF licenses this file 7 | * to you under the Apache License, Version 2.0 (the 8 | * "License"); you may not use this file except in compliance 9 | * with the License. You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, 14 | * software distributed under the License is distributed on an 15 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 | * KIND, either express or implied. See the License for the 17 | * specific language governing permissions and limitations 18 | * under the License. 19 | */ 20 | 21 | import java.io.*; 22 | import java.util.*; 23 | import java.util.jar.*; 24 | import org.codehaus.plexus.util.*; 25 | 26 | boolean result = true; 27 | 28 | try 29 | { 30 | File target = new File( basedir, "target" ); 31 | if ( !target.exists() || !target.isDirectory() ) 32 | { 33 | System.err.println( "target file is missing or not a directory." ); 34 | return false; 35 | } 36 | File artifact = new File( target, "maven-jlink-plugin-cli-options-disable-plugin-99.0.zip" ); 37 | if ( !artifact.exists() || artifact.isDirectory() ) 38 | { 39 | System.err.println( "maven-jlink-plugin-cli-options-disable-plugin-99.0.zip file is missing or is a directory." ); 40 | return false; 41 | } 42 | 43 | } 44 | catch( Throwable e ) 45 | { 46 | e.printStackTrace(); 47 | result = false; 48 | } 49 | 50 | return result; 51 | -------------------------------------------------------------------------------- /src/it/projects/cli-options/endian-big/invoker.properties: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, 12 | # software distributed under the License is distributed on an 13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | # KIND, either express or implied. See the License for the 15 | # specific language governing permissions and limitations 16 | # under the License. 17 | invoker.goals = clean package 18 | -------------------------------------------------------------------------------- /src/it/projects/cli-options/endian-big/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 20 | 21 | 24 | 4.0.0 25 | org.apache.maven.plugins 26 | maven-jlink-plugin-cli-options-endian-big 27 | 99.0 28 | jlink 29 | Maven 30 | http://maven.apache.org 31 | Test JLink CLI Options --endian big. 32 | 33 | 1.9 34 | 1.9 35 | UTF-8 36 | 37 | 38 | 39 | localhost 40 | first-jar-module-info 41 | 99.0 42 | 43 | 44 | 45 | 46 | 47 | org.apache.maven.plugins 48 | maven-compiler-plugin 49 | 3.8.0 50 | 51 | 1.9 52 | 1.9 53 | 54 | 55 | 56 | org.apache.maven.plugins 57 | maven-jlink-plugin 58 | @project.version@ 59 | true 60 | 61 | big 62 | 63 | 64 | 65 | 66 | 67 | -------------------------------------------------------------------------------- /src/it/projects/cli-options/endian-big/src/main/configs/config.test: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | Test configuration file which should be located in config/config.test in 21 | resulting jmod file. -------------------------------------------------------------------------------- /src/it/projects/cli-options/endian-big/verify.groovy: -------------------------------------------------------------------------------- 1 | 2 | /* 3 | * Licensed to the Apache Software Foundation (ASF) under one 4 | * or more contributor license agreements. See the NOTICE file 5 | * distributed with this work for additional information 6 | * regarding copyright ownership. The ASF licenses this file 7 | * to you under the Apache License, Version 2.0 (the 8 | * "License"); you may not use this file except in compliance 9 | * with the License. You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, 14 | * software distributed under the License is distributed on an 15 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 | * KIND, either express or implied. See the License for the 17 | * specific language governing permissions and limitations 18 | * under the License. 19 | */ 20 | 21 | import java.io.*; 22 | import java.util.*; 23 | import java.util.jar.*; 24 | import org.codehaus.plexus.util.*; 25 | 26 | boolean result = true; 27 | 28 | try 29 | { 30 | File target = new File( basedir, "target" ); 31 | if ( !target.exists() || !target.isDirectory() ) 32 | { 33 | System.err.println( "target file is missing or not a directory." ); 34 | return false; 35 | } 36 | File artifact = new File( target, "maven-jlink-plugin-cli-options-endian-big-99.0.zip" ); 37 | if ( !artifact.exists() || artifact.isDirectory() ) 38 | { 39 | System.err.println( "maven-jlink-plugin-cli-options-endian-big-99.0.zip file is missing or is a directory." ); 40 | return false; 41 | } 42 | 43 | } 44 | catch( Throwable e ) 45 | { 46 | e.printStackTrace(); 47 | result = false; 48 | } 49 | 50 | return result; 51 | -------------------------------------------------------------------------------- /src/it/projects/cli-options/endian/invoker.properties: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, 12 | # software distributed under the License is distributed on an 13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | # KIND, either express or implied. See the License for the 15 | # specific language governing permissions and limitations 16 | # under the License. 17 | invoker.goals = clean package 18 | -------------------------------------------------------------------------------- /src/it/projects/cli-options/endian/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 20 | 21 | 24 | 4.0.0 25 | org.apache.maven.plugins 26 | maven-jlink-plugin-cli-options-endian 27 | 99.0 28 | jlink 29 | Maven 30 | http://maven.apache.org 31 | Test JLink CLI Options --endian little. 32 | 33 | 1.9 34 | 1.9 35 | UTF-8 36 | 37 | 38 | 39 | localhost 40 | first-jar-module-info 41 | 99.0 42 | 43 | 44 | 45 | 46 | 47 | org.apache.maven.plugins 48 | maven-compiler-plugin 49 | 3.8.0 50 | 51 | 1.9 52 | 1.9 53 | 54 | 55 | 56 | org.apache.maven.plugins 57 | maven-jlink-plugin 58 | @project.version@ 59 | true 60 | 61 | little 62 | 63 | 64 | 65 | 66 | 67 | -------------------------------------------------------------------------------- /src/it/projects/cli-options/endian/src/main/configs/config.test: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | Test configuration file which should be located in config/config.test in 21 | resulting jmod file. -------------------------------------------------------------------------------- /src/it/projects/cli-options/endian/verify.groovy: -------------------------------------------------------------------------------- 1 | 2 | /* 3 | * Licensed to the Apache Software Foundation (ASF) under one 4 | * or more contributor license agreements. See the NOTICE file 5 | * distributed with this work for additional information 6 | * regarding copyright ownership. The ASF licenses this file 7 | * to you under the Apache License, Version 2.0 (the 8 | * "License"); you may not use this file except in compliance 9 | * with the License. You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, 14 | * software distributed under the License is distributed on an 15 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 | * KIND, either express or implied. See the License for the 17 | * specific language governing permissions and limitations 18 | * under the License. 19 | */ 20 | 21 | import java.io.*; 22 | import java.util.*; 23 | import java.util.jar.*; 24 | import org.codehaus.plexus.util.*; 25 | 26 | boolean result = true; 27 | 28 | try 29 | { 30 | File target = new File( basedir, "target" ); 31 | if ( !target.exists() || !target.isDirectory() ) 32 | { 33 | System.err.println( "target file is missing or not a directory." ); 34 | return false; 35 | } 36 | File artifact = new File( target, "maven-jlink-plugin-cli-options-endian-99.0.zip" ); 37 | if ( !artifact.exists() || artifact.isDirectory() ) 38 | { 39 | System.err.println( "maven-jlink-plugin-cli-options-endian-99.0.zip file is missing or is a directory." ); 40 | return false; 41 | } 42 | 43 | } 44 | catch( Throwable e ) 45 | { 46 | e.printStackTrace(); 47 | result = false; 48 | } 49 | 50 | return result; 51 | -------------------------------------------------------------------------------- /src/it/projects/cli-options/ignore-signing-information/invoker.properties: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, 12 | # software distributed under the License is distributed on an 13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | # KIND, either express or implied. See the License for the 15 | # specific language governing permissions and limitations 16 | # under the License. 17 | invoker.goals = clean package 18 | -------------------------------------------------------------------------------- /src/it/projects/cli-options/ignore-signing-information/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 20 | 21 | 24 | 4.0.0 25 | org.apache.maven.plugins 26 | maven-jlink-plugin-cli-options-ignore-signing-information 27 | 99.0 28 | jlink 29 | Maven 30 | http://maven.apache.org 31 | Test JLink CLI Options --ignore-signing-information. 32 | 33 | 1.9 34 | 1.9 35 | UTF-8 36 | 37 | 38 | 39 | localhost 40 | first-jar-module-info 41 | 99.0 42 | 43 | 44 | 45 | 46 | 47 | org.apache.maven.plugins 48 | maven-compiler-plugin 49 | 3.8.0 50 | 51 | 1.9 52 | 1.9 53 | 54 | 55 | 56 | org.apache.maven.plugins 57 | maven-jlink-plugin 58 | @project.version@ 59 | true 60 | 61 | true 62 | 63 | 64 | 65 | 66 | 67 | -------------------------------------------------------------------------------- /src/it/projects/cli-options/ignore-signing-information/src/main/configs/config.test: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | Test configuration file which should be located in config/config.test in 21 | resulting jmod file. -------------------------------------------------------------------------------- /src/it/projects/cli-options/ignore-signing-information/verify.groovy: -------------------------------------------------------------------------------- 1 | 2 | /* 3 | * Licensed to the Apache Software Foundation (ASF) under one 4 | * or more contributor license agreements. See the NOTICE file 5 | * distributed with this work for additional information 6 | * regarding copyright ownership. The ASF licenses this file 7 | * to you under the Apache License, Version 2.0 (the 8 | * "License"); you may not use this file except in compliance 9 | * with the License. You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, 14 | * software distributed under the License is distributed on an 15 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 | * KIND, either express or implied. See the License for the 17 | * specific language governing permissions and limitations 18 | * under the License. 19 | */ 20 | 21 | import java.io.*; 22 | import java.util.*; 23 | import java.util.jar.*; 24 | import org.codehaus.plexus.util.*; 25 | 26 | boolean result = true; 27 | 28 | try 29 | { 30 | File target = new File( basedir, "target" ); 31 | if ( !target.exists() || !target.isDirectory() ) 32 | { 33 | System.err.println( "target file is missing or not a directory." ); 34 | return false; 35 | } 36 | File artifact = new File( target, "maven-jlink-plugin-cli-options-ignore-signing-information-99.0.zip" ); 37 | if ( !artifact.exists() || artifact.isDirectory() ) 38 | { 39 | System.err.println( "maven-jlink-plugin-cli-options-ignore-signing-information-99.0.zip file is missing or is a directory." ); 40 | return false; 41 | } 42 | 43 | } 44 | catch( Throwable e ) 45 | { 46 | e.printStackTrace(); 47 | result = false; 48 | } 49 | 50 | return result; 51 | -------------------------------------------------------------------------------- /src/it/projects/cli-options/no-header-files/invoker.properties: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, 12 | # software distributed under the License is distributed on an 13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | # KIND, either express or implied. See the License for the 15 | # specific language governing permissions and limitations 16 | # under the License. 17 | invoker.goals = clean package 18 | -------------------------------------------------------------------------------- /src/it/projects/cli-options/no-header-files/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 20 | 21 | 24 | 4.0.0 25 | org.apache.maven.plugins 26 | maven-jlink-plugin-cli-options-no-header-files 27 | 99.0 28 | jlink 29 | Maven 30 | http://maven.apache.org 31 | Test JLink CLI Options --no-header-files. 32 | 33 | 1.9 34 | 1.9 35 | UTF-8 36 | 37 | 38 | 39 | localhost 40 | first-jar-module-info 41 | 99.0 42 | 43 | 44 | 45 | 46 | 47 | org.apache.maven.plugins 48 | maven-compiler-plugin 49 | 3.8.0 50 | 51 | 1.9 52 | 1.9 53 | 54 | 55 | 56 | org.apache.maven.plugins 57 | maven-jlink-plugin 58 | @project.version@ 59 | true 60 | 61 | true 62 | 63 | 64 | 65 | 66 | 67 | -------------------------------------------------------------------------------- /src/it/projects/cli-options/no-header-files/src/main/configs/config.test: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | Test configuration file which should be located in config/config.test in 21 | resulting jmod file. -------------------------------------------------------------------------------- /src/it/projects/cli-options/no-header-files/verify.groovy: -------------------------------------------------------------------------------- 1 | 2 | /* 3 | * Licensed to the Apache Software Foundation (ASF) under one 4 | * or more contributor license agreements. See the NOTICE file 5 | * distributed with this work for additional information 6 | * regarding copyright ownership. The ASF licenses this file 7 | * to you under the Apache License, Version 2.0 (the 8 | * "License"); you may not use this file except in compliance 9 | * with the License. You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, 14 | * software distributed under the License is distributed on an 15 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 | * KIND, either express or implied. See the License for the 17 | * specific language governing permissions and limitations 18 | * under the License. 19 | */ 20 | 21 | import java.io.*; 22 | import java.util.*; 23 | import java.util.jar.*; 24 | import org.codehaus.plexus.util.*; 25 | 26 | boolean result = true; 27 | 28 | try 29 | { 30 | File target = new File( basedir, "target" ); 31 | if ( !target.exists() || !target.isDirectory() ) 32 | { 33 | System.err.println( "target file is missing or not a directory." ); 34 | return false; 35 | } 36 | File artifact = new File( target, "maven-jlink-plugin-cli-options-no-header-files-99.0.zip" ); 37 | if ( !artifact.exists() || artifact.isDirectory() ) 38 | { 39 | System.err.println( "maven-jlink-plugin-cli-options-no-header-files-99.0.zip file is missing or is a directory." ); 40 | return false; 41 | } 42 | 43 | } 44 | catch( Throwable e ) 45 | { 46 | e.printStackTrace(); 47 | result = false; 48 | } 49 | 50 | return result; 51 | -------------------------------------------------------------------------------- /src/it/projects/cli-options/no-man-pages/invoker.properties: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, 12 | # software distributed under the License is distributed on an 13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | # KIND, either express or implied. See the License for the 15 | # specific language governing permissions and limitations 16 | # under the License. 17 | invoker.goals = clean package 18 | -------------------------------------------------------------------------------- /src/it/projects/cli-options/no-man-pages/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 20 | 21 | 24 | 4.0.0 25 | org.apache.maven.plugins 26 | maven-jlink-plugin-cli-options-no-man-pages 27 | 99.0 28 | jlink 29 | Maven 30 | http://maven.apache.org 31 | Test JLink CLI Options --no-man-pages. 32 | 33 | 1.9 34 | 1.9 35 | UTF-8 36 | 37 | 38 | 39 | localhost 40 | first-jar-module-info 41 | 99.0 42 | 43 | 44 | 45 | 46 | 47 | org.apache.maven.plugins 48 | maven-compiler-plugin 49 | 3.8.0 50 | 51 | 1.9 52 | 1.9 53 | 54 | 55 | 56 | org.apache.maven.plugins 57 | maven-jlink-plugin 58 | @project.version@ 59 | true 60 | 61 | true 62 | 63 | 64 | 65 | 66 | 67 | -------------------------------------------------------------------------------- /src/it/projects/cli-options/no-man-pages/src/main/configs/config.test: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | Test configuration file which should be located in config/config.test in 21 | resulting jmod file. -------------------------------------------------------------------------------- /src/it/projects/cli-options/no-man-pages/verify.groovy: -------------------------------------------------------------------------------- 1 | 2 | /* 3 | * Licensed to the Apache Software Foundation (ASF) under one 4 | * or more contributor license agreements. See the NOTICE file 5 | * distributed with this work for additional information 6 | * regarding copyright ownership. The ASF licenses this file 7 | * to you under the Apache License, Version 2.0 (the 8 | * "License"); you may not use this file except in compliance 9 | * with the License. You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, 14 | * software distributed under the License is distributed on an 15 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 | * KIND, either express or implied. See the License for the 17 | * specific language governing permissions and limitations 18 | * under the License. 19 | */ 20 | 21 | import java.io.*; 22 | import java.util.*; 23 | import java.util.jar.*; 24 | import org.codehaus.plexus.util.*; 25 | 26 | boolean result = true; 27 | 28 | try 29 | { 30 | File target = new File( basedir, "target" ); 31 | if ( !target.exists() || !target.isDirectory() ) 32 | { 33 | System.err.println( "target file is missing or not a directory." ); 34 | return false; 35 | } 36 | File artifact = new File( target, "maven-jlink-plugin-cli-options-no-man-pages-99.0.zip" ); 37 | if ( !artifact.exists() || artifact.isDirectory() ) 38 | { 39 | System.err.println( "maven-jlink-plugin-cli-options-no-man-pages-99.0.zip file is missing or is a directory." ); 40 | return false; 41 | } 42 | 43 | } 44 | catch( Throwable e ) 45 | { 46 | e.printStackTrace(); 47 | result = false; 48 | } 49 | 50 | return result; 51 | -------------------------------------------------------------------------------- /src/it/projects/cli-options/strip-debug/invoker.properties: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, 12 | # software distributed under the License is distributed on an 13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | # KIND, either express or implied. See the License for the 15 | # specific language governing permissions and limitations 16 | # under the License. 17 | invoker.goals = clean package 18 | -------------------------------------------------------------------------------- /src/it/projects/cli-options/strip-debug/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 20 | 21 | 24 | 4.0.0 25 | org.apache.maven.plugins 26 | maven-jlink-plugin-cli-options-strip-debug 27 | 99.0 28 | jlink 29 | Maven 30 | http://maven.apache.org 31 | Test JLink CLI Options --strip-debug. 32 | 33 | 1.9 34 | 1.9 35 | UTF-8 36 | 37 | 38 | 39 | localhost 40 | first-jar-module-info 41 | 99.0 42 | 43 | 44 | 45 | 46 | 47 | org.apache.maven.plugins 48 | maven-compiler-plugin 49 | 3.8.0 50 | 51 | 1.9 52 | 1.9 53 | 54 | 55 | 56 | org.apache.maven.plugins 57 | maven-jlink-plugin 58 | @project.version@ 59 | true 60 | 61 | true 62 | 63 | 64 | 65 | 66 | 67 | -------------------------------------------------------------------------------- /src/it/projects/cli-options/strip-debug/src/main/configs/config.test: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | Test configuration file which should be located in config/config.test in 21 | resulting jmod file. -------------------------------------------------------------------------------- /src/it/projects/cli-options/strip-debug/verify.groovy: -------------------------------------------------------------------------------- 1 | 2 | /* 3 | * Licensed to the Apache Software Foundation (ASF) under one 4 | * or more contributor license agreements. See the NOTICE file 5 | * distributed with this work for additional information 6 | * regarding copyright ownership. The ASF licenses this file 7 | * to you under the Apache License, Version 2.0 (the 8 | * "License"); you may not use this file except in compliance 9 | * with the License. You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, 14 | * software distributed under the License is distributed on an 15 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 | * KIND, either express or implied. See the License for the 17 | * specific language governing permissions and limitations 18 | * under the License. 19 | */ 20 | 21 | import java.io.*; 22 | import java.util.*; 23 | import java.util.jar.*; 24 | import org.codehaus.plexus.util.*; 25 | 26 | boolean result = true; 27 | 28 | try 29 | { 30 | File target = new File( basedir, "target" ); 31 | if ( !target.exists() || !target.isDirectory() ) 32 | { 33 | System.err.println( "target file is missing or not a directory." ); 34 | return false; 35 | } 36 | File artifact = new File( target, "maven-jlink-plugin-cli-options-strip-debug-99.0.zip" ); 37 | if ( !artifact.exists() || artifact.isDirectory() ) 38 | { 39 | System.err.println( "maven-jlink-plugin-cli-options-strip-debug-99.0.zip file is missing or is a directory." ); 40 | return false; 41 | } 42 | 43 | } 44 | catch( Throwable e ) 45 | { 46 | e.printStackTrace(); 47 | result = false; 48 | } 49 | 50 | return result; 51 | -------------------------------------------------------------------------------- /src/it/projects/cli-options/suggest-providers/invoker.properties: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, 12 | # software distributed under the License is distributed on an 13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | # KIND, either express or implied. See the License for the 15 | # specific language governing permissions and limitations 16 | # under the License. 17 | invoker.goals = clean package 18 | -------------------------------------------------------------------------------- /src/it/projects/cli-options/suggest-providers/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 20 | 21 | 24 | 4.0.0 25 | org.apache.maven.plugins 26 | maven-jlink-plugin-cli-options-suggest-providers 27 | 99.0 28 | jlink 29 | Maven 30 | http://maven.apache.org 31 | Test JLink CLI Options --suggest-providers xyz. 32 | 33 | 1.9 34 | 1.9 35 | UTF-8 36 | 37 | 38 | 39 | localhost 40 | first-jar-module-info 41 | 99.0 42 | 43 | 44 | 45 | 46 | 47 | org.apache.maven.plugins 48 | maven-compiler-plugin 49 | 3.8.0 50 | 51 | 1.9 52 | 1.9 53 | 54 | 55 | 56 | org.apache.maven.plugins 57 | maven-jlink-plugin 58 | @project.version@ 59 | true 60 | 61 | 62 | java.security.Provider 63 | 64 | 65 | 66 | 67 | 68 | 69 | -------------------------------------------------------------------------------- /src/it/projects/cli-options/suggest-providers/src/main/configs/config.test: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | Test configuration file which should be located in config/config.test in 21 | resulting jmod file. -------------------------------------------------------------------------------- /src/it/projects/cli-options/suggest-providers/verify.groovy: -------------------------------------------------------------------------------- 1 | 2 | /* 3 | * Licensed to the Apache Software Foundation (ASF) under one 4 | * or more contributor license agreements. See the NOTICE file 5 | * distributed with this work for additional information 6 | * regarding copyright ownership. The ASF licenses this file 7 | * to you under the Apache License, Version 2.0 (the 8 | * "License"); you may not use this file except in compliance 9 | * with the License. You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, 14 | * software distributed under the License is distributed on an 15 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 | * KIND, either express or implied. See the License for the 17 | * specific language governing permissions and limitations 18 | * under the License. 19 | */ 20 | 21 | import java.io.*; 22 | import java.util.*; 23 | import java.util.jar.*; 24 | import org.codehaus.plexus.util.*; 25 | 26 | boolean result = true; 27 | 28 | try 29 | { 30 | File target = new File( basedir, "target" ); 31 | if ( !target.exists() || !target.isDirectory() ) 32 | { 33 | System.err.println( "target file is missing or not a directory." ); 34 | return false; 35 | } 36 | File artifact = new File( target, "maven-jlink-plugin-cli-options-suggest-providers-99.0.zip" ); 37 | if ( !artifact.exists() || artifact.isDirectory() ) 38 | { 39 | System.err.println( "maven-jlink-plugin-cli-options-suggest-providers-99.0.zip file is missing or is a directory." ); 40 | return false; 41 | } 42 | 43 | } 44 | catch( Throwable e ) 45 | { 46 | e.printStackTrace(); 47 | result = false; 48 | } 49 | 50 | return result; 51 | -------------------------------------------------------------------------------- /src/it/projects/setup-jar-module-info/invoker.properties: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, 12 | # software distributed under the License is distributed on an 13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | # KIND, either express or implied. See the License for the 15 | # specific language governing permissions and limitations 16 | # under the License. 17 | invoker.goals = clean install 18 | -------------------------------------------------------------------------------- /src/it/projects/setup-jar-module-info/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 20 | 21 | 24 | 4.0.0 25 | localhost 26 | first-jar-module-info 27 | 99.0 28 | Maven 29 | 30 | Test Project to prepare a jar file which contains 31 | module-info.class file. 32 | 33 | 34 | 1.9 35 | 1.9 36 | UTF-8 37 | 38 | 39 | 40 | 41 | 42 | org.apache.maven.plugins 43 | maven-compiler-plugin 44 | 3.8.0 45 | 46 | 1.9 47 | 1.9 48 | 49 | 50 | 51 | 52 | 53 | 54 | -------------------------------------------------------------------------------- /src/it/projects/setup-jar-module-info/src/main/java/module-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | module first.jar.module.info { 21 | requires java.base; 22 | exports myproject; 23 | } 24 | -------------------------------------------------------------------------------- /src/it/projects/setup-jar-module-info/src/main/java/myproject/HelloWorld.java: -------------------------------------------------------------------------------- 1 | package myproject; 2 | 3 | /* 4 | * Licensed to the Apache Software Foundation (ASF) under one 5 | * or more contributor license agreements. See the NOTICE file 6 | * distributed with this work for additional information 7 | * regarding copyright ownership. The ASF licenses this file 8 | * to you under the Apache License, Version 2.0 (the 9 | * "License"); you may not use this file except in compliance 10 | * with the License. You may obtain a copy of the License at 11 | * 12 | * http://www.apache.org/licenses/LICENSE-2.0 13 | * 14 | * Unless required by applicable law or agreed to in writing, 15 | * software distributed under the License is distributed on an 16 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 17 | * KIND, either express or implied. See the License for the 18 | * specific language governing permissions and limitations 19 | * under the License. 20 | */ 21 | 22 | /** 23 | * The classic Hello World App. 24 | */ 25 | public class HelloWorld { 26 | 27 | /** 28 | * Main method. 29 | * 30 | * @param args Not used 31 | */ 32 | public static void main( String[] args ) 33 | { 34 | System.out.println( "Hello World from base jar file." ); 35 | } 36 | } -------------------------------------------------------------------------------- /src/it/projects/setup-jar/invoker.properties: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, 12 | # software distributed under the License is distributed on an 13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | # KIND, either express or implied. See the License for the 15 | # specific language governing permissions and limitations 16 | # under the License. 17 | invoker.goals = clean install 18 | -------------------------------------------------------------------------------- /src/it/projects/setup-jar/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 20 | 21 | 24 | 4.0.0 25 | localhost 26 | first-jar 27 | 99.0 28 | Maven 29 | 30 | Test Project to prepare a jar file which does not contain 31 | module-info.class file. 32 | 33 | 34 | 1.9 35 | 1.9 36 | UTF-8 37 | 38 | 39 | 40 | 41 | 42 | org.apache.maven.plugins 43 | maven-compiler-plugin 44 | 3.8.0 45 | 46 | 1.9 47 | 1.9 48 | 49 | 50 | 51 | 52 | 53 | 54 | -------------------------------------------------------------------------------- /src/it/projects/setup-jar/src/main/java/myproject/HelloWorld.java: -------------------------------------------------------------------------------- 1 | package myproject; 2 | 3 | /* 4 | * Licensed to the Apache Software Foundation (ASF) under one 5 | * or more contributor license agreements. See the NOTICE file 6 | * distributed with this work for additional information 7 | * regarding copyright ownership. The ASF licenses this file 8 | * to you under the Apache License, Version 2.0 (the 9 | * "License"); you may not use this file except in compliance 10 | * with the License. You may obtain a copy of the License at 11 | * 12 | * http://www.apache.org/licenses/LICENSE-2.0 13 | * 14 | * Unless required by applicable law or agreed to in writing, 15 | * software distributed under the License is distributed on an 16 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 17 | * KIND, either express or implied. See the License for the 18 | * specific language governing permissions and limitations 19 | * under the License. 20 | */ 21 | 22 | /** 23 | * The classic Hello World App. 24 | */ 25 | public class HelloWorld { 26 | 27 | /** 28 | * Main method. 29 | * 30 | * @param args Not used 31 | */ 32 | public static void main( String[] args ) 33 | { 34 | System.out.println( "Hello World from base jar file." ); 35 | } 36 | } -------------------------------------------------------------------------------- /src/main/java/org/apache/maven/plugins/jlink/AbstractJLinkExecutor.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org.apache.maven.plugins.jlink; 20 | 21 | /* 22 | * Licensed to the Apache Software Foundation (ASF) under one 23 | * or more contributor license agreements. See the NOTICE file 24 | * distributed with this work for additional information 25 | * regarding copyright ownership. The ASF licenses this file 26 | * to you under the Apache License, Version 2.0 (the 27 | * "License"); you may not use this file except in compliance 28 | * with the License. You may obtain a copy of the License at 29 | * 30 | * http://www.apache.org/licenses/LICENSE-2.0 31 | * 32 | * Unless required by applicable law or agreed to in writing, 33 | * software distributed under the License is distributed on an 34 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 35 | * KIND, either express or implied. See the License for the 36 | * specific language governing permissions and limitations 37 | * under the License. 38 | */ 39 | 40 | import java.io.File; 41 | import java.util.ArrayList; 42 | import java.util.Collection; 43 | import java.util.List; 44 | import java.util.Optional; 45 | 46 | import org.apache.maven.plugin.MojoExecutionException; 47 | import org.apache.maven.plugin.logging.Log; 48 | 49 | abstract class AbstractJLinkExecutor { 50 | protected static final String JMODS = "jmods"; 51 | 52 | private final Log log; 53 | 54 | private final List modulesToAdd = new ArrayList<>(); 55 | private final List modulePaths = new ArrayList<>(); 56 | 57 | AbstractJLinkExecutor(Log log) { 58 | this.log = log; 59 | } 60 | 61 | protected Log getLog() { 62 | return this.log; 63 | } 64 | 65 | public abstract Optional getJmodsFolder(/* nullable */ File sourceJdkModules); 66 | 67 | public abstract int executeJlink(List jlinkArgs) throws MojoExecutionException; 68 | 69 | public void addAllModules(Collection modulesToAdd) { 70 | this.modulesToAdd.addAll(modulesToAdd); 71 | } 72 | 73 | public void addAllModulePaths(Collection pathsOfModules) { 74 | this.modulePaths.addAll(pathsOfModules); 75 | } 76 | } 77 | -------------------------------------------------------------------------------- /src/site/apt/index.apt.vm: -------------------------------------------------------------------------------- 1 | ------ 2 | Introduction 3 | ------ 4 | Karl Heinz Marbaise 5 | ------ 6 | 2017-08-17 7 | ------ 8 | 9 | ~~ Licensed to the Apache Software Foundation (ASF) under one 10 | ~~ or more contributor license agreements. See the NOTICE file 11 | ~~ distributed with this work for additional information 12 | ~~ regarding copyright ownership. The ASF licenses this file 13 | ~~ to you under the Apache License, Version 2.0 (the 14 | ~~ "License"); you may not use this file except in compliance 15 | ~~ with the License. You may obtain a copy of the License at 16 | ~~ 17 | ~~ http://www.apache.org/licenses/LICENSE-2.0 18 | ~~ 19 | ~~ Unless required by applicable law or agreed to in writing, 20 | ~~ software distributed under the License is distributed on an 21 | ~~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 22 | ~~ KIND, either express or implied. See the License for the 23 | ~~ specific language governing permissions and limitations 24 | ~~ under the License. 25 | 26 | ~~ NOTE: For help with the syntax of this file, see: 27 | ~~ http://maven.apache.org/doxia/references/apt-format.html 28 | 29 | ${project.name} 30 | 31 | The JLink Plugin creates {{{https://openjdk.java.net/jeps/220}Modular Java Run-Time Images}} 32 | via {{{https://openjdk.java.net/jeps/282}jlink}}. 33 | 34 | * Goals Overview 35 | 36 | The JLink Plugin has two goals: 37 | 38 | * {{{./jlink-mojo.html}jlink:jlink}} creates a Java Run Time Image from <>/<> files. 39 | 40 | * {{{./help-mojo.html}jlink:help}} displays help information for the maven-jlink-plugin. 41 | 42 | [] 43 | 44 | * Usage 45 | 46 | General instructions on how to use the JLink Plugin can be found on the {{{./usage.html}usage page}}. 47 | 48 | If you have questions regarding the plugin's usage, please have a look at the {{{./faq.html}FAQ}} and feel 49 | free to contact the {{{./mailing-lists.html}user mailing list}}. The posts to the mailing list are archived and could 50 | already contain the answer to your question as part of an older thread. Hence, it is also worth browsing/searching 51 | the {{{./mailing-lists.html}mail archive}}. 52 | 53 | If the plugin is missing a feature or has a defect, you can file a feature request or bug report in our 54 | {{{./issue-management.html}issue tracker}}. When creating a new issue, please provide a comprehensive description of your 55 | concern. Especially for fixing bugs, it is crucial that the developers can reproduce your problem. For this reason, 56 | entire debug logs, POMs or most preferably little demo projects attached to the issue are very much appreciated. 57 | Of course, patches are welcome, too. Contributors can check out the project from our 58 | {{{./scm.html}source repository}} and will find supplementary information in the 59 | {{{http://maven.apache.org/guides/development/guide-helping.html}guide to helping with Maven}}. 60 | -------------------------------------------------------------------------------- /src/site/resources/download.cgi: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # Licensed to the Apache Software Foundation (ASF) under one 4 | # or more contributor license agreements. See the NOTICE file 5 | # distributed with this work for additional information 6 | # regarding copyright ownership. The ASF licenses this file 7 | # to you under the Apache License, Version 2.0 (the 8 | # "License"); you may not use this file except in compliance 9 | # with the License. You may obtain a copy of the License at 10 | # 11 | # http://www.apache.org/licenses/LICENSE-2.0 12 | # 13 | # Unless required by applicable law or agreed to in writing, 14 | # software distributed under the License is distributed on an 15 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 | # KIND, either express or implied. See the License for the 17 | # specific language governing permissions and limitations 18 | # under the License. 19 | # 20 | # Just call the standard mirrors.cgi script. It will use download.html 21 | # as the input template. 22 | exec /www/www.apache.org/dyn/mirrors/mirrors.cgi $* -------------------------------------------------------------------------------- /src/site/site.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 21 | 22 | 24 | 25 | org.apache.maven.skins 26 | maven-fluido-skin 27 | 1.9 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | --------------------------------------------------------------------------------