This is an automated email from the ASF dual-hosted git repository. hboutemy pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/maven-artifact-plugin.git
commit 252d91143f2b14994bf6ac456522be09f940dfa7 Author: Hervé Boutemy <hbout...@apache.org> AuthorDate: Mon Oct 21 18:07:04 2024 +0100 [MARTIFACT-74] add describe-build-output IT --- src/it/describe-multi/invoker.properties | 18 +++++++ src/it/describe-multi/modA-other-groupId/pom.xml | 32 ++++++++++++ src/it/describe-multi/modA/pom.xml | 31 ++++++++++++ src/it/describe-multi/modA/src/main/java/Foo.java | 24 +++++++++ src/it/describe-multi/modB/pom.xml | 39 +++++++++++++++ src/it/describe-multi/modSkipDeploy/pom.xml | 38 ++++++++++++++ src/it/describe-multi/pom.xml | 61 +++++++++++++++++++++++ 7 files changed, 243 insertions(+) diff --git a/src/it/describe-multi/invoker.properties b/src/it/describe-multi/invoker.properties new file mode 100644 index 0000000..707de03 --- /dev/null +++ b/src/it/describe-multi/invoker.properties @@ -0,0 +1,18 @@ +# 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. + +invoker.goals=-Papache-release -Dgpg.skip clean verify artifact:describe-build-output diff --git a/src/it/describe-multi/modA-other-groupId/pom.xml b/src/it/describe-multi/modA-other-groupId/pom.xml new file mode 100644 index 0000000..bd1d73b --- /dev/null +++ b/src/it/describe-multi/modA-other-groupId/pom.xml @@ -0,0 +1,32 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + Licensed to the Apache Software Foundation (ASF) under one + or more contributor license agreements. See the NOTICE file + distributed with this work for additional information + regarding copyright ownership. The ASF licenses this file + to you under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance + with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, + software distributed under the License is distributed on an + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, either express or implied. See the License for the + specific language governing permissions and limitations + under the License. +--> +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> + <modelVersion>4.0.0</modelVersion> + + <parent> + <groupId>org.apache.maven.plugins.it</groupId> + <artifactId>multi</artifactId> + <version>1.0-SNAPSHOT</version> + </parent> + + <groupId>org.apache.maven.plugins.it.other.groupId</groupId> + <artifactId>multi-modA</artifactId> + <name>multi-module module A in another groupId</name> +</project> diff --git a/src/it/describe-multi/modA/pom.xml b/src/it/describe-multi/modA/pom.xml new file mode 100644 index 0000000..0c2e3ed --- /dev/null +++ b/src/it/describe-multi/modA/pom.xml @@ -0,0 +1,31 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + Licensed to the Apache Software Foundation (ASF) under one + or more contributor license agreements. See the NOTICE file + distributed with this work for additional information + regarding copyright ownership. The ASF licenses this file + to you under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance + with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, + software distributed under the License is distributed on an + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, either express or implied. See the License for the + specific language governing permissions and limitations + under the License. +--> +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> + <modelVersion>4.0.0</modelVersion> + + <parent> + <groupId>org.apache.maven.plugins.it</groupId> + <artifactId>multi</artifactId> + <version>1.0-SNAPSHOT</version> + </parent> + + <artifactId>multi-modA</artifactId> + <name>multi-module module A</name> +</project> diff --git a/src/it/describe-multi/modA/src/main/java/Foo.java b/src/it/describe-multi/modA/src/main/java/Foo.java new file mode 100644 index 0000000..5fadf87 --- /dev/null +++ b/src/it/describe-multi/modA/src/main/java/Foo.java @@ -0,0 +1,24 @@ +/* + * 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. + */ + +public class Foo { + public static void main(String... args) { + System.out.println("Hello World!!!"); + } +} \ No newline at end of file diff --git a/src/it/describe-multi/modB/pom.xml b/src/it/describe-multi/modB/pom.xml new file mode 100644 index 0000000..a3fd300 --- /dev/null +++ b/src/it/describe-multi/modB/pom.xml @@ -0,0 +1,39 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + Licensed to the Apache Software Foundation (ASF) under one + or more contributor license agreements. See the NOTICE file + distributed with this work for additional information + regarding copyright ownership. The ASF licenses this file + to you under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance + with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, + software distributed under the License is distributed on an + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, either express or implied. See the License for the + specific language governing permissions and limitations + under the License. +--> +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> + <modelVersion>4.0.0</modelVersion> + + <parent> + <groupId>org.apache.maven.plugins.it</groupId> + <artifactId>multi</artifactId> + <version>1.0-SNAPSHOT</version> + </parent> + + <artifactId>multi-modB</artifactId> + <name>multi-module module B</name> + + <dependencies> + <dependency> + <groupId>org.apache.maven.plugins.it</groupId> + <artifactId>multi-modA</artifactId> + <version>1.0-SNAPSHOT</version> + </dependency> + </dependencies> +</project> diff --git a/src/it/describe-multi/modSkipDeploy/pom.xml b/src/it/describe-multi/modSkipDeploy/pom.xml new file mode 100644 index 0000000..296d432 --- /dev/null +++ b/src/it/describe-multi/modSkipDeploy/pom.xml @@ -0,0 +1,38 @@ +<?xml version='1.0' encoding='UTF-8'?> + +<!-- + Licensed to the Apache Software Foundation (ASF) under one + or more contributor license agreements. See the NOTICE file + distributed with this work for additional information + regarding copyright ownership. The ASF licenses this file + to you under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance + with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, + software distributed under the License is distributed on an + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, either express or implied. See the License for the + specific language governing permissions and limitations + under the License. +--> + +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> + <modelVersion>4.0.0</modelVersion> + + <parent> + <groupId>org.apache.maven.plugins.it</groupId> + <artifactId>multi</artifactId> + <version>1.0-SNAPSHOT</version> + </parent> + <artifactId>multi-mod-skip-deploy</artifactId> + <name>multi-module module that skips deploy</name> + <description>then should not be added to buildinfo</description> + + <properties> + <maven.deploy.skip>true</maven.deploy.skip> + </properties> +</project> diff --git a/src/it/describe-multi/pom.xml b/src/it/describe-multi/pom.xml new file mode 100644 index 0000000..3902b7e --- /dev/null +++ b/src/it/describe-multi/pom.xml @@ -0,0 +1,61 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + Licensed to the Apache Software Foundation (ASF) under one + or more contributor license agreements. See the NOTICE file + distributed with this work for additional information + regarding copyright ownership. The ASF licenses this file + to you under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance + with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, + software distributed under the License is distributed on an + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, either express or implied. See the License for the + specific language governing permissions and limitations + under the License. +--> +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> + <modelVersion>4.0.0</modelVersion> + + <parent> + <groupId>org.apache.maven</groupId> + <artifactId>maven-parent</artifactId> + <version>39</version> + </parent> + + <groupId>org.apache.maven.plugins.it</groupId> + <artifactId>multi</artifactId> + <version>1.0-SNAPSHOT</version> + <packaging>pom</packaging> + + <description>An IT verifying the use case of buildinfo file for multi-modules build.</description> + + <prerequisites> + <maven>3.0.5</maven> + </prerequisites> + + <modules> + <module>modB</module> + <module>modA</module> + <module>modA-other-groupId</module> + <module>modSkipDeploy</module> + </modules> + + <properties> + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> + <spotless.check.skip>true</spotless.check.skip> + </properties> + + <build> + <plugins> + <plugin> + <groupId>@project.groupId@</groupId> + <artifactId>@project.artifactId@</artifactId> + <version>@project.version@</version> + </plugin> + </plugins> + </build> +</project>