From commits-return-69578-archive-asf-public=cust-asf.ponee.io@maven.apache.org Wed Jan 17 22:18:02 2018 Return-Path: X-Original-To: archive-asf-public@eu.ponee.io Delivered-To: archive-asf-public@eu.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by mx-eu-01.ponee.io (Postfix) with ESMTP id C475F18062C for ; Wed, 17 Jan 2018 22:18:02 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id B42F4160C35; Wed, 17 Jan 2018 21:18:02 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id D5E56160C25 for ; Wed, 17 Jan 2018 22:18:01 +0100 (CET) Received: (qmail 21630 invoked by uid 500); 17 Jan 2018 21:18:01 -0000 Mailing-List: contact commits-help@maven.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@maven.apache.org Delivered-To: mailing list commits@maven.apache.org Received: (qmail 21621 invoked by uid 99); 17 Jan 2018 21:18:01 -0000 Received: from ec2-52-202-80-70.compute-1.amazonaws.com (HELO gitbox.apache.org) (52.202.80.70) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Jan 2018 21:18:01 +0000 Received: by gitbox.apache.org (ASF Mail Server at gitbox.apache.org, from userid 33) id 3F80280FAA; Wed, 17 Jan 2018 21:17:56 +0000 (UTC) Date: Wed, 17 Jan 2018 21:17:57 +0000 To: "commits@maven.apache.org" Subject: [maven-dependency-plugin] 01/01: [MDEP-559] Java 9 bytecode cannot be parsed MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit From: rfscholte@apache.org In-Reply-To: <151622387650.8737.15363251136358159345@gitbox.apache.org> References: <151622387650.8737.15363251136358159345@gitbox.apache.org> X-Git-Host: gitbox.apache.org X-Git-Repo: maven-dependency-plugin X-Git-Refname: refs/heads/MDEP-599_analyze-java9 X-Git-Reftype: branch X-Git-Rev: 5326f3bc7d214abce967515ef32657efb2c46532 X-Git-NotificationType: diff X-Git-Multimail-Version: 1.5.dev Auto-Submitted: auto-generated Message-Id: <20180117211758.3F80280FAA@gitbox.apache.org> This is an automated email from the ASF dual-hosted git repository. rfscholte pushed a commit to branch MDEP-599_analyze-java9 in repository https://gitbox.apache.org/repos/asf/maven-dependency-plugin.git commit 5326f3bc7d214abce967515ef32657efb2c46532 Author: rfscholte AuthorDate: Wed Jan 17 22:17:49 2018 +0100 [MDEP-559] Java 9 bytecode cannot be parsed --- pom.xml | 11 +++- .../mdep-599-analyze-java9/invoker.properties | 19 +++++++ src/it/projects/mdep-599-analyze-java9/pom.xml | 60 ++++++++++++++++++++++ .../src/main/java/hello/Hello.java | 24 +++++++++ .../src/main/java/module-info.java | 22 ++++++++ .../src/test/java/hello/HelloTest.java | 33 ++++++++++++ 6 files changed, 167 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 27dfa25..68a5361 100644 --- a/pom.xml +++ b/pom.xml @@ -206,7 +206,7 @@ under the License. org.apache.maven.shared maven-dependency-analyzer - 1.7 + 1.8 maven-project @@ -322,6 +322,11 @@ under the License. + + org.apache.maven.plugins + maven-plugin-plugin + 3.5 + @@ -338,9 +343,11 @@ under the License. ${maven.compiler.target} + + module-info + - true diff --git a/src/it/projects/mdep-599-analyze-java9/invoker.properties b/src/it/projects/mdep-599-analyze-java9/invoker.properties new file mode 100644 index 0000000..9f015da --- /dev/null +++ b/src/it/projects/mdep-599-analyze-java9/invoker.properties @@ -0,0 +1,19 @@ +# 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.java.version = 9+ +invoker.goals = package ${project.groupId}:${project.artifactId}:${project.version}:analyze-only diff --git a/src/it/projects/mdep-599-analyze-java9/pom.xml b/src/it/projects/mdep-599-analyze-java9/pom.xml new file mode 100644 index 0000000..252dea6 --- /dev/null +++ b/src/it/projects/mdep-599-analyze-java9/pom.xml @@ -0,0 +1,60 @@ + + + + + 4.0.0 + org.apache.maven.plugins.dependency.its + mdep-599 + 1.0.0-SNAPSHOT + + + UTF-8 + 9 + + + + + + + org.apache.maven.plugins + maven-compiler-plugin + 3.7.0 + + + + + + + + junit + junit + 4.12 + test + + + org.hamcrest + hamcrest-core + 1.3 + test + + + diff --git a/src/it/projects/mdep-599-analyze-java9/src/main/java/hello/Hello.java b/src/it/projects/mdep-599-analyze-java9/src/main/java/hello/Hello.java new file mode 100644 index 0000000..7b5e10d --- /dev/null +++ b/src/it/projects/mdep-599-analyze-java9/src/main/java/hello/Hello.java @@ -0,0 +1,24 @@ +package hello; + +/* + * 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 Hello +{ +} diff --git a/src/it/projects/mdep-599-analyze-java9/src/main/java/module-info.java b/src/it/projects/mdep-599-analyze-java9/src/main/java/module-info.java new file mode 100644 index 0000000..ae8f768 --- /dev/null +++ b/src/it/projects/mdep-599-analyze-java9/src/main/java/module-info.java @@ -0,0 +1,22 @@ +/* + * 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. + */ +module hello +{ + exports hello; +} \ No newline at end of file diff --git a/src/it/projects/mdep-599-analyze-java9/src/test/java/hello/HelloTest.java b/src/it/projects/mdep-599-analyze-java9/src/test/java/hello/HelloTest.java new file mode 100644 index 0000000..97dfb69 --- /dev/null +++ b/src/it/projects/mdep-599-analyze-java9/src/test/java/hello/HelloTest.java @@ -0,0 +1,33 @@ +package hello; + +/* + * 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 static org.hamcrest.CoreMatchers.is; +import org.junit.Test; +import static org.junit.Assert.*; + +public class HelloTest { + + @Test + public void add() { + assertThat(1 + 1, is(2)); + } + +} -- To stop receiving notification emails like this one, please contact "commits@maven.apache.org" .