Hello 

thanks for Maven. :-) I have always waited for something like this.

As newbie, I have already installed a lokal repository and I am able to
execute Maven from the comandline, e.g. andromeda examples work fine. I
can build jars and execute them with "java -jar .....". I am mainly
working alone, so in fact there is no need for me at the moment to do
anything remotely. I know how to insert dependencies into project.xml. I
have almost no experience with team-development. I used to work with cvs
one day. So far. 

#

I have a ant-based project I am going to convert to Maven. I suffer
heavy problems and I am getting a bit frustrated, as I don't know what
is covered by the existing plugins, goals, properties and what actions
have to be injected as ant-tasks manually into the goals.

My old ant-script does the following via several tasks sequentially:

Part I: Server
a.) It compiles a selfmade (RMI-)applicationserver
b.) It compiles stubs for the applicationserver.
c.) It jars the Applicationserver into a buildServer directory
d.) Start-scipts for (Windows/Linux) are copied  to the buildServer
directory.

Part II: Swing Client
a.) Stubs and DataTransferObject.classes (of the AppServer) are copied
to a directory branch of the client-build-directory.
b.) The Client is compiled into another branch of the
client-build-directory.
c.) The client-build-directory is jared into client-deploy-directory
d.) All external libraries are copied to "client-deploy-directory/lib"
e.) Start-scripts (Windows/Linux) are copied to the
client-deploy-directory

After all this I can start the appServer and the client via commandline.
The server does not have any dependencies except for junit but junit is
not required during running.

#

Problems:

Am I right, that I have to do all copy-actions for the Startscripts and
the rmi-stub generation manually, i.e. do I have to create
jelly-ant-scripts to be injected somewhere, as described in the
maven-docoumentation? Is there an easier possibility to copy files to
the right place in the target folders, i.e. just adding a copy-source
and copy-destination property?

If I run "maven dist -o" on the root of the client directory the goal
says "build successful". Afterwards, my target directory is full of
documentation but I miss my dependency-jar-files which are required to
run the client. First, I would like to switch off the
documentation-generation temporily. It's very nice but confuses me at
the moment. Second, my depedendencies (i.e. the jar-file of the
swing-framework I use) is not copied to anywhere. --- How can I copy the
required dependency-jar-Files from the local repository to the target
directory of the client? The distribution-plugin properties do not offer
any possibilities to "include" dependencies. Shoud I write an
Jelly-Ant-copy-script to copy the jar-files from the local repository to
the target directory?  --- "maven dist-o" triggers "site:generate". Is
there an easy way to tempoarily switch it off, i.e. a property setting.?


At the moment I am very insecure, whether I use maven the right way. Do
you have the impression I missunderstood the purpose of Maven?  Any
recommendation how you would proced on my project are appreciated.

Thanks for your response in advance.

Christian







 



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

Reply via email to