NetBeans Forums
| View previous topic :: View next topic |
| Author |
Message |
Oleg Mayevskiy Posted via mailing list.
|
Posted: Fri Sep 03, 2010 4:41 pm Post subject: netbeans 6.9.1 + maven project |
|
|
Hello.
I am using netbeans 6.9.1 and develop a maven project.
The project structure is following:
Parent pom
<![if !supportLists]>- <![endif]>With many modules depending on parent pom
Well what now is the problem
Everey time I make a release, I call the release plugin, which means all versions of all modules are changed e.g. from 123-SNAPSHOT to 124-SNAPSHOT (because 124 is next release version)
Now all modules are reloaded in netbeans with 1000 of errors,because netbeans cannot handle the new versions.
No clean, no clean and build, no build no reload all modules help me to resolve this problem.
I most go inside each module and inside each “corrupt” file.
Once I open such a file, netbeans reloads it now “really”, finds no error, and now such a file is marked as “green”.
This is a very terrible behavior,
Because after each release to make netbeans happy, I must reopen a bulk of files to let all look god.
Maybe I do something wrong, if so, please tell me
Best regards
Oleg Mayevskiy |
|
| Back to top |
|
 |
digital.discuss
Joined: 13 Jun 2010 Posts: 35
|
Posted: Fri Sep 03, 2010 5:27 pm Post subject: netbeans 6.9.1 + maven project |
|
|
Oleg Mayevskiy said:
| Quote: | Because after each release to make netbeans happy, I must reopen a bulk of
files to let all look god.
|
What happens if you just close the project and reopen it?/MB |
|
| Back to top |
|
 |
Antonin Nebuzelsky Posted via mailing list.
|
Posted: Mon Sep 13, 2010 9:00 am Post subject: netbeans 6.9.1 + maven project |
|
|
Hi,
I tried with versions plugin because I don't have a project at hand
where I could try release plugin and after increasing version (e.g. from
1.0-SNAPSHOT to 2.0-SNAPSHOT) of a parent and all projects under it,
NetBeans does not have any problem.
I ran the following command on the command line in the folder of the
parent project:
mvn versions:set -DnewVersion=2.0-SNAPSHOT
then I got back to NetBeans and after two or three seconds I could see
that NetBeans reloaded the maven projects and shows 2.0-SNAPSHOT version
in tooltip on all these project nodes.
Can you check with the versions plugin? When running release plugin, can
you record all changes it has done (e.g. by diff on the vcs) and let me
know?
Thanks
~tonda
On 09/03/2010 06:40 PM, Oleg Mayevskiy wrote:
| Quote: | Hello.
I am using netbeans 6.9.1 and develop a maven project.
The project structure is following:
Parent pom
- With many modules depending on parent pom
Well what now is the problem
Everey time I make a release, I call the release plugin, which means all
versions of all modules are changed e.g. from 123-SNAPSHOT to
124-SNAPSHOT (because 124 is next release version)
Now all modules are reloaded in netbeans with 1000 of errors,because
netbeans cannot handle the new versions.
No clean, no clean and build, no build no reload all modules help me to
resolve this problem.
I most go inside each module and inside each |
|
| Back to top |
|
 |
anebuzelsky Posted via mailing list.
|
Posted: Mon Sep 13, 2010 11:59 pm Post subject: netbeans 6.9.1 + maven project |
|
|
Hi,
I tried with versions plugin because I don't have a project at hand
where I could try release plugin and after increasing version (e.g. from
1.0-SNAPSHOT to 2.0-SNAPSHOT) of a parent and all projects under it,
NetBeans does not have any problem.
I ran the following command on the command line in the folder of the
parent project:
mvn versions:set -DnewVersion=2.0-SNAPSHOT
then I got back to NetBeans and after two or three seconds I could see
that NetBeans reloaded the maven projects and shows 2.0-SNAPSHOT version
in tooltip on all these project nodes.
Can you check with the versions plugin? When running release plugin, can
you record all changes it has done (e.g. by diff on the vcs) and let me
know?
Thanks
~tonda
On 09/03/2010 06:40 PM, Oleg Mayevskiy wrote:
| Quote: | Hello.
I am using netbeans 6.9.1 and develop a maven project.
The project structure is following:
Parent pom
- With many modules depending on parent pom
Well what now is the problem
Everey time I make a release, I call the release plugin, which means all
versions of all modules are changed e.g. from 123-SNAPSHOT to
124-SNAPSHOT (because 124 is next release version)
Now all modules are reloaded in netbeans with 1000 of errors,because
netbeans cannot handle the new versions.
No clean, no clean and build, no build no reload all modules help me to
resolve this problem.
I most go inside each module and inside each |
|
| Back to top |
|
 |
olem
Joined: 22 Sep 2010 Posts: 1
|
Posted: Wed Sep 22, 2010 1:17 pm Post subject: Re: netbeans 6.9.1 + maven project |
|
|
| digital.discuss wrote: | Oleg Mayevskiy said:
| Quote: | Because after each release to make netbeans happy, I must reopen a bulk of
files to let all look god.
|
What happens if you just close the project and reopen it?/MB |
this do not help
also if i close all projects and reload netbeans, my modules are still corrupt
| anebuzelsky wrote: |
I tried with versions plugin because I don't have a project at hand
where I could try release plugin and after increasing version (e.g. from
1.0-SNAPSHOT to 2.0-SNAPSHOT) of a parent and all projects under it,
NetBeans does not have any problem.
|
i don't use versions plugin. the release plugin changes the version too.
the exact mvn commands are:
| Code: | mvn release:prepare
mvn release:perform |
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|
|
|