Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [ebr-dev] how to use a local build of ebr
  • From: "Homer, Tony" <tony.homer@xxxxxxxxx>
  • Date: Thu, 23 Jan 2020 23:25:18 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Mm9khWkT966ylskGHOWNOydXsSaESQq8mzCqQLooJ/A=; b=jMb4PMjznG0B7YC3QI5ZA+sezJ6BgU6+VGiXMGpLOLs2/W+4VfQ9RznxKqfahqRx3Z2jnuo4d6e4/7xe2XEyrwxKEd5oxsDnDGRwJPc32oq/FaYyoqS6r6YqrO4pCSI2eG5dv4nK/wHh65LnKP/LlJ0c4qQ6OUikDdtJh9/y+pB6bqRly+dlsy4d6FaS9c6BmJl9i7Qcs5oQSgd0jFQTQhk+uzwR7WxWgedvURsKO3xMHWGngqnK+rZ0twseSGE/7t3OYArOjCLAUjUBOqOM8RE4/wmXBbssN5WXrW3eW/7Aw4+7zXp9z0nsteaGXQ1QG5+/C3t06cq4ICIU8aoiIQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YfFh4cNXlqNAaYeIvm5V1Tj8vN+ucLWoENTK5hFUDV5/fb5Hml3So6Zceb3XwTuTmh23PL/z0Ej9M9PQSo1C/7lf8A9/oLIUSMjNteRKibDFKp/rQzmC2l1rWNpc8YKljZn24mjWqU68HvpemilNRQeZic4b1wVINWTu0BoOsbkK8/UfmgXjnUg1hmEFtF41G4GozoZAkA+09JXFZexEFH/VYksaz9gV/WwnFtKJsX2sHoZefDd2L0CLljl0lgwR9irioZlMyBPQT+FSVAA8rgsBqdNu8b5xhre6zcs7GsZSXHb/jwVmLVtZxeXpQyqFHoa3Wqj1UN2Z4KJQ8YVu1Q==
  • Delivered-to: ebr-dev@xxxxxxxxxxx
  • List-archive: <https://www.eclipse.org/mailman/private/ebr-dev>
  • List-help: <mailto:ebr-dev-request@eclipse.org?subject=help>
  • List-subscribe: <https://www.eclipse.org/mailman/listinfo/ebr-dev>, <mailto:ebr-dev-request@eclipse.org?subject=subscribe>
  • List-unsubscribe: <https://www.eclipse.org/mailman/options/ebr-dev>, <mailto:ebr-dev-request@eclipse.org?subject=unsubscribe>
  • Thread-index: AQHV0kRgFoyIuhTkBkmUXWkJArf4IQ==
  • Thread-topic: [ebr-dev] how to use a local build of ebr
  • User-agent: Microsoft-MacOutlook/10.21.0.200113

Update-

 

I noticed that ebr-version is set in releng/mavenparent/pom.xml and I tried overriding it to match the version of my fork (1.1.1-SNAPSHOT) and that is working.

This seems like a hacky way to do it, but it solves my problem for now.

If you have time to point me in the right direction regarding the questions from my previous email, I’d still love to have more information, but I am not blocked.

 

Thanks!

Tony Homer

 

From: <ebr-dev-bounces@xxxxxxxxxxx> on behalf of "Homer, Tony" <tony.homer@xxxxxxxxx>
Reply-To: Discussion channel for EBR developers and recipe contributors <ebr-dev@xxxxxxxxxxx>
Date: Thursday, January 23, 2020 at 2:53 PM
To: "ebr-dev@xxxxxxxxxxx" <ebr-dev@xxxxxxxxxxx>
Subject: [ebr-dev] how to use a local build of ebr

 

Hi ebr-dev-

 

I’ve spent a couple hours today trying to figure something out but haven’t had any luck, so I thought I’d reach out here.

When ebr tries to retrieve the license file, it times out.

Up till now I have worked around this issue by just letting it time out and then manually adding the license, but this really slows things down.

I believe this happens because I am behind a proxy and AboutFilesUtil (which retrieves the license file) does not support proxies.

I cloned the repo and made some changes to hardcode my proxy in AboutFilesUtil (after I get this to work I will switch from hardcoding to getting it from environment).

I built the repo and installed my version of ebr using ‘mvn -f releng/maven-plugins/pom.xml clean install -DskipTests’.

However, when I try to use ebr (in conjunction with orbit-recipes), the release version gets used instead of the local build that was installed into my maven repository.

I verified that my fork is there in ~/.m2/repository by inspecting the contents of ~/.m2/repository/org/eclipse/ebr.

 

I’ve tried a couple things, including…

- delete ~/.m2/repository/org/eclipse/ebr, then install my fork (based on 1.1.1): the 1.1.0 release version gets downloaded and used instead

- repeat the above, then invoke ebr using an explicit version (e.g., instead of ebr:create-recipe, use org.eclipse.ebr:ebr-maven-plugin:1.1.1-SNAPSHOT:create-recipe): this seems to get closer, but the 1.1.0 release version gets downloaded and seems to be getting used instead

 

It seems like using a fork of a maven plugin should be a fairly common workflow, especially for maven plugin developers, so I imagine I am missing some fairly obvious documentation somewhere, but I can’t seem to find it on my own.

I’d also like to learn how maven resolves the string “ebr” to a plugin, but so far I haven’t found the docs which explain how this resolution occurs. 

 

Thanks in advance for any help with this!

Tony Homer

 


Back to the top