Re: Why Maven build app always recompiles ?

2023-06-03 Thread Pieter van den Hombergh
it may help to explicitly override the version of the wrapper so it is no
longer a snapshot, the version attribute inherented from the parent.
kind regards,
Pieter


Op ma 22 mei 2023 22:54 schreef Jerome Lelasseux
:

> I did some more testing and discovered mvn -X...
>
> So I used mvn -X compile and mvn -X install to check the differences (it
> seems that the IDE 'Build' action uses the install goal).
>
> I found that only with the install goal the recompilation of my module is
> triggered by this dependency:
> [DEBUG] New dependency detected:
> D:\JeromeDocs\NetBeansProjects\JJazzLab\modules\Guava\target\org-jjazz-guava-1.0-SNAPSHOT.jar
>
> This is just a library wrapper module for the Guava lib, which is built
> first by the reactor plugin. Guava is a dependency of most of the modules,
> hence the general recompilation.
>
> 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/xsd/maven-4.0.0.xsd;>
> 4.0.0
> 
> org.jjazzlab
> jjazzlab-parent
> 1.0-SNAPSHOT
> ../../pom.xml
> 
> org-jjazz-guava
> Guava
> nbm
> 
> 
> 
> org.apache.netbeans.utilities
> nbm-maven-plugin
> 
> 
>
> com.google.common.annotations
>
> com.google.common.base
>
> com.google.common.base.internal
>
> com.google.common.cache
>
> com.google.common.collect
>
> com.google.common.escape
>
> com.google.common.eventbus
>
> com.google.common.graph
>
> com.google.common.hash
>
> com.google.common.html
> com.google.common.io
> 
>
> com.google.common.math
> com.google.common.net
> 
>
> com.google.common.primitives
>
> com.google.common.reflect
>
> com.google.common.util.concurrent
>
> com.google.common.util.concurrent.internal
>
> com.google.common.xml
>
> com.google.thirdparty.publicsuffix
> 
> 
> true
> 
> 
> org.apache.maven.plugins
> maven-jar-plugin
> 
> 
>
> ${project.build.outputDirectory}/META-INF/MANIFEST.MF
> 
> 
> 
> 
> 
> 
> 
> com.google.guava
> guava
> 23.6-jre
> 
> 
> 
> UTF-8
> 
> 
>
>
>
> Jerome
>
>
>
> Le lundi 22 mai 2023 à 11:48:50 UTC+2, Eric Barboni  a
> écrit :
>
>
> 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 
> *Objet :* Why Maven build app always recompiles ?
>
>
>
> 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: Sorting it out?

2023-06-03 Thread Antonio

+1 to have this account removed.

It does not adhere to the code of conduct, and keeps on trying people to 
download malware or something.


Cheers,
Antonio

On 1/6/23 14:47, Scott Palmer wrote:

I’m convinced “Tim” is a bot. Either that or someone that is dealing with some 
mental health issues. (It sends unlikely but I can’t rule it out.)  I suggest 
the account be removed from the mailing list.


-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

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



Re: Adding sqlite-jdbc to Services

2023-06-03 Thread Antonio

Hi,

Some comments below.

On 3/6/23 3:19, Arbol One wrote:

>
> I assumed that by adding the 'sqlite-jdbc-3.30.1.jar' as a [Services 
tab]: Databases > Driver would make the driver global and that my code 
would run just as if I had added it to the [Project tab]: MyApp > 
Libraries sub directory, but that is not the case.


Of course not. Projects (Ant Projects, Maven Projects, Gradle Projects 
etc.) have to specify their dependencies explicitly, so you can pack 
your project (or upload it to a git repository) and send it to a friend, 
or share with other people.


The "Services/Databases/Driver" area is just for your computer, and has 
nothing to do with projects. It's just an IDE tool that you can use to 
connect to a database and quickly run a query, for instance.


In your case, you can right click on 
"Services/Databases/Drivers/SQLite-JDBC" and select "Connect Using...". 
This will allow you to open a connection to a sqlite database on your 
computer and run/test SQL queries in a project-independent window (you 
can use the query tool even if you have no project open). This is an aid 
for the development of your project, so you can test SQL queries 
quickly, but cannot be shared with other people.


Cheers,
Antonio

-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

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