Skip to content

Commit

Permalink
reficio#149 add test to try reproducing the bug
Browse files Browse the repository at this point in the history
  • Loading branch information
sparsick committed Jan 7, 2020
1 parent fb73000 commit ac34db1
Show file tree
Hide file tree
Showing 2 changed files with 90 additions and 0 deletions.
21 changes: 21 additions & 0 deletions src/test/integration/not-existing-artifact-it/invoker.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#
# Copyright (c) 2012 Reficio (TM) - Reestablish your software! All Rights Reserved.
#
# 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=p2:site
invoker.buildResult = failure
69 changes: 69 additions & 0 deletions src/test/integration/not-existing-artifact-it/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (C) 2006-2007 the original author or authors.
Licensed 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.
-->

<!-- $Id$ -->

<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/maven-v4_0_0.xsd">

<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>org.reficio</groupId>
<artifactId>integration</artifactId>
<version>@project.version@</version>
<relativePath>../integration.xml</relativePath>
</parent>

<artifactId>notExistingArtifacts</artifactId>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
</properties>

<description>
Test skipNotExistingArtifacts option default value
</description>

<build>
<plugins>
<plugin>
<groupId>org.reficio</groupId>
<artifactId>p2-maven-plugin</artifactId>
<version>@project.version@</version>
<executions>
<execution>
<id>default-cli</id>

<configuration>
<artifacts>
<artifact>
<id>org.acme:doesnotexist:1.0.0</id>
<source>false</source>
<transitive>false</transitive>
</artifact>
</artifacts>
</configuration>

</execution>
</executions>
</plugin>
</plugins>
</build>
</project>

0 comments on commit ac34db1

Please sign in to comment.