diff --git a/src/it/MCHECKSTYLE-54/invoker.properties b/src/it/MCHECKSTYLE-54/invoker.properties new file mode 100644 index 00000000..7b2ec5e5 --- /dev/null +++ b/src/it/MCHECKSTYLE-54/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=clean checkstyle:check diff --git a/src/it/MCHECKSTYLE-54/pom.xml b/src/it/MCHECKSTYLE-54/pom.xml new file mode 100644 index 00000000..35fc88aa --- /dev/null +++ b/src/it/MCHECKSTYLE-54/pom.xml @@ -0,0 +1,48 @@ + + + + + 4.0.0 + org.apache.maven.plugins.checkstyle + mcheckstyle-54 + 1.0 + https://issues.apache.org/jira/browse/MCHECKSTYLE-54 + checkstyle:check does not see provided scope dependencies + + UTF-8 + + + + org.apache.logging.log4j + log4j-api + 2.11.1 + + + + + + org.apache.maven.plugins + maven-checkstyle-plugin + @project.version@ + + + + diff --git a/src/it/MCHECKSTYLE-54/src/main/java/org/apache/maven/plugins/checkstyle/mcheckstyle54/Mcheckstyle54.java b/src/it/MCHECKSTYLE-54/src/main/java/org/apache/maven/plugins/checkstyle/mcheckstyle54/Mcheckstyle54.java new file mode 100644 index 00000000..5d8cac52 --- /dev/null +++ b/src/it/MCHECKSTYLE-54/src/main/java/org/apache/maven/plugins/checkstyle/mcheckstyle54/Mcheckstyle54.java @@ -0,0 +1,39 @@ +/* + * 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. + */ + +package org.apache.maven.plugins.checkstyle.mcheckstyle54; + +import org.apache.logging.log4j.LoggingException; + +/** + * @see + * MCHECKSTYLE-54 + */ +public final class Mcheckstyle54 { + + /** + * Some method. + * + * @throws LoggingException always + */ + void someMethod() throws LoggingException { + throw new LoggingException("Just testing"); + } + +} diff --git a/src/it/MCHECKSTYLE-54/src/main/java/org/apache/maven/plugins/checkstyle/mcheckstyle54/package-info.java b/src/it/MCHECKSTYLE-54/src/main/java/org/apache/maven/plugins/checkstyle/mcheckstyle54/package-info.java new file mode 100644 index 00000000..22626639 --- /dev/null +++ b/src/it/MCHECKSTYLE-54/src/main/java/org/apache/maven/plugins/checkstyle/mcheckstyle54/package-info.java @@ -0,0 +1,23 @@ +/* + * 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. + */ + +/** + * MCHECKSTYLE-54. + */ +package org.apache.maven.plugins.checkstyle.mcheckstyle54;