You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by aemm <am...@gmv.com> on 2007/07/11 11:55:35 UTC

Problem compiling files

hi! I have a strange problem while i'm working with my new maven app. I'll
try to explain it:

I move the sorces (.java) from an old "web" project to the new one Maven
project. All was correct. All the source files seems to compile and generate
the corresponding .class files. But it isn't true at all.
When I look at the compiled sources, I saw that some properties added from
the new version of my source code doesn't appear in the compiled code.

For example, in the first version I have 3 properties in my class

package com.package;

public class MyClass {
  private String propOne;
  private String propTwo;
  private String propThree;

  // getters and setters
  .....
}

and the .class file description seems like that:

public class com.package.MyClass {
  private java.lang.String propOne;
  private java.lang.String propTwo;
  private java.lang.String propThree;

  // getters and setters
  ........
}

All is correct here. Now I move the new MyClass.java from the old project to
the new one and the java source now it's like that:

package com.package;

public class MyClass {
  private String propOne;
  private String propTwo;
  private String propThree;
  
  private String newProp;

  // getters and setters
  .....
}

but the .class source description REMAINS IDENTICALLY!!!!!!!!!!!!! The
compiler seems to be blind in front of all the modifications I do to the new
code. I'm a little bit desperate in front of that.

Can anyone help me, please??

Thanks in advance.
-- 
View this message in context: http://www.nabble.com/Problem-compiling-files-tf4060938s177.html#a11537375
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Problem compiling files

Posted by Gisbert Amm <gi...@webde.de>.
How?

aemm wrote:
> problem solved :)
> 
> 
> aemm wrote:
> 
>>hi! I have a strange problem while i'm working with my new maven app. I'll
>>try to explain it:
>>
>>I move the sorces (.java) from an old "web" project to the new one Maven
>>project. All was correct. All the source files seems to compile and
>>generate the corresponding .class files. But it isn't true at all.
>>When I look at the compiled sources, I saw that some properties added from
>>the new version of my source code doesn't appear in the compiled code.
>>
>>For example, in the first version I have 3 properties in my class
>>
>>package com.package;
>>
>>public class MyClass {
>>  private String propOne;
>>  private String propTwo;
>>  private String propThree;
>>
>>  // getters and setters
>>  .....
>>}
>>
>>and the .class file description seems like that:
>>
>>public class com.package.MyClass {
>>  private java.lang.String propOne;
>>  private java.lang.String propTwo;
>>  private java.lang.String propThree;
>>
>>  // getters and setters
>>  ........
>>}
>>
>>All is correct here. Now I move the new MyClass.java from the old project
>>to the new one and the java source now it's like that:
>>
>>package com.package;
>>
>>public class MyClass {
>>  private String propOne;
>>  private String propTwo;
>>  private String propThree;
>>  
>>  private String newProp;
>>
>>  // getters and setters
>>  .....
>>}
>>
>>but the .class source description REMAINS IDENTICALLY!!!!!!!!!!!!! The
>>compiler seems to be blind in front of all the modifications I do to the
>>new code. I'm a little bit desperate in front of that.
>>
>>Can anyone help me, please??
>>
>>Thanks in advance.
>>
> 
> 

-- 
Gisbert Amm
Softwareentwickler Infrastruktur
Telefon: (0721) 91374 - 4224
Telefax: (0721) 91374 - 2740
E-Mail: gisbert.amm@1und1.de
Internet: www.1und1.de

1&1 Internet AG
Elgendorfer Strasse 57
56410 Montabaur

Amtsgericht Montabaur HRB 6484

Vorstand: Ralph Dommermuth, Matthias Ehrlich, Andreas Gauger 
(Vorsitzender), Matthias Greve, Henning Ahlert, Norbert Lang, Achim 
Weiss, Robert Hoffmann,
Aufsichtsratsvorsitzender: Michael Scheeren

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Problem compiling files

Posted by aemm <am...@gmv.com>.
problem solved :)


aemm wrote:
> 
> hi! I have a strange problem while i'm working with my new maven app. I'll
> try to explain it:
> 
> I move the sorces (.java) from an old "web" project to the new one Maven
> project. All was correct. All the source files seems to compile and
> generate the corresponding .class files. But it isn't true at all.
> When I look at the compiled sources, I saw that some properties added from
> the new version of my source code doesn't appear in the compiled code.
> 
> For example, in the first version I have 3 properties in my class
> 
> package com.package;
> 
> public class MyClass {
>   private String propOne;
>   private String propTwo;
>   private String propThree;
> 
>   // getters and setters
>   .....
> }
> 
> and the .class file description seems like that:
> 
> public class com.package.MyClass {
>   private java.lang.String propOne;
>   private java.lang.String propTwo;
>   private java.lang.String propThree;
> 
>   // getters and setters
>   ........
> }
> 
> All is correct here. Now I move the new MyClass.java from the old project
> to the new one and the java source now it's like that:
> 
> package com.package;
> 
> public class MyClass {
>   private String propOne;
>   private String propTwo;
>   private String propThree;
>   
>   private String newProp;
> 
>   // getters and setters
>   .....
> }
> 
> but the .class source description REMAINS IDENTICALLY!!!!!!!!!!!!! The
> compiler seems to be blind in front of all the modifications I do to the
> new code. I'm a little bit desperate in front of that.
> 
> Can anyone help me, please??
> 
> Thanks in advance.
> 

-- 
View this message in context: http://www.nabble.com/Problem-compiling-files-tf4060938s177.html#a11538370
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org