This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 227437 - Unchanging the files of projects
Summary: Unchanging the files of projects
Status: RESOLVED INCOMPLETE
Alias: None
Product: projects
Classification: Unclassified
Component: Maven (show other bugs)
Version: 7.2.1
Hardware: PC Windows 7
: P1 normal (vote)
Assignee: Milos Kleint
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-13 21:43 UTC by TrojanMyth
Modified: 2013-03-20 10:33 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Sample Pom (6.32 KB, text/xml)
2013-03-14 18:15 UTC, TrojanMyth
Details
Maven Settings (9.98 KB, text/xml)
2013-03-14 18:24 UTC, TrojanMyth
Details

Note You need to log in before you can comment on or make changes to this bug.
Description TrojanMyth 2013-03-13 21:43:56 UTC
Turkish
-----------------------------------------------------
Merhabalar; 

Netbeans maven ile yaratılmış java projelerim mevcut. Projemin içindeki dosyaları düzenliyor ve compile ediyorum ama son halini alması gerekirken ilk hallerini alıyor ve jar içine onu kopyalıyor. Bu problemi nasıl çözebilirim.


Saygılarımla

English
-----------------------------------------------------
Dear All;

I have java projects generated with Netbeans Maven. I editing file in my projects and compiling but it becomes its first conditions instead of last condition and copies in jar. How can i solve this problem.....

Best Regards

OS Type : Windows Server 2012 64 Bit Turkish.
Comment 1 Milos Kleint 2013-03-14 05:34:42 UTC
I have problems understanding the issue here. Do you have steps to reproduce or a sample project? Do you have a Netbeans problem or Maven problem?
Comment 2 TrojanMyth 2013-03-14 18:15:22 UTC
Created attachment 132621 [details]
Sample Pom
Comment 3 TrojanMyth 2013-03-14 18:24:22 UTC
Created attachment 132622 [details]
Maven Settings
Comment 4 TrojanMyth 2013-03-14 18:29:13 UTC
My Problem with Maven Projects (on Netbeans).

I want to explain step by step.

1- I create maven project with archtype (See:Sample Pom Attachment)
2- I am developing code and making my first build.
3- Maven creates a jar in target folder.
4- I am editing my code and clean and build or build.
5- [ERROR] But the code and xml files dont change in jar content.

I think this problem comes through cache system. I dont know but maybe my maven settings. 

This problem is so annoing. You are developing a code and making build, oopps! it doesnt work! why? becaouse your code hasnt changed; still old state.

How can i solve this problem please help.
Comment 5 Milos Kleint 2013-03-14 18:37:20 UTC
(In reply to comment #4)
> My Problem with Maven Projects (on Netbeans).
> 
> I want to explain step by step.
> 
> 1- I create maven project with archtype (See:Sample Pom Attachment)
> 2- I am developing code and making my first build.
> 3- Maven creates a jar in target folder.
> 4- I am editing my code and clean and build or build.
> 5- [ERROR] But the code and xml files dont change in jar content.
> 

The only moving part that is IDE specific here is Compile on Save feature. Everything else is handled by stock maven when it comes to building things. Please try disabling Compile on save on Compile panel in the project customizer. In 7.2 it's on by default, however it's off in stock 7.3. It's possibly that in-sync class files and resources confuse the gwt plugin or some other plugin.
Comment 6 Milos Kleint 2013-03-20 10:33:25 UTC
please make sure compile on save is off for all affected projects.
 if the problem persists, reopen the issue, thanks.