Hello Flemming N. Larsen, Thank you for your replies in my previous posts. Your directions helped me to modify Robocode as per my project requirement. Now I have an applet version of Roboplayer. For this I have created a new project.
Now I want to create jar file for this newly created module . Please let me know how can I do this. I looked into pom.xml and build.xml of distribution package but didn't find much information.
Waiting for your response,
Regards,
Bhakta
Last edit: Bhakta 2014-10-21
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi Bhakta, Maven is being used for building and packaging Robocode. Creating a new module/package requires some basic knowledge about how Maven works. However, the short version is, that you'll need create a unique POM.xml file for your module. The other files like build.xml, maven-build.properties, maven-build.xml, etc. are generated using Maven. Hence, you "only" need to focus on the POM.xml file.
The POM.xml file is declarative. It does not tell HOW things are build. Rather, it tell what needs to be done, and the Maven plugins will take care of the rest.
It might look overwhelming complicated, but if you copy another POM.xml file from e.g. robocode.ui (here), I guess you'll see that it is not that complicated after all.
You'll need to change the 'artifactId', 'name', and then dependencies to other modules.
Don't change the 'parent' section, as the POM.xml file "inherits" from a super POM.xml file located under the 'super-pom' module/project.
Last edit: Flemming N. Larsen 2014-10-21
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Also notice, that you should only need to call 'mvnassembly.cmd' (Windows) or 'mvnassembly.sh' (Linux/Mac OS X/BSD) for building your module, as this will invoke Maven, which will look for the POM.xml file under your module. :-)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
First of all Thank you for your reply. I'm doing the same what you have mentioned above. But I can't see the jar of my new module getting created in robocode.distribution/target/setup folder. Am I searching for the jar file(which I can put in lib folder of installed robocode) at the wrong location ? Please let me know if I'm missing anything?
Regards,
Bhakta
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello Flemming N. Larsen, Thank you for your replies in my previous posts. Your directions helped me to modify Robocode as per my project requirement. Now I have an applet version of Roboplayer. For this I have created a new project.
Now I want to create jar file for this newly created module . Please let me know how can I do this. I looked into pom.xml and build.xml of distribution package but didn't find much information.
Waiting for your response,
Regards,
Bhakta
Last edit: Bhakta 2014-10-21
Hi Bhakta,
Maven is being used for building and packaging Robocode. Creating a new module/package requires some basic knowledge about how Maven works. However, the short version is, that you'll need create a unique POM.xml file for your module. The other files like build.xml, maven-build.properties, maven-build.xml, etc. are generated using Maven. Hence, you "only" need to focus on the POM.xml file.
The POM.xml file is declarative. It does not tell HOW things are build. Rather, it tell what needs to be done, and the Maven plugins will take care of the rest.
It might look overwhelming complicated, but if you copy another POM.xml file from e.g. robocode.ui (here), I guess you'll see that it is not that complicated after all.
You'll need to change the 'artifactId', 'name', and then dependencies to other modules.
Don't change the 'parent' section, as the POM.xml file "inherits" from a super POM.xml file located under the 'super-pom' module/project.
Last edit: Flemming N. Larsen 2014-10-21
Also notice, that you should only need to call 'mvnassembly.cmd' (Windows) or 'mvnassembly.sh' (Linux/Mac OS X/BSD) for building your module, as this will invoke Maven, which will look for the POM.xml file under your module. :-)
Hello Felmming,
First of all Thank you for your reply. I'm doing the same what you have mentioned above. But I can't see the jar of my new module getting created in robocode.distribution/target/setup folder. Am I searching for the jar file(which I can put in lib folder of installed robocode) at the wrong location ? Please let me know if I'm missing anything?
Regards,
Bhakta
My Bad...got it jars are getting generated in target folder. :)
Hehe...
I am sorry I was not fast enough to reply back to you. But I see you got it right by know. :-)