├── .asf.yaml ├── .git-blame-ignore-revs ├── .github ├── ISSUE_TEMPLATE │ ├── BUG.yml │ ├── FEATURE.yml │ └── config.yml ├── dependabot.yml ├── pull_request_template.md ├── release-drafter.yml └── workflows │ ├── maven-verify.yml │ ├── pr-automation.yml │ ├── release-drafter.yml │ └── stale.yml ├── .gitignore ├── Jenkinsfile ├── README.md ├── deploySite.sh ├── pom.xml └── src ├── it ├── MWAR-128 │ ├── pom.xml │ ├── setup.groovy │ ├── src │ │ └── main │ │ │ └── webapp │ │ │ └── WEB-INF │ │ │ └── web.xml │ └── verify.groovy ├── MWAR-129 │ ├── invoker.properties │ ├── pom.xml │ ├── src │ │ └── main │ │ │ └── webapp │ │ │ ├── WEB-INF │ │ │ └── web.xml │ │ │ ├── index.jsp │ │ │ └── param.jsp │ └── verify.bsh ├── MWAR-131 │ ├── invoker.properties │ ├── mwar131-test │ │ ├── pom.xml │ │ └── src │ │ │ ├── main │ │ │ └── java │ │ │ │ └── com │ │ │ │ └── example │ │ │ │ └── App.java │ │ │ └── test │ │ │ └── java │ │ │ └── com │ │ │ └── example │ │ │ └── AppTest.java │ ├── mwar131-webapp │ │ ├── pom.xml │ │ └── src │ │ │ └── main │ │ │ ├── java │ │ │ └── com │ │ │ │ └── example │ │ │ │ └── Util.java │ │ │ └── webapp │ │ │ ├── WEB-INF │ │ │ └── web.xml │ │ │ └── index.jsp │ ├── mwar131-webapp2 │ │ ├── pom.xml │ │ └── src │ │ │ └── main │ │ │ └── webapp │ │ │ ├── WEB-INF │ │ │ └── web.xml │ │ │ └── index.jsp │ ├── pom.xml │ └── verify.bsh ├── MWAR-133 │ ├── invoker.properties │ ├── pom.xml │ ├── src │ │ └── main │ │ │ ├── webapp │ │ │ └── WEB-INF │ │ │ │ └── web.xml │ │ │ └── webresources │ │ │ └── filtered.properties │ └── verify.bsh ├── MWAR-139 │ ├── pom.xml │ ├── src │ │ └── main │ │ │ ├── webapp │ │ │ └── WEB-INF │ │ │ │ └── web.xml │ │ │ └── webresources │ │ │ └── filterme.xml │ └── verify.bsh ├── MWAR-143 │ ├── invoker.properties │ ├── pom.xml │ ├── verify.bsh │ ├── war-common │ │ ├── pom.xml │ │ └── src │ │ │ └── main │ │ │ ├── images │ │ │ └── duke-beer.jpg │ │ │ ├── resources │ │ │ └── filter.properties │ │ │ └── webapp │ │ │ └── WEB-INF │ │ │ └── web.xml │ └── war-filter-overlay │ │ ├── pom.xml │ │ └── src │ │ └── main │ │ └── webapp │ │ └── WEB-INF │ │ └── web.xml ├── MWAR-167 │ ├── invoker.properties │ ├── pom.xml │ ├── src │ │ └── main │ │ │ └── resources │ │ │ └── MANIFEST.MF │ └── verify.bsh ├── MWAR-240 │ ├── invoker.properties │ ├── pom.xml │ ├── src │ │ └── main │ │ │ └── java │ │ │ └── org │ │ │ └── apache │ │ │ └── maven │ │ │ └── plugin │ │ │ └── war │ │ │ └── it │ │ │ └── Dummy.java │ └── verify.bsh ├── MWAR-306 │ ├── pom.xml │ ├── src │ │ └── main │ │ │ └── webapp │ │ │ └── index.html │ └── verify.groovy ├── MWAR-311 │ ├── pom.xml │ ├── src │ │ └── main │ │ │ ├── resources │ │ │ ├── app.properties │ │ │ └── default.properties │ │ │ └── webapp │ │ │ └── WEB-INF │ │ │ └── web.xml │ └── verify.groovy ├── MWAR-314 │ ├── invoker.properties │ ├── pom.xml │ └── src │ │ └── main │ │ └── webapp │ │ └── index.jsp ├── MWAR-326 │ ├── invoker.properties │ ├── pom.xml │ ├── src │ │ └── main │ │ │ └── java │ │ │ └── A.java │ └── verify.bsh ├── MWAR-350 │ ├── pom.xml │ ├── src │ │ └── main │ │ │ ├── java │ │ │ └── org │ │ │ │ └── apache │ │ │ │ └── maven │ │ │ │ └── it0016 │ │ │ │ └── Person.java │ │ │ └── webapp │ │ │ ├── WEB-INF │ │ │ └── web.xml │ │ │ └── index.html │ └── verify.bsh ├── MWAR-352_custom-webXml │ ├── pom.xml │ ├── src │ │ └── main │ │ │ ├── webapp │ │ │ └── WEB-INF │ │ │ │ └── web.xml │ │ │ └── webconfig │ │ │ └── release │ │ │ └── web.xml │ └── verify.groovy ├── MWAR-371 │ ├── custom │ │ ├── pom.xml │ │ └── src │ │ │ └── main │ │ │ └── custom │ │ │ ├── a1.txt │ │ │ └── a2.txt │ ├── generic │ │ ├── pom.xml │ │ └── src │ │ │ └── main │ │ │ └── webapp │ │ │ └── x │ │ │ ├── a1.txt │ │ │ ├── a2.txt │ │ │ └── a3.txt │ ├── pom.xml │ └── verify.groovy ├── MWAR-396_no-servlet30 │ ├── invoker.properties │ └── pom.xml ├── MWAR-396_servlet30 │ ├── pom.xml │ └── verify.bsh ├── MWAR-427_update-without-clean │ ├── invoker.properties │ ├── pom.xml │ ├── src │ │ └── main │ │ │ ├── resources │ │ │ └── resource.txt │ │ │ └── webapp │ │ │ └── root.html │ └── verify.groovy ├── MWAR-430_jakarta-servlet │ ├── invoker.properties │ ├── pom.xml │ └── verify.bsh ├── MWAR-441 │ ├── invoker.properties │ ├── pom.xml │ ├── src │ │ └── main │ │ │ ├── resources │ │ │ └── resource.txt │ │ │ └── webapp │ │ │ └── root.html │ └── verify.groovy ├── MWAR-450 │ ├── pom.xml │ ├── src │ │ └── main │ │ │ └── webapp │ │ │ ├── WEB-INF │ │ │ ├── classes │ │ │ │ ├── log4j.xml │ │ │ │ ├── my.properties │ │ │ │ └── myfile.txt │ │ │ └── web.xml │ │ │ └── index.jsp │ └── verify.bsh ├── MWAR-62 │ ├── invoker.properties │ ├── pom.xml │ ├── src │ │ └── main │ │ │ └── webapp │ │ │ ├── dev.properties │ │ │ ├── test.properties │ │ │ └── web.xml │ └── verify.bsh ├── MWAR-96 │ ├── pom.xml │ ├── src │ │ └── main │ │ │ ├── filters │ │ │ └── filter.properties │ │ │ └── webapp │ │ │ ├── WEB-INF │ │ │ └── web.xml │ │ │ └── index.jsp │ └── verify.bsh ├── archiveClasses │ ├── pom.xml │ ├── src │ │ └── main │ │ │ ├── java │ │ │ └── org │ │ │ │ └── apache │ │ │ │ └── maven │ │ │ │ └── it0016 │ │ │ │ └── Person.java │ │ │ └── webapp │ │ │ ├── WEB-INF │ │ │ └── web.xml │ │ │ └── index.html │ └── verify.bsh ├── default │ ├── pom.xml │ ├── src │ │ └── main │ │ │ ├── java │ │ │ └── org │ │ │ │ └── apache │ │ │ │ └── maven │ │ │ │ └── it0016 │ │ │ │ └── Person.java │ │ │ └── webapp │ │ │ ├── WEB-INF │ │ │ └── web.xml │ │ │ └── index.html │ └── verify.bsh ├── manifest-content │ ├── pom.xml │ ├── src │ │ └── main │ │ │ └── webapp │ │ │ └── index.jsp │ └── verify.bsh ├── overlay-excludes │ ├── invoker.properties │ ├── pom.xml │ ├── verify.bsh │ ├── war-exclude-overlay │ │ ├── pom.xml │ │ └── src │ │ │ └── main │ │ │ └── webapp │ │ │ └── WEB-INF │ │ │ └── web.xml │ └── war-overlay │ │ ├── pom.xml │ │ └── src │ │ └── main │ │ └── webapp │ │ ├── WEB-INF │ │ └── web.xml │ │ └── lib │ │ └── js │ │ └── something │ │ └── else.js ├── overlay-keeps-contextxml │ ├── invoker.properties │ ├── pom.xml │ ├── verify.bsh │ ├── war1-with-contextxml │ │ ├── pom.xml │ │ └── src │ │ │ └── main │ │ │ └── webapp │ │ │ ├── META-INF │ │ │ └── context.xml │ │ │ └── WEB-INF │ │ │ └── web.xml │ └── war2-result │ │ ├── pom.xml │ │ └── src │ │ └── main │ │ └── webapp │ │ └── WEB-INF │ │ └── web.xml ├── scoped-dependency-same-artifact │ ├── invoker.properties │ ├── pom.xml │ ├── src │ │ └── main │ │ │ └── webapp │ │ │ ├── WEB-INF │ │ │ └── web.xml │ │ │ └── index.jsp │ └── verify.bsh ├── settings.xml ├── simple-war-no-webxml │ ├── invoker.properties │ ├── pom.xml │ ├── src │ │ └── main │ │ │ └── webapp │ │ │ └── index.jsp │ └── verify.bsh ├── simple-war-project │ ├── invoker.properties │ ├── pom.xml │ ├── src │ │ └── main │ │ │ └── webapp │ │ │ ├── WEB-INF │ │ │ └── web.xml │ │ │ └── index.jsp │ └── verify.bsh ├── web-resources-filtering-delimiter │ ├── parent │ │ └── pom.xml │ ├── pom.xml │ ├── verify.bsh │ └── web │ │ ├── pom.xml │ │ └── src │ │ └── main │ │ ├── webapp │ │ ├── WEB-INF │ │ │ └── web.xml │ │ └── index.jsp │ │ └── webresources │ │ └── WEB-INF │ │ ├── classes │ │ └── my.properties │ │ └── jetty-env.xml └── web-resources-filtering │ ├── parent │ └── pom.xml │ ├── pom.xml │ ├── verify.bsh │ └── web │ ├── pom.xml │ └── src │ └── main │ ├── webapp │ ├── WEB-INF │ │ └── web.xml │ └── index.jsp │ └── webresources │ └── WEB-INF │ ├── classes │ └── my.properties │ └── jetty-env.xml ├── main └── java │ └── org │ └── apache │ └── maven │ └── plugins │ └── war │ ├── AbstractWarMojo.java │ ├── Overlay.java │ ├── WarExplodedMojo.java │ ├── WarInPlaceMojo.java │ ├── WarMojo.java │ ├── overlay │ ├── DefaultOverlay.java │ ├── InvalidOverlayConfigurationException.java │ └── OverlayManager.java │ ├── packaging │ ├── AbstractWarPackagingTask.java │ ├── ArtifactsPackagingTask.java │ ├── ClassesPackagingTask.java │ ├── CopyUserManifestTask.java │ ├── OverlayPackagingTask.java │ ├── WarPackagingContext.java │ ├── WarPackagingTask.java │ └── WarProjectPackagingTask.java │ └── util │ ├── ClassesPackager.java │ ├── DependencyInfo.java │ ├── PathSet.java │ ├── WarUtils.java │ └── WebappStructure.java ├── site ├── apt │ ├── examples │ │ ├── adding-filtering-webresources.apt.vm │ │ ├── file-name-mapping.apt │ │ ├── including-excluding-files-from-war.apt.vm │ │ ├── rapid-testing-jetty6-plugin.apt │ │ └── war-manifest-guide.apt.vm │ ├── index.apt.vm │ ├── overlays.apt.vm │ └── usage.apt.vm ├── fml │ └── faq.fml.vm ├── resources │ └── download.cgi ├── site.xml └── xdoc │ └── download.xml.vm └── test ├── java └── org │ └── apache │ └── maven │ └── plugins │ └── war │ ├── AbstractWarExplodedMojoTest.java │ ├── AbstractWarMojoTest.java │ ├── WarExplodedMojoFilteringTest.java │ ├── WarExplodedMojoTest.java │ ├── WarInPlaceMojoTest.java │ ├── WarMojoTest.java │ ├── WarOverlaysTest.java │ ├── WarZipTest.java │ ├── overlay │ └── OverlayManagerTest.java │ ├── stub │ ├── AarArtifactStub.java │ ├── AbstractArtifactStub.java │ ├── EJBArtifactStub.java │ ├── EJBArtifactStubWithClassifier.java │ ├── EJBClientArtifactStub.java │ ├── IncludeExcludeWarArtifactStub.java │ ├── JarArtifactStub.java │ ├── MarArtifactStub.java │ ├── MavenProject4CopyConstructor.java │ ├── MavenProjectArtifactsStub.java │ ├── MavenProjectBasicStub.java │ ├── MavenZipProject.java │ ├── ModelStub.java │ ├── PARArtifactStub.java │ ├── ProjectHelperStub.java │ ├── ResourceStub.java │ ├── TLDArtifactStub.java │ ├── WarArtifact4CCStub.java │ ├── WarArtifactStub.java │ ├── WarOverlayStub.java │ ├── XarArtifactStub.java │ └── ZipArtifactStub.java │ └── util │ ├── PathSetTest.java │ └── WebappStructureTest.java └── resources ├── overlays ├── overlay-one │ ├── WEB-INF │ │ └── web.xml │ ├── index.jsp │ └── login.jsp └── overlay-two │ ├── WEB-INF │ └── web.xml │ ├── admin.jsp │ └── index.jsp └── unit ├── sample_wars ├── ejb.jar ├── ejbclient.jar ├── include-exclude.war ├── javax.servlet-api-3.0.1.jar ├── sample.par ├── simple-updated.war ├── simple.aar ├── simple.jar ├── simple.mar ├── simple.war ├── simple.xar └── tld.jar ├── warexplodedinplacemojo └── plugin-config.xml ├── warexplodedmojo └── plugin-config.xml ├── warmojotest ├── not-primary-artifact.xml └── plugin-config-primary-artifact.xml ├── waroverlays └── default.xml └── warziptest ├── foobar.zip └── war-with-zip.xml /.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 WAR Plugin" 20 | homepage: https://maven.apache.org/plugins/maven-war-plugin/ 21 | labels: 22 | - java 23 | - build-management 24 | - maven-plugins 25 | - maven-war-plugin 26 | - maven 27 | enabled_merge_buttons: 28 | squash: true 29 | merge: false 30 | rebase: true 31 | autolink_jira: 32 | - MWAR 33 | del_branch_on_merge: true 34 | features: 35 | issues: true 36 | 37 | notifications: 38 | commits: commits@maven.apache.org 39 | issues: issues@maven.apache.org 40 | pullrequests: issues@maven.apache.org 41 | jira_options: link label comment 42 | -------------------------------------------------------------------------------- /.git-blame-ignore-revs: -------------------------------------------------------------------------------- 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 | # code reformat - parent 39 19 | 12fe88eee8b04142d08f825626c0eed9afaaed60 20 | -------------------------------------------------------------------------------- /.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 | -------------------------------------------------------------------------------- /.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 | 30 | - type: textarea 31 | id: massage 32 | attributes: 33 | label: New feature, improvement proposal 34 | validations: 35 | required: true 36 | -------------------------------------------------------------------------------- /.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 | - name: Old JIRA Issues 29 | url: https://issues.apache.org/jira/projects/MWAR 30 | about: Please search old JIRA issues 31 | -------------------------------------------------------------------------------- /.github/dependabot.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 | version: 2 19 | updates: 20 | - package-ecosystem: "maven" 21 | directory: "/" 22 | schedule: 23 | interval: "daily" 24 | - package-ecosystem: "github-actions" 25 | directory: "/" 26 | schedule: 27 | interval: "daily" 28 | -------------------------------------------------------------------------------- /.github/pull_request_template.md: -------------------------------------------------------------------------------- 1 | Following this checklist to help us incorporate your 2 | contribution quickly and easily: 3 | 4 | - [ ] Your pull request should address just one issue, without pulling in other changes. 5 | - [ ] Write a pull request description that is detailed enough to understand what the pull request does, how, and why. 6 | - [ ] Each commit in the pull request should have a meaningful subject line and body. 7 | Note that commits might be squashed by a maintainer on merge. 8 | - [ ] Write unit tests that match behavioral changes, where the tests fail if the changes to the runtime are not applied. 9 | This may not always be possible but is a best-practice. 10 | - [ ] Run `mvn verify` to make sure basic checks pass. 11 | A more thorough check will be performed on your pull request automatically. 12 | - [ ] You have run the integration tests successfully (`mvn -Prun-its verify`). 13 | 14 | If your pull request is about ~20 lines of code you don't need to sign an 15 | [Individual Contributor License Agreement](https://www.apache.org/licenses/icla.pdf) if you are unsure 16 | please ask on the developers list. 17 | 18 | To make clear that you license your contribution under 19 | the [Apache License Version 2.0, January 2004](http://www.apache.org/licenses/LICENSE-2.0) 20 | you have to acknowledge this by using the following check-box. 21 | 22 | - [ ] 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) 23 | - [ ] In any other case, please file an [Apache Individual Contributor License Agreement](https://www.apache.org/licenses/icla.pdf). 24 | -------------------------------------------------------------------------------- /.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 | -------------------------------------------------------------------------------- /.github/workflows/maven-verify.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: Verify 19 | 20 | on: 21 | push: 22 | pull_request: 23 | 24 | jobs: 25 | build: 26 | name: Verify 27 | uses: apache/maven-gh-actions-shared/.github/workflows/maven-verify.yml@v4 28 | -------------------------------------------------------------------------------- /.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 | workflow_dispatch: 24 | 25 | jobs: 26 | update_release_draft: 27 | uses: apache/maven-gh-actions-shared/.github/workflows/release-drafter.yml@v4 28 | -------------------------------------------------------------------------------- /.github/workflows/stale.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: Stale 19 | 20 | on: 21 | schedule: 22 | - cron: '16 4 * * *' 23 | issue_comment: 24 | types: [ 'created' ] 25 | 26 | jobs: 27 | stale: 28 | uses: 'apache/maven-gh-actions-shared/.github/workflows/stale.yml@v4' 29 | -------------------------------------------------------------------------------- /.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 | .checkstyle 17 | *.versionsBackup 18 | 19 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 -Preporting site site:stage $@ 23 | mvn scm-publish:publish-scm $@ 24 | -------------------------------------------------------------------------------- /src/it/MWAR-128/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 20 | 21 | 4.0.0 22 | testwar 23 | MWAR-128 24 | war 25 | 1.0-SNAPSHOT 26 | 27 | 28 | 29 | 30 | maven-war-plugin 31 | @project.version@ 32 | 33 | true 34 | 35 | 36 | 37 | 38 | 39 | -------------------------------------------------------------------------------- /src/it/MWAR-128/setup.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 | def dir = new File( basedir, "src/main/webapp/WEB-INF/logs" ) 21 | dir.mkdirs() 22 | return true; 23 | 24 | -------------------------------------------------------------------------------- /src/it/MWAR-128/src/main/webapp/WEB-INF/web.xml: -------------------------------------------------------------------------------- 1 | 19 | -------------------------------------------------------------------------------- /src/it/MWAR-128/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 | def warFile = new java.util.jar.JarFile( new File( basedir, "target/MWAR-128-1.0-SNAPSHOT.war" ), false ); 21 | assert warFile.getEntry( 'WEB-INF/logs' ) != null 22 | 23 | -------------------------------------------------------------------------------- /src/it/MWAR-129/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 | 18 | invoker.goals=clean war:exploded 19 | -------------------------------------------------------------------------------- /src/it/MWAR-129/src/main/webapp/WEB-INF/web.xml: -------------------------------------------------------------------------------- 1 | 4 | 22 | 23 | Archetype Created Web Application 24 | 25 | -------------------------------------------------------------------------------- /src/it/MWAR-129/src/main/webapp/index.jsp: -------------------------------------------------------------------------------- 1 | 19 | 20 | 21 |

Hello World!

22 | 23 | 24 | -------------------------------------------------------------------------------- /src/it/MWAR-129/src/main/webapp/param.jsp: -------------------------------------------------------------------------------- 1 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /src/it/MWAR-131/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 | 18 | invoker.goals=clean install 19 | invoker.maven.version=2.0.9+ -------------------------------------------------------------------------------- /src/it/MWAR-131/mwar131-test/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 20 | 21 | 22 | mwar131 23 | com.example 24 | 1.0-SNAPSHOT 25 | 26 | 4.0.0 27 | mwar131-test 28 | Maven Quick Start Archetype 29 | 30 | 31 | Example project that expects the attached jar from mwar131-webapp to be on the compile and test classpath. 32 | 33 | 34 | 1.0-SNAPSHOT 35 | http://maven.apache.org 36 | 37 | 38 | junit 39 | junit 40 | 3.8.1 41 | test 42 | 43 | 44 | com.example 45 | mwar131-webapp 46 | 1.0-SNAPSHOT 47 | classes 48 | 49 | 50 | -------------------------------------------------------------------------------- /src/it/MWAR-131/mwar131-test/src/main/java/com/example/App.java: -------------------------------------------------------------------------------- 1 | package com.example; 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 | * Hello world! 24 | * 25 | */ 26 | public class App 27 | { 28 | public static void main( String[] args ) 29 | { 30 | System.out.println( "Hello World is " + Util.isPresent() ); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /src/it/MWAR-131/mwar131-test/src/test/java/com/example/AppTest.java: -------------------------------------------------------------------------------- 1 | package com.example; 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 | import junit.framework.Test; 23 | import junit.framework.TestCase; 24 | import junit.framework.TestSuite; 25 | 26 | /** 27 | * Unit test for simple App. 28 | */ 29 | public class AppTest 30 | extends TestCase 31 | { 32 | /** 33 | * Create the test case 34 | * 35 | * @param testName name of the test case 36 | */ 37 | public AppTest( String testName ) 38 | { 39 | super( testName ); 40 | } 41 | 42 | /** 43 | * @return the suite of tests being tested 44 | */ 45 | public static Test suite() 46 | { 47 | return new TestSuite( AppTest.class ); 48 | } 49 | 50 | /** 51 | * Rigourous Test :-) 52 | */ 53 | public void testApp() 54 | { 55 | assertTrue( true ); 56 | } 57 | 58 | public void testUtil() 59 | { 60 | assertTrue( Util.isPresent() ); 61 | } 62 | } 63 | -------------------------------------------------------------------------------- /src/it/MWAR-131/mwar131-webapp/src/main/java/com/example/Util.java: -------------------------------------------------------------------------------- 1 | package com.example; 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 Util 23 | { 24 | public static boolean isPresent() 25 | { 26 | return true; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /src/it/MWAR-131/mwar131-webapp/src/main/webapp/WEB-INF/web.xml: -------------------------------------------------------------------------------- 1 | 19 | 22 | 23 | 24 | Archetype Created Web Application 25 | 26 | -------------------------------------------------------------------------------- /src/it/MWAR-131/mwar131-webapp/src/main/webapp/index.jsp: -------------------------------------------------------------------------------- 1 | 19 | 20 | 21 |

Hello World!

22 | 23 | 24 | -------------------------------------------------------------------------------- /src/it/MWAR-131/mwar131-webapp2/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 20 | 21 | 22 | mwar131 23 | com.example 24 | 1.0-SNAPSHOT 25 | 26 | 4.0.0 27 | mwar131-webapp2 28 | war 29 | Maven Webapp Archetype 30 | 31 | 32 | Webapp that declares the attached jar from mwar131-webapp as a dependency, which should show up in WEB-INF/lib 33 | along with its transitive dependencies. 34 | 35 | 36 | 1.0-SNAPSHOT 37 | http://maven.apache.org 38 | 39 | ${project.artifactId} 40 | 41 | 42 | 43 | junit 44 | junit 45 | 3.8.1 46 | test 47 | 48 | 49 | com.example 50 | mwar131-webapp 51 | 1.0-SNAPSHOT 52 | classes 53 | 54 | 55 | -------------------------------------------------------------------------------- /src/it/MWAR-131/mwar131-webapp2/src/main/webapp/WEB-INF/web.xml: -------------------------------------------------------------------------------- 1 | 19 | 22 | 23 | 24 | Archetype Created Web Application 25 | 26 | -------------------------------------------------------------------------------- /src/it/MWAR-131/mwar131-webapp2/src/main/webapp/index.jsp: -------------------------------------------------------------------------------- 1 | 19 | 20 | 21 |

Hello World!

22 | 23 | 24 | -------------------------------------------------------------------------------- /src/it/MWAR-131/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 20 | 21 | 4.0.0 22 | com.example 23 | mwar131 24 | pom 25 | 1.0-SNAPSHOT 26 | MWAR-131 Integration Test 27 | http://maven.apache.org 28 | 29 | 30 | 31 | maven-war-plugin 32 | @pom.version@ 33 | 34 | 35 | 36 | 37 | mwar131-webapp 38 | mwar131-test 39 | mwar131-webapp2 40 | 41 | -------------------------------------------------------------------------------- /src/it/MWAR-133/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 | 18 | invoker.goals=clean war:exploded 19 | -------------------------------------------------------------------------------- /src/it/MWAR-133/src/main/webapp/WEB-INF/web.xml: -------------------------------------------------------------------------------- 1 | 4 | 22 | 23 | Archetype Created Web Application 24 | 25 | -------------------------------------------------------------------------------- /src/it/MWAR-133/src/main/webresources/filtered.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 | 18 | # 19 | # Not Replaced with the pom version 20 | # 21 | app.version=${node.version} -------------------------------------------------------------------------------- /src/it/MWAR-139/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 20 | 23 | 4.0.0 24 | testwar 25 | MWAR-139 26 | war 27 | 1.0-SNAPSHOT 28 | MWAR-139 Maven Webapp 29 | http://maven.apache.org 30 | 31 | 32 | 33 | maven-war-plugin 34 | @pom.version@ 35 | 36 | src/main/webapp 37 | 38 | 39 | src/main/webresources 40 | true 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | -------------------------------------------------------------------------------- /src/it/MWAR-139/src/main/webapp/WEB-INF/web.xml: -------------------------------------------------------------------------------- 1 | 4 | 22 | 23 | Archetype Created Web Application 24 | 25 | -------------------------------------------------------------------------------- /src/it/MWAR-139/src/main/webresources/filterme.xml: -------------------------------------------------------------------------------- 1 | 19 | 20 | ${foo.url} 21 | hallo @@ hallo 22 | start-${}-end 23 | 24 | -------------------------------------------------------------------------------- /src/it/MWAR-143/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 | 18 | invoker.goals=clean install 19 | -------------------------------------------------------------------------------- /src/it/MWAR-143/war-common/src/main/images/duke-beer.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/maven-war-plugin/3332c8c5adf88e7ac220f7c135390ee655d47058/src/it/MWAR-143/war-common/src/main/images/duke-beer.jpg -------------------------------------------------------------------------------- /src/it/MWAR-143/war-common/src/main/resources/filter.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 | 18 | title.main=Prototype ${pom.name} 19 | title.version=version ${pom.version} 20 | 21 | debug.test = ${my.filter.value} 22 | -------------------------------------------------------------------------------- /src/it/MWAR-143/war-common/src/main/webapp/WEB-INF/web.xml: -------------------------------------------------------------------------------- 1 | 2 | 20 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /src/it/MWAR-143/war-filter-overlay/src/main/webapp/WEB-INF/web.xml: -------------------------------------------------------------------------------- 1 | 2 | 20 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /src/it/MWAR-167/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 | 18 | invoker.goals=clean war:exploded 19 | -------------------------------------------------------------------------------- /src/it/MWAR-167/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 20 | 21 | 4.0.0 22 | testwar 23 | MWAR-167 24 | war 25 | 1.0-SNAPSHOT 26 | MWAR-167 Maven Webapp 27 | http://maven.apache.org 28 | 29 | 30 | junit 31 | junit 32 | 3.8.1 33 | test 34 | 35 | 36 | 37 | 38 | 39 | maven-war-plugin 40 | @project.version@ 41 | 42 | 43 | src/main/resources/MANIFEST.MF 44 | 45 | 46 | 47 | 48 | 49 | 50 | -------------------------------------------------------------------------------- /src/it/MWAR-167/src/main/resources/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Bundle-Name: Dummy Bundle 3 | Bundle-SymbolicName: dummy.bundle 4 | Bundle-ManifestVersion: 2 5 | Bundle-Version: 1.0.0.SNAPSHOT -------------------------------------------------------------------------------- /src/it/MWAR-240/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 | 18 | invoker.goals=clean package 19 | -------------------------------------------------------------------------------- /src/it/MWAR-240/pom.xml: -------------------------------------------------------------------------------- 1 | 19 | 20 | 23 | 4.0.0 24 | test 25 | mwar-240-test-case 26 | 1.0 27 | MWAR-240 Test case 28 | war 29 | Test project for reproducing an issue with classes packaging: https://issues.apache.org/jira/browse/MWAR-240 30 | 31 | 32 | 33 | maven-war-plugin 34 | @pom.version@ 35 | 36 | false 37 | true 38 | true 39 | 40 | 41 | 42 | 43 | -------------------------------------------------------------------------------- /src/it/MWAR-240/src/main/java/org/apache/maven/plugin/war/it/Dummy.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 org.apache.maven.plugin.war.it; 21 | 22 | /** 23 | * A dummy class to show the problem with classes packaging. 24 | * 25 | * @author Sergiy Shyrkov 26 | */ 27 | public class Dummy { 28 | 29 | } 30 | -------------------------------------------------------------------------------- /src/it/MWAR-240/verify.bsh: -------------------------------------------------------------------------------- 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 java.util.regex.*; 25 | 26 | try 27 | { 28 | File jarFile = new File( basedir, "target/mwar-240-test-case-1.0-classes.jar" ); 29 | System.out.println( "Checking for existence of " + jarFile ); 30 | if ( !jarFile.isFile() ) 31 | { 32 | System.out.println( "FAILURE!" ); 33 | return false; 34 | } 35 | 36 | JarFile jar = new JarFile( jarFile ); 37 | 38 | String[] includedEntries = { 39 | "org/apache/maven/plugin/war/it/Dummy.class", 40 | }; 41 | for ( String included : includedEntries ) 42 | { 43 | System.out.println( "Checking for existence of " + included ); 44 | if ( jar.getEntry( included ) == null ) 45 | { 46 | System.out.println( "FAILURE!" ); 47 | return false; 48 | } 49 | } 50 | 51 | jar.close(); 52 | } 53 | catch( Throwable t ) 54 | { 55 | t.printStackTrace(); 56 | return false; 57 | } 58 | 59 | return true; 60 | -------------------------------------------------------------------------------- /src/it/MWAR-306/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 20 | 22 | 4.0.0 23 | foo.bar 24 | MWAR-306 25 | 0.0.1-SNAPSHOT 26 | war 27 | 28 | 29 | 30 | @project.groupId@ 31 | @project.artifactId@ 32 | @project.version@ 33 | 34 | false 35 | 36 | 37 | src/main/webapp 38 | true 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | -------------------------------------------------------------------------------- /src/it/MWAR-306/src/main/webapp/index.html: -------------------------------------------------------------------------------- 1 | 19 | 20 | 21 | 22 | ${project.artifactId} 23 | 24 | ${project.artifactId} @ ${project.version} 25 | ${project.name} 26 | 27 | -------------------------------------------------------------------------------- /src/it/MWAR-306/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 | def indexHtml = new File(basedir, 'target/MWAR-306-0.0.1-SNAPSHOT/index.html'); 21 | assert indexHtml.exists() 22 | 23 | assert indexHtml.text.contains('MWAR-306 @ 0.0.1-SNAPSHOT') 24 | -------------------------------------------------------------------------------- /src/it/MWAR-311/src/main/resources/app.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 | my.maven.property=${my.maven.property} 18 | prop.a=${prop.a} 19 | prop.b=${prop.b} 20 | -------------------------------------------------------------------------------- /src/it/MWAR-311/src/main/resources/default.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 | prop.a=AAA 18 | prop.b=BBB 19 | -------------------------------------------------------------------------------- /src/it/MWAR-311/src/main/webapp/WEB-INF/web.xml: -------------------------------------------------------------------------------- 1 | 2 | 20 | 24 | 25 | -------------------------------------------------------------------------------- /src/it/MWAR-311/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 | def propertiesFile = new File(basedir, 'target/MWAR-311-0.0.1-SNAPSHOT/app.properties'); 21 | assert propertiesFile.exists() 22 | 23 | assert propertiesFile.text.contains('my.maven.property=foo foo'); 24 | assert propertiesFile.text.contains('prop.a=AAA'); 25 | assert propertiesFile.text.contains('prop.b=BBB'); 26 | -------------------------------------------------------------------------------- /src/it/MWAR-314/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 | 18 | invoker.goals=clean package 19 | invoker.debug = true 20 | -------------------------------------------------------------------------------- /src/it/MWAR-314/pom.xml: -------------------------------------------------------------------------------- 1 | 3 | 21 | 4.0.0 22 | mwar314 23 | mwar314 24 | 0.0.1-SNAPSHOT 25 | war 26 | 27 | 28 | 29 | org.apache.maven.plugins 30 | maven-war-plugin 31 | @project.version@ 32 | 33 | false 34 | src/main/webapp/WEB-INF/web.xml 35 | 36 | 37 | 38 | 39 | 40 | -------------------------------------------------------------------------------- /src/it/MWAR-314/src/main/webapp/index.jsp: -------------------------------------------------------------------------------- 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 | <% response.sendRedirect( request.getContextPath() + "/groupSummary.action" ); %> 21 | -------------------------------------------------------------------------------- /src/it/MWAR-326/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 | 18 | invoker.description = This test only checks if using extensions works without any issue. 19 | invoker.goals = clean package 20 | -------------------------------------------------------------------------------- /src/it/MWAR-326/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 20 | 21 | 25 | 4.0.0 26 | org.apache.maven.plugins 27 | maven-war-plugin-test-mwar-326 28 | 1.0-SNAPSHOT 29 | war 30 | Maven Integration Test :: MWAR-326 31 | MWAR-326 integration test 32 | 33 | 34 | 35 | false 36 | org.apache.maven.plugins 37 | maven-war-plugin 38 | @project.version@ 39 | true 40 | 41 | false 42 | 43 | 44 | 45 | 46 | 47 | -------------------------------------------------------------------------------- /src/it/MWAR-326/src/main/java/A.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 | public class A { 22 | public static void main(String[] args) { 23 | 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /src/it/MWAR-326/verify.bsh: -------------------------------------------------------------------------------- 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 | 37 | File artifact = new File( target, "maven-war-plugin-test-mwar-326-1.0-SNAPSHOT.war" ); 38 | if ( !artifact.exists() ) 39 | { 40 | System.err.println( "default artifact should exist." ); 41 | return false; 42 | } 43 | 44 | return true; 45 | } 46 | catch( Throwable e ) 47 | { 48 | e.printStackTrace(); 49 | return false; 50 | } 51 | 52 | return false; 53 | -------------------------------------------------------------------------------- /src/it/MWAR-350/src/main/java/org/apache/maven/it0016/Person.java: -------------------------------------------------------------------------------- 1 | package org.apache.maven.it0016; 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 Person 23 | { 24 | private String name; 25 | 26 | public void setName( String name ) 27 | { 28 | this.name = name; 29 | } 30 | 31 | public String getName() 32 | { 33 | return name; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /src/it/MWAR-350/src/main/webapp/WEB-INF/web.xml: -------------------------------------------------------------------------------- 1 | 2 | 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /src/it/MWAR-350/src/main/webapp/index.html: -------------------------------------------------------------------------------- 1 | 19 | 20 | 21 | Hello World 22 | 23 | 24 | -------------------------------------------------------------------------------- /src/it/MWAR-350/verify.bsh: -------------------------------------------------------------------------------- 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 java.util.regex.*; 24 | 25 | try 26 | { 27 | File explodedDir = new File( basedir, "target/maven-it-mwar350-1.0" ); 28 | System.out.println( "Checking for existence of exploded directory " + explodedDir ); 29 | if ( explodedDir.isDirectory() ) 30 | { 31 | System.out.println( "FAILURE! The directory " + explodedDir + " does exist." ); 32 | return false; 33 | } 34 | 35 | 36 | File warFile = new File( basedir, "target/maven-it-mwar350-1.0.war" ); 37 | System.out.println( "Checking for existence of " + warFile ); 38 | if ( warFile.isFile() ) 39 | { 40 | System.out.println( "FAILURE! The generated file should have not be there." ); 41 | return false; 42 | } 43 | 44 | } 45 | catch( Throwable t ) 46 | { 47 | t.printStackTrace(); 48 | return false; 49 | } 50 | 51 | return true; 52 | -------------------------------------------------------------------------------- /src/it/MWAR-352_custom-webXml/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 21 | 22 | 23 | 4.0.0 24 | 25 | org.apache.maven.plugins.war.its 26 | mwar-352 27 | 1.0-SNAPSHOT 28 | war 29 | 30 | 31 | UTF-8 32 | 33 | 34 | 35 | 36 | 37 | org.apache.maven.plugins 38 | maven-war-plugin 39 | @project.version@ 40 | 41 | src/main/webconfig/release/web.xml 42 | 43 | 44 | 45 | 46 | 47 | -------------------------------------------------------------------------------- /src/it/MWAR-352_custom-webXml/src/main/webapp/WEB-INF/web.xml: -------------------------------------------------------------------------------- 1 | 2 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /src/it/MWAR-352_custom-webXml/src/main/webconfig/release/web.xml: -------------------------------------------------------------------------------- 1 | 2 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /src/it/MWAR-352_custom-webXml/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 | def warFile = new java.util.jar.JarFile( new File(basedir,"target/mwar-352-1.0-SNAPSHOT.war"), false) 21 | def webXml = warFile.getEntry('WEB-INF/web.xml') 22 | assert webXml != null 23 | assert warFile.getInputStream( webXml).text.contains('from src/main/webconfig/release/web.xml') 24 | -------------------------------------------------------------------------------- /src/it/MWAR-371/custom/src/main/custom/a1.txt: -------------------------------------------------------------------------------- 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 | i'm custom -------------------------------------------------------------------------------- /src/it/MWAR-371/custom/src/main/custom/a2.txt: -------------------------------------------------------------------------------- 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 | i'm custom -------------------------------------------------------------------------------- /src/it/MWAR-371/generic/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 20 | 21 | 4.0.0 22 | 23 | mwar371 24 | mwar371 25 | 1.0-SNAPSHOT 26 | 27 | generic 28 | war 29 | -------------------------------------------------------------------------------- /src/it/MWAR-371/generic/src/main/webapp/x/a1.txt: -------------------------------------------------------------------------------- 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 | I'm generic -------------------------------------------------------------------------------- /src/it/MWAR-371/generic/src/main/webapp/x/a2.txt: -------------------------------------------------------------------------------- 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 | I'm generic -------------------------------------------------------------------------------- /src/it/MWAR-371/generic/src/main/webapp/x/a3.txt: -------------------------------------------------------------------------------- 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 | I'm generic -------------------------------------------------------------------------------- /src/it/MWAR-371/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 20 | 22 | 4.0.0 23 | mwar371 24 | mwar371 25 | 1.0-SNAPSHOT 26 | pom 27 | Maven Integration Test :: MWAR-371 28 | MWAR-371 integration test 29 | 30 | 31 | UTF-8 32 | 33 | 34 | 35 | generic 36 | custom 37 | 38 | 39 | 40 | 41 | 42 | maven-war-plugin 43 | @project.version@ 44 | 45 | false 46 | 47 | 48 | 49 | 50 | 51 | 52 | -------------------------------------------------------------------------------- /src/it/MWAR-396_no-servlet30/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 | 18 | invoker.buildResult = failure 19 | -------------------------------------------------------------------------------- /src/it/MWAR-396_servlet30/verify.bsh: -------------------------------------------------------------------------------- 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 java.util.regex.*; 24 | 25 | try 26 | { 27 | File explodedDir = new File( basedir, "target/maven-it-mwar396_servlet30-1.0" ); 28 | System.out.println( "Checking for existence of exploded directory " + explodedDir ); 29 | if ( !explodedDir.exists() ) 30 | { 31 | System.out.println( "FAILURE! The directory " + explodedDir + " does not exist." ); 32 | return false; 33 | } 34 | 35 | File webInfFile = new File( explodedDir, "WEB-INF/web.xml" ); 36 | if ( webInfFile.exists() ) 37 | { 38 | System.err.println( "FAILURE! The file web.xml should not be present." ); 39 | return false; 40 | } 41 | 42 | } 43 | catch( Throwable t ) 44 | { 45 | t.printStackTrace(); 46 | return false; 47 | } 48 | 49 | return true; 50 | -------------------------------------------------------------------------------- /src/it/MWAR-427_update-without-clean/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 | 18 | invoker.goals.1=package 19 | invoker.goals.2=groovy:execute 20 | invoker.goals.3=package 21 | -------------------------------------------------------------------------------- /src/it/MWAR-427_update-without-clean/src/main/resources/resource.txt: -------------------------------------------------------------------------------- 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 | -------------------------------------------------------------------------------- /src/it/MWAR-427_update-without-clean/src/main/webapp/root.html: -------------------------------------------------------------------------------- 1 | 19 | 20 | 21 | Hello World 22 | 23 | -------------------------------------------------------------------------------- /src/it/MWAR-427_update-without-clean/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 | def warFile = new java.util.jar.JarFile( new File(basedir,"target/mwar427-1.0-SNAPSHOT.war"), false) 21 | assert warFile.getEntry('WEB-INF/lib/plexus-utils-3.0.23.jar') != null 22 | assert warFile.getEntry('WEB-INF/lib/mwar427-1.0-SNAPSHOT.jar') != null 23 | assert warFile.getEntry('index.html') != null 24 | 25 | assert warFile.getEntry('WEB-INF/lib/plexus-utils-3.0.24.jar') == null 26 | assert warFile.getEntry('root.html') != null // after MWAR-433, only WEB-INF/lib/ content is checked, other resources may be generated outside m-war-p -------------------------------------------------------------------------------- /src/it/MWAR-430_jakarta-servlet/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 | 18 | invoker.java.version = 1.8+ 19 | 20 | -------------------------------------------------------------------------------- /src/it/MWAR-430_jakarta-servlet/verify.bsh: -------------------------------------------------------------------------------- 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 java.util.regex.*; 24 | 25 | try 26 | { 27 | File explodedDir = new File( basedir, "target/maven-it-mwar-430-1.0" ); 28 | System.out.println( "Checking for existence of exploded directory " + explodedDir ); 29 | if ( !explodedDir.exists() ) 30 | { 31 | System.out.println( "FAILURE! The directory " + explodedDir + " does not exist." ); 32 | return false; 33 | } 34 | 35 | File webInfFile = new File( explodedDir, "WEB-INF/web.xml" ); 36 | if ( webInfFile.exists() ) 37 | { 38 | System.err.println( "FAILURE! The file web.xml should not be present." ); 39 | return false; 40 | } 41 | 42 | } 43 | catch( Throwable t ) 44 | { 45 | t.printStackTrace(); 46 | return false; 47 | } 48 | 49 | return true; 50 | -------------------------------------------------------------------------------- /src/it/MWAR-441/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 | 18 | invoker.goals.1=package 19 | invoker.goals.2=groovy:execute 20 | invoker.goals.3=package 21 | -------------------------------------------------------------------------------- /src/it/MWAR-441/src/main/resources/resource.txt: -------------------------------------------------------------------------------- 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 | -------------------------------------------------------------------------------- /src/it/MWAR-441/src/main/webapp/root.html: -------------------------------------------------------------------------------- 1 | 19 | 20 | 21 | Hello World 22 | 23 | -------------------------------------------------------------------------------- /src/it/MWAR-441/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 | def warFile = new java.util.jar.JarFile( new File(basedir,"target/mwar427-1.0-SNAPSHOT.war"), false) 21 | assert warFile.getEntry('WEB-INF/lib/plexus-utils-3.0.23.jar') != null 22 | assert warFile.getEntry('WEB-INF/lib/mwar427-1.0-SNAPSHOT.jar') != null 23 | assert warFile.getEntry('index.html') != null 24 | 25 | assert warFile.getEntry('WEB-INF/lib/plexus-utils-3.0.24.jar') == null 26 | assert warFile.getEntry('root.html') == null // after MWAR-441, this path is also removed as outdated (with the '/' config in the pom). 27 | -------------------------------------------------------------------------------- /src/it/MWAR-450/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 21 | 22 | 23 | 4.0.0 24 | 25 | org.apache.maven.its.war 26 | mwar450 27 | 1.0-SNAPSHOT 28 | war 29 | 30 | 31 | UTF-8 32 | 33 | 34 | 35 | mwar450 36 | 37 | 38 | org.apache.maven.plugins 39 | maven-war-plugin 40 | @project.version@ 41 | 42 | 43 | ISO-8859-1 44 | 45 | 46 | WEB-INF/classes 47 | true 48 | src/main/webapp/WEB-INF/classes 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | -------------------------------------------------------------------------------- /src/it/MWAR-450/src/main/webapp/WEB-INF/classes/log4j.xml: -------------------------------------------------------------------------------- 1 | 2 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /src/it/MWAR-450/src/main/webapp/WEB-INF/classes/my.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/maven-war-plugin/3332c8c5adf88e7ac220f7c135390ee655d47058/src/it/MWAR-450/src/main/webapp/WEB-INF/classes/my.properties -------------------------------------------------------------------------------- /src/it/MWAR-450/src/main/webapp/WEB-INF/classes/myfile.txt: -------------------------------------------------------------------------------- 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 | Characters that should be encoded in UTF-8: åäö -------------------------------------------------------------------------------- /src/it/MWAR-450/src/main/webapp/WEB-INF/web.xml: -------------------------------------------------------------------------------- 1 | 2 | 20 | 23 | 24 | 25 | Archetype Created Web Application 26 | 27 | -------------------------------------------------------------------------------- /src/it/MWAR-450/src/main/webapp/index.jsp: -------------------------------------------------------------------------------- 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 | 21 |

Hello World!

22 | 23 | 24 | -------------------------------------------------------------------------------- /src/it/MWAR-62/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 | 18 | invoker.goals=clean war:exploded 19 | -------------------------------------------------------------------------------- /src/it/MWAR-62/src/main/webapp/dev.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 | 18 | foo dev -------------------------------------------------------------------------------- /src/it/MWAR-62/src/main/webapp/test.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 | 18 | foo dev -------------------------------------------------------------------------------- /src/it/MWAR-62/src/main/webapp/web.xml: -------------------------------------------------------------------------------- 1 | 4 | 22 | 23 | Archetype Created Web Application 24 | 25 | -------------------------------------------------------------------------------- /src/it/MWAR-96/src/main/filters/filter.properties: -------------------------------------------------------------------------------- 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 | warPluginFilterConfigurationProperty=okitworks -------------------------------------------------------------------------------- /src/it/MWAR-96/src/main/webapp/WEB-INF/web.xml: -------------------------------------------------------------------------------- 1 | 4 | 22 | 23 | Archetype Created Web Application 24 | 25 | -------------------------------------------------------------------------------- /src/it/MWAR-96/src/main/webapp/index.jsp: -------------------------------------------------------------------------------- 1 | 19 | java versionjava version : ${java.version} 20 | Project${pom.name} 21 | Version${pom.version} 22 | custom filter${warPluginFilterConfigurationProperty} -------------------------------------------------------------------------------- /src/it/archiveClasses/src/main/java/org/apache/maven/it0016/Person.java: -------------------------------------------------------------------------------- 1 | package org.apache.maven.it0016; 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 Person 23 | { 24 | private String name; 25 | 26 | public void setName( String name ) 27 | { 28 | this.name = name; 29 | } 30 | 31 | public String getName() 32 | { 33 | return name; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /src/it/archiveClasses/src/main/webapp/WEB-INF/web.xml: -------------------------------------------------------------------------------- 1 | 2 | 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /src/it/archiveClasses/src/main/webapp/index.html: -------------------------------------------------------------------------------- 1 | 19 | 20 | 21 | Hello World 22 | 23 | 24 | -------------------------------------------------------------------------------- /src/it/default/src/main/java/org/apache/maven/it0016/Person.java: -------------------------------------------------------------------------------- 1 | package org.apache.maven.it0016; 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 Person 23 | { 24 | private String name; 25 | 26 | public void setName( String name ) 27 | { 28 | this.name = name; 29 | } 30 | 31 | public String getName() 32 | { 33 | return name; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /src/it/default/src/main/webapp/WEB-INF/web.xml: -------------------------------------------------------------------------------- 1 | 2 | 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /src/it/default/src/main/webapp/index.html: -------------------------------------------------------------------------------- 1 | 19 | 20 | 21 | Hello World 22 | 23 | 24 | -------------------------------------------------------------------------------- /src/it/manifest-content/pom.xml: -------------------------------------------------------------------------------- 1 | 19 | 20 | 23 | 4.0.0 24 | test 25 | manifest-content 26 | war 27 | 1.0-SNAPSHOT 28 | Maven War Manifest Content Test 29 | 30 | war plugin it 31 | 32 | 33 | 34 | 35 | maven-war-plugin 36 | @pom.version@ 37 | 38 | false 39 | 40 | true 41 | 42 | true 43 | true 44 | 45 | 46 | 47 | 48 | 49 | 50 | -------------------------------------------------------------------------------- /src/it/manifest-content/src/main/webapp/index.jsp: -------------------------------------------------------------------------------- 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 | <% response.sendRedirect( request.getContextPath() + "/groupSummary.action" ); %> 21 | -------------------------------------------------------------------------------- /src/it/overlay-excludes/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 | 18 | invoker.goals=clean install 19 | -------------------------------------------------------------------------------- /src/it/overlay-excludes/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 20 | 23 | 4.0.0 24 | debug.war 25 | overlay-excludes 26 | pom 27 | 1.0-SNAPSHOT 28 | test of overlay with exclusions 29 | http://maven.apache.org 30 | 31 | war-overlay 32 | war-exclude-overlay 33 | 34 | 35 | 36 | 37 | 38 | maven-war-plugin 39 | @pom.version@ 40 | 41 | 42 | 43 | 44 | 45 | -------------------------------------------------------------------------------- /src/it/overlay-excludes/verify.bsh: -------------------------------------------------------------------------------- 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 org.codehaus.plexus.util.*; 23 | 24 | 25 | File testFile = new File( basedir, "war-exclude-overlay/target/war-exclude-overlay-1.0-SNAPSHOT/lib/js/something/else.js"); 26 | if ( testFile.exists() ) 27 | { 28 | System.err.println( "exclude didn't exclude." ); 29 | return false; 30 | } 31 | 32 | -------------------------------------------------------------------------------- /src/it/overlay-excludes/war-exclude-overlay/src/main/webapp/WEB-INF/web.xml: -------------------------------------------------------------------------------- 1 | 2 | 20 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /src/it/overlay-excludes/war-overlay/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 20 | 22 | 4.0.0 23 | 24 | debug.war 25 | overlay-excludes 26 | 1.0-SNAPSHOT 27 | 28 | war-overlay 29 | war 30 | 31 | -------------------------------------------------------------------------------- /src/it/overlay-excludes/war-overlay/src/main/webapp/WEB-INF/web.xml: -------------------------------------------------------------------------------- 1 | 2 | 20 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /src/it/overlay-excludes/war-overlay/src/main/webapp/lib/js/something/else.js: -------------------------------------------------------------------------------- 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 | /* a javascript file, sort of */ 21 | -------------------------------------------------------------------------------- /src/it/overlay-keeps-contextxml/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 | 18 | invoker.goals=clean install 19 | -------------------------------------------------------------------------------- /src/it/overlay-keeps-contextxml/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 20 | 23 | 4.0.0 24 | debug.war 25 | overlay-keeps-contextxml 26 | pom 27 | 1.0-SNAPSHOT 28 | test that default overlay keeps META-INF/context.xml 29 | http://maven.apache.org 30 | 31 | war1-with-contextxml 32 | war2-result 33 | 34 | 35 | 36 | 37 | 38 | maven-war-plugin 39 | @pom.version@ 40 | 41 | 42 | 43 | 44 | 45 | -------------------------------------------------------------------------------- /src/it/overlay-keeps-contextxml/verify.bsh: -------------------------------------------------------------------------------- 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 org.codehaus.plexus.util.*; 23 | 24 | 25 | File testFile = new File( basedir, "war2-result/target/war2-result-1.0-SNAPSHOT/META-INF/context.xml"); 26 | if ( !testFile.exists() ) 27 | { 28 | System.err.println( "war1 META-INF/context.xml lost in overlay process" ); 29 | return false; 30 | } 31 | 32 | -------------------------------------------------------------------------------- /src/it/overlay-keeps-contextxml/war1-with-contextxml/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 20 | 22 | 4.0.0 23 | 24 | debug.war 25 | overlay-keeps-contextxml 26 | 1.0-SNAPSHOT 27 | 28 | war1-with-contextxml 29 | war 30 | 31 | 32 | -------------------------------------------------------------------------------- /src/it/overlay-keeps-contextxml/war1-with-contextxml/src/main/webapp/META-INF/context.xml: -------------------------------------------------------------------------------- 1 | 2 | 20 | -------------------------------------------------------------------------------- /src/it/overlay-keeps-contextxml/war1-with-contextxml/src/main/webapp/WEB-INF/web.xml: -------------------------------------------------------------------------------- 1 | 2 | 20 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /src/it/overlay-keeps-contextxml/war2-result/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 20 | 22 | 4.0.0 23 | 24 | debug.war 25 | overlay-keeps-contextxml 26 | 1.0-SNAPSHOT 27 | 28 | war2-result 29 | war 30 | 31 | 32 | 33 | debug.war 34 | war1-with-contextxml 35 | 1.0-SNAPSHOT 36 | war 37 | runtime 38 | 39 | 40 | 41 | -------------------------------------------------------------------------------- /src/it/overlay-keeps-contextxml/war2-result/src/main/webapp/WEB-INF/web.xml: -------------------------------------------------------------------------------- 1 | 2 | 20 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /src/it/scoped-dependency-same-artifact/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 | 18 | invoker.goals=clean package 19 | -------------------------------------------------------------------------------- /src/it/scoped-dependency-same-artifact/src/main/webapp/WEB-INF/web.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 21 | 22 | 25 | 26 | Maven Simple War Project Test 27 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /src/it/scoped-dependency-same-artifact/src/main/webapp/index.jsp: -------------------------------------------------------------------------------- 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 | <% response.sendRedirect( request.getContextPath() + "/groupSummary.action" ); %> 21 | -------------------------------------------------------------------------------- /src/it/settings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 21 | 22 | 23 | 24 | 25 | it-repo 26 | 27 | true 28 | 29 | 30 | 31 | local.central 32 | @localRepositoryUrl@ 33 | 34 | true 35 | 36 | 37 | true 38 | 39 | 40 | 41 | 42 | 43 | local.central 44 | @localRepositoryUrl@ 45 | 46 | true 47 | 48 | 49 | true 50 | 51 | 52 | 53 | 54 | 55 | 56 | -------------------------------------------------------------------------------- /src/it/simple-war-no-webxml/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 | 18 | invoker.goals=clean package 19 | invoker.debug = true 20 | -------------------------------------------------------------------------------- /src/it/simple-war-no-webxml/pom.xml: -------------------------------------------------------------------------------- 1 | 19 | 20 | 23 | 4.0.0 24 | test 25 | simple-war-no-webxml 26 | war 27 | 1.0-SNAPSHOT 28 | Maven Simple War Project Test 29 | 30 | 31 | 32 | maven-war-plugin 33 | @pom.version@ 34 | 35 | false 36 | 37 | 38 | 39 | 40 | 41 | 42 | org.codehaus.plexus 43 | plexus-utils 44 | 3.0.24 45 | 46 | 47 | -------------------------------------------------------------------------------- /src/it/simple-war-no-webxml/src/main/webapp/index.jsp: -------------------------------------------------------------------------------- 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 | <% response.sendRedirect( request.getContextPath() + "/groupSummary.action" ); %> 21 | -------------------------------------------------------------------------------- /src/it/simple-war-project/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 | 18 | invoker.goals=clean package 19 | -------------------------------------------------------------------------------- /src/it/simple-war-project/src/main/webapp/WEB-INF/web.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 21 | 22 | 25 | 26 | ${pom.description} 27 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /src/it/simple-war-project/src/main/webapp/index.jsp: -------------------------------------------------------------------------------- 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 | <% response.sendRedirect( request.getContextPath() + "/groupSummary.action" ); %> 21 | -------------------------------------------------------------------------------- /src/it/web-resources-filtering-delimiter/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 20 | 22 | 4.0.0 23 | 24 | 25 | com.edb.finance.example 26 | example-parent 27 | 1.0.0-SNAPSHOT 28 | parent/pom.xml 29 | 30 | 31 | example 32 | pom 33 | 34 | Example Maven Multi-module project For Filtering with Delimiters 35 | http://maven.apache.org 36 | 37 | 38 | parent 39 | web 40 | 41 | 42 | -------------------------------------------------------------------------------- /src/it/web-resources-filtering-delimiter/web/src/main/webapp/WEB-INF/web.xml: -------------------------------------------------------------------------------- 1 | 2 | 20 | 23 | 24 | 25 | Archetype Created Web Application 26 | 27 | -------------------------------------------------------------------------------- /src/it/web-resources-filtering-delimiter/web/src/main/webapp/index.jsp: -------------------------------------------------------------------------------- 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 | 21 |

Hello World!

22 | 23 | 24 | -------------------------------------------------------------------------------- /src/it/web-resources-filtering-delimiter/web/src/main/webresources/WEB-INF/classes/my.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/maven-war-plugin/3332c8c5adf88e7ac220f7c135390ee655d47058/src/it/web-resources-filtering-delimiter/web/src/main/webresources/WEB-INF/classes/my.properties -------------------------------------------------------------------------------- /src/it/web-resources-filtering-delimiter/web/src/main/webresources/WEB-INF/jetty-env.xml: -------------------------------------------------------------------------------- 1 | 2 | 20 | 22 | 23 | 30 | 31 | jdbc/EventdialogDS 32 | 33 | 34 | @@jdbc.url@@ 35 | @@jdbc.user@@ 36 | \@@jdbc.password@@ 37 | 38 | 39 | 40 | 41 | -------------------------------------------------------------------------------- /src/it/web-resources-filtering/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 20 | 22 | 4.0.0 23 | 24 | 25 | com.edb.finance.example 26 | example-parent 27 | 1.0.0-SNAPSHOT 28 | parent/pom.xml 29 | 30 | 31 | example 32 | pom 33 | 34 | Example Maven Multi-module project 35 | http://maven.apache.org 36 | 37 | 38 | parent 39 | web 40 | 41 | 42 | -------------------------------------------------------------------------------- /src/it/web-resources-filtering/web/src/main/webapp/WEB-INF/web.xml: -------------------------------------------------------------------------------- 1 | 2 | 20 | 23 | 24 | 25 | Archetype Created Web Application 26 | 27 | -------------------------------------------------------------------------------- /src/it/web-resources-filtering/web/src/main/webapp/index.jsp: -------------------------------------------------------------------------------- 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 | 21 |

Hello World!

22 | 23 | 24 | -------------------------------------------------------------------------------- /src/it/web-resources-filtering/web/src/main/webresources/WEB-INF/classes/my.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/maven-war-plugin/3332c8c5adf88e7ac220f7c135390ee655d47058/src/it/web-resources-filtering/web/src/main/webresources/WEB-INF/classes/my.properties -------------------------------------------------------------------------------- /src/it/web-resources-filtering/web/src/main/webresources/WEB-INF/jetty-env.xml: -------------------------------------------------------------------------------- 1 | 2 | 20 | 22 | 23 | 30 | 34 | 35 | jdbc/EventdialogDS 36 | 37 | 38 | ${jdbc.url} 39 | ${jdbc.user} 40 | \${jdbc.password} 41 | 42 | 43 | 44 | 45 | -------------------------------------------------------------------------------- /src/main/java/org/apache/maven/plugins/war/overlay/DefaultOverlay.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.war.overlay; 20 | 21 | import org.apache.maven.artifact.Artifact; 22 | import org.apache.maven.plugins.war.Overlay; 23 | 24 | /** 25 | * A default overlay implementation based on an {@link Artifact}. 26 | * 27 | * @author Stephane Nicoll 28 | */ 29 | public class DefaultOverlay extends Overlay { 30 | 31 | /** 32 | * Creates an overlay for the specified artifact. 33 | * 34 | * @param a the artifact 35 | */ 36 | public DefaultOverlay(Artifact a) { 37 | super(); 38 | setGroupId(a.getGroupId()); 39 | setArtifactId(a.getArtifactId()); 40 | setClassifier(a.getClassifier()); 41 | setArtifact(a); 42 | setType(a.getType()); 43 | } 44 | 45 | /** 46 | * Creates an overlay for the specified artifact. 47 | * 48 | * @param a the artifact 49 | * @param includes the includes to use 50 | * @param excludes the excludes to use 51 | */ 52 | public DefaultOverlay(Artifact a, String[] includes, String[] excludes) { 53 | this(a); 54 | setIncludes(includes); 55 | setExcludes(excludes); 56 | } 57 | } 58 | -------------------------------------------------------------------------------- /src/main/java/org/apache/maven/plugins/war/overlay/InvalidOverlayConfigurationException.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.war.overlay; 20 | 21 | import org.apache.maven.plugin.MojoExecutionException; 22 | 23 | /** 24 | * Thrown if the overlay configuration is invalid. 25 | * 26 | * @author Stephane Nicoll 27 | */ 28 | public class InvalidOverlayConfigurationException extends MojoExecutionException { 29 | 30 | /** 31 | * 32 | */ 33 | private static final long serialVersionUID = -9048144470408031414L; 34 | 35 | /** 36 | * @param string Set the message of the exception. 37 | */ 38 | public InvalidOverlayConfigurationException(String string) { 39 | super(string); 40 | } 41 | 42 | /** 43 | * @param string Set the message of the exception. 44 | * @param throwable {@link Throwable} 45 | */ 46 | public InvalidOverlayConfigurationException(String string, Throwable throwable) { 47 | super(string, throwable); 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /src/main/java/org/apache/maven/plugins/war/packaging/WarPackagingTask.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.war.packaging; 20 | 21 | import org.apache.maven.plugin.MojoExecutionException; 22 | import org.apache.maven.plugin.MojoFailureException; 23 | 24 | /** 25 | * The base packaging task. 26 | * 27 | * @author Stephane Nicoll 28 | */ 29 | public interface WarPackagingTask { 30 | 31 | /** 32 | * Performs the packaging for the specified task. 33 | * 34 | * The task is responsible to update the packaging context, namely with the files that have been copied. 35 | * 36 | * @param context the packaging context 37 | * @throws MojoExecutionException if an error occurred 38 | * @throws MojoFailureException if the project configuration is invalid 39 | */ 40 | void performPackaging(WarPackagingContext context) throws MojoExecutionException, MojoFailureException; 41 | } 42 | -------------------------------------------------------------------------------- /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/test/java/org/apache/maven/plugins/war/stub/IncludeExcludeWarArtifactStub.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.war.stub; 20 | 21 | import java.io.File; 22 | 23 | public class IncludeExcludeWarArtifactStub extends WarArtifactStub { 24 | public IncludeExcludeWarArtifactStub(String id) { 25 | super(id); 26 | setGroupId("wartests"); 27 | } 28 | 29 | public String getArtifactId() { 30 | return "war-include-exclude"; 31 | } 32 | 33 | public File getFile() { 34 | return new File(basedir, "/target/test-classes/unit/sample_wars/include-exclude.war"); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /src/test/java/org/apache/maven/plugins/war/stub/MavenZipProject.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.war.stub; 20 | 21 | import java.util.HashSet; 22 | import java.util.Set; 23 | 24 | import org.apache.maven.artifact.Artifact; 25 | 26 | /** 27 | * @author Olivier Lamy 28 | * @since 9 juin 07 29 | */ 30 | public class MavenZipProject extends MavenProject4CopyConstructor { 31 | private Set artifacts; 32 | 33 | public MavenZipProject() throws Exception { 34 | super(); 35 | this.artifacts = new HashSet<>(); 36 | } 37 | 38 | public Set getArtifacts() { 39 | return this.artifacts; 40 | } 41 | 42 | public Set getDependencyArtifacts() { 43 | return this.artifacts; 44 | } 45 | 46 | public void addArtifact(Artifact artifact) { 47 | this.artifacts.add(artifact); 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /src/test/java/org/apache/maven/plugins/war/stub/PARArtifactStub.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.war.stub; 20 | 21 | import java.io.File; 22 | 23 | public class PARArtifactStub extends AbstractArtifactStub { 24 | public PARArtifactStub(String basedir) { 25 | super(basedir); 26 | } 27 | 28 | public String getType() { 29 | return "par"; 30 | } 31 | 32 | public String getArtifactId() { 33 | return "parartifact"; 34 | } 35 | 36 | public File getFile() { 37 | return new File(basedir, "/target/test-classes/unit/sample_wars/sample.par"); 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /src/test/java/org/apache/maven/plugins/war/stub/ResourceStub.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.war.stub; 20 | 21 | import java.util.ArrayList; 22 | import java.util.List; 23 | 24 | import org.apache.maven.model.Resource; 25 | 26 | public class ResourceStub extends Resource { 27 | /** 28 | * 29 | */ 30 | private static final long serialVersionUID = 7685068931840967662L; 31 | 32 | private String directory; 33 | 34 | public List getIncludes() { 35 | return new ArrayList<>(); 36 | } 37 | 38 | public List getExcludes() { 39 | return new ArrayList<>(); 40 | } 41 | 42 | public void setDirectory(String directory) { 43 | this.directory = directory; 44 | } 45 | 46 | public String getDirectory() { 47 | return directory; 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /src/test/java/org/apache/maven/plugins/war/stub/TLDArtifactStub.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.war.stub; 20 | 21 | import java.io.File; 22 | 23 | public class TLDArtifactStub extends AbstractArtifactStub { 24 | public TLDArtifactStub(String basedir) { 25 | super(basedir); 26 | } 27 | 28 | public String getType() { 29 | return "tld"; 30 | } 31 | 32 | public String getArtifactId() { 33 | return "tldartifact"; 34 | } 35 | 36 | public File getFile() { 37 | return new File(basedir, "/target/test-classes/unit/sample_wars/tld.jar"); 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /src/test/java/org/apache/maven/plugins/war/stub/WarArtifact4CCStub.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.war.stub; 20 | 21 | import org.apache.maven.artifact.handler.ArtifactHandler; 22 | import org.apache.maven.artifact.handler.DefaultArtifactHandler; 23 | import org.apache.maven.artifact.versioning.VersionRange; 24 | 25 | /** 26 | * stub for copy constructor 27 | * to prevent the copy constructor from blowing up 28 | */ 29 | public class WarArtifact4CCStub extends WarArtifactStub { 30 | public WarArtifact4CCStub(String basedir) { 31 | super(basedir); 32 | } 33 | 34 | public VersionRange getVersionRange() { 35 | return VersionRange.createFromVersion(getVersion()); 36 | } 37 | 38 | public String getGroupId() { 39 | return "org.maven.plugin.test"; 40 | } 41 | 42 | public String getClassifier() { 43 | return "testclassifier"; 44 | } 45 | 46 | public ArtifactHandler getArtifactHandler() { 47 | return new DefaultArtifactHandler(); 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /src/test/resources/overlays/overlay-one/WEB-INF/web.xml: -------------------------------------------------------------------------------- 1 | 19 | 20 | Sample one overlay 21 | 22 | -------------------------------------------------------------------------------- /src/test/resources/overlays/overlay-one/index.jsp: -------------------------------------------------------------------------------- 1 | 19 | 20 | 21 |

22 | Hello World, this is overlay-one! 23 |

24 | 25 | -------------------------------------------------------------------------------- /src/test/resources/overlays/overlay-one/login.jsp: -------------------------------------------------------------------------------- 1 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /src/test/resources/overlays/overlay-two/WEB-INF/web.xml: -------------------------------------------------------------------------------- 1 | 19 | 20 | Sample two overlay 21 | 22 | -------------------------------------------------------------------------------- /src/test/resources/overlays/overlay-two/admin.jsp: -------------------------------------------------------------------------------- 1 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /src/test/resources/overlays/overlay-two/index.jsp: -------------------------------------------------------------------------------- 1 | 19 | 20 | 21 |

22 | Hello World, this is overlay-two! 23 |

24 | 25 | -------------------------------------------------------------------------------- /src/test/resources/unit/sample_wars/ejb.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/maven-war-plugin/3332c8c5adf88e7ac220f7c135390ee655d47058/src/test/resources/unit/sample_wars/ejb.jar -------------------------------------------------------------------------------- /src/test/resources/unit/sample_wars/ejbclient.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/maven-war-plugin/3332c8c5adf88e7ac220f7c135390ee655d47058/src/test/resources/unit/sample_wars/ejbclient.jar -------------------------------------------------------------------------------- /src/test/resources/unit/sample_wars/include-exclude.war: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/maven-war-plugin/3332c8c5adf88e7ac220f7c135390ee655d47058/src/test/resources/unit/sample_wars/include-exclude.war -------------------------------------------------------------------------------- /src/test/resources/unit/sample_wars/javax.servlet-api-3.0.1.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/maven-war-plugin/3332c8c5adf88e7ac220f7c135390ee655d47058/src/test/resources/unit/sample_wars/javax.servlet-api-3.0.1.jar -------------------------------------------------------------------------------- /src/test/resources/unit/sample_wars/sample.par: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/maven-war-plugin/3332c8c5adf88e7ac220f7c135390ee655d47058/src/test/resources/unit/sample_wars/sample.par -------------------------------------------------------------------------------- /src/test/resources/unit/sample_wars/simple-updated.war: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/maven-war-plugin/3332c8c5adf88e7ac220f7c135390ee655d47058/src/test/resources/unit/sample_wars/simple-updated.war -------------------------------------------------------------------------------- /src/test/resources/unit/sample_wars/simple.aar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/maven-war-plugin/3332c8c5adf88e7ac220f7c135390ee655d47058/src/test/resources/unit/sample_wars/simple.aar -------------------------------------------------------------------------------- /src/test/resources/unit/sample_wars/simple.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/maven-war-plugin/3332c8c5adf88e7ac220f7c135390ee655d47058/src/test/resources/unit/sample_wars/simple.jar -------------------------------------------------------------------------------- /src/test/resources/unit/sample_wars/simple.mar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/maven-war-plugin/3332c8c5adf88e7ac220f7c135390ee655d47058/src/test/resources/unit/sample_wars/simple.mar -------------------------------------------------------------------------------- /src/test/resources/unit/sample_wars/simple.war: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/maven-war-plugin/3332c8c5adf88e7ac220f7c135390ee655d47058/src/test/resources/unit/sample_wars/simple.war -------------------------------------------------------------------------------- /src/test/resources/unit/sample_wars/simple.xar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/maven-war-plugin/3332c8c5adf88e7ac220f7c135390ee655d47058/src/test/resources/unit/sample_wars/simple.xar -------------------------------------------------------------------------------- /src/test/resources/unit/sample_wars/tld.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/maven-war-plugin/3332c8c5adf88e7ac220f7c135390ee655d47058/src/test/resources/unit/sample_wars/tld.jar -------------------------------------------------------------------------------- /src/test/resources/unit/warexplodedinplacemojo/plugin-config.xml: -------------------------------------------------------------------------------- 1 | 19 | 20 | 21 | war-plugin-test 22 | 23 | 24 | 25 | maven-war-plugin 26 | 27 | 28 | 29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /src/test/resources/unit/warexplodedmojo/plugin-config.xml: -------------------------------------------------------------------------------- 1 | 19 | 20 | 21 | war-plugin-test 22 | 23 | 24 | 25 | maven-war-plugin 26 | 27 | 28 | 29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /src/test/resources/unit/warmojotest/not-primary-artifact.xml: -------------------------------------------------------------------------------- 1 | 19 | 20 | 21 | war-plugin-test 22 | 23 | 24 | 25 | maven-war-plugin 26 | 27 | false 28 | 29 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /src/test/resources/unit/warmojotest/plugin-config-primary-artifact.xml: -------------------------------------------------------------------------------- 1 | 19 | 20 | 21 | war-plugin-test 22 | 23 | 24 | 25 | maven-war-plugin 26 | 27 | true 28 | 29 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /src/test/resources/unit/waroverlays/default.xml: -------------------------------------------------------------------------------- 1 | 19 | 20 | 21 | war-plugin-test 22 | 23 | 24 | 25 | maven-war-plugin 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /src/test/resources/unit/warziptest/foobar.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/maven-war-plugin/3332c8c5adf88e7ac220f7c135390ee655d47058/src/test/resources/unit/warziptest/foobar.zip -------------------------------------------------------------------------------- /src/test/resources/unit/warziptest/war-with-zip.xml: -------------------------------------------------------------------------------- 1 | 19 | 20 | 21 | war-with-one-zip 22 | 23 | 24 | 25 | maven-war-plugin 26 | 27 | 28 | 29 | 30 | 31 | 32 | --------------------------------------------------------------------------------