After few weeks of thinking I believe the best way to solve the missing
`textmate.nbm` in IGV is to download it during build of my `enso4igv.nbm`
and distribute it next to it. However:

How do I download .nbm by Maven? I am trying to use maven-dependency-plugin
but whatever I try downloads the JAR file, not the NBM file. I'll continue
fighting, but if you know an official way to download an NBM (maybe with
NetBeans NBM plugin?), please help me out of my POJO misery.

-jt

PS: Following doesn't work...

            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-dependency-plugin</artifactId>
                <version>3.8.1</version>
                <executions>
                    <execution>
                        <id>copy-nbms</id>
                        <phase>prepare-package</phase>
                        <goals>
                            <goal>copy</goal>
                        </goals>
                        <configuration>
                            <artifactItems>
                                <artifactItem>
                                    <groupId>org.netbeans.api</groupId>

<artifactId>org-netbeans-modules-textmate-lexer</artifactId>
                                    <version>${netbeans.version}</version>
                                    <type>jar</type>
                                    <overWrite>false</overWrite>

<outputDirectory>${project.build.directory}/dist</outputDirectory>
                                </artifactItem>
                            </artifactItems>

<outputDirectory>${project.build.directory}/</outputDirectory>
                            <overWriteReleases>false</overWriteReleases>
                            <overWriteSnapshots>true</overWriteSnapshots>

                        </configuration>
                    </execution>
                </executions>
            </plugin>


čt 26. 6. 2025 v 15:27 odesílatel Jaroslav Tulach <[email protected]>
napsal:

> Dne čtvrtek 26. června 2025 12:58:05 CEST, Neil C Smith napsal(a):
> > On Thu, 26 Jun 2025 at 11:44, Jaroslav Tulach <[email protected]>
>
> wrote:
> > > https://netbeans.apache.org/nb/updates/26/updates.xml
> > >
> > > Is empty! The only update center with Text Mate I can find is:
> > >
> > > https://dist.apache.org/repos/dist/release/netbeans/netbeans/25/nbms/
> > >
> > > Why isn't Text Mate available in update center for NetBeans 26?
> >
> > The update centre is no longer published as part of the release.  The
> > XML will be empty unless we have to actually publish module updates
> > for any release.
>
> I see. I was afraid of some decision like that. It breaks the "IGV
> workflow" -
> e.g. ability to install all NetBeans modules into application that doesn't
> distribute them.
>
> > The NBM should be on Maven, so a custom update.xml could be produced
> > to download from there?
>
> The problem is that I need the `update.xml` sooner than my module is
> installed.
>
> I'll think what I can do with that: https://github.com/enso-org/enso/pull/
> 13376
>
> -jt
>
> PS: another problem is 3rd party update center - IGV "inherits" it from
> NetBeans. Those NBMs are be available, but their dependencies may not -
> because the standard update.xml is empty...
>
>
>
>

Reply via email to