Problem compiling files

2007-07-11 Thread aemm

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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Problem compiling files

2007-07-11 Thread aemm

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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Using profiles in a webapp

2007-06-14 Thread aemm

it works Thanks a lot.

another question: I want to exclude de /lib directory containing all the
jar's when I create de .war file to deploy in the server, because the
instance where I deploy my application already have a classpath containing
all the libraries requiered.

any idea? any solution?

Thanks.



Arnaud Bailly-3 wrote:
 
 aemm [EMAIL PROTECTED] writes:
 
 Hi! I'm a newbie in the utilization of Maven. 

 I'm developing a webapp (with Spring) and I want to include profiles in
 my
 app. This profiles will change de jdbc connection settings depending on
 which profile I select.

 Let's explain my problem.

 I have jdbc.properties in ${project.root}\src\main\webapp\WEB-INF,
 and looks
 
 You need to configure the maven-war-plugin to do filtering and files
 in src/main/webapp are not filtered. 
 
 http://maven.apache.org/plugins/maven-war-plugin/examples/adding-filtering-webresources.html
 
 BTW, this is not profile-specfic.
 HTH
 -- 
 OQube  software engineering \ génie logiciel 
 Arnaud Bailly, Dr.
 \web http://www.oqube.com
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Using-profiles-in-a-webapp-tf3913491s177.html#a6169
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Exclude libs in a webapp deployment

2007-06-14 Thread aemm

hi people!

I have a problem and I want some help, please.

I want to exclude de /WEB-INF/lib directory (that was generated
automatically by Maven) when I compile-package my application and contains
all the jar's when I create de .war file to deploy in the server.

I want to exclude it from the war file because the instance where I deploy
my application already have a classpath containing all the libraries
requiered.

any idea? any solution?

Thanks.
-- 
View this message in context: 
http://www.nabble.com/Exclude-libs-in-a-webapp-deployment-tf3920422s177.html#a6171
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Exclude libs in a webapp deployment

2007-06-14 Thread aemm

Thanks a lot! 

It perfectly works for me :)


Napoleon Esmundo Ramirez wrote:
 
 Hello,
 
 Just specify scopeprovided/scope to whatever dependencies you expect
 in
 the container, and it'll do fine.
 
 Cheers!
 Nap
 
 On 6/14/07, aemm [EMAIL PROTECTED] wrote:


 hi people!

 I have a problem and I want some help, please.

 I want to exclude de /WEB-INF/lib directory (that was generated
 automatically by Maven) when I compile-package my application and
 contains
 all the jar's when I create de .war file to deploy in the server.

 I want to exclude it from the war file because the instance where I
 deploy
 my application already have a classpath containing all the libraries
 requiered.

 any idea? any solution?

 Thanks.
 --
 View this message in context:
 http://www.nabble.com/Exclude-libs-in-a-webapp-deployment-tf3920422s177.html#a6171
 Sent from the Maven - Users mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


 
 

-- 
View this message in context: 
http://www.nabble.com/Exclude-libs-in-a-webapp-deployment-tf3920422s177.html#a11121514
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Using profiles in a webapp

2007-06-14 Thread aemm

Thanks!!

Perfect :computer-user:



Kristian Nordal wrote:
 
 Hi,
 
 Use the the provided scope on your dependencies.
 
 --
 Cheers,
 Kristian
 
 On 6/14/07, aemm [EMAIL PROTECTED] wrote:

 it works Thanks a lot.

 another question: I want to exclude de /lib directory containing all the
 jar's when I create de .war file to deploy in the server, because the
 instance where I deploy my application already have a classpath
 containing
 all the libraries requiered.

 any idea? any solution?

 Thanks.



 Arnaud Bailly-3 wrote:
 
  aemm [EMAIL PROTECTED] writes:
 
  Hi! I'm a newbie in the utilization of Maven.
 
  I'm developing a webapp (with Spring) and I want to include profiles
 in
  my
  app. This profiles will change de jdbc connection settings depending
 on
  which profile I select.
 
  Let's explain my problem.
 
  I have jdbc.properties in ${project.root}\src\main\webapp\WEB-INF,
  and looks
 
  You need to configure the maven-war-plugin to do filtering and files
  in src/main/webapp are not filtered.
 
 
 http://maven.apache.org/plugins/maven-war-plugin/examples/adding-filtering-webresources.html
 
  BTW, this is not profile-specfic.
  HTH
  --
  OQube  software engineering \ génie logiciel 
  Arnaud Bailly, Dr.
  \web http://www.oqube.com
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

 --
 View this message in context:
 http://www.nabble.com/Using-profiles-in-a-webapp-tf3913491s177.html#a6169
 Sent from the Maven - Users mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Using-profiles-in-a-webapp-tf3913491s177.html#a11121519
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Using profiles in a webapp

2007-06-13 Thread aemm

Hi! I'm a newbie in the utilization of Maven. 

I'm developing a webapp (with Spring) and I want to include profiles in my
app. This profiles will change de jdbc connection settings depending on
which profile I select.

Let's explain my problem.

I have jdbc.properties in ${project.root}\src\main\webapp\WEB-INF, and looks
like that

-
jdbc.driverClassName=oracle.jdbc.driver.OracleDriver
jdbc.url=${jdbc.url}
jdbc.username=${jdbc.username}
jdbc.password=${jdbc.password}

hibernate.dialect=${jdbc.dialect}
-

When I deploy the application (make de war file with the package option)
the profile don't convert the labels in this file to the corresponding
values.

Anybody can help me?

Thanks in advance.
-- 
View this message in context: 
http://www.nabble.com/Using-profiles-in-a-webapp-tf3913491s177.html#a11095685
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]