This is an automated email from the ASF dual-hosted git repository. cstamas pushed a commit to branch MASSEMBLY-955 in repository https://gitbox.apache.org/repos/asf/maven-assembly-plugin.git
The following commit(s) were added to refs/heads/MASSEMBLY-955 by this push: new 00dacdb0 [MASSEMBLY-955] Add IT test. 00dacdb0 is described below commit 00dacdb0915e3bae48ad8cfbb821cc8e5216b1fc Author: Tamas Cservenak <ta...@cservenak.net> AuthorDate: Sat Jun 11 11:03:10 2022 +0200 [MASSEMBLY-955] Add IT test. --- .../projects/dependency-sets/massembly-955/pom.xml | 70 ++++++++++++++++++++++ .../massembly-955/src/main/assembly/bin.xml | 34 +++++++++++ .../dependency-sets/massembly-955/verify.bsh | 27 +++++++++ 3 files changed, 131 insertions(+) diff --git a/src/it/projects/dependency-sets/massembly-955/pom.xml b/src/it/projects/dependency-sets/massembly-955/pom.xml new file mode 100644 index 00000000..d50b121a --- /dev/null +++ b/src/it/projects/dependency-sets/massembly-955/pom.xml @@ -0,0 +1,70 @@ +<?xml version="1.0"?> +<!-- +Licensed to the Apache Software Foundation (ASF) under one +or more contributor license agreements. See the NOTICE file +distributed with this work for additional information +regarding copyright ownership. The ASF licenses this file +to you under the Apache License, Version 2.0 (the +"License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, +software distributed under the License is distributed on an +"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, either express or implied. See the License for the +specific language governing permissions and limitations +under the License. +--> +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> + <modelVersion>4.0.0</modelVersion> + <parent> + <groupId>org.apache.maven.plugin.assembly.test</groupId> + <artifactId>it-project-parent</artifactId> + <version>1</version> + </parent> + + <groupId>test</groupId> + <artifactId>massembly-955</artifactId> + <version>1</version> + <properties> + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> + </properties> + <dependencies> + <dependency> + <groupId>org.python</groupId> + <artifactId>jython-standalone</artifactId> + <version>2.7.2</version> + </dependency> + <dependency> + <groupId>org.teiid</groupId> + <artifactId>teiid</artifactId> + <version>10.0.5</version> + <classifier>jdbc</classifier> + <type>jar</type> + </dependency> + </dependencies> + <build> + <plugins> + <plugin> + <artifactId>maven-assembly-plugin</artifactId> + <version>${testVersion}</version> + <executions> + <execution> + <id>assembly</id> + <phase>package</phase> + <goals> + <goal>single</goal> + </goals> + <configuration> + <descriptors> + <descriptor>src/main/assembly/bin.xml</descriptor> + </descriptors> + </configuration> + </execution> + </executions> + </plugin> + </plugins> + </build> +</project> diff --git a/src/it/projects/dependency-sets/massembly-955/src/main/assembly/bin.xml b/src/it/projects/dependency-sets/massembly-955/src/main/assembly/bin.xml new file mode 100644 index 00000000..29852cf2 --- /dev/null +++ b/src/it/projects/dependency-sets/massembly-955/src/main/assembly/bin.xml @@ -0,0 +1,34 @@ +<!-- +Licensed to the Apache Software Foundation (ASF) under one +or more contributor license agreements. See the NOTICE file +distributed with this work for additional information +regarding copyright ownership. The ASF licenses this file +to you under the Apache License, Version 2.0 (the +"License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, +software distributed under the License is distributed on an +"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, either express or implied. See the License for the +specific language governing permissions and limitations +under the License. +--> +<assembly> + <id>bin</id> + <formats> + <format>dir</format> + </formats> + <includeBaseDirectory>false</includeBaseDirectory> + <dependencySets> + <dependencySet> + <includes> + <!-- The order of includes is specific here. Keep the org.teiid:teiid first. Keep the specifier, too. --> + <include>org.teiid:teiid:*:jdbc:*</include> + <include>org.python:jython-standalone</include> + </includes> + </dependencySet> + </dependencySets> +</assembly> \ No newline at end of file diff --git a/src/it/projects/dependency-sets/massembly-955/verify.bsh b/src/it/projects/dependency-sets/massembly-955/verify.bsh new file mode 100644 index 00000000..85c1233e --- /dev/null +++ b/src/it/projects/dependency-sets/massembly-955/verify.bsh @@ -0,0 +1,27 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +import java.io.*; + +boolean result = true; + +result = result && new File( basedir, "target/massembly-955-1-bin/teiid-10.0.5-jdbc.jar" ).exists(); +result = result && new File( basedir, "target/massembly-955-1-bin/jython-standalone-2.7.2.jar" ).exists(); + +return result;