Skip to content

Commit da2ad90

Browse files
Build with Maven4 (#57)
* Build with Maven4 * Check if files was deployed
1 parent 6962699 commit da2ad90

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed

.github/workflows/maven-verify.yml

+2
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,6 @@ jobs:
2525
build:
2626
name: Verify
2727
uses: apache/maven-gh-actions-shared/.github/workflows/maven-verify.yml@v4
28+
with:
29+
maven4-enabled: true
2830

src/it/MDEPLOY-202_deployfile-with-multiple-executions/verify.groovy

+15-2
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,19 @@
1717
* under the License.
1818
*/
1919

20-
def buildLog = new File ( basedir, "build.log")
20+
def expectedDeploys = [
21+
'org/apache/maven/its/mdeploy-170/configperproject/1.0/configperproject-1.0.pom',
22+
'org/apache/maven/plugins/deploy/it/org.eclipse.equinox.common/1.0/org.eclipse.equinox.common-1.0-sources.jar',
23+
'org/apache/maven/plugins/deploy/it/org.eclipse.equinox.common/1.0/org.eclipse.equinox.common-1.0.jar',
24+
'org/apache/maven/plugins/deploy/it/org.eclipse.equinox.common/1.0/org.eclipse.equinox.common-1.0.pom',
25+
'org/apache/maven/plugins/deploy/it/org.eclipse.osgi/1.0/org.eclipse.osgi-1.0-sources.jar',
26+
'org/apache/maven/plugins/deploy/it/org.eclipse.osgi/1.0/org.eclipse.osgi-1.0.jar',
27+
'org/apache/maven/plugins/deploy/it/org.eclipse.osgi/1.0/org.eclipse.osgi-1.0.pom'
28+
]
29+
30+
def repoDir = new File ( basedir, 'target/repo')
31+
32+
def missingDeploys = expectedDeploys.findAll { ! new File(repoDir, it).isFile() }
33+
34+
assert missingDeploys.size() == 0
2135

22-
assert buildLog.text =~ /Uploading.*file:target\/repo\/org\/apache\/maven\/plugins\/deploy\/it\/org\.eclipse\.osgi\/1\.0\/org\.eclipse\.osgi-1\.0-sources\.jar/

0 commit comments

Comments
 (0)