Include Test classes in Jar
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#a5520569 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Bypass compliation error
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: http://www.nabble.com/Bypass-compliation-error-t1705845.html#a4676630 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Bypass compliation error
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 this message in context: http://www.nabble.com/Bypass+compliation+error-t1705845.html#a4630601 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Bypass compliation error
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 this message in context: http://www.nabble.com/Bypass+compliation+error-t1705845.html#a4631357 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to avoid checking for updates
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] [INFO] Building Component_LF [INFO]task-segment: [site] [INFO] [INFO] snapshot org.apache.maven.doxia:doxia-core:1.0-alpha-8-SNAPSHOT: checking for updates from apache.snapshots [WARNING] repository metadata for: 'snapshot org.apache.maven.doxia:doxia-core:1.0-alpha-8-SNAPSHOT' could not be retrieved from repository: apache.snapshots due to an error: Error transferring file [INFO] Repository 'apache.snapshots' will be blacklisted [INFO] snapshot org.apache.maven.doxia:doxia:1.0-alpha-8-SNAPSHOT: checking for updates from snapshots [INFO] snapshot org.apache.maven.doxia:doxia-core:1.0-alpha-8-SNAPSHOT: checking for updates from apache.snapshots [WARNING] repository metadata for: 'snapshot org.apache.maven.doxia:doxia-core:1.0-alpha-8-SNAPSHOT' could not be retrieved from repository: apache.snapshots due to an error: Error transferring file [INFO] Repository 'apache.snapshots' will be blacklisted [INFO] snapshot org.apache.maven.doxia:doxia:1.0-alpha-8-SNAPSHOT: checking for updates from snapshots -- View this message in context: http://www.nabble.com/How-to-avoid-checking-for-updates-t1626254.html#a4406278 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: RE : RE : Configuring path for picking submodule site
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://www.nabble.com/Configuring-path-for-picking-submodule-site-t1555973.html#a4278961 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Refering to parent directory from child pom xml
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 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Refering to parent directory from child pom xml
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-xml-t1562659.html#a4283251 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: RE : Configuring path for picking submodule site
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 menu ref=modules / from my root site.xml, but its still showing some default path. -- View this message in context: http://www.nabble.com/Configuring-path-for-picking-submodule-site-t1555973.html#a4243591 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Refering to parent directory from child pom xml
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 reporting outputDirectorytarget/site/outputDirectory /reporting in my child pom xml as of now which is placing the child site under ParentProject pom.xml Child Project(Module A) pom.xml target site index.html I wanted the site for my child project say,Module A under ParentProject pom.xml target site ModuleA index.html Child Project(Module A) pom.xml How do i configure refering to parent project directory from my child project? -- View this message in context: http://www.nabble.com/Refering-to-parent-directory-from-child-pom-xml-t1562659.html#a4243752 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Configuring path for picking submodule site
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\SubModule_A\index.html. But the index.hml for the SubModule_A lies under the following path C:\parentProject\SubModule_A\target\site\index.html. Where do I configure to pickup the SubModule_A index.html from a path specified by me. This subModule Menu comes in my parent site when i provide menu ref=modules / in my parent site.xml. I dont exactly know how the path is getting set for each of the subModule menu link. If some one has faced this issue could you pls let me know how this path can be configured? An example would really help. -- View this message in context: http://www.nabble.com/Configuring-path-for-picking-submodule-site-t1555973.html#a4226523 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Issue with multi project site
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 http://www.nabble.com/Support-for-Multi-project-Web-Sites-t1484154.html#a4172319, which was guiding me untill i got stuck at the below error while trying to run mvn site for my parent project. [INFO] The skin does not exist: Unable to determine the release version Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=org.apache.maven.skins -DartifactId=maven -default-skin \ -Dversion=RELEASE -Dpackaging=jar -Dfile=/path/to/file org.apache.maven.skins:maven-default-skin:jar:RELEASE I have not mentioned maven-default-skin in my parent site.xml. I dont know why its still refering to the this plugin. I downloaded the skin and executed mvn -DupdateReleaseInfo=true install:install-file -DgroupId=org.apache.maven.skins -DartifactId=maven-site-skin -Dversion=1.0-SNAPSHOT -Dpackaging=jar -Dfile=SkinPlugin.jar as mentioned in http://www.nabble.com/Support-for-Multi-project-Web-Sites-t1484154.html#a4172319 My site.xml looks like this ?xml version=1.0 encoding=ISO-8859-1? project name=Maven bannerLeft nameMaven/name srchttp://maven.apache.org/images/apache-maven-project.png/src hrefhttp://maven.apache.org//href /bannerLeft bannerRight srchttp://maven.apache.org/images/maven-small.gif/src /bannerRight skin groupIdorg.apache.maven.skins/groupId artifactIdmaven-site-skin/artifactId version1.0-SNAPSHOT/version /skin body links item name=Apache href=http://www.apache.org/; / item name=Maven 1.0 href=http://maven.apache.org// item name=Maven 2 href=http://maven.apache.org/maven2// /links menu name=Maven 2.0 item name=APT Format href=format.html/ item name=FAQ href=faq.html/ item name=Xdoc Example href=xdoc.html/ /menu menu ref=modules / /body /project Am i doing something wrong here? -- View this message in context: http://www.nabble.com/Issue-with-multi-project-site-t1549021.html#a4207750 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Support for Multi-project Web Sites
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 able to download . I have Maven-2.0.4 version. + Error stacktraces are turned on. [INFO] Scanning for projects... [INFO] Reactor build order: [INFO] Maven [INFO] Maven Quick Start Archetype [INFO] Maven Quick Start Archetype [INFO] Maven Quick Start Archetype [INFO] Maven Quick Start Archetype [INFO] Maven Quick Start Archetype [INFO] Maven Quick Start Archetype [INFO] Maven Quick Start Archetype [INFO] Maven Quick Start Archetype [INFO] Maven Quick Start Archetype [INFO] Maven Quick Start Archetype [INFO] Maven Quick Start Archetype [INFO] Maven Quick Start Archetype [INFO] Maven Quick Start Archetype [INFO] [INFO] Building Maven [INFO]task-segment: [site] [INFO] [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Failed to resolve artifact. GroupId: org.apache.maven.plugins ArtifactId: maven-site-plugin Version: 2.0-SNAPSHOT Reason: Unable to download the artifact from any repository org.apache.maven.plugins:maven-site-plugin:pom:2.0-SNAPSHOT from the specified remote repositories: central (http://repo1.maven.org/maven2) [INFO] [INFO] Trace org.apache.maven.lifecycle.LifecycleExecutionException: Unable to build project for plugin 'org.apache.maven.plugins:maven-site-plugin': POM 'org.apache.maven.plugins:maven-site-plugin' not found in repository: Unable to download the artifact from any repository org.apache.maven.plugins:maven-site-plugin:pom:2.0-SNAPSHOT from the specified remote repositories: central (http://repo1.maven.org/maven2) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1269) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(DefaultLifecycleExecutor.java:1517) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.bindLifecycleForPackaging(DefaultLifecycleExecutor.java:1011) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.constructLifecycleMappings(DefaultLifecycleExecutor.java:975) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:453) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115) at org.apache.maven.cli.MavenCli.main(MavenCli.java:256) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.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) Caused by: org.apache.maven.plugin.InvalidPluginException: Unable to build project for plugin 'org.apache.maven.plugins:maven-site-plugin': POM 'org.apache.maven.plugins:maven-site-plugin' not found in repository: Unable to download the artifact from any repository org.apache.maven.plugins:maven-site-plugin:pom:2.0-SNAPSHOT from the specified remote repositories: central (http://repo1.maven.org/maven2) at org.apache.maven.plugin.DefaultPluginManager.checkRequiredMavenVersion(DefaultPluginManager.java:265) at org.apache.maven.plugin.DefaultPluginManager.verifyVersionedPlugin(DefaultPluginManager.java:183) at org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPluginManager.java:163) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1252) ... 18 more Caused by: org.apache.maven.project.ProjectBuildingException: POM 'org.apache.maven.plugins:maven-site-plugin' not found in repository: Unable to download the artifact from any repository
Re: Problem creating multiple project website
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 updates from apache.snapshots [WARNING] repository metadata for: 'snapshot org.apache.maven.doxia:doxia-site-r enderer:1.0-alpha-8-SNAPSHOT' could not be retrieved from repository: apache.sna pshots due to an error: Error transferring file [INFO] Repository 'apache.snapshots' will be blacklisted -- View this message in context: http://www.nabble.com/Problem-creating-multiple-project-website-t1539083.html#a4182700 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: New to Site
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. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Doubt in using wagon plugin
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 unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: issue with mvn clean install
Yes I do. This is how my Project A pom.xml looks like project xmlns=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; modelVersion4.0.0/modelVersion groupIdProject A/groupId artifactIdProject A/artifactId packagingjar/packaging version1.0/version nameMaven Quick Start Archetype/name parent groupIdMain/groupId artifactIdMain/artifactId version1.0/version /parent dependencies dependency groupIdantlr/groupId artifactIdantlr/artifactId version2.7.5H3/version scopeprovided/scope /dependency /dependencies build directory${basedir}/directory outputDirectoryclasses/outputDirectory finalName${project.artifactId}/finalName testOutputDirectorytest-classes/testOutputDirectory sourceDirectorysrc/sourceDirectory testSourceDirectorytest/testSourceDirectory resources resource directory${basedir}/resources/directory /resource resource directorysrc/directory filteringfalse/filtering excludes exclude**/*.java/exclude /excludes /resource /resources testResources testResource directorytest/directory /testResource /testResources plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-compiler-plugin/artifactId configuration source1.5/source target1.5/target /configuration /plugin /plugins /build reporting outputDirectorytarget/site/outputDirectory /reporting /project -- View this message in context: http://www.nabble.com/issue-with-mvn-clean-install-t1516559.html#a4117154 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
New to Site
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 ? I tried going thru the document in http://maven.apache.org/guides/getting-started/index.html but it was not of much help, since it just tells you to run mvn archetype:create -DgroupId=com.mycompany.app -DartifactId=my-app -DarchetypeGroupId=org.apache.maven.archetypes -DarchetypeArtifactId=maven-archetype-site and then mvn site whcih actually generates a site having few links like Issue Tracking,Mailing Lists,Project License,Source Repository whcih all are empty(Dont know from where these details come). I wanted add one more link here for Junit Test Results and going into this link should show me the JUnit results for the project. Could some one advice me on this or point me to a web link where i can get some details on this? -- View this message in context: http://www.nabble.com/New-to-Site-t1517682.html#a4119284 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: New to Site
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] - --- [INFO] artifact org.apache.maven.plugins:maven-surefire-report-plugin: checking for updates from central Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-surefi re-report-plugin/2.0/maven-surefire-report-plugin-2.0.pom 1K downloaded [INFO] Ignoring available plugin update: 2.0 as it requires Maven version 2.0.3 [INFO] - --- [ERROR] BUILD ERROR [INFO] - --- [INFO] The plugin 'org.apache.maven.plugins:maven-surefire-report-plugin' does n ot exist or no valid version could be found [INFO] - --- [INFO] For more information, run Maven with the -e switch [INFO] - --- [INFO] Total time: 4 seconds [INFO] Finished at: Thu Apr 27 12:52:19 BST 2006 [INFO] Final Memory: 2M/4M [INFO] - --- [INFO] Scanning for projects... [INFO] - --- [INFO] Building Maven Quick Start Archetype [INFO]task-segment: [site] [INFO] - --- Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-surefi re-report-plugin/2.0/maven-surefire-report-plugin-2.0.pom 1K downloaded [INFO] - --- [ERROR] BUILD ERROR [INFO] - --- [INFO] Error resolving version for 'org.apache.maven.plugins:maven-surefire-repo rt-plugin': Plugin requires Maven version 2.0.3 [INFO] - --- [INFO] For more information, run Maven with the -e switch [INFO] - --- [INFO] Total time: 2 seconds [INFO] Finished at: Thu Apr 27 12:55:13 BST 2006 [INFO] Final Memory: 2M/5M [INFO] - -- View this message in context: http://www.nabble.com/New-to-Site-t1517682.html#a4119487 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Use System Environment Variable for JUNIT
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 runs my project. I am using Maven2 -- View this message in context: http://www.nabble.com/Use-System-Environment-Variable-for-JUNIT-t1504491.html#a4079453 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Doubt in using wagon plugin
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 this plugin in your pom xml. The entry for this plugin in my pom xml is plugin groupIdorg.apache.myfaces.maven/groupId artifactIdwagon-maven-plugin/artifactId configuration id10.151.1.202/id inputDirectory${basedir}/inputDirectory url10.151.1.202/url /configuration /plugin is this correct? and finally what is the command that is used to run this mvn install was not helping me. I would appreciate if some one could throw some light on this. -- View this message in context: http://www.nabble.com/Doubt-in-using-wagon-plugin-t1506734.html#a4086387 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Doubt in using wagon plugin
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 plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-antrun-plugin/artifactId executions execution phasegenerate-sources/phase configuration tasks ftp server=10.151.1.202 remotedir=/opt/jboss403SP1 depends=yes userid=jboss password=passw0rd fileset dir=${basedir}/ /ftp /tasks /configuration goals goalrun/goal /goals /execution /executions /plugin -- View this message in context: http://www.nabble.com/Doubt-in-using-wagon-plugin-t1506734.html#a4087204 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Doubt in using wagon plugin
I am getting the same error still. Please find below my ear pom xml. project xmlns=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; modelVersion4.0.0/modelVersion groupIdDefinedBenefit_EA/groupId artifactIdDefinedBenefit_EA/artifactId packagingear/packaging version1.0/version dependencies dependency groupIdDefinedBenefit_BackgroundJobs/groupId artifactIdDefinedBenefit_BackgroundJobs/artifactId version1.0/version typejar/type /dependency /dependencies build directory${basedir}/directory finalName${project.artifactId}/finalName plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-ear-plugin/artifactId configuration archive manifestFile${basedir}/src/META-INF/MANIFEST.MF/manifestFile /archive earSourceDirectory${basedir}/src/earSourceDirectory generateApplicationXmlfalse/generateApplicationXml resources resource directory${basedir}/src/directory /resource /resources /configuration /plugin plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-antrun-plugin/artifactId dependencies dependency groupIdant/groupId artifactIdant-nodeps/artifactId version1.6.5/version /dependency /dependencies executions execution phasegenerate-sources/phase configuration tasks ftp server=10.151.1.202 remotedir=/opt/jboss403SP1 depends=yes userid=jboss password=passw0rd fileset dir=${basedir}/ /ftp /tasks /configuration goals goalrun/goal /goals /execution /executions /plugin /plugins /build /project Please find below the exception -- Embedded error: Could not create task or type of type: ftp. Ant could not find the task or a class this task relies upon. This is common and has a number of causes; the usual solutions are to read the manual pages then download and install needed JAR files, or fix the build file: - You have misspelt 'ftp'. Fix: check your spelling. - The task needs an external JAR file to execute and this is not found at the right place in the classpath. Fix: check the documentation for dependencies. Fix: declare the task. - The task is an Ant optional task and the JAR file and/or libraries implementing the functionality were not found at the time you yourself built your installation of Ant from the Ant sources. Fix: Look in the ANT_HOME/lib for the 'ant-' JAR corresponding to the task and make sure it contains more than merely a META-INF/MANIFEST.MF. If all it contains is the manifest, then rebuild Ant with the needed libraries present in ${ant.home}/lib/optional/ , or alternatively, download a pre-built release version from apache.org - The build file was written for a later version of Ant Fix: upgrade to at least the latest release version of Ant - The task is not an Ant core or optional task and needs to be declared using taskdef. - You are attempting to use a task defined using presetdef or macrodef but have spelt wrong or not defined it at the point of use Remember that for JAR files to be visible to Ant tasks implemented in ANT_HOME/lib, the files must be in the same directory or on the classpath Please neither file bug reports on this problem, nor email the Ant mailing lists, until all of these causes have been explored, as this is not an Ant bug. [INFO] - --- [INFO] Trace
Prevent over writing MANIFEST.MF
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/META_INF folder? Is there any addtional entry i need to give in my pm xml to avoid this. My ear pom xml looks like this project xmlns=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; modelVersion4.0.0/modelVersion groupIdSample/groupId artifactIdSample/artifactId packagingear/packaging version1.0/version dependencies dependency groupIdTest/groupId artifactIdTest/artifactId version1.0/version typejar/type /dependency /dependencies build directory${basedir}/directory finalName${project.artifactId}/finalName plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-ear-plugin/artifactId configuration earSourceDirectory${basedir}/src/earSourceDirectory generateApplicationXmlfalse/generateApplicationXml modules javaModule groupIdbackground_admin/groupId artifactIdTest.jar/artifactId bundleFileNameTest.jar/bundleFileName /javaModule /modules /configuration /plugin /build /project -- View this message in context: http://www.nabble.com/Prevent-over-writing-MANIFEST.MF-t1498438.html#a4061317 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Alternative for remote deploying an ear
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.password} Iam new to Maven, so would appreciate if you could provide me your pom xml or any other xml where in you have provided this detail? -- View this message in context: http://www.nabble.com/Alternative-for-remote-deploying-an-ear-t1391330.html#a4061861 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Alternative for remote deploying an ear
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] - --- [ERROR] BUILD ERROR [INFO] - --- [INFO] Error executing ant tasks Embedded error: com.jcraft.jsch.JSchException: Session.connect: java.net.Unknown HostException: ${appserver.hostname} [INFO] - Pls find below my ear pom xml. I something missing here? project xmlns=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; modelVersion4.0.0/modelVersion groupIdDefinedBenefit_EA/groupId artifactIdDefinedBenefit_EA/artifactId packagingear/packaging version1.0/version dependencies dependency groupIdbackground_admin/groupId artifactIdbackground_admin/artifactId version1.0/version typejar/type /dependency /dependencies build directory${basedir}/directory finalName${project.artifactId}/finalName plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-ear-plugin/artifactId configuration configuration archive manifestFile${basedir}/src/META-INF/MANIFEST.MF/manifestFile /archive /configuration earSourceDirectory${basedir}/src/earSourceDirectory generateApplicationXmlfalse/generateApplicationXml resources resource directory${basedir}/src/directory /resource /resources modules javaModule groupIdbackground_admin/groupId artifactIdbackground_admin/artifactId bundleFileNamebackground_admin.sar/bundleFileName /javaModule /modules /configuration /plugin plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-antrun-plugin/artifactId executions execution phasegenerate-sources/phase configuration tasks delete dir=${basedir}/${project.build.directory}/ /tasks /configuration goals goalrun/goal /goals /execution execution idjboss-remote-hotdeploy/id phaseintegration-test/phase goals goalrun/goal /goals configuration tasks scp trust=true file=${project.build.directory}/${ project.build.finalName}.${project.packaging} todir=[EMAIL PROTECTED]:${appserver.deploydir} password=${appserver.remote.password} / /tasks /configuration /execution /executions dependencies dependency groupIdant/groupId artifactIdant-optional/artifactId version1.5.3-1/version /dependency dependency groupIdant/groupId artifactIdant-jsch/artifactId version1.6.5/version /dependency /dependencies /plugin /plugins /build profiles profile idtest-environment/id activation property nameenv/name valuetest/value /property
Re: Removing version when creating a jar
I have found a way to remove the version, in my ear pom xml i am using under the configuration of my ear-plugin javaModule groupIdTest/groupId artifactIdTest/artifactId bundleFileNameTest.jar/bundleFileName /javaModule webModule groupIdTest_WEB/groupId artifactIdTest_WEB/artifactId bundleFileNameTest_WEB.war/bundleFileName /webModule -- View this message in context: http://www.nabble.com/Removing-version-when-creating-a-jar-t1438924.html#a4069067 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
FTP an EAR file
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 know the command i need to run to ftp the file. -- View this message in context: http://www.nabble.com/FTP-an-EAR-file-t1501225.html#a4069712 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problem in Deploy an EAR to remote server
I need to deploy an EAR from my Local PC to a remote JBoss server. I tried using the distributionManagement tag as shown belowdistributionManagement repository id10.231.81.122/id namelunar21/name urlscp://10.231.81.122/opt/jboss403SP1/server/default/deploy/url /repository /distributionManagement But it was trying to upload the EAR from my local repository and upload the entire folder structure (groupId/artifactId/version/SampleEAR-version.ear) into the remote server which I dont want. I just want the EAR to be taken from my ${basedir} and uploaded into the specified location into the server. Could some one please advice on how this can be achieved?. I also tried using the jboss:deploy plugin which uses the JMX to deploy to remote server and my pom xml for the plugin looks like this plugin groupIdorg.codehaus.mojo/groupId artifactIdjboss-maven-plugin/artifactId configuration fileName ${project.build.directory}/${project.build.finalName}.${project.packaging} /fileName hostName10.231.81.122/hostName port8080/port /configuration /plugin This was again throwing me an error when i executes mvn jboss:deploy Exception [INFO] Mojo error occurred: Server returned HTTP response code: 500 for URL: htt p://10.231.81.122:8080/jmx-console/HtmlAdaptor?action=invokeOpByNamename=jboss.s ystem:service%3DMainDeployermethodName=deployargType=java.net.URLarg0=file:C: \Mvn\Sample/Sample.ear javax.management.MBeanException at org.jboss.mx.interceptor.ReflectedDispatcher.handleInvocationExceptions(ReflectedDispatcher.java:166) at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:149) at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80) at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:118) at org.jboss.mx.server.Invocation.invoke(Invocation.java:74) at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127) at org.jboss.mx.server.Invocation.invoke(Invocation.java:74) at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644) at org.jboss.jmx.adaptor.control.Server.invokeOpByName(Server.java:243) at org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.invokeOpByName(HtmlAdaptorServlet.java:272) at org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.processRequest(HtmlAdaptorServlet.java:87) at org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.doGet(HtmlAdaptorServlet.java:62) at javax.servlet.http.HttpServlet.service(HttpServlet.java:697) at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39) at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:159) at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112) at java.lang.Thread.run(Unknown Source) Caused by: org.jboss.deployment.DeploymentException: url file:/opt/jboss403SP1/bin/C:\Mvn\Sample/Sample.ear could not be opened, does it exist? at org.jboss.deployment.DeploymentInfo.init(DeploymentInfo.java:191) at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:752) at
Re: jboss:deploy Issue
Sorry wayne, but i did not actually understand what you meant here, I corrected my deployUrlPath tag as deployUrlPath![CDATA[[/jmx-console/HtmlAdaptor?action=invokeOpByNamename=jboss.system:service%3DMainDeployermethodName=deployargType=java.net.URLarg0=?and=yes]]/deployUrlPath and iam still getting the same parse exception as Exception: Caused by: org.codehaus.plexus.util.xml.pull.XmlPullParserException: entity refe rence name can not contain character =' (position: START_TAG seen ...![CDATA[[/j mx-console/HtmlAdaptor?action=invokeOpByNamename=... @184:79) Is this what you meant or i need to give the absolute path of the location of the remote server here as deployUrlPath![CDATA[[/opt/jboss403SP1/server/default?and=yes]]/deployUrlPath (This also did not work) -- View this message in context: http://www.nabble.com/jboss%3Adeploy-Issue-t1491112.html#a4041068 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
version number to avoid when creating an EAR
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 project groupIdA/groupId artifactIdA/artifactId packagingjar/packaging version1.0/version /project So its creating a jar file as A-1.0.jar. I can avoid the version number when i execute mvn package by providing build finalName${project.artifactId}/finalName /build in my pom xml for the project A. But when i execute mvn install for the project it again places the project-version.jar in my localrepository under the following folder path localRepository/{groupId}/{version}/project-version.jar. Due to this I am facing an issue when i am trying to create an EAR by including this project. Since all this A project jar is fetched from the local repository, thiss jar will be A-{version}.jar. Please let me know how i can avoid getting the version number. My EAR pom xml looks like this project xmlns=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; modelVersion4.0.0/modelVersion groupIdDB_EA/groupId artifactIdDB_EA/artifactId packagingear/packaging version1.0/version dependencies dependency groupIdA/groupId artifactIdA/artifactId version1.0/version typejar/type /dependency /dependencies build directory${basedir}/directory finalName${project.artifactId}/finalName plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-ear-plugin/artifactId configuration earSourceDirectory${basedir}/src/earSourceDirectory archive manifest addClasspathtrue/addClasspath /manifest /archive generateApplicationXmlfalse/generateApplicationXml /configuration /plugin /plugins /build /project -- View this message in context: http://www.nabble.com/version-number-to-avoid-when-creating-an-EAR-t1485462.html#a4023054 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Avoid Build folder when creating EAR/WAR
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 well, but creating my JAR projects does not have this issue. My EAR pom xml looks like this. Hope I am clear here. project xmlns=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; modelVersion4.0.0/modelVersion groupIdDB_EA/groupId artifactIdDB_EA/artifactId packagingear/packaging version1.0/version dependencies dependency groupIdA/groupId artifactIdA/artifactId version1.0/version typejar/type /dependency /dependencies build directory${basedir}/directory finalName${project.artifactId}/finalName plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-ear-plugin/artifactId configuration earSourceDirectory${basedir}/src/earSourceDirectory archive manifest addClasspathtrue/addClasspath /manifest /archive generateApplicationXmlfalse/generateApplicationXml /configuration /plugin /plugins /build /project -- View this message in context: http://www.nabble.com/Avoid-Build-folder-when-creating-EAR-WAR-t1485825.html#a4024144 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [M2] Deploy question
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 find the path in my local m/c itself and was failing. I was not sure where to provide details for the remote server. Please find below my ear pom xml? Am I missing something here? I want to deploy this ear to a remote server by providing server url,username and password. Where do you think i should be giving these details. project xmlns=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; modelVersion4.0.0/modelVersion groupIdDefinedBenefit_EA/groupId artifactIdDefinedBenefit_EA/artifactId packagingear/packaging version1.0/version dependencies dependency groupIdDefinedBenefit_WEB/groupId artifactIdDefinedBenefit_WEB/artifactId version1.0/version typewar/type /dependency /dependencies build directory${basedir}/directory finalName${project.artifactId}/finalName plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-ear-plugin/artifactId configuration earSourceDirectory${basedir}/src/earSourceDirectory generateApplicationXmlfalse/generateApplicationXml modules webModule groupIdDefinedBenefit_WEB/groupId artifactIdDefinedBenefit_WEB/artifactId bundleFileNameDefinedBenefit_WEB.war/bundleFileName /webModule /modules /configuration /plugin plugin groupIdorg.codehaus.mojo/groupId artifactIdjboss-maven-plugin/artifactId configuration fileName${project.build.directory}/${project.build.finalName}.${project.packaging}/fileName jbossHome/opt/jboss403SP1/jbossHome serverNamedefault/serverName /configuration /plugin /plugins /build /project -- View this message in context: http://www.nabble.com/-M2-Deploy-question-t1134943.html#a4027397 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Avoid Build folder when creating EAR/WAR
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 artifactIdmaven-antrun-plugin/artifactId executions execution phasegenerate-sources/phase configuration tasks delete dir=${project.build.directory}/ /tasks /configuration goals goalrun/goal /goals /execution /executions /plugin but here it was trying to delete even before the packaging had started. I see a phase , should i specify something here so that it will delete the folder only after packaging? -- View this message in context: http://www.nabble.com/Avoid-Build-folder-when-creating-EAR-WAR-t1485825.html#a4028236 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Junit using Maven
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 sec FAILURE !! [surefire] Running rlg.pensions.definedbenefits.components.payroll.dao.Test_DaoPayrollBean [surefire] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 4.953 sec FAILURE !! Could I get this in more descriptive way as to which method actually failed in the class file Test_DaoPayrollBean or TestBsPayrollBean? -- View this message in context: http://www.nabble.com/Junit-using-Maven-t1479596.html#a4004401 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Issue when packaging WAR Project
Hi, I am using Maven 2 and the pom.xml of my WAR project looks like this project modelVersion4.0.0/modelVersion nameDefinedBenefit_WEB/name groupIdDefinedBenefit_WEB/groupId artifactIdDefinedBenefit_WEB/artifactId packagingwar/packaging version1.0/version dependencies dependency groupIdjunit/groupId artifactIdjunit/artifactId version3.8.1/version scopecompile/scope /dependency dependency /dependencies build directory${basedir}/directory outputDirectoryclasses/outputDirectory finalName${project.artifactId}/finalName testOutputDirectorytest-classes/testOutputDirectory sourceDirectorysrc/sourceDirectory testSourceDirectorytest/testSourceDirectory resources resource directory${basedir}/resources/directory /resource /resources testResources testResource directorytest/directory /testResource /testResources plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-compiler-plugin/artifactId configuration source1.5/source target1.5/target /configuration /plugin plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-surefire-plugin/artifactId configuration skip${unittests.skip}/skip testFailureIgnoretrue/testFailureIgnore /configuration /plugin plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-war-plugin/artifactId configuration webXml${basedir}/WebRoot/WEB-INF/web.xml/webXml /configuration /plugin /plugins /build /project I have 2 issues 1. When I am trying to execute mvn package. The WAR file gets created but none of my jsp files are available in this. It only creates a WEB-INF folder and a META_INF folder in my war file. Is there any changes that I need to do in my pom xml for my jsp also to appear? 2. The WEB-INF folder in the my WAR has the classes folder and the web.xml folder, but there were some other files like .tld file and a faces-config.xml file which also I wanted to appear in the WEB-INF folder which has not happened? Am I missing something in my pom xml to specifically have these files as well in my WEB-INF folder? -- View this message in context: http://www.nabble.com/Issue-when-packaging-WAR-Project-t1479943.html#a4005384 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Issue when packaging WAR Project
Thanks, I have got it corrected now. I have one more issue. I have few dependency jars specified under the dependency/ 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 have something warSourceExcludes, is this of any help? what do i need to provide in this tag to remove all my dependency jars -- View this message in context: http://www.nabble.com/Issue-when-packaging-WAR-Project-t1479943.html#a4009330 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Removing version when creating a jar
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 localRepository/{groupId}/{version}/project-version.jar. I am facing an issue when i am trying to create an EAR. Since all the projects are getting created from the the local repository all the projects are getting appended with version number which I want to avoid. Please let me know how i can avoid gettuing the version number appended when i execute mvn install for a project or Can i over ride the name of the dependency project jars when they are fetched from the repository? -- View this message in context: http://www.nabble.com/Removing-version-when-creating-a-jar-t1438924.html#a4012162 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Fetch project using Maven
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 some commands for doing this? Thanks in advance Robin -- View this message in context: http://www.nabble.com/Fetch-project-using-Maven-t1475096.html#a3990142 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Avoid Run Test
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#a3902126 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Remove mavern folder in META-INF
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 advance -- View this message in context: http://www.nabble.com/Remove-mavern-folder-in-META-INF-t1444885.html#a3902183 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Avoid Run Test
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#a3902544 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Remove mavern folder in META-INF
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.init(Matcher.java:205) at java.util.regex.Pattern.matcher(Pattern.java:879) at org.apache.maven.plugin.PluginConfigurationException.addParameterUsag eInfo(PluginConfigurationException.java:85) at org.apache.maven.plugin.PluginConfigurationException.buildConfigurati onDiagnosticMessage(PluginConfigurationException.java:272) at org.apache.maven.usability.PluginConfigurationDiagnoser.diagnose(Plug inConfigurationDiagnoser.java:49) at org.apache.maven.usability.diagnostics.ErrorDiagnostics.diagnose(Erro rDiagnostics.java:81) at org.apache.maven.DefaultMaven.logDiagnostics(DefaultMaven.java:693) at org.apache.maven.DefaultMaven.logError(DefaultMaven.java:640) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:119) at org.apache.maven.cli.MavenCli.main(MavenCli.java:249) 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) Any idea why i am getting this? My pom.xml looks like this project xmlns=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; modelVersion4.0.0/modelVersion groupIdComponent_ADP/groupId artifactIdComponent_ADP/artifactId packagingjar/packaging version1.0/version nameMaven Quick Start Archetype/name parent groupIdDefinedBenefit_EA/groupId artifactIdDefinedBenefit_EA/artifactId version1.0/version /parent build directory${basedir}/directory outputDirectoryclasses/outputDirectory finalName${project.artifactId}/finalName testOutputDirectorytest-classes/testOutputDirectory sourceDirectorysrc/sourceDirectory testSourceDirectorytest/testSourceDirectory resources resource directory${basedir}/resources/directory /resource /resources testResources testResource directorytest/directory /testResource /testResources plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-jar-plugin/artifactId configuration archive addMavenDescriptorfalse/addMavenDescriptor /archive /configuration /plugin plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-surefire-plugin/artifactId configuration skip${unittests.skip}/skip testFailureIgnoretrue/testFailureIgnore /configuration /plugin plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-compiler-plugin/artifactId configuration source1.5/source target1.5/target /configuration /plugin /plugins /build reporting outputDirectorytarget/site/outputDirectory /reporting /project -- View this message in context: http://www.nabble.com/Remove-mavern-folder-in-META-INF-t1444885.html#a3903992 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to create Local repository
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 project its expecting the jar files to be available in .m2/repository folder which I is not what I want. I would want to specify my own location to place this jars and provide a dependency tag for this jar in each of my project's pom.xml. I have a project say Project A containing folder structure as src/main/package/A.java using say a jar Log4j-1.2.2.jar. The pom.xml for this project looks like project xmlns=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; modelVersion4.0.0/modelVersion groupIdGroupA/groupId artifactIdA/artifactId packagingjar/packaging version1.0/version dependencies dependency dependency groupIdlib/groupId artifactIdlog4j/artifactId version1.2.2/version scopecompile/scope /dependency /dependencies /project When I give this way its trying to search for the log4j-1.2.2 jar in my .m2/repository folder. How do I make changes so that it points to a path say C:\Temp. I am aware of project ... repositories repository id/id repository /repositories ... /project But could some one provide me an example of how to provide details in this? -- View this message in context: http://www.nabble.com/How-to-create-Local-repository-t1437154.html#a3878663 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Need to Package w/o executing Test
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. Is there a way i can over ride this so that i can package atleast the files under my src/main folder? Thanks in advance. Robin -- View this message in context: http://www.nabble.com/Need-to-Package-w-o-executing-Test-t1438538.html#a3883045 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Removing version when creating a jar
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 project groupIdA/groupId artifactIdA/artifactId packagingjar/packaging version1.0/version /project So its creating a jar file as A-1.0.jar which i dont want to have I just want it as A.jar. I believe version tag is mandatory as i tried removing it. Please advice Thanks in advance Robin -- View this message in context: http://www.nabble.com/Removing-version-when-creating-a-jar-t1438924.html#a3884329 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Compiling dependency project
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 in the pom.xml for project A to also include files under project B. I know we have something called dependency tag which i can make use of, but dont know the values to provide. I tried providing the following for the dependency tags in pom.xml of Project A as shown below groupIdpackage.subPackage1.subPackage2/groupId artifactIdB/artifactId scopecompile/scope version1.0/version Please advice on this. Cheers Robin -- View this message in context: http://www.nabble.com/Compiling-dependency-project-t1412713.html#a3805829 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]