Alright, I managed to build the NetBeans 9.0 maven artifacts for use with my 
NetBeans Platform application. In case it helps anyone else, here are the exact 
steps I had to go through (on Windows in my case):

1) Clone and build the _latest_ version of the nb-repository-plugin--the latest 
official one on maven central doesn't work with Maven 3.1.1. I changed the 
version in the pom.xml of the plugin to "1.4-mybuild" before doing mvn install.
2) Clone and cd into incubator-netbeans. Then do:

git checkout 9.0-vc3
git clean -xdf
ant
ant build-nbms
ant build-source-zips
ant build-javadoc

3) Run the download goal (put all of these on one line):
    mvn org.codehaus.mojo:nb-repository-plugin:1.4-mybuild:download
      -DnexusIndexDirectory=C:\Users\ebakke\Temp\nbrepoidx
      -DrepositoryUrl=https://repo.maven.apache.org/maven2
 
4) Run the populate goal:

mvn org.codehaus.mojo:nb-repository-plugin:1.4-mybuild:populate
      -DnexusIndexDirectory=C:\Users\ebakke\Temp\nbrepoidx
      -DforcedVersion=RELEASE90mybuild
      -DnetbeansInstallDirectory=nbbuild/netbeans
      -DnetbeansNbmDirectory=nbbuild/nbms
      -DnetbeansSourcesDirectory=nbbuild/build/source-zips
      -DnetbeansJavadocDirectory=nbbuild/build/javadoc

This installs the artifacts into the local maven cache only (~/.m2). There's 
another option to install them into a private Nexus repository, which I haven't 
tried yet.

5) Update the NetBeans Platform application's pom.xml to use RELEASE90mybuild.

-- Eirik

-----Original Message-----
From: Eirik Bakke <[email protected]> 
Sent: Thursday, August 23, 2018 8:26 PM
To: [email protected]
Subject: RE: NB 9 Platform Maven arifacts

Ah--thank you!

-- Eirik

-----Original Message-----
From: Geertjan Wielenga <[email protected]>
Sent: Thursday, August 23, 2018 7:43 AM
To: dev <[email protected]>
Subject: Re: NB 9 Platform Maven arifacts

This thread could help:

https://lists.apache.org/thread.html/3b4ef9f4e14f614e65b4144e02ef228fcda693ace1de2752a338885d@%3Cdev.netbeans.apache.org%3E

Gj

On Thu, Aug 23, 2018 at 9:24 AM, Luff,Chris <[email protected]>
wrote:

> You can use the nb-repository-plugin to build the maven artifacts for 
> your local repo at the correct version from a netbeans source.
>
> Associate Principal Software Engineer | IP Development - Care Insight 
> and Delivery Dev | [email protected]<mailto:[email protected]>
> | Cerner Limited<http://www.cerner.com/>
>
> On Aug 22, 2018, at 4:43 PM, Eirik Bakke 
> <[email protected]<mailto:ebak [email protected]>> wrote:
>
> I would rather add them to my internal repo and be able to find them 
> than have to wait. Can we provide some instructions on how to do this.
>
>
> +1. I'd love to bump my platform application to NB9 so that it can 
> +start
> using the latest JDK--in particular because of improved HiDPI support 
> on Windows.
>
> -- Eirik
>
> On 8/22/18, 7:37 AM, "David Beer" <[email protected]<mailto:
> [email protected]>> wrote:
>
> Hi Geerjan
>
> So the main problem is that becasue the domain has not be transfered 
> yet, means that the maven artifacts can't be uploaded to the original 
> site. Can we not upload them somewhere or have the source for the 
> archetype so that we can build it and deploy to our own maven repos, 
> and a way of building the artifacts for now and pushing to our own repos.
>
> I would rather add them to my internal repo and be able to find them 
> than have to wait. Can we provide some instructions on how to do this.
>
> Thanks
>
> David
>
> On Tue, 21 Aug 2018 at 10:54, Geertjan Wielenga 
> <[email protected]<mailto:geertjan.
> [email protected]>> wrote:
>
> The problem here is that netbeans.org<http://netbeans.org> has not yet 
> been donated to Apache by Oracle hence org.netbeans does not belong to 
> Apache hence org.netbeans cannot be used for Maven archetypes.
>
> So, we need to wait for the brand/domain donation to be completed 
> before going further with this -- and there's been quite some movement 
> around that recently, so I have hope that it shouldn't take too long 
> anymore.
>
> Gj
>
>
> On Mon, Aug 20, 2018 at 11:37 PM, John McDonnell 
> <[email protected]<mailto:[email protected]>
>
> wrote:
>
> Hi David,
>
> Have a look at the archives of this list:
> https://na01.safelinks.protection.outlook.com/?url=
> https%3A%2F%2Flists.apache.org%2Flist.html%3Fdev%
> 40netbeans.apache.org&amp;data=02%7C01%7CChris.Luff%40cerner.com%
> 7Cde42a00968f249783c3508d60846130d%7Cfbc493a80d244454a815f4ca58e8
> c09d%7C0%7C0%7C636705494392062947&amp;sdata=DDcwU8nNUoTsQ7KQpRDLFafeBt
> Qb5r
> yuoXquncHunFQ%3D&amp;reserved=0:
> lte=5M:maven%20release
>
> Check the email from Emilian Bold (4th one down as I search now), 
> that's the last info on this topic I believe...\
>
> Regards
>
> John
>
> On Mon, 20 Aug 2018 at 22:04, David Beer <[email protected]<mailto:
> [email protected]>>
> wrote:
>
> Hi All
>
> I have recently downloaded Netbeans 9 Incubator release, hoping to 
> start development using the NB 9 platform. However there was no option 
> to use the NB 9 Release and secondly will the modules be built like 
> they were previously and added to a maven repository.
>
> Any news on the progress around being able to build using the NB9 
> Platform using maven?
>
> Thanks
>
> David
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> <mailto:[email protected]>
> For additional commands, e-mail: 
> [email protected]
> <mailto:[email protected]>
>
> For further information about the NetBeans mailing lists, visit:
> https://na01.safelinks.protection.outlook.com/?url=
> https%3A%2F%2Fcwiki.apache.org%2Fconfluence%2Fdisplay%
> 2FNETBEANS%2FMailing%2Blists&amp;data=02%7C01%7CChris.Luff%40cerner.co
> m%
> 7Cde42a00968f249783c3508d60846130d%7Cfbc493a80d244454a815f4ca58e8
> c09d%7C0%7C0%7C636705494392062947&amp;sdata=z%2Btwgr2%2BzzKNRnYO9%
> 2FIYNs0anF2wJKVnaLKtJrCng%2B8%3D&amp;reserved=0
>
>
>
> CONFIDENTIALITY NOTICE This message and any included attachments are 
> from Cerner Corporation and are intended only for the addressee. The 
> information contained in this message is confidential and may 
> constitute inside or non-public information under international, 
> federal, or state securities laws. Unauthorized forwarding, printing, 
> copying, distribution, or use of such information is strictly 
> prohibited and may be unlawful. If you are not the addressee, please 
> promptly delete this message and notify the sender of the delivery 
> error by e-mail or you may call Cerner's corporate offices in Kansas 
> City, Missouri, U.S.A at (+1) (816)221-1024. Cerner Limited, 
> Registered in England no 2519305, Registered Office 37 North Wharf Road, 
> London W2 1AF.
>
B KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKCB  [  
X  ܚX KK[XZ[
 ] ][  X  ܚX P ] X[ ˚[  X ]܋ \X K ܙ B  ܈Y][ۘ[  [X[  K[XZ[
 ] Z[ ] X[ ˚[  X ]܋ \X K ܙ B B  ܈ \ \ [  ܛX][ۈX  ]H ] X[  
XZ[[  \   \ ]
 B ΋    Z K \X K ܙ   ۙ Y[  K \ ^KӑU PS   XZ[[   \  B B B

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


Reply via email to