Re: Maven Documentation

2024-06-22 Thread Mark A. Flacy
Greetings, To fully understand what the Maven XSD is telling you, I fear that you'll have to read some www.w3.org documentation. The wikipedia page is useful (since this isn't a political issue): https://en.wikipedia.org/wiki/ XML_Schema_(W3C)[1] It provides links to the various XML Schema

Re: Maven Documentation

2024-06-22 Thread slipbits
to do something. So, no book. But I did find something, "Introducing Maven". It's old but it addresses topics in a way that I personally find satisfying. For one, it provides a consistent overview of topics, going into enough detail to illustrate a single point, and explaining that poi

Re: Netbeans notification requests permission for Maven repo. But how?

2024-06-03 Thread Michael Bien
you can click the links. Since this looks like a local repo, it won't have an index file anyway so you can click the "deny" link and it won't ask again for this repo ID. This is meant for remote repos like maven central which offer big index files. -mbien On 03.06.24 21:21, Mark

Netbeans notification requests permission for Maven repo. But how?

2024-06-03 Thread Mark Koch
I get this Notification in Netbeans 21 where it wants me to Allow or Deny downloads for a temp repository but the blue hyperlinks don’t seem to have any effect. So how would one enact the requested changes, either in Netbeans or from a command line? Mark Also, for whom it may concern, the

Re: Maven Documentation

2024-06-03 Thread Davide Grandi
Right. 1) get an example 2) mvn clean 3) mvn clean compile 3) mvn clean compile package 4) mvn clean compile package install you can keep only "clean" and "the last command on he row", the intermediate ones are implied. welcome on maven !     Davide -- ing.

Re: Maven Documentation

2024-06-02 Thread Tilman Hausherr
That's not helpful, because it's about syntax details, google "maven beginners" or "maven tutorial" and choose one that makes sense. This one is not bad: https://www.baeldung.com/maven (my first hits were on the apache site but these seemed too complex, despite that I

Maven Documentation

2024-06-02 Thread slipbits
I'm just getting into Maven and I'm trying to find a good book that describes the POM and Maven. I'm just going through the Apache Maven Project POM reference and things like: According to the POM 4.0.0 XSD, the |build| element is conceptually divided into two parts

Maven Based NetBeans Platform Application - questions

2024-04-05 Thread Andreas Rademeyer
Good day Some questions that I'm hoping someone can answer: *(1)* For an Ant Based Netbeans Platform Application • harness.dir and • nbplatform.active.dir can be set to point to a customized build harness and netbeans platform. What are the properties to be set for a *Maven* Based

Re: Netbeans 21 always showing wrong Java dependency for Maven project

2024-02-28 Thread Francesco Chicchiriccò
! > > > > I am experiencing an annoying behavior with Maven projects: even > > though JDK 21 is correctly reported under project properties -> > > sources -> source/binary format and also under build -> compile (as > > set by Maven's pom.xml), Netbeans keeps

Re: Netbeans 21 always showing wrong Java dependency for Maven project

2024-02-28 Thread Michael Bien
Hi, On 28.02.24 11:23, Francesco Chicchiriccò wrote: Hi there, I am using Netbeans since 6.0 and still enjoying it as main development platform for Java: nice job! I am experiencing an annoying behavior with Maven projects: even though JDK 21 is correctly reported under project properties

Netbeans 21 always showing wrong Java dependency for Maven project

2024-02-28 Thread Francesco Chicchiriccò
Hi there, I am using Netbeans since 6.0 and still enjoying it as main development platform for Java: nice job! I am experiencing an annoying behavior with Maven projects: even though JDK 21 is correctly reported under project properties -> sources -> source/binary format and also under

Where do I place Maven keys -e and -X when running application in Netbeans

2024-02-05 Thread Greenberg, Gary
: %PARSER_ERROR[enc] ... Failed to execute goal org.codehaus.mojo:exec-maven-plugin:3.1.0:exec (default-cli) on project etl_daemon: Command execution failed.: Process exited with an error: 1 (Exit value: 1) -> [Help 1] To see the full stack trace of the errors, re-run Maven with the -e swi

Where do I specify maven debug keys

2024-01-31 Thread Greenberg, Gary
Total time: 5.067 s Finished at: 2024-01-31T21:19:55-08:00 Failed to execute goal org.codehaus.mojo:exec-maven-plugin:3.1.0:exec (default-cli) on project etl_daemon: Command

Re: Thought on handling different Maven .m2 folders

2024-01-27 Thread Neil C Smith
On Sat, 27 Jan 2024 at 09:13, Lars Bruun-Hansen wrote: > Another thought: Maven command execution shell still supports a > "$HOME/.mavenrc" file which is executed (sourced) by Maven before it > does anything else. It will be fired each and every time you execute > the "

Re: Thought on handling different Maven .m2 folders

2024-01-27 Thread Lars Bruun-Hansen
> For certain git branches, I want to use a different .m2 folder. Even if possible maybe revisit why you need this? In any case, Maven supports (since 3.3 or something) that you can have a local ".mvn" folder in your project. See this: https://maven.apache.org/configure.html This

Re: Thought on handling different Maven .m2 folders

2024-01-26 Thread Pieter van den Hombergh
, Steven M : > > In the maven Tools\Options\Java\Maven, there is a prompt for Global > Execution Options: > Currently I use -U -SkipTests -gs > C:\Users\\m2_for_project\.m2\settings -s C: \Users\\m2_for_project > \.m2\settings.xml > The settings.xml file contain a loca

Thought on handling different Maven .m2 folders

2024-01-26 Thread Nelligan, Steven M
In the maven Tools\Options\Java\Maven, there is a prompt for Global Execution Options: Currently I use -U -SkipTests -gs C:\Users\\m2_for_project\.m2\settings -s C: \Users\\m2_for_project \.m2\settings.xml The settings.xml file contain a localRepository tag which points to different

Re: Form designer issue with Maven NB app

2023-12-04 Thread Jerome Lelasseux
Found the problem:  I changed some package base names while doing the Maven migration, and forgot to process the .form files accordingly.  Silly me Le dimanche 3 décembre 2023 à 21:15:09 UTC+1, Jerome Lelasseux a écrit : Hi, I migrated my NB app from Ant to Maven, when I run

Form designer issue with Maven NB app

2023-12-03 Thread Jerome Lelasseux
Hi, I migrated my NB app from Ant to Maven, when I run the app everything is fine. But in the IDE when I switch to the "Design" view of a graphical component (JDialog, JPanel ...) I get 2 problems with the form editor: 1/ form editor shows text components with the string resource pr

Re: Maven + NB platform app variants

2023-11-24 Thread Jerome Lelasseux
Thanks Patrick, that helps Le vendredi 24 novembre 2023 à 17:04:55 UTC+1, Patrik Karlström a écrit : I asked the very same thing earlier on this list and I ended up using standard maven profiles.It's good for excluding modules too, and adding closed source modules to an open source

Re: Maven + NB platform app variants

2023-11-24 Thread Patrik Karlström
I asked the very same thing earlier on this list and I ended up using standard maven profiles. It's good for excluding modules too, and adding closed source modules to an open source pom. The reference will be visible but not the content. Note that you have to select the correct profile in both

Maven + NB platform app variants

2023-11-22 Thread Jerome Lelasseux
cluster: cluster.path=${nbplatform.active.dir}/platform:../variantA/build/cluster I ported the app to Maven, but it's not clear to me how can achieve the same mechanism with Maven. Any recommandation? Jerome

Options Panels on NetBeans Platform with Maven

2023-11-21 Thread Charles Rivenbark
I created a new NetBeans Platform Application under the Maven category, added a new NetBeans Module under the -parent module, added a new Primary Options Panel under the new module and added a new Secondary Options Panel on the new Primary. The new module is listed in the Dependencies

Maven with shared sources on 2 modules

2023-07-12 Thread Alex O'Ree
I have two modules in maven that both produce slightly different configurations of a war file. Lets call them war1 and war2. War1 has all the html js, css, etc and base config. War2 uses the same html, css and most of the same js and some different configurations in web and context xml files

Re: Why Maven build app always recompiles ?

2023-06-03 Thread Pieter van den Hombergh
hould I change the my guava module (pom below) to avoid this > recompilation with the install goal ? > > > > http://maven.apache.org/POM/4.0.0; xmlns:xsi=" > http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=" > http://maven.apache.org/POM/4.0.0 > http://m

Re: Why Maven build app always recompiles ?

2023-06-02 Thread Jerome Lelasseux
platform app, if I open a single module and build it, it recompiles only when source files are modified, as expected. But when I run Build on the parent project, maven always recompiles all modules. Is it normal ? I do not know if this is related to the issue that you are observing

Re: Migrating NB platform app to maven

2023-05-31 Thread Tim de Vries
70 modules) to Maven, but I'm new to Maven, so forgive the newbie question. I created a new empty NB platform app with a sample module from the NB wizard, then I built from there. I used https://github.com/gephi/gephi on GitHub as a kind of model. So now I have my parent project, the a

Re: Why Maven build app always recompiles ?

2023-05-22 Thread Martin Desruisseaux
Hello Jerome Le 22/05/2023 à 22:53, Jerome Lelasseux a écrit : On my NB platform app, if I open a single module and build it, it recompiles only when source files are modified, as expected. But when I run Build on the parent project, maven always recompiles all modules. Is it normal ? I do

Re: Why Maven build app always recompiles ?

2023-05-22 Thread Jerome Lelasseux
. So how should I change the my guava module (pom below) to avoid this recompilation with the install goal ?  http://maven.apache.org/POM/4.0.0; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org

Re: Why Maven build app always recompiles ?

2023-05-22 Thread Jerome Lelasseux
anges detected, recompiling" for each child module. Same if I build a single child module and then build the parent project, it will detect some changes and recompile in that module. Jerome Le lundi 22 mai 2023 à 11:48:50 UTC+2, Eric Barboni a écrit : Hi,   Maven wil

RE: Why Maven build app always recompiles ?

2023-05-22 Thread Eric Barboni
Hi, Maven will build all children, but should be faster on the compilation plugin part you should have something like that : Nothing to compile - all classes are up to date. Best Regards Eric De : Jerome Lelasseux Envoyé : vendredi 19 mai 2023 21:04 À : NetBeans Mailing List

Ant > Maven migration script

2023-05-20 Thread Jerome Lelasseux
Below is a script that automates many of the Ant>Maven migration tasks for a NB platform app. I completed the migration of the build process, now I need to work on the installers/packaging. I discovered nbpackage, I'll have a look at it. Jerome GitHub - jjazzboss/NbMavenize: A scr

Re: Migrating NB platform app to maven

2023-05-20 Thread Jerome Lelasseux
I answer my own question about the equivalent in Maven of the Ant release/modules directory. Use the nbmResources parameter of the nbm goal of the nbm plugin.  https://bits.netbeans.org/mavenutilities/nbm-maven-plugin/nbm-maven-plugin/nbm-mojo.html#nbmResources Jerome Le jeudi 18 mai

Why Maven build app always recompiles ?

2023-05-19 Thread Jerome Lelasseux
On my NB platform app, if I open a single module and build it, it recompiles only when source files are modified, as expected. But when I run Build on the parent project, maven always recompiles all modules. Is it normal ? Jerome App is here https://github.com/jjazzboss/JJazzLabTemp

Re: Migrating NB platform app to maven

2023-05-18 Thread Jerome Lelasseux
What is the recommended way to bundle native libs in a module with Maven ? With Ant I just put the libs in /release/modules/xx and I was able to find them via InstalledFileLocator.getDefault().locate(). Jerome PS: I finally managed to run my app with Maven. I'll publish my migration script

Re: Migrating NB platform app to maven

2023-05-16 Thread Jerome Lelasseux
)             org.netbeans.api             org-openide-loaders             RELEASE170         Best Regards Eric -Message d'origine- De : Tom Eicher Envoyé : mardi 16 mai 2023 13:08 À : NetBeans Mailing List Objet : Re: Migrating NB platform app to maven Hi Jerome, I would be really interested

RE: Migrating NB platform app to maven

2023-05-16 Thread Eric Barboni
: Re: Migrating NB platform app to maven Hi Jerome, I would be really interested in this script. Cheers Tom. Am 16.05.23 um 00:01 schrieb Jerome Lelasseux: > PS: I used a bash script to automate the migration process as much as > possible. When I'm done I'll be happy to

Re: Migrating NB platform app to maven

2023-05-16 Thread Tom Eicher
Hi Jerome, I would be really interested in this script. Cheers Tom. Am 16.05.23 um 00:01 schrieb Jerome Lelasseux: PS: I used a bash script to automate the migration process as much as possible. When I'm done I'll be happy to share it -there is not much info on the web...

Re: Migrating NB platform app to maven

2023-05-16 Thread Neil C Smith
Hi, On Mon, 15 May 2023 at 23:05, Jerome Lelasseux wrote: > > Have you done a clean and build of the parent project? > yes, the output below OK, just checking the obvious - seems to have been a stumbling block in a few recent threads. Your reactor build order looks wrong. Wrong or circular

Re: Migrating NB platform app to maven

2023-05-15 Thread Jerome Lelasseux
Neil, > Have you done a clean and build of the parent project?yes, the output below cd D:\JeromeDocs\NetBeansProjects\JJazzLab; "JAVA_HOME=C:\\Program Files\\Eclipse Adoptium\\jdk-17.0.4.1+1" cmd /c "\"C:\\Users\\Jerome\\Progs\\Netbeans 17\\ja

Re: Migrating NB platform app to maven

2023-05-15 Thread Neil C Smith
On Mon, 15 May 2023, 22:52 Jerome Lelasseux, wrote: > Mark, > > > you should publish any local artifacts to your local maven repository. > Yes. But publish a local artifact for modula A means I need to build > module A, right ? module A depends on module B which depends on

Re: Migrating NB platform app to maven

2023-05-15 Thread Jerome Lelasseux
Mark, > you should publish any local artifacts to your local maven repository.  Yes. But publish a local artifact for modula A means I need to build module A, right ? module A depends on module B which depends on module C etc. So when I build module A it fails because modul

RE: Migrating NB platform app to maven

2023-05-15 Thread Greenberg, Gary
@netbeans.apache.org; Greenberg, Gary Subject: Re: Migrating NB platform app to maven The pom files... ./pom.xml http://maven.apache.org/POM/4.0.0; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation="http://maven.apache.org/POM/4

Re: Migrating NB platform app to maven

2023-05-15 Thread Mark A. Flacy
Greetings, Ant never had an automatic way to pull in dependencies (well, perhaps later versions of Ant did but I am ignorant of such updates). Maven and gradle, however, know how to query external repositories of information to pull in such dependencies. Maven and gradle ALSO know that you

Re: Migrating NB platform app to maven

2023-05-15 Thread Jerome Lelasseux
The pom files... ./pom.xml http://maven.apache.org/POM/4.0.0; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd;>     4.0.0     org.jjazz     jjazzlab-p

RE: Migrating NB platform app to maven

2023-05-15 Thread Greenberg, Gary
You should provide your POM file here. Than we'll be able to help you. From: Jerome Lelasseux Sent: Monday, May 15, 2023 1:26 PM To: NetBeans Mailing List Subject: Migrating NB platform app to maven I try to migrate my Ant-based NB platform app (~70 modules) to Maven, but I'm new to Maven, so

Migrating NB platform app to maven

2023-05-15 Thread Jerome Lelasseux
I try to migrate my Ant-based NB platform app (~70 modules) to Maven, but I'm new to Maven, so forgive the newbie question. I created a new empty NB platform app with a sample module from the NB wizard, then I built from there. I used https://github.com/gephi/gephi  on GitHub as a kind

Re: Maven indexing

2023-04-06 Thread Tim de Vries
a recommendation on how to configure the Filesystem/OS for holding the Maven index/cache/repository. That's two layers below Netbeans and does not depend on patches/changes for Netbeans, I think? Cheers Andreas

Maven IT integration tests not recognized?

2023-03-26 Thread Alex O'Ree
Hi I was experimenting with surefire integration tests vs unit tests. I noticed that NB completely ignores the "it" folder src/it/java etc. Is there a workaround for this?

Re: Maven indexing

2023-03-14 Thread Tim de Vries
...@tecreations.ca On 14/03/2023 7:54 p.m., Andreas Reichel wrote: Transparent compression with BTRFS/ZFS also helps a lot. Pardon? I gave a recommendation on how to configure the Filesystem/OS for holding the Maven index/cache/repository. That's two layers below Netbeans and does not depend

Re: Maven indexing

2023-03-14 Thread Andreas Reichel
/OS for holding the Maven index/cache/repository. That's two layers below Netbeans and does not depend on patches/changes for Netbeans, I think? Cheers Andreas >

Re: Maven indexing

2023-03-14 Thread Tim de Vries
You may. Submit changes. t...@tecreations.ca On 14/03/2023 7:54 p.m., Andreas Reichel wrote: On Wed, 2023-03-15 at 02:20 +0100, Michael Bien wrote: my .m2 folder is 4GB right now and I haven't cleared it for at least 2 years. Transparent compression with BTRFS/ZFS also helps a lot. Cheers

Re: Maven indexing

2023-03-14 Thread Tim de Vries
Michael Bien wrote: On 14.03.23 13:29, Emma Atkinson wrote: > I gave up on Maven a couple of years ago for the reasons already > given.  No matter what size partition I used it would be too small > within a year or so.  I used to grab the dependencies I needed and

Re: Maven indexing

2023-03-14 Thread Andreas Reichel
On Wed, 2023-03-15 at 02:20 +0100, Michael Bien wrote: > my .m2 folder is 4GB right now and I haven't cleared it for at least > 2 > years. Transparent compression with BTRFS/ZFS also helps a lot. Cheers Andreas

Re: Maven indexing

2023-03-14 Thread Tim de Vries
don't want it!). Android development for comparison will use up that space instantly as soon you press run and it downloads an OS image for the emulator and you probably want to test on more than one image. The maven central index contains information for every java lib ever released

Re: Maven indexing

2023-03-14 Thread László Kishalmi
migration POC On Tue, Mar 14, 2023 at 6:26 PM Michael Bien wrote: > On 14.03.23 13:29, Emma Atkinson wrote: > > I gave up on Maven a couple of years ago for the reasons already > > given. No matter what size partition I used it would be too small > > within a year o

Re: Maven indexing

2023-03-14 Thread Michael Bien
as soon you press run and it downloads an OS image for the emulator and you probably want to test on more than one image. The maven central index contains information for every java lib ever released and is post-extraction at about 5GB. That should be ok i think. I also do have some ideas

Re: Maven indexing

2023-03-14 Thread Tim de Vries
If I may inject a thought? Maybe time to invest in a DVD-RW Drive and a bigger case. If you have three drives, you can add a floppy or DVD-Writer. So, a spindle of DVD's? Tim On 2023-03-14 7:20 p.m., Michael Bien wrote: On 14.03.23 13:29, Emma Atkinson wrote: I gave up on Maven a couple

Re: Maven indexing

2023-03-14 Thread Michael Bien
On 14.03.23 13:29, Emma Atkinson wrote: I gave up on Maven a couple of years ago for the reasons already given.  No matter what size partition I used it would be too small within a year or so.  I used to grab the dependencies I needed and switched off the Maven Index download in NB. if your

Re: Maven indexing

2023-03-14 Thread Michael Bien
On 14.03.23 18:17, Neil C Smith wrote: On Tue, 14 Mar 2023 at 17:01, László Kishalmi wrote: Also one day the Gradle plugin may be smart enough to use that Maven index for its own good. Like offering a dependency to add when you add an import statement for a class... That would be great. I

Re: Maven indexing

2023-03-14 Thread Neil C Smith
On Tue, 14 Mar 2023 at 17:01, László Kishalmi wrote: > Also one day the Gradle plugin may be smart enough to use that Maven index > for its own good. > Like offering a dependency to add when you add an import statement for a > class... That would be great. I started looking

Re: Maven indexing

2023-03-14 Thread László Kishalmi
Also one day the Gradle plugin may be smart enough to use that Maven index for its own good. Like offering a dependency to add when you add an import statement for a class... On Tue, Mar 14, 2023 at 6:28 AM Neil C Smith wrote: > On Tue, 14 Mar 2023 at 12:31, Emma Atkinson > wrote: > &

Re: Maven indexing

2023-03-14 Thread Neil C Smith
On Tue, 14 Mar 2023 at 12:31, Emma Atkinson wrote: > Recently (couple of years) I started using the Maven repository again but > through Gradle. Gradle does not load and decompress the whole index. Gradle > loads solely the dependencies (artifact : group : version)

Re: Maven indexing

2023-03-14 Thread Emma Atkinson
I gave up on Maven a couple of years ago for the reasons already given. No matter what size partition I used it would be too small within a year or so. I used to grab the dependencies I needed and switched off the Maven Index download in NB. Recently (couple of years) I started using the Maven

Re: Maven indexing

2023-03-11 Thread Michael Bien
https://github.com/apache/netbeans/pull/5655 On 11.03.23 22:05, Glenn Holmer wrote: On 3/11/23 14:43, Michael Bien wrote: We could however, potentially tell maven-indexer to use a sub folder of tmp and clean that folder on IOException - just to be sure - as second fallback. i'll take a look

Re: Maven indexing

2023-03-11 Thread Glenn Holmer
On 3/11/23 14:43, Michael Bien wrote: > We could however, potentially tell maven-indexer to use a sub folder of > tmp and clean that folder on IOException - just to be sure - as second > fallback. > > i'll take a look, Thanks! -- Glenn Holmer (Linux registered user #16682) &qu

Re: Maven indexing

2023-03-11 Thread Michael Bien
. The extraction is actually done by apache maven-indexer which NetBeans uses an EOL version of, since everything moved to JDK 11 by now. This involves Lucene and other dependencies so the process is not directly influenced by NB. We could however, potentially tell maven-indexer to use a sub folder

Re: Maven indexing

2023-03-11 Thread Glenn Holmer
On 3/9/23 23:52, Michael Bien wrote: > Hi Glenn, > > the index is downloaded to tmp in compressed form and then imported into > a lucene index which should be in the netbeans cache folder (about 1.9GB). > > The cache location can be changed via the regular > netbeans_default_cachedir property

Re: Maven indexing

2023-03-09 Thread Michael Bien
a relatively small OS partition (typically around 24G) and put everything else on other partitions. Unfortunately, this means that when NetBeans decides to download the entire Maven index, I lose about 5-6G, often exhausting the free space on my OS partition. And of course if it fails, it will try

Re: Maven indexing

2023-03-09 Thread Claudia Pastor Ramirez
ion (typically around 24G) and put > everything else on other partitions. Unfortunately, this means that when > NetBeans decides to download the entire Maven index, I lose about 5-6G, > often exhausting the free space on my OS partition. And of course if it > fails, it will try again... >

Maven indexing

2023-03-09 Thread Glenn Holmer
I keep a relatively small OS partition (typically around 24G) and put everything else on other partitions. Unfortunately, this means that when NetBeans decides to download the entire Maven index, I lose about 5-6G, often exhausting the free space on my OS partition. And of course if it fails

Re: Creating a new platform application: Maven or Ant?

2023-02-27 Thread Neil C Smith
On Sun, 26 Feb 2023 at 21:58, Joseph Huber wrote: > I considered moving from Ant to Maven, but really found no good reason to do > so. I have customized build macros in Ant (creating installers ... This was one reason I was using Ant too. Those installer aspects of my build were rew

Re: Creating a new platform application: Maven or Ant?

2023-02-27 Thread Neil C Smith
On Sun, 26 Feb 2023 at 15:04, Thomas Kellerer wrote: > Scott Palmer schrieb am 26.02.2023 um 15:47: > > I don’t think there is a case where I would ever choose to create a > > new Ant-based project these days. It is more flexible than Maven, > > but far more awkward to

RE: Creating a new platform application: Maven or Ant?

2023-02-26 Thread Joseph Huber
ortunately there were no issues that derailed the process. All is working good now. I considered moving from Ant to Maven, but really found no good reason to do so. I have customized build macros in Ant (creating installers, copy installers to download sites, auto-generating Windows DLLs with ik

Re: Creating a new platform application: Maven or Ant?

2023-02-26 Thread Mark A. Flacy
There used to be a gradle plugin for NetBeans. Sent from my Galaxy Original message From: Scott Palmer Date: 2/26/23 08:49 (GMT-06:00) To: Thomas Kellerer Cc: NetBeans Mailing List Subject: Re: Creating a new platform application: Maven or Ant? > On Feb 26, 2023, at 7

Re: Creating a new platform application: Maven or Ant?

2023-02-26 Thread Mathieu Bastian
Hi Thomas, I've had a very good experience with Maven for Gephi <https://github.com/gephi/gephi>, which is based on the latest Netbeans Platform. The pom files are fairly well documented so you can probably get some inspiration. If you run into specific issues feel free to reach out. M

Re: Creating a new platform application: Maven or Ant?

2023-02-26 Thread Thomas Kellerer
. However, I am not sure if I should go for Maven or Ant as the basis for my new application. What is the recommendation from the NetBeans team for a new platform project? I am using Java 17 if that matters. For any Java project (my opinion, based on experience with all three options.): Pr

Re: Creating a new platform application: Maven or Ant?

2023-02-26 Thread Scott Palmer
ch as there > is a lot of stuff I would do differently today. > > However, I am not sure if I should go for Maven or Ant as the basis for my > new application. > > What is the recommendation from the NetBeans team for a new platform project? > > I am using Java 17

Re: Creating a new platform application: Maven or Ant?

2023-02-26 Thread Davide Grandi
IMHO, the difference is the maven's declarative approach instead of ant's imperative one. Maven "style" is all about default behavior/naming that you should follow unless you have some good reasons not to. Maven help and docs are very useful, and there's many pom.xml ... to co

Creating a new platform application: Maven or Ant?

2023-02-26 Thread Thomas Kellerer
should go for Maven or Ant as the basis for my new application. What is the recommendation from the NetBeans team for a new platform project? I am using Java 17 if that matters. Thomas - To unsubscribe, e-mail: user

Re: Netbeans 16 fails with valid Maven POM due to Enforcer Plugin

2022-12-27 Thread Pieter van den Hombergh
Greetings. > > Please, I need help since I am stuck: I have a Maven Build which uses the > Enforcer Plugin and runs completely fine, when starting "mvn clean package" > from command line. > However, in Netbeans 16 I can't run that Build (even when using the local > Maven

Netbeans 16 fails with valid Maven POM due to Enforcer Plugin

2022-12-27 Thread Andreas Reichel
Greetings. Please, I need help since I am stuck: I have a Maven Build which uses the Enforcer Plugin and runs completely fine, when starting "mvn clean package" from command line. However, in Netbeans 16 I can't run that Build (even when using the local Maven, same as on the command li

Re: Search for maven dependency

2022-11-10 Thread Michael Bien
late reply but: the maven central index does not contain class names anymore. So you will only see results there once you have the artifact in your local .m2 repository since NetBeans indexes that one too. so once you press build you will see results, since it downloads the dependencies

Re: Search for maven dependency

2022-10-31 Thread name name2
>> >> пн, 31 окт. 2022 г. в 16:20, name name2 : >> >>> Hello >>> >>> Can't locate maven module name for code: >>> >>> import org.openide.util.lookup.ServiceProvider; >>> import *org.netbeans.spi.project.ProjectFactory*; >>> >>> @ServiceProvider(service = *ProjectFactory.class*) >>> public class BananaProjectFactory implements ProjectFactory { >>> >>> } >>> >>

Re: Search for maven dependency

2022-10-31 Thread name name2
> Hello >> >> Can't locate maven module name for code: >> >> import org.openide.util.lookup.ServiceProvider; >> import *org.netbeans.spi.project.ProjectFactory*; >> >> @ServiceProvider(service = *ProjectFactory.class*) >> public class BananaProjectFactory implements ProjectFactory { >> >> } >> >

Re: Search for maven dependency

2022-10-31 Thread name name2
[image: image.png] пн, 31 окт. 2022 г. в 16:20, name name2 : > Hello > > Can't locate maven module name for code: > > import org.openide.util.lookup.ServiceProvider; > import *org.netbeans.spi.project.ProjectFactory*; > > @ServiceProvider(service = *ProjectFactor

Search for maven dependency

2022-10-31 Thread name name2
Hello Can't locate maven module name for code: import org.openide.util.lookup.ServiceProvider; import *org.netbeans.spi.project.ProjectFactory*; @ServiceProvider(service = *ProjectFactory.class*) public class BananaProjectFactory implements ProjectFactory { }

maven build is successful but modules still have errors

2022-10-27 Thread Mikael Petterson
Hi, I have been using Eclipse but are now using Netbeans 15. I am building with maven in Netbeans and it is successful: Exporter ... SUCCESS [ 7.083 s] BUILD SUCCESS

Re: Netbeans Application project/Maven configuration issue

2022-09-23 Thread Amitabh Choudhury
Hi This is the log message I get when creating fresh "Netbeans Application" project. Please guide to configure ""Netbeans Application" project and required Maven configuration. Thanks ~~~Messages in log window while creating new proejct~~~ --< org

Re: Netbeans Application project/Maven configuration issue

2022-09-23 Thread Amitabh Choudhury
st6-app 1.0-SNAPSHOT --[ nbm-application ]--- Downloading from netbeans: http://netbeans.apidesign.org/maven2/com/acite/learn/samples/NetbeansApplicationTest6-branding/1.0-SNAPSHOT/maven-metadata.xml Downloading from netbeans: http://netbeans.apidesign.

Re: Netbeans Application project/Maven configuration issue

2022-09-23 Thread Amitabh Choudhury
ted now that we are in a world where Maven enforces use > of https. As far as I can tell the netbeans.apidesign.org site (kindly > hosted by Jaroslav Tulach) supports BOTH http and https. > > Lars > > On Thu, Sep 22, 2022 at 8:02 PM Amitabh Choudhury > wrote: > > > > Hi >

Re: Netbeans Application project/Maven configuration issue

2022-09-22 Thread Lars Bruun-Hansen
PR which I believe will indirectly update the code generated by the New Project --> Java with Maven --> NetBeans Application action: https://github.com/apache/netbeans-mavenutils-archetype-nbm-archetype/pull/15 @Amitabh Choudhury: I can see why this was confusing. Hopefully - with t

Re: Netbeans Application project/Maven configuration issue

2022-09-22 Thread Lars Bruun-Hansen
Btw I see a slight bug in the Wizard for New Project --> Java with Maven --> NetBeans Application. It puts the following section into the parent POM: netbeans NetBeans http://bits.netbeans.org/nexus/content/groups/ne

Re: Netbeans Application project/Maven configuration issue

2022-09-22 Thread Lars Bruun-Hansen
rg/about/oracle-transition.html document > should be updated now that we are in a world where Maven enforces use > of https. As far as I can tell the netbeans.apidesign.org site (kindly > hosted by Jaroslav Tulach) supports BOTH http and https. > > Lars > > On Thu, Sep 22, 2022 a

Re: Netbeans Application project/Maven configuration issue

2022-09-22 Thread Lars Bruun-Hansen
Try using https://netbeans.apidesign.org/maven2/ (meaning using https, not http) The https://netbeans.apache.org/about/oracle-transition.html document should be updated now that we are in a world where Maven enforces use of https. As far as I can tell the netbeans.apidesign.org site (kindly

Netbeans Application project/Maven configuration issue

2022-09-22 Thread Amitabh Choudhury
Hi Have installed Netbeans IDE 14. Started new "Netbeans Application" project (Maven) Got http-blocker issue. Resolved. Then started using Maven-3.8.1. Then got following issue.. --- Failed to execute goal on project NetbeansApplicationTest2-app: Could not resolve dependencies f

Re: Netbeans Application/Maven configuration and memory issue

2022-09-18 Thread Amitabh Choudhury
Thanks. Will do. On Sun, Sep 18, 2022 at 10:46 PM Ernie Rael wrote: > Note the: > > maven-default-http-blocker: (http://0.0.0.0/) > > You can google about that. Fix the issue you have, or use an older > version of maven > > -ernie > > On 9/18/22 9:57 AM, A

Re: Netbeans Application/Maven configuration and memory issue

2022-09-18 Thread Ernie Rael
Note the: maven-default-http-blocker: (http://0.0.0.0/) You can google about that. Fix the issue you have, or use an older version of maven -ernie On 9/18/22 9:57 AM, Amitabh Choudhury wrote: Hi Have installed Netbeans IDE 14. Started new "Netbeans Application" proj

Netbeans Application/Maven configuration and memory issue

2022-09-18 Thread Amitabh Choudhury
Hi Have installed Netbeans IDE 14. Started new "Netbeans Application" project (Maven) Following is a snapshot of build error log messages. Mostly seems to be Build time memory issues. Please help to configure Netbeans IDE 14 to build and run "Netbeans Application" Platfo

OSGI multi-module Maven example?

2022-09-16 Thread Will Hartung
Does anyone have an OSGI multi-module Maven example? Specifically I'm looking to a typical mutli-module maven project, where there's a "main" project, with "libraries", which are in the submodules. But the "libraries" are OSGI modules, and the "main" proj

  1   2   3   4   5   6   >