Re: project structure and maven.

2009-02-03 Thread MacMohan


Thanks Geoffrey, for your quick response. I read into pom.xml in detail and
updated the same. Now when im telling maven to compile its giving me a fatal
error: 

[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO]

[ERROR] FATAL ERROR
[INFO]

[INFO] null
[INFO]

[INFO] Trace
java.lang.NullPointerException
at
org.codehaus.plexus.util.DirectoryScanner.scandir(DirectoryScanner.ja
va:712)
at
org.codehaus.plexus.util.DirectoryScanner.scandir(DirectoryScanner.ja
va:727)
at
org.codehaus.plexus.util.DirectoryScanner.scan(DirectoryScanner.java:
593)
at
org.apache.maven.plugin.resources.ResourcesMojo.copyResources(Resourc
esMojo.java:158)
at
org.apache.maven.plugin.resources.ResourcesMojo.execute(ResourcesMojo
.java:100)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
nManager.java:451)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:558)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi
fecycle(DefaultLifecycleExecutor.java:499)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
ltLifecycleExecutor.java:478)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
dleFailures(DefaultLifecycleExecutor.java:330)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
ts(DefaultLifecycleExecutor.java:291)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
fecycleExecutor.java:142)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)

at org.codehaus.classworlds.Launcher.main(Launcher.java:375)


i used mvn compile -e comand and this is the result. Can you sight the
problem please?

Thanks, 

MacMohan.



> The pom allows you to tell Maven where to find  your source files, your
> resources, test resources, and so on.
> 

-- 
View this message in context: 
http://www.nabble.com/project-structure-and-maven.-tp21824471p21824991.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



project structure and maven.

2009-02-03 Thread MacMohan

hi, presently the project structure my company is using is that of a tomcat
project.

 myApplication
 |-- CSS(folder)
 |-- images
 |-- java scripts(folder)
 |-- JSP(folder)
 |-- WEB_INF(folder)
 ||-- classes
 ||-- lib
 ||-- src
 ||  |-- com
 ||  |-- companyName
 ||  |-- applicationName
 ||  |-- Java files in their respective folders
 ||
 ||
 ||--struts-config.xml
 |
 |--build.xm
 |--build.properties 


i m using ant 1.6 to make war files. But now my company wants me to use
Maven to do nightly builds and deployment of project for testing and
development environment. 

My question is: Do i have to re arrange my project structure to standard
directory layout to use maven?

my-app
|-- pom.xml
`-- src
|-- main
|   `-- java
|   `-- com
|   `-- mycompany
|   `-- app
|   `-- App.java
`-- test
`-- java
`-- com
`-- mycompany
`-- app
`-- AppTest.java

if no then how to make maven understand what my project structure is?

an if yes, do you think i need to migrate to maven from ant just for nightly
builds and deployment? Can't i do that some other way?

Please help.

Regards,
MacMohan.
-- 
View this message in context: 
http://www.nabble.com/project-structure-and-maven.-tp21824471p21824471.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



How do i use maven in my development environment

2009-01-29 Thread MacMohan

Hi, i m new to maven and have been asked to set up new development
environment in my office. Mine is a small office of 8-10 developers. Till
now we have CVS on one of remote servers and app servers(TOMCAT 5.x) running
on individual developer machine. we use Eclipse 3.3 as Java IDE. Al the
developers commit their work respective works from their machines and we
create WAR file of the application manually through ANT using build.xml
file. Our application is a non-EJB application with the following folder
structure.

myApplication
|-- CSS(folder)
|-- images
|-- java scripts(folder)
|-- JSP(folder)
|-- WEB_INF(folder)
||-- classes
||-- lib
||-- src
||  |-- com
||  |-- companyName
||  |-- applicationName
||  |-- Java files in their respective folders
||
||
||--struts-config.xml
|
|--build.xm
|--build.properties

In the new development environment, we need CVS on a remote server, and
Maven doing the ANT thing automatically on week-ends. We need Maven to
compile our project and package it to WAR file and deploy it at a specific
location on the server.

I have been reading Maven 2.0.9 documentation and other helping material
from last 3-4 days, but couldn't figure out how to use it practically. Where
to put my applications JAVA files, lib folder, JSP's, etc.

Please help.
-- 
View this message in context: 
http://www.nabble.com/How-do-i-use-maven-in-my-development-environment-tp21722621p21722621.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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