Re: war:war not including src/main/java

2009-03-08 Thread Mansour
The was some junit failing. However, mvn doesn't complain, and still 
creates the war.


Using:

mvn package -Dmaven.test.skip=true

resolved the issue. I still have to see the test failures but the 
classes are included.





David C. Hicks wrote:
I don't think that the war plugin includes source for your Java 
classes in the WAR, at least, not by default.  The classes that are 
generated in the compile phase would be included, but not the source.  
Sources in src/main/webapp would be included, I think.  Looking at the 
maven-war-plugin documentation, it appears that there are options to 
include sources.



Mansour wrote:
I am facing this problem where maven is not including the sources in 
src/main/java.

With jetty:run on the develpoment everthing is fine.
But, when I create the war, the directory is not included.


http://maven.apache.org/POM/4.0.0"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/maven-v4_0_0.xsd";>

 4.0.0
 com.mysite
 website
 war
 1.0-SNAPSHOT
 website Maven Webapp
 http://maven.apache.org
 
   website
   
 
   org.mortbay.jetty
   maven-jetty-plugin
   
 /
 1
   
 
 
   org.apache.maven.plugins
   maven-war-plugin
   2.0
 
 
   org.apache.maven.plugins
   maven-compiler-plugin
   
 1.5
 1.5
   
 
   
 
 
   
 opensymphony
 sitemesh
 2.3
   
   
 javax.servlet
 servlet-api
 2.3
 provided
   
   
 javax.mail
 mail
 1.4.2
   
   
 junit
 junit
 4.5
 test
   
 



I don't know what 's going on. Any advice ?


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



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





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



Re: war:war not including src/main/java

2009-03-07 Thread David C. Hicks
I don't think that the war plugin includes source for your Java classes 
in the WAR, at least, not by default.  The classes that are generated in 
the compile phase would be included, but not the source.  Sources in 
src/main/webapp would be included, I think.  Looking at the 
maven-war-plugin documentation, it appears that there are options to 
include sources.



Mansour wrote:
I am facing this problem where maven is not including the sources in 
src/main/java.

With jetty:run on the develpoment everthing is fine.
But, when I create the war, the directory is not included.


http://maven.apache.org/POM/4.0.0"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/maven-v4_0_0.xsd";>

 4.0.0
 com.mysite
 website
 war
 1.0-SNAPSHOT
 website Maven Webapp
 http://maven.apache.org
 
   website
   
 
   org.mortbay.jetty
   maven-jetty-plugin
   
 /
 1
   
 
 
   org.apache.maven.plugins
   maven-war-plugin
   2.0
 
 
   org.apache.maven.plugins
   maven-compiler-plugin
   
 1.5
 1.5
   
 
   
 
 
   
 opensymphony
 sitemesh
 2.3
   
   
 javax.servlet
 servlet-api
 2.3
 provided
   
   
 javax.mail
 mail
 1.4.2
   
   
 junit
 junit
 4.5
 test
   
 



I don't know what 's going on. Any advice ?


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



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



RE: war:war not including src/main/java

2009-03-07 Thread Martin Gainty

your projects pom.xml will have a directory specifying the sourcedir


${pom.basedir}/../src/main/java
   ..


then in maven.xml your javac task will use the predefined 
jsp.precompilation.java property..


HTH
Martin 
__ 
Disclaimer and confidentiality note 
Everything in this e-mail and any attachments relates to the official business 
of Sender. This transmission is of a confidential nature and Sender does not 
endorse distribution to any party other than intended recipient. Sender does 
not necessarily endorse content contained within this transmission. 




> Date: Sat, 7 Mar 2009 17:11:23 -0400
> From: mansou...@yahoo.com
> To: users@maven.apache.org
> Subject: war:war not including src/main/java
> 
> I am facing this problem where maven is not including the sources in 
> src/main/java.
> With jetty:run on the develpoment everthing is fine.
> But, when I create the war, the directory is not included.
> 
> 
> http://maven.apache.org/POM/4.0.0"; 
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
> http://maven.apache.org/maven-v4_0_0.xsd";>
>   4.0.0
>   com.mysite
>   website
>   war
>   1.0-SNAPSHOT
>   website Maven Webapp
>   http://maven.apache.org
>   
> website
> 
>   
> org.mortbay.jetty
> maven-jetty-plugin
> 
>   /
>   1
> 
>   
>   
> org.apache.maven.plugins
> maven-war-plugin
> 2.0
>   
>   
> org.apache.maven.plugins
> maven-compiler-plugin
> 
>   1.5
>   1.5
> 
>   
> 
>   
>   
> 
>   opensymphony
>   sitemesh
>   2.3
> 
> 
>   javax.servlet
>   servlet-api
>   2.3
>   provided
> 
> 
>   javax.mail
>   mail
>   1.4.2
> 
> 
>   junit
>   junit
>   4.5
>   test
> 
>   
> 
> 
> 
> I don't know what 's going on. Any advice ?
> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
> 

_
Windows Live™: Life without walls.
http://windowslive.com/explore?ocid=TXT_TAGLM_WL_allup_1a_explore_032009

Re: war:war not including src/main/java

2009-03-07 Thread Mick Knutson
did you try *mvn clean install jetty:run -e*

---
Thank You…

Mick Knutson, President

BASE Logic, Inc.
Enterprise Architecture, Design, Mentoring & Agile Consulting
p. (866) BLiNC-411: (254-6241-1)
f. (415) 685-4233

Website: http://baselogic.com
Linked IN: http://linkedin.com/in/mickknutson
Twitter: http://twitter.com/mickknutson
Vacation Rental: http://tahoe.baselogic.com
---



On Sat, Mar 7, 2009 at 1:11 PM, Mansour  wrote:

> I am facing this problem where maven is not including the sources in
> src/main/java.
> With jetty:run on the develpoment everthing is fine.
> But, when I create the war, the directory is not included.
>
> 
> http://maven.apache.org/POM/4.0.0"; xmlns:xsi="
> http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="
> http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd
> ">
>  4.0.0
>  com.mysite
>  website
>  war
>  1.0-SNAPSHOT
>  website Maven Webapp
>  http://maven.apache.org
>  
>   website
>   
> 
>   org.mortbay.jetty
>   maven-jetty-plugin
>   
> /
> 1
>   
> 
> 
>   org.apache.maven.plugins
>   maven-war-plugin
>   2.0
> 
> 
>   org.apache.maven.plugins
>   maven-compiler-plugin
>   
> 1.5
> 1.5
>   
> 
>   
>  
>  
>   
> opensymphony
> sitemesh
> 2.3
>   
>   
> javax.servlet
> servlet-api
> 2.3
> provided
>   
>   
> javax.mail
> mail
> 1.4.2
>   
>   
> junit
> junit
> 4.5
> test
>   
>  
> 
>
>
> I don't know what 's going on. Any advice ?
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>


war:war not including src/main/java

2009-03-07 Thread Mansour
I am facing this problem where maven is not including the sources in 
src/main/java.

With jetty:run on the develpoment everthing is fine.
But, when I create the war, the directory is not included.


http://maven.apache.org/POM/4.0.0"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/maven-v4_0_0.xsd";>

 4.0.0
 com.mysite
 website
 war
 1.0-SNAPSHOT
 website Maven Webapp
 http://maven.apache.org
 
   website
   
 
   org.mortbay.jetty
   maven-jetty-plugin
   
 /
 1
   
 
 
   org.apache.maven.plugins
   maven-war-plugin
   2.0
 
 
   org.apache.maven.plugins
   maven-compiler-plugin
   
 1.5
 1.5
   
 
   
 
 
   
 opensymphony
 sitemesh
 2.3
   
   
 javax.servlet
 servlet-api
 2.3
 provided
   
   
 javax.mail
 mail
 1.4.2
   
   
 junit
 junit
 4.5
 test
   
 



I don't know what 's going on. Any advice ?


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