RE: [EXTERNAL] Re: Implementation dependency in a maven module

2021-11-18 Thread Eymeric VIEUILLE
Ok. My last post ! I found the solution. You have to put it in the pom file of 
the module using implementation dependency :


org.apache.netbeans.utilities
nbm-maven-plugin
true


testmodule




org.netbeans.modules:org-netbeans-core-windows
impl





…..

…

org.netbeans.modules
org-netbeans-core-windows
${netbeans.version}



And its ok : you have access to classes inside core-windows module.

Thx for your help.


RE: [EXTERNAL] Re: Implementation dependency in a maven module

2021-11-18 Thread Eymeric VIEUILLE
I don’t know if it helps but when i put the following in my pom.xml :


org.apache.netbeans.utilities
nbm-maven-plugin
true

warn

eu.mbda.ccm.testmodule




org.netbeans.modules:org-netbeans-core-windows
impl
org-netbeans-core-windows/2.81.1 > 
1




   

It looks better (even if I’m not sure) :

-The module compiles

-I’ve got the following error when compiling the app project :
Some included modules/bundles depend on these codenamebases but they are not 
included. The application will fail starting up. The missing codenamebases are:
   org-netbeans-core-windows  ref: [eu.mbda.ccm.TestModule]

Any idea ?

De : Eymeric VIEUILLE 
Envoyé : jeudi 18 novembre 2021 14:12
À : Netbeans mailing list (users@netbeans.apache.org) 

Objet : [Newsletter] RE: [EXTERNAL] Re: Implementation dependency in a maven 
module

Another source seems to mean that the moduleDependencies tag shall be in a 
module.xml file : 
https://dev.platform.netbeans.narkive.com/Dbfw7dYk/module-dependency-has-friend-dependency

But this file was not created at module creation…so maybe it was available only 
on previous versions ?

De : Eymeric VIEUILLE 
mailto:evieui...@sii.fr.INVALID>>
Envoyé : jeudi 18 novembre 2021 10:43
À : Netbeans mailing list 
(users@netbeans.apache.org<mailto:users@netbeans.apache.org>) 
mailto:users@netbeans.apache.org>>
Objet : [Newsletter] RE: [EXTERNAL] Re: Implementation dependency in a maven 
module

Hi,

Sorry for the response delay.

Probably it is the nbm-maven-plugin version. As a consequence, i tried the 
following :


org.apache.netbeans.utilities
nbm-maven-plugin
true

warn

eu.mbda.ccm.testmodule




org.netbeans.modules:org-netbeans-core-windows
impl







org.netbeans.modules
org-netbeans-core-windows
RELEASE121
provided



The project compiles but I still have a ClassNotFoundException for the class 
NbSheet inside core-windows at application run. It is as if the implementation 
dependency was not considered.

De : David Green mailto:dgreen...@gmail.com>>
Envoyé : lundi 15 novembre 2021 16:42
À : Eymeric VIEUILLE mailto:evieui...@sii.fr>>; Netbeans 
mailing list (users@netbeans.apache.org<mailto:users@netbeans.apache.org>) 
mailto:users@netbeans.apache.org>>
Objet : RE: [EXTERNAL] Re: Implementation dependency in a maven module

Is the document referring to the version 
org.apache.netbeans.utilities:nbm-maven-plugin (or of Maven) rather than 
maven-jar-plugin?

On Nov 15, 2021 at 9:12:28 AM, Eymeric VIEUILLE 
mailto:evieui...@sii.fr>> wrote:
Hi,

Thx for the answer.

Like said before, I’m looking for a way to add an implementation dependency. I 
found this :
http://bits.netbeans.org/mavenutilities/nbm-maven-plugin/manifest-mojo.html

The tag « moduleDependencies » seems to do what I am expecting but it is said 
that this is only available from version 3.8
With older version of maven-jar-plugin, an error is present in pom file. With 
later, the error disappears but when compiling i get :
Plugin org.apache.maven.plugins:maven-jar-plugin:3.14 or one of its 
dependencies could not be resolved: Failure to find 
org.apache.maven.plugins:maven-jar-plugin:jar:3.14 in 
https://repo.maven.apache.org/maven2/ was cached in the local repository, 
resolution will not be reattempted until the update interval of mirror1 has 
elapsed or updates are forced -> [Help 1]


De : David Green mailto:dgreen...@gmail.com>>
Envoyé : lundi 15 novembre 2021 15:02
À : Netbeans mailing list 
(users@netbeans.apache.org<mailto:users@netbeans.apache.org>) 
mailto:users@netbeans.apache.org>>; Eymeric VIEUILLE 
mailto:evieui...@sii.fr>>
Objet : [EXTERNAL] Re: Implementation dependency in a maven module

Hi,

I am not a Maven expert but it looks like 3.2.1 is latest in github  
apache/maven-jar-plugin (see pom.xml file).   Are you perhaps wanting 3.1.4 
instead of 3.14?

Dave

On Mon, Nov 15, 2021 at 7:39 AM Eymeric VIEUILLE 
mailto:evieui...@sii.fr.invalid>> wrote:
Hi again !

Nobody has answers for it ?

Envoyé : lundi 8 novembre 2021 15:29
À : Netbeans mailing list 
(users@netbeans.apache.org<mailto:users@netbeans.apache.org>) 
mailto:users@netbeans.apache.org>>
O

RE: [EXTERNAL] Re: Implementation dependency in a maven module

2021-11-18 Thread Eymeric VIEUILLE
Another source seems to mean that the moduleDependencies tag shall be in a 
module.xml file : 
https://dev.platform.netbeans.narkive.com/Dbfw7dYk/module-dependency-has-friend-dependency

But this file was not created at module creation…so maybe it was available only 
on previous versions ?

De : Eymeric VIEUILLE 
Envoyé : jeudi 18 novembre 2021 10:43
À : Netbeans mailing list (users@netbeans.apache.org) 

Objet : [Newsletter] RE: [EXTERNAL] Re: Implementation dependency in a maven 
module

Hi,

Sorry for the response delay.

Probably it is the nbm-maven-plugin version. As a consequence, i tried the 
following :


org.apache.netbeans.utilities
nbm-maven-plugin
true

warn

eu.mbda.ccm.testmodule




org.netbeans.modules:org-netbeans-core-windows
impl







org.netbeans.modules
org-netbeans-core-windows
RELEASE121
provided



The project compiles but I still have a ClassNotFoundException for the class 
NbSheet inside core-windows at application run. It is as if the implementation 
dependency was not considered.

De : David Green mailto:dgreen...@gmail.com>>
Envoyé : lundi 15 novembre 2021 16:42
À : Eymeric VIEUILLE mailto:evieui...@sii.fr>>; Netbeans 
mailing list (users@netbeans.apache.org<mailto:users@netbeans.apache.org>) 
mailto:users@netbeans.apache.org>>
Objet : RE: [EXTERNAL] Re: Implementation dependency in a maven module

Is the document referring to the version 
org.apache.netbeans.utilities:nbm-maven-plugin (or of Maven) rather than 
maven-jar-plugin?

On Nov 15, 2021 at 9:12:28 AM, Eymeric VIEUILLE 
mailto:evieui...@sii.fr>> wrote:
Hi,

Thx for the answer.

Like said before, I’m looking for a way to add an implementation dependency. I 
found this :
http://bits.netbeans.org/mavenutilities/nbm-maven-plugin/manifest-mojo.html

The tag « moduleDependencies » seems to do what I am expecting but it is said 
that this is only available from version 3.8
With older version of maven-jar-plugin, an error is present in pom file. With 
later, the error disappears but when compiling i get :
Plugin org.apache.maven.plugins:maven-jar-plugin:3.14 or one of its 
dependencies could not be resolved: Failure to find 
org.apache.maven.plugins:maven-jar-plugin:jar:3.14 in 
https://repo.maven.apache.org/maven2/ was cached in the local repository, 
resolution will not be reattempted until the update interval of mirror1 has 
elapsed or updates are forced -> [Help 1]


De : David Green mailto:dgreen...@gmail.com>>
Envoyé : lundi 15 novembre 2021 15:02
À : Netbeans mailing list 
(users@netbeans.apache.org<mailto:users@netbeans.apache.org>) 
mailto:users@netbeans.apache.org>>; Eymeric VIEUILLE 
mailto:evieui...@sii.fr>>
Objet : [EXTERNAL] Re: Implementation dependency in a maven module

Hi,

I am not a Maven expert but it looks like 3.2.1 is latest in github  
apache/maven-jar-plugin (see pom.xml file).   Are you perhaps wanting 3.1.4 
instead of 3.14?

Dave

On Mon, Nov 15, 2021 at 7:39 AM Eymeric VIEUILLE 
mailto:evieui...@sii.fr.invalid>> wrote:
Hi again !

Nobody has answers for it ?

Envoyé : lundi 8 novembre 2021 15:29
À : Netbeans mailing list 
(users@netbeans.apache.org<mailto:users@netbeans.apache.org>) 
mailto:users@netbeans.apache.org>>
Objet : Implementation dependency in a maven module

Hi !

I am doing the migration of a netbeans based application from Ant to Maven 
(Netbeans 12.0 version)

In our project, we had implementation dependencies on netbeans modules 
(core-windows for example). In the old way, no problem : on the dependency 
core-windows, you could right click and go in « Edit » menu to select « 
Implementation Version » and set the expected « Major Release Version » value.

Now with Maven, in my pom.xml, i added :

org.apache.maven.plugins
maven-jar-plugin
3.14



${project.build.outputDirectory}/META-INF/MANIFEST.MF


framework/api/layer.xml




org.netbeans.modules:org-netbeans-core-windows
impl






I get the following error when compiling :
Plugin org.apache.maven.plugins:maven-jar-plugin:3.14 or one of its 
dependencies could not be resolved: Failure to find 
org.apache.maven.plugins:maven-jar-plugin:jar:3.14 in 
https://re

RE: [EXTERNAL] Re: Implementation dependency in a maven module

2021-11-18 Thread Eymeric VIEUILLE
Hi,

What do you mean by Dependency Management ?

De : Bradley Willcott 
Envoyé : mercredi 17 novembre 2021 05:02
À : Eymeric VIEUILLE ; Netbeans mailing list 
(users@netbeans.apache.org) 
Objet : [EXTERNAL] Re: Implementation dependency in a maven module

Hi,
Do you have Dependency Management in your pom.xml?
On 15/11/21 21:39, Eymeric VIEUILLE wrote:
Hi again !

Nobody has answers for it ?

Envoyé : lundi 8 novembre 2021 15:29
À : Netbeans mailing list 
(users@netbeans.apache.org<mailto:users@netbeans.apache.org>) 
<mailto:users@netbeans.apache.org>
Objet : Implementation dependency in a maven module

Hi !

I am doing the migration of a netbeans based application from Ant to Maven 
(Netbeans 12.0 version)

In our project, we had implementation dependencies on netbeans modules 
(core-windows for example). In the old way, no problem : on the dependency 
core-windows, you could right click and go in « Edit » menu to select « 
Implementation Version » and set the expected « Major Release Version » value.

Now with Maven, in my pom.xml, i added :

org.apache.maven.plugins
maven-jar-plugin
3.14



${project.build.outputDirectory}/META-INF/MANIFEST.MF


framework/api/layer.xml




org.netbeans.modules:org-netbeans-core-windows
impl






I get the following error when compiling :
Plugin org.apache.maven.plugins:maven-jar-plugin:3.14 or one of its 
dependencies could not be resolved: Failure to find 
org.apache.maven.plugins:maven-jar-plugin:jar:3.14 in 
https://repo.maven.apache.org/maven2/ was cached in the local repository, 
resolution will not be reattempted until the update interval of mirror1 has 
elapsed or updates are forced -> [Help 1]

The 3.14 version of maven-jar-plugin is effectively not available on this 
repository (only olders < 3.2). Am i pointing at the wrong maven repository ?

Moreover, I think i’m doing it the wrong way for adding the implementation 
dependency properly in my project. Can you tell me how i can do it ?



RE: [EXTERNAL] Re: Implementation dependency in a maven module

2021-11-18 Thread Eymeric VIEUILLE
Hi,

Sorry for the response delay.

Probably it is the nbm-maven-plugin version. As a consequence, i tried the 
following :


org.apache.netbeans.utilities
nbm-maven-plugin
true

warn

eu.mbda.ccm.testmodule




org.netbeans.modules:org-netbeans-core-windows
impl







org.netbeans.modules
org-netbeans-core-windows
RELEASE121
provided



The project compiles but I still have a ClassNotFoundException for the class 
NbSheet inside core-windows at application run. It is as if the implementation 
dependency was not considered.

De : David Green 
Envoyé : lundi 15 novembre 2021 16:42
À : Eymeric VIEUILLE ; Netbeans mailing list 
(users@netbeans.apache.org) 
Objet : RE: [EXTERNAL] Re: Implementation dependency in a maven module

Is the document referring to the version 
org.apache.netbeans.utilities:nbm-maven-plugin (or of Maven) rather than 
maven-jar-plugin?

On Nov 15, 2021 at 9:12:28 AM, Eymeric VIEUILLE 
mailto:evieui...@sii.fr>> wrote:
Hi,

Thx for the answer.

Like said before, I’m looking for a way to add an implementation dependency. I 
found this :
http://bits.netbeans.org/mavenutilities/nbm-maven-plugin/manifest-mojo.html

The tag « moduleDependencies » seems to do what I am expecting but it is said 
that this is only available from version 3.8
With older version of maven-jar-plugin, an error is present in pom file. With 
later, the error disappears but when compiling i get :
Plugin org.apache.maven.plugins:maven-jar-plugin:3.14 or one of its 
dependencies could not be resolved: Failure to find 
org.apache.maven.plugins:maven-jar-plugin:jar:3.14 in 
https://repo.maven.apache.org/maven2/ was cached in the local repository, 
resolution will not be reattempted until the update interval of mirror1 has 
elapsed or updates are forced -> [Help 1]


De : David Green mailto:dgreen...@gmail.com>>
Envoyé : lundi 15 novembre 2021 15:02
À : Netbeans mailing list 
(users@netbeans.apache.org<mailto:users@netbeans.apache.org>) 
mailto:users@netbeans.apache.org>>; Eymeric VIEUILLE 
mailto:evieui...@sii.fr>>
Objet : [EXTERNAL] Re: Implementation dependency in a maven module

Hi,

I am not a Maven expert but it looks like 3.2.1 is latest in github  
apache/maven-jar-plugin (see pom.xml file).   Are you perhaps wanting 3.1.4 
instead of 3.14?

Dave

On Mon, Nov 15, 2021 at 7:39 AM Eymeric VIEUILLE 
mailto:evieui...@sii.fr.invalid>> wrote:
Hi again !

Nobody has answers for it ?

Envoyé : lundi 8 novembre 2021 15:29
À : Netbeans mailing list 
(users@netbeans.apache.org<mailto:users@netbeans.apache.org>) 
mailto:users@netbeans.apache.org>>
Objet : Implementation dependency in a maven module

Hi !

I am doing the migration of a netbeans based application from Ant to Maven 
(Netbeans 12.0 version)

In our project, we had implementation dependencies on netbeans modules 
(core-windows for example). In the old way, no problem : on the dependency 
core-windows, you could right click and go in « Edit » menu to select « 
Implementation Version » and set the expected « Major Release Version » value.

Now with Maven, in my pom.xml, i added :

org.apache.maven.plugins
maven-jar-plugin
3.14



${project.build.outputDirectory}/META-INF/MANIFEST.MF


framework/api/layer.xml




org.netbeans.modules:org-netbeans-core-windows
impl






I get the following error when compiling :
Plugin org.apache.maven.plugins:maven-jar-plugin:3.14 or one of its 
dependencies could not be resolved: Failure to find 
org.apache.maven.plugins:maven-jar-plugin:jar:3.14 in 
https://repo.maven.apache.org/maven2/ was cached in the local repository, 
resolution will not be reattempted until the update interval of mirror1 has 
elapsed or updates are forced -> [Help 1]

The 3.14 version of maven-jar-plugin is effectively not available on this 
repository (only olders < 3.2). Am i pointing at the wrong maven repository ?

Moreover, I think i’m doing it the wrong way for adding the implementation 
dependency properly in my project. Can you tell me how i can do it ?
--
Sent from a mobile device. Please excuse any typos.


Re: Implementation dependency in a maven module

2021-11-16 Thread Bradley Willcott

Hi,
Do you have Dependency Management in your pom.xml?

On 15/11/21 21:39, Eymeric VIEUILLE wrote:


Hi again !

Nobody has answers for it ?

*Envoyé :*lundi 8 novembre 2021 15:29
*À :* Netbeans mailing list (users@netbeans.apache.org) 


*Objet :* Implementation dependency in a maven module

Hi !

I am doing the migration of a netbeans based application from Ant to 
Maven (Netbeans 12.0 version)


In our project, we had implementation dependencies on netbeans modules 
(core-windows for example). In the old way, no problem : on the 
dependency core-windows, you could right click and go in « Edit » menu 
to select « Implementation Version » and set the expected « Major 
Release Version » value.


Now with Maven, in my pom.xml, i added :

    

org.apache.maven.plugins

maven-jar-plugin

3.14

    

    

${project.build.outputDirectory}/META-INF/MANIFEST.MF



framework/api/layer.xml







org.netbeans.modules:org-netbeans-core-windows

impl





    

    

    

I get the following error when compiling :

Plugin org.apache.maven.plugins:maven-jar-plugin:3.14 or one of its 
dependencies could not be resolved: Failure to find 
org.apache.maven.plugins:maven-jar-plugin:jar:3.14 in 
https://repo.maven.apache.org/maven2/ was cached in the local 
repository, resolution will not be reattempted until the update 
interval of mirror1 has elapsed or updates are forced -> [Help 1]


The 3.14 version of maven-jar-plugin is effectively not available on 
this repository (only olders < 3.2). Am i pointing at the wrong maven 
repository ?


Moreover, I think i’m doing it the wrong way for adding the 
implementation dependency properly in my project. Can you tell me how 
i can do it ?




RE: [EXTERNAL] Re: Implementation dependency in a maven module

2021-11-15 Thread David Green
Is the document referring to the
version org.apache.netbeans.utilities:nbm-maven-plugin (or of Maven) rather
than maven-jar-plugin?

On Nov 15, 2021 at 9:12:28 AM, Eymeric VIEUILLE  wrote:

> Hi,
>
>
> Thx for the answer.
>
>
>
> Like said before, I’m looking for a way to add an implementation
> dependency. I found this :
>
> http://bits.netbeans.org/mavenutilities/nbm-maven-plugin/manifest-mojo.html
>
>
>
> The tag « moduleDependencies » seems to do what I am expecting but it is
> said that this is only available from version 3.8
>
> With older version of maven-jar-plugin, an error is present in pom file.
> With later, the error disappears but when compiling i get :
>
> Plugin org.apache.maven.plugins:maven-jar-plugin:3.14 or one of its
> dependencies could not be resolved: Failure to find
> org.apache.maven.plugins:maven-jar-plugin:jar:3.14 in
> https://repo.maven.apache.org/maven2/ was cached in the local repository,
> resolution will not be reattempted until the update interval of mirror1 has
> elapsed or updates are forced -> [Help 1]
>
>
>
>
>
> *De :* David Green 
> *Envoyé :* lundi 15 novembre 2021 15:02
> *À :* Netbeans mailing list (users@netbeans.apache.org) <
> users@netbeans.apache.org>; Eymeric VIEUILLE 
> *Objet :* [EXTERNAL] Re: Implementation dependency in a maven module
>
>
>
> Hi,
>
>
>
> I am not a Maven expert but it looks like 3.2.1 is latest in github
>  apache/maven-jar-plugin (see pom.xml file).   Are you perhaps wanting
> 3.1.4 instead of 3.14?
>
>
>
> Dave
>
>
>
> On Mon, Nov 15, 2021 at 7:39 AM Eymeric VIEUILLE 
> wrote:
>
> Hi again !
>
>
>
> Nobody has answers for it ?
>
>
>
> *Envoyé :* lundi 8 novembre 2021 15:29
> *À :* Netbeans mailing list (users@netbeans.apache.org) <
> users@netbeans.apache.org>
> *Objet :* Implementation dependency in a maven module
>
>
>
> Hi !
>
>
>
> I am doing the migration of a netbeans based application from Ant to Maven
> (Netbeans 12.0 version)
>
>
>
> In our project, we had implementation dependencies on netbeans modules
> (core-windows for example). In the old way, no problem : on the dependency
> core-windows, you could right click and go in « Edit » menu to select
> « Implementation Version » and set the expected « Major Release Version »
> value.
>
>
>
> Now with Maven, in my pom.xml, i added :
>
> 
>
> org.apache.maven.plugins
>
> maven-jar-plugin
>
> 3.14
>
> 
>
> 
>
>
> ${project.build.outputDirectory}/META-INF/MANIFEST.MF
>
> 
>
>
> framework/api/layer.xml
>
> 
>
> 
>
> 
>
>
> org.netbeans.modules:org-netbeans-core-windows
>
> impl
>
> 
>
> 
>
> 
>
> 
>
> 
>
>
>
> I get the following error when compiling :
>
> Plugin org.apache.maven.plugins:maven-jar-plugin:3.14 or one of its
> dependencies could not be resolved: Failure to find
> org.apache.maven.plugins:maven-jar-plugin:jar:3.14 in
> https://repo.maven.apache.org/maven2/ was cached in the local repository,
> resolution will not be reattempted until the update interval of mirror1 has
> elapsed or updates are forced -> [Help 1]
>
>
>
> The 3.14 version of maven-jar-plugin is effectively not available on this
> repository (only olders < 3.2). Am i pointing at the wrong maven
> repository ?
>
>
>
> Moreover, I think i’m doing it the wrong way for adding the implementation
> dependency properly in my project. Can you tell me how i can do it ?
>
> --
>
> Sent from a mobile device. Please excuse any typos.
>


RE: [EXTERNAL] Re: Implementation dependency in a maven module

2021-11-15 Thread Eymeric VIEUILLE
Hi,

Thx for the answer.

Like said before, I’m looking for a way to add an implementation dependency. I 
found this :
http://bits.netbeans.org/mavenutilities/nbm-maven-plugin/manifest-mojo.html

The tag « moduleDependencies » seems to do what I am expecting but it is said 
that this is only available from version 3.8
With older version of maven-jar-plugin, an error is present in pom file. With 
later, the error disappears but when compiling i get :
Plugin org.apache.maven.plugins:maven-jar-plugin:3.14 or one of its 
dependencies could not be resolved: Failure to find 
org.apache.maven.plugins:maven-jar-plugin:jar:3.14 in 
https://repo.maven.apache.org/maven2/ was cached in the local repository, 
resolution will not be reattempted until the update interval of mirror1 has 
elapsed or updates are forced -> [Help 1]


De : David Green 
Envoyé : lundi 15 novembre 2021 15:02
À : Netbeans mailing list (users@netbeans.apache.org) 
; Eymeric VIEUILLE 
Objet : [EXTERNAL] Re: Implementation dependency in a maven module

Hi,

I am not a Maven expert but it looks like 3.2.1 is latest in github  
apache/maven-jar-plugin (see pom.xml file).   Are you perhaps wanting 3.1.4 
instead of 3.14?

Dave

On Mon, Nov 15, 2021 at 7:39 AM Eymeric VIEUILLE 
mailto:evieui...@sii.fr.invalid>> wrote:
Hi again !

Nobody has answers for it ?

Envoyé : lundi 8 novembre 2021 15:29
À : Netbeans mailing list 
(users@netbeans.apache.org<mailto:users@netbeans.apache.org>) 
mailto:users@netbeans.apache.org>>
Objet : Implementation dependency in a maven module

Hi !

I am doing the migration of a netbeans based application from Ant to Maven 
(Netbeans 12.0 version)

In our project, we had implementation dependencies on netbeans modules 
(core-windows for example). In the old way, no problem : on the dependency 
core-windows, you could right click and go in « Edit » menu to select « 
Implementation Version » and set the expected « Major Release Version » value.

Now with Maven, in my pom.xml, i added :

org.apache.maven.plugins
maven-jar-plugin
3.14



${project.build.outputDirectory}/META-INF/MANIFEST.MF


framework/api/layer.xml




org.netbeans.modules:org-netbeans-core-windows
impl






I get the following error when compiling :
Plugin org.apache.maven.plugins:maven-jar-plugin:3.14 or one of its 
dependencies could not be resolved: Failure to find 
org.apache.maven.plugins:maven-jar-plugin:jar:3.14 in 
https://repo.maven.apache.org/maven2/ was cached in the local repository, 
resolution will not be reattempted until the update interval of mirror1 has 
elapsed or updates are forced -> [Help 1]

The 3.14 version of maven-jar-plugin is effectively not available on this 
repository (only olders < 3.2). Am i pointing at the wrong maven repository ?

Moreover, I think i’m doing it the wrong way for adding the implementation 
dependency properly in my project. Can you tell me how i can do it ?
--
Sent from a mobile device. Please excuse any typos.


Re: Implementation dependency in a maven module

2021-11-15 Thread David Green
Hi,

I am not a Maven expert but it looks like 3.2.1 is latest in github
 apache/maven-jar-plugin (see pom.xml file).   Are you perhaps wanting
3.1.4 instead of 3.14?

Dave

On Mon, Nov 15, 2021 at 7:39 AM Eymeric VIEUILLE 
wrote:

> Hi again !
>
>
>
> Nobody has answers for it ?
>
>
>
> *Envoyé :* lundi 8 novembre 2021 15:29
> *À :* Netbeans mailing list (users@netbeans.apache.org) <
> users@netbeans.apache.org>
> *Objet :* Implementation dependency in a maven module
>
>
>
> Hi !
>
>
>
> I am doing the migration of a netbeans based application from Ant to Maven
> (Netbeans 12.0 version)
>
>
>
> In our project, we had implementation dependencies on netbeans modules
> (core-windows for example). In the old way, no problem : on the dependency
> core-windows, you could right click and go in « Edit » menu to select
> « Implementation Version » and set the expected « Major Release Version »
> value.
>
>
>
> Now with Maven, in my pom.xml, i added :
>
> 
>
> org.apache.maven.plugins
>
> maven-jar-plugin
>
> 3.14
>
> 
>
> 
>
>
> ${project.build.outputDirectory}/META-INF/MANIFEST.MF
>
> 
>
>
> framework/api/layer.xml
>
> 
>
> 
>
> 
>
>
> org.netbeans.modules:org-netbeans-core-windows
>
> impl
>
> 
>
> 
>
> 
>
> 
>
> 
>
>
>
> I get the following error when compiling :
>
> Plugin org.apache.maven.plugins:maven-jar-plugin:3.14 or one of its
> dependencies could not be resolved: Failure to find
> org.apache.maven.plugins:maven-jar-plugin:jar:3.14 in
> https://repo.maven.apache.org/maven2/ was cached in the local repository,
> resolution will not be reattempted until the update interval of mirror1 has
> elapsed or updates are forced -> [Help 1]
>
>
>
> The 3.14 version of maven-jar-plugin is effectively not available on this
> repository (only olders < 3.2). Am i pointing at the wrong maven
> repository ?
>
>
>
> Moreover, I think i’m doing it the wrong way for adding the implementation
> dependency properly in my project. Can you tell me how i can do it ?
>
-- 
Sent from a mobile device. Please excuse any typos.


RE: Implementation dependency in a maven module

2021-11-15 Thread Eymeric VIEUILLE
Hi again !

Nobody has answers for it ?

Envoyé : lundi 8 novembre 2021 15:29
À : Netbeans mailing list (users@netbeans.apache.org) 

Objet : Implementation dependency in a maven module

Hi !

I am doing the migration of a netbeans based application from Ant to Maven 
(Netbeans 12.0 version)

In our project, we had implementation dependencies on netbeans modules 
(core-windows for example). In the old way, no problem : on the dependency 
core-windows, you could right click and go in « Edit » menu to select « 
Implementation Version » and set the expected « Major Release Version » value.

Now with Maven, in my pom.xml, i added :

org.apache.maven.plugins
maven-jar-plugin
3.14



${project.build.outputDirectory}/META-INF/MANIFEST.MF


framework/api/layer.xml




org.netbeans.modules:org-netbeans-core-windows
impl






I get the following error when compiling :
Plugin org.apache.maven.plugins:maven-jar-plugin:3.14 or one of its 
dependencies could not be resolved: Failure to find 
org.apache.maven.plugins:maven-jar-plugin:jar:3.14 in 
https://repo.maven.apache.org/maven2/ was cached in the local repository, 
resolution will not be reattempted until the update interval of mirror1 has 
elapsed or updates are forced -> [Help 1]

The 3.14 version of maven-jar-plugin is effectively not available on this 
repository (only olders < 3.2). Am i pointing at the wrong maven repository ?

Moreover, I think i'm doing it the wrong way for adding the implementation 
dependency properly in my project. Can you tell me how i can do it ?


Implementation dependency in a maven module

2021-11-08 Thread Eymeric VIEUILLE
Hi !

I am doing the migration of a netbeans based application from Ant to Maven 
(Netbeans 12.0 version)

In our project, we had implementation dependencies on netbeans modules 
(core-windows for example). In the old way, no problem : on the dependency 
core-windows, you could right click and go in < Edit > menu to select < 
Implementation Version > and set the expected < Major Release Version > value.

Now with Maven, in my pom.xml, i added :

org.apache.maven.plugins
maven-jar-plugin
3.14



${project.build.outputDirectory}/META-INF/MANIFEST.MF


framework/api/layer.xml




org.netbeans.modules:org-netbeans-core-windows
impl






I get the following error when compiling :
Plugin org.apache.maven.plugins:maven-jar-plugin:3.14 or one of its 
dependencies could not be resolved: Failure to find 
org.apache.maven.plugins:maven-jar-plugin:jar:3.14 in 
https://repo.maven.apache.org/maven2/ was cached in the local repository, 
resolution will not be reattempted until the update interval of mirror1 has 
elapsed or updates are forced -> [Help 1]

The 3.14 version of maven-jar-plugin is effectively not available on this 
repository (only olders < 3.2). Am i pointing at the wrong maven repository ?

Moreover, I think i'm doing it the wrong way for adding the implementation 
dependency properly in my project. Can you tell me how i can do it ?