Include Test classes in Jar

2006-07-27 Thread RobJac
When I am trying to build/jar a project. The test-classes are not getting jarred. Is there a way I can change settings in my pom.xml to include the test classes as well when i build my project? -- View this message in context: http://www.nabble.com/Include-Test-classes-in-Jar-tf2009433.html#a552

Re: Bypass compliation error

2006-06-02 Thread RobJac
We are in an iterative mode of project. So there will be developement undergoing in a project during Testing for a previous iteration. So there will be chances of having uncompiled code in a project which can be totally ignored. Any ways thanks for the advice :-) -- View this message in context:

Re: Bypass compliation error

2006-05-30 Thread RobJac
i have checked it out, the exclude parameter tries to remove that file from the build and thus avoid compiling that file. This leads to more maintainance of the pom xml since i need to keep adding files to the pom xml which are not compilable and then remove it once it becomes compilable. -- View

Bypass compliation error

2006-05-30 Thread RobJac
I am not able to build a project since there are some uncompilable class files in my project. How do I by pass compilation failures in my project and let maven compile the other java files in my project that are actually compilable and build a project for me with the compiled files alone? -- View

How to avoid checking for updates

2006-05-16 Thread RobJac
When ever i run the mvn site command, the maven checks for updates which i want to avoid. Please find below the console statements. Its trying to find updates for org.apache.maven.doxia. Any ideas? $ mvn site [INFO] Scanning for projects... [INFO]

Re: Refering to parent directory from child pom xml

2006-05-08 Thread RobJac
Thanks Lee. It works now.. But I feel this is not a proper fix. I think we need some way of defining the parent directory from the child pom xml. I will try to do some further investigation on this. -- View this message in context: http://www.nabble.com/Refering-to-parent-directory-from-child-pom

Re: Refering to parent directory from child pom xml

2006-05-08 Thread RobJac
tried using "../target/site" in my cild pom xml for reporting outputDirectory but does not seem to help. It was trying look for \parentProject\childProject\..\target\site -- View this message in context: http://www.nabble.com/Refering-to-parent-directory-from-child-pom-xml-t1562659.html#a4279157

Re: RE : RE : Configuring path for picking submodule site

2006-05-08 Thread RobJac
I am using 2.0_SNAPSHOT version of maven-site-plugin. But its the same case, how does taking this version of maven-site-plugin help? Do i have an option to configure my submodule site location if this version is used? If yes, where can it be configured? -- View this message in context: http://ww

Refering to parent directory from child pom xml

2006-05-05 Thread RobJac
I have a requirement where in i want the site created for my child project to be placed in a specified location in under the parent project. I have used target/site in my child pom xml as of now which is placing the child site under ParentProject pom.xml Child Project(Module A)

Re: RE : Configuring path for picking submodule site

2006-05-05 Thread RobJac
My structure is as you had mentioned Root pom.xml src/site/site.xml (with ${modules}) Module A pom.xml src/site/site.xml (with ${parentProject} ) the missing part was ${modules} & ${parentProject} which i have added and removed from my root site.xml, but its still showing

Configuring path for picking submodule site

2006-05-04 Thread RobJac
I have created a multiproject web site from the parent project where in it has a menu that list all the sub modules. When i click on a particular sub module menu say ,SubModule_A link. It tries to look for the SubModule_A index.html from some default path like C:\parentProject\target\site\SubModu

Issue with multi project site

2006-05-03 Thread RobJac
I am using Maven 2.0.4. I was trying to create a multi project web site from my parent project. I wanted a web site to be created by my parent project when i run a mvn site. This web site should contain links to all the modules under parent project pom xml. I was going thru a link in this forum h

Re: Problem creating multiple project website

2006-05-02 Thread RobJac
I have found that I haven't downloaded the latest version of doxia-site-renderer-1.0-alpha-8-SNAPSHOT.jar, but I am not able to download it as it says when i run mvn install for my parent project. [INFO] snapshot org.apache.maven.doxia:doxia-site-renderer:1.0-alpha-8-SNAPSHOT: checking for upda

Problem creating multiple project website

2006-05-02 Thread RobJac
I am using Maven 2.0.4. I was trying to create a multi project web site from my parent project. I wanted a web site to be created by my parent project when i run a mvn site. This web site should contain links to all the modules under parent project pom xml. I was going thru a link in this forum ht

RE: Support for Multi-project Web Sites

2006-05-02 Thread RobJac
Hi, I am also trying to get a parent site created which will show details of all my child projects. As mentioned in the chains of mails here, I found I need to install snapshot version 2.0-SNAPSHOT of maven-site-plugin. I have added this in my pom xml but. it gives me this error saying it not ab

Re: New to Site

2006-04-28 Thread RobJac
i had realised that after i had posted the query. Sorry I did not post it in the forum after noticing it -- View this message in context: http://www.nabble.com/New-to-Site-t1517682.html#a4136703 Sent from the Maven - Users forum at Nabble.com. ---

Re: New to Site

2006-04-27 Thread RobJac
i am not able to download this plugin. It says [INFO] Scanning for projects... [INFO] - --- [INFO] Building Maven Quick Start Archetype [INFO]task-segment: [site] [INFO] ---

New to Site

2006-04-27 Thread RobJac
I am trying to build a site for a project which will show me the Junit test results of the project after i had packaged it. Is this possible or is it that I will have to go into my surefire-reports folder of the project and then check the results of the Junit in the xml files that got generated

Re: issue with mvn clean install

2006-04-27 Thread RobJac
Yes I do. This is how my Project A pom.xml looks like 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 Project A Project A jar 1.0 Mave

issue with mvn clean install

2006-04-27 Thread RobJac
I have a maven project folder structure as shown below Main pom.xml Project A pom.xml Project B pom.xml Project C pom.xml Project D pom.xml I am trying to build and install multiple projects. So in the Main folder if i run mvn clean install

Re: Doubt in using wagon plugin

2006-04-27 Thread RobJac
Hi Alexandre, could you please send me the upload plugin? -- View this message in context: http://www.nabble.com/Doubt-in-using-wagon-plugin-t1506734.html#a4115982 Sent from the Maven - Users forum at Nabble.com. - To unsubscri

Re: Doubt in using wagon plugin

2006-04-25 Thread RobJac
I am getting the same error still. Please find below my ear pom xml. 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 DefinedBenefit_

Re: Doubt in using wagon plugin

2006-04-25 Thread RobJac
sorry wayne.. forgot to add the exception. Please find below. I was trying to execute "mvn install" fir my ear pom xml. It created an EAR fine and while trying to ftp it I guess the below exception is occuring. + Error stacktraces are turned on. [INFO] Scanning for projects... [INFO] ---

Re: Doubt in using wagon plugin

2006-04-25 Thread RobJac
I want to FTP and ear from a location in my local m/c into a particular location in a remote machine using as soon as i run an mvn install command. I tried using ant plugin for Maven, but it does not seem to work. Please find below my entry in the ear pom xml for this org

Doubt in using wagon plugin

2006-04-25 Thread RobJac
Has some one used wagon plugin in your pom xml. I was trying to ftp an ear using the wagon plugin to a particular location in a remote server but i dont see any options to provide the destination directory. If wagon can help me in solving this requirement, could you please send me the entry for th

Including xmls while packaging

2006-04-25 Thread RobJac
I have a project which has few xmls placed along with the java files in a particular folder. When I package this project only the class files appear in this folder and the xml files are ommited. But if i place these xml files with in the same folder path in the resources folder, it appears when i

Use System Environment Variable for JUNIT

2006-04-25 Thread RobJac
I have Maven project which also runs Junit when i execute install command. The class files which runs Junit has references to few System environment variable. I would like to know if there is any way I can declare System Environment variable in my pom xml so that the Junit can use this when it run

FTP an EAR file

2006-04-24 Thread RobJac
I want to FTP an EAR file from a particular location from my local PC to a remote m/c using maven. Is this possible using Maven? can i use any of the ant- plugin to do this? If some one has done this could you please send me the entries you have made in the pom xml for this? also please let me kno

Re: Removing version when creating a jar

2006-04-24 Thread RobJac
I have found a way to remove the version, in my ear pom xml i am using under the configuration of my ear-plugin Test Test Test.jar

Re: Alternative for remote deploying an ear

2006-04-24 Thread RobJac
Thanks Johan. Sorry for troubling you again on this, but what is the command you ran to execute this plugin? i tried running mvn deploy and it was throwing me an exception. Please find below the exception Exception: [INFO] Executing tasks [scp] Connecting to ${appserver.hostname}:22 [INFO]

Custom MANIFEST.MF

2006-04-24 Thread RobJac
Hi, I am using Maven2 I am trying to package my projects as Jar/WAR/EAR and Maven generates its own version of MANIFEST.MF How can I have my custom MANIFEST.MF to be used in my META-INF folder when i execute mvn package for my JAR/EAR/WAR than allowing Maven to generate one for me? -- View this me

Re: Alternative for remote deploying an ear

2006-04-24 Thread RobJac
Hi Johan, I was also looking for something similar for Maven2. I will also try out the samething as you have provided below. Could you please let me know where you have provided details for all the below parameters. [EMAIL PROTECTED]:${appserver.deploydir}" password="${appserver.remote.passwor

Prevent over writing MANIFEST.MF

2006-04-24 Thread RobJac
I am trying to create an EAR using Maven2. I have placed a MANIFEST.MF file in my resources/META-INF folder. But this file is getting over written by Maven specific MANIFEST.MF when I execute mvn package for my ear pom xml. How can I avoid this and retain the MANIFEST.MF file under my resources/ME

Problem in Deploy an EAR to remote server

2006-04-23 Thread RobJac
I need to deploy an EAR from my Local PC to a remote JBoss server. I tried using the distributionManagement tag as shown below 10.231.81.122 lunar21 scp://10.231.81.122/opt/jboss403SP1/server/default/deploy

Re: jboss:deploy Issue

2006-04-22 Thread RobJac
Sorry wayne, but i did not actually understand what you meant here, I corrected my deployUrlPath tag as ![CDATA[[/jmx-console/HtmlAdaptor?action=invokeOpByName&name=jboss.system:service%3DMainDeployer&methodName=deploy&argType=java.net.URL&arg0=?and=yes]] and iam still getting the same parse exce

jboss:deploy Issue

2006-04-22 Thread RobJac
I am trying to deploy an EAR from my local PC to a remote jboss server using maven2 The plugin that i am using is jboss-maven-plugin and iam trying to do a jboss:deploy. But it throws me a parse exception for my pom xml for the tag that i have in my pom xml for this plugin. Please find below my u

Re: Avoid Build folder when creating EAR/WAR

2006-04-21 Thread RobJac
Thanks Wayne. I undertand its trivial but was just trying to avoid redundancy. I downloaded the ant-run-plugin. Could you please let me know how can i get this folder removed immediately after executing mvn package. I tried providing the following under my pom xml maven-antrun-plugin

Re: [M2] Deploy question

2006-04-21 Thread RobJac
Hi, Could you pls let me know how this was acheived or send me you ear pom xml?. I too tried using java:hardDeploy but how to specify the remote server name/url/username/password using this plugin? Please take a look at my ear pom xml. when i tried using mvn jboss:harddeploy. It was trying to fin

Avoid Build folder when creating EAR/WAR

2006-04-21 Thread RobJac
I am trying to create an EAR for my project using Maven2. Its creating EAR properly but i guess it initialy creates an EAR folder in my ${basedir} and then EARs it from there. How can i get this folder deleted after the EAR is created? I am facing the same issue while creating a WAR project as wel

version number to avoid when creating an EAR

2006-04-21 Thread RobJac
I have a project A which i have successfully compiled and packaged. Now when i try to run mvn install, it tries to create a jar into my local repository. But its appending the version also to the jar file which i really want to avoid. For example in the pom.xml of project A file i have given

Re: Removing version when creating a jar

2006-04-20 Thread RobJac
I can actually remove the version when i package, but when i execute mvn installl for the project it again places the project-version.jar in my localrepository under the following folder path /{groupId}/{version}/project-version.jar. I am facing an issue when i am trying to create an EAR. Since a

Re: Issue when packaging WAR Project

2006-04-20 Thread RobJac
Thanks, I have got it corrected now. I have one more issue. I have few dependency jars specified under the tag in my WAR pom xml . All thes jars are getting included under WEB-INF/lib folder. How can I exclude this while packaging my WAR project? Is there some tags I can use for this? I know we h

Issue when packaging WAR Project

2006-04-20 Thread RobJac
Hi, I am using Maven 2 and the pom.xml of my WAR project looks like this 4.0.0 DefinedBenefit_WEB DefinedBenefit_WEB DefinedBenefit_WEB war 1.0 junit junit 3.8.1 compile ${basedir} classes ${project.artifactId}

Junit using Maven

2006-04-20 Thread RobJac
I am using Maven2. When I am packaging my project. The Maven runs the Junit also for that project. But it just gives me the resuilt as [surefire] Running rlg.pensions.definedbenefits.components.payroll.bs.TestBsPayrollBean [surefire] Tests run: 15, Failures: 0, Errors: 15, Time elapsed: 90.765 se

Fetch project using Maven

2006-04-19 Thread RobJac
I am using maven 2.0. All my projects have been baselined in Merant(Configuration Management Tool). Is there any way i can make maven get project from this location to another location in my PC and then build it? Could some one provide me a link from which i can get some documentation on this or s

Re: Remove mavern folder in META-INF

2006-04-13 Thread RobJac
Hi, I tried adding the plugin tag but it was giving me the below error java.lang.NullPointerException at java.util.regex.Matcher.getTextLength(Matcher.java:1127) at java.util.regex.Matcher.reset(Matcher.java:284) at java.util.regex.Matcher.(Matcher.java:205) at jav

Re: Avoid Run Test

2006-04-13 Thread RobJac
I know how to ignore the result, but i want to avoid running the test as it taking a whole lot of time for me to package my jar since its running the test which i dont want at this point of time. Cheers Robin -- View this message in context: http://www.nabble.com/Avoid-Run-Test-t1444868.html#a3

Remove mavern folder in META-INF

2006-04-13 Thread RobJac
My EJB project has a META_INF folder that i have placed under "resources" folder When I execute maven package for my project. The project gets jarred but when I actually open the Jar file i see some maven folder under the META-INF folder. How can i avouid this from getting created? Thanks in adva

Avoid Run Test

2006-04-13 Thread RobJac
I have project which has a Test folder. I want to execute mvn package for this project without actually executing the Test. Could some one let me know if i can add some entries into my pom.xml to bypass this? -- View this message in context: http://www.nabble.com/Avoid-Run-Test-t1444868.html#a390

Removing version when creating a jar

2006-04-12 Thread RobJac
I have a project A which i have successfully compiled and packaged. Now when i try to run mvn install, it tries to create a jar into my local repository. But its appending the verion also to the jar file which i really want to avoid. For example in the pom.xml of project A file i have given A

Need to Package w/o executing Test

2006-04-12 Thread RobJac
I have a src/main and src/test folders in my project. All the Test classes will not pass if i execute them. But I still would want package my project even if my Test does not execute . When i run "mvn package" command, it tries to execute my test which fails and will not allow me to create a jar.

How to create Local repository

2006-04-12 Thread RobJac
I am a new Mavern-2.0 User. It would be really appreciated if some one could help me out on how to configure a local repository for Mavern. I have a J2EE project built on My Eclipse IDE. There are lot of 3rd party tools (.jar) used by this project. When i am trying to run mvn compile for each pr

Compiling dependency project

2006-04-07 Thread RobJac
I am a new user for Maven. I have created two project Folder A and B. In each of the project I have a pom.xml. When i try to execute mvn-compile for project folder A, it throws compilation errors since java files under project A have imports for java classes under project B. How do i specify this