From users-return-143840-archive-asf-public=cust-asf.ponee.io@maven.apache.org Mon Feb 4 20:53:56 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 0C987180651 for ; Mon, 4 Feb 2019 21:53:55 +0100 (CET) Received: (qmail 22266 invoked by uid 500); 4 Feb 2019 20:53:50 -0000 Mailing-List: contact users-help@maven.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Maven Users List" Reply-To: "Maven Users List" Delivered-To: mailing list users@maven.apache.org Received: (qmail 22250 invoked by uid 99); 4 Feb 2019 20:53:49 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Feb 2019 20:53:49 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id BD9CAC265E for ; Mon, 4 Feb 2019 20:53:48 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2 X-Spam-Level: ** X-Spam-Status: No, score=2 tagged_above=-999 required=6.31 tests=[DKIMWL_WL_MED=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=2, KAM_SHORT=0.001, RCVD_IN_DNSWL_NONE=-0.0001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=zusammenkunft-net.20150623.gappssmtp.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id yHLUZzsRxz5d for ; Mon, 4 Feb 2019 20:53:46 +0000 (UTC) Received: from mail-wm1-f53.google.com (mail-wm1-f53.google.com [209.85.128.53]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 420255F382 for ; Mon, 4 Feb 2019 20:44:06 +0000 (UTC) Received: by mail-wm1-f53.google.com with SMTP id b11so1356959wmj.1 for ; Mon, 04 Feb 2019 12:44:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zusammenkunft-net.20150623.gappssmtp.com; s=20150623; h=message-id:mime-version:to:from:subject:date:importance :thread-topic:in-reply-to:references; bh=8RQMvbRJSo0F1A8xsD3sG/lC/Z5e2jAIEAxnKQR54G4=; b=L3cwQCwkgFOc7qm9PZa/+O8gVXmGUG4AqJ0nmWwg6tkVGgCMk1j6uHKmxyyuqf3ms4 g0HUmXCMlbniWwR54WO91oWvPysWJEGu3TjmBxMpPPEyJX6abkoRQgZLPV9KCR/73tUn 48+XEAxBaUSMQVjgnh32DA6tZ+rTSFW+IC+QksaiLdFu4huObssvfDY6cQfp3+7BDb7S 6rv0QsZF+jPsfUd7ei/kW2ptN2dpkzZ8XYLfYlyx00iU/JAcmdGC0vcO9t7T1FtRjJu3 RI+BvQ2VnDX+cZMkOZs4lkKK6wDuMJvxAbeHHnZd0kkRqLFmpZWnV3kn2h9sbIv6HC9i TpXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:mime-version:to:from:subject:date :importance:thread-topic:in-reply-to:references; bh=8RQMvbRJSo0F1A8xsD3sG/lC/Z5e2jAIEAxnKQR54G4=; b=aXZB8JWLrdD6vH5GHdE3m4UBWE2s4UDv6EFBNrwAf1IgoMq+qP5iU/VOXEh/l2iCAH JkXa7Nsnl7TDHEh8XCPdMH2/LZO4VtBeuKGjwnQglOXJDz2726pzwXURI0EoYiXFjR+I VHoLFl1eEbhHM2a08aD+RT53pP3+y6oJSMBHda2EL/w/hqRm8daaeBD3IeLOFHGwupzM JVWI8cirEkUaLgE5jD4FIR/RJn4pP5H0XpaIsqEjK08Vqjs176UQVGbyatSzqVsRRaJM er9TzXtxghxtHhBkK9dnmHIBbAgGjQH9h7y1qRNetAMU0fUHv1B3IEH08mi/VQmVkonW dYrA== X-Gm-Message-State: AHQUAuYuw82rjcQooslzGohY24i26hOqmuEOJjqOW00piTmFqIbYWyyF ZTc81O9RZrMc4nIziWBBzn1092JrLXE= X-Google-Smtp-Source: AHgI3IZSOAtpt67tCTz+T6ZBwdfFO4+TU1vVR6mBlXKV7uBsZ0PFQQ6Po5hjGS5S7+jKNjZ3hYhb/A== X-Received: by 2002:a1c:4c9:: with SMTP id 192mr923297wme.135.1549313044568; Mon, 04 Feb 2019 12:44:04 -0800 (PST) Received: from ?IPv6:::ffff:192.168.178.27? (HSI-KBW-046-005-170-153.hsi8.kabel-badenwuerttemberg.de. [46.5.170.153]) by smtp.gmail.com with ESMTPSA id s132sm9217211wmf.28.2019.02.04.12.44.02 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 04 Feb 2019 12:44:03 -0800 (PST) Message-ID: <5c58a413.1c69fb81.eda89.2c82@mx.google.com> MIME-Version: 1.0 To: Maven Users List From: Bernd Eckenfels Subject: Re: Confusion with Dependency Paths Date: Mon, 4 Feb 2019 21:44:03 +0100 Importance: normal X-Priority: 3 Thread-Topic: Confusion with Dependency Paths In-Reply-To: References: <54c21835-080e-e854-63bb-a1e35d1efe27@bellsouth.net> <3b2d81e8-95d7-e2a6-3078-66be857f0c0a@bellsouth.net> Content-Type: multipart/alternative; boundary="_60283826-80AF-44C5-93F5-E96A4EA48CD4_" --_60283826-80AF-44C5-93F5-E96A4EA48CD4_ Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Hello, to add to this, after moving the source to src/main/java/* and Fixing the P= OM (removing the source path and potentialla the resource plugin) you can u= se eclipse alt+f5 t refresh from the pom, this will configure the ecplise P= roject layout (.classpath) to detect the same source Folders so it can work= in combination with Maven. Gruss Bernd --=20 http://bernd.eckenfels.net Von: Marco Schulz Gesendet: Montag, 4. Februar 2019 21:40 An: users@maven.apache.org Betreff: Re: Confusion with Dependency Paths Hey Dennis Sorry for the late reply but I was all the day traveling by train and here = in Germany the railway companies don't know as well that internet still exi= st :-) I checked your pom - you did some semantic mistakes. I am quite sure this f= ile is not generated by eclipse and heavy manually edited. I attached you a change version. below I explain you a bit the entries. As first please try to use as beginner the standard maven conventions about= directory structures java files goes to: src/main/java - this passes the compiler non java files like xml goes to: src/main/resources - maven put everything = well together the output you will find in /target I hope this helps you. .regards .marco ; 4.0.0 KCBSEvents KCBSEvents 0.0.1-SNAPSHOT pom maven-compiler-plugin 3.7.0 1.7 1.7 commons-io commons-io 2.5 org.apache.httpcomponents httpclient 4.5.6 org.apache.httpcomponents httpcore 4.4.10 commons-codec commons-codec 1.10 commons-logging commons-logging 1.2 On Mon, 2019-02-04 at 08:48 -0500, Dennis Putnam wrote: Hi Marco, Thanks for the reply. Here is my pom.xml: xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation=3D"http://maven.apa= che.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 KCBSEvents KCBSEvents 0.0.1-SNAPSHOT src src **/*.java maven-compiler-plugin 3.7.0 1.7 1.7 commons-io commons-io 2.5 org.apache.httpcomponents httpclient 4.5.6 org.apache.httpcomponents httpcore 4.4.10 commons-codec commons-codec 1.10 commons-logging commons-logging 1.2 I'm not sure what you mean by the exact error as the part I didn't post was= just the source info. FWIW, here is the exact error: [javac] /usr/build/src/KCBSEvents/Helpers.java:36: error: package org.apac= he.commons.io does not exist [javac] import org.apache.commons.io.IOUtils; [javac] ^ I don't think I know what the DependencyManagement section is. I have , isn't that the correct section? On 2/3/2019 1:59 PM, Marco Schulz wrote: Hi Dennis I suppose you use a simple Maven Project configuration. May you added the D= ependency manually. Whitout seeing the exact error in the cmd and your pom = I guess you added the dependency in the DependencyManagement section. You n= eed to use the Dependencies section. regards .marco Get Outlook for Android ________________________________ From: Dennis Putnam Sent: Sunday, February 3, 2019 7:51:20 PM To: users@maven.apache.org Subject: Confusion with Dependency Paths I have a Maven project that was created using Eclipse. The application is working fine but I am having a problem compiling with 'javac'. I'm getting the following compile error: error: package org.apache.commons.io does not exist However, the build path contains: ../repository/commons-io/commons-io/2.5 When I added the dependency I specified: GroupID: commons-io Artifact: commons-io Version: 2.5 That is what is reflected in the pom.xml. I am guessing there is something wrong with the path but I do not understand where org.apache.commons-io comes from in the error message. Doesn't that mean the pom.xml dependency would have to be: GroupID:org.apache.commons-io Artifact: commons-io Version: 2.5 Which it isn't and means a different path then the above and the explains the error. When I look at the build path in Eclipse the path is correct. Can someone explain what is going on and how to debug/fix it? TIA. -- _________________________________________________________________________ Dipl. Inf. Marco Schulz (MSc) Expert for (WEB) Enterprise Applications - worldwide - + Project Manager + Consultant + Writer + Speaker + Trainer + (Contact) WhatsApp : 0052 (1) 221 200 61 37 Movil : 0049 (0) 169 6918445 E-Mail : marco.schulz@outlook.com Blog : http://enRebaja.wordpress.com Services: + Build- & Configuration Management + Release Management + Business Analysis + Software Architecture + Process Automation This message is intended only for the use of the individual or entity to which it is addressed, and may contain information that is privileged, confidential and that may not be made public by law or agreement. If you are not the intended recipient or entity, you are hereby notified that any further dissemination, distribution or copying of this information is strictly prohibited. If you have received this communication in error, please contact us immediately and delete the message from your system. --_60283826-80AF-44C5-93F5-E96A4EA48CD4_--