RE: Help! Maven weblogic plugin: NoClassDefFoundError with com/bea/xml/XmlException
Do you have xbean.jar as a dependency in your project. This class is part of xbean.jar distributed with weblogic. -Satish -Original Message- From: Vaidya, Supriya A (US - Chicago) [mailto:[EMAIL PROTECTED] Sent: Friday, July 20, 2007 1:34 PM To: Maven Users List Subject: RE: Help! Maven weblogic plugin: NoClassDefFoundError with com/bea/xml/XmlException Hi - could someone please point me in the right direction with this error? From: Vaidya, Supriya A (US - Chicago) Sent: Friday, July 20, 2007 10:36 AM To: 'Maven Users List' Subject: Maven weblogic plugin: NoClassDefFoundError with com/bea/xml/XmlException Hi: I have installed the following jars: mvn install:install-file -Dfile=C:\bea\weblogic92\server\lib\weblogic.jar -DgroupId=weblogic -DartifactId=weblogic -Dversion=9.0 -Dpackaging=jar -DgeneratePom=true mvn install:install-file -Dfile=C:\bea\weblogic92\server\lib\webservices.jar -DgroupId=weblogic -DartifactId=webservices -Dversion=9.0 -Dpackaging=jar -DgeneratePom=true mvn install:install-file -Dfile=C:\bea\weblogic92\server\lib\xbean.jar -DgroupId=weblogic -DartifactId=xbean -Dversion=9.0 -Dpackaging=jar -DgeneratePom=true mvn install:install-file -Dfile=C:\bea\weblogic92\server\lib\wlxbean.jar -DgroupId=weblogic -DartifactId=wlxbean -Dversion=9.0 -Dpackaging=jar -DgeneratePom=true mvn install:install-file -Dfile=C:\bea\weblogic92\common\lib\wlw-util.jar -DgroupId=weblogic -DartifactId=wlw-util -Dversion=9.0 -Dpackaging=jar -DgeneratePom=true mvn install:install-file -Dfile=C:\bea\weblogic92\server\lib\wlw-langx.jar -DgroupId=weblogic -DartifactId=wlw-langx -Dversion=9.0 -Dpackaging=jar -DgeneratePom=true mvn install:install-file -Dfile=C:\bea\weblogic92\javelin\lib\bcel-5.1.jar -DgroupId=weblogic -DartifactId=bcel -Dversion=9.0 -Dpackaging=jar -DgeneratePom=true mvn install:install-file -Dfile=C:\bea\weblogic92\javelin\lib\javelinx.jar -DgroupId=weblogic -DartifactId=javelinx -Dversion=9.0 -Dpackaging=jar -DgeneratePom=true mvn install:install-file -Dfile=C:\bea\weblogic92\server\lib\schema\weblogic-container-binding.ja r -DgroupId=weblogic -DartifactId=weblogic-container-binding -Dversion=9.0 -Dpackaging=jar -DgeneratePom=true When running the command mvn weblogic:appc - I get the following error: Jul 20, 2007 10:26:23 AM CDT Error J2EE BEA-160187 weblogic.appc failed to compile your application. Recompile with the -verbose option for more detail s. Please see the error message(s) below. [ERROR] Exception encountered during APPC processing weblogic.utils.compiler.ToolFailureException: com/bea/xml/XmlException at weblogic.ant.taskdefs.j2ee.CompilerTask.invokeMain(CompilerTask.java: 299) at weblogic.ant.taskdefs.j2ee.Appc.privateExecute(Appc.java:250) at weblogic.ant.taskdefs.j2ee.Appc.execute(Appc.java:159) at org.codehaus.mojo.weblogic.AppcMojo.execute(AppcMojo.java:180) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi nManager.java:443) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa ultLifecycleExecutor.java:539) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandalone Goal(DefaultLifecycleExecutor.java:493) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau ltLifecycleExecutor.java:463) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan dleFailures(DefaultLifecycleExecutor.java:311) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen ts(DefaultLifecycleExecutor.java:278) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi fecycleExecutor.java:143) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125) at org.apache.maven.cli.MavenCli.main(MavenCli.java:280) 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) Caused by: weblogic.utils.compiler.ToolFailureException: com/bea/xml/XmlExceptio n at weblogic.application.compiler.FlowDriver.handleStateChangeException(F lowDriver.java:53) at weblogic.application.compiler.FlowDriver.nextState(FlowDriver.java:37 ) at weblogic.application.compiler.FlowDriver.run(FlowDriver.java:26) at weblogic.application.compiler.Appc.runBody(Appc.java:163
RE: diagnosing class version errors
Try running maven with -X option. This will print out the exact classpath thats being set at compile/runtime. This seems to be case of an incompatible jar on JDK5. From: Mark Derricutt [mailto:[EMAIL PROTECTED] Sent: Mon 7/16/2007 6:25 AM To: Maven Users List Subject: diagnosing class version errors Hi all, I have a strange problem which has me pulling my hair out, using OS/X, maven and testng I had some tests working fine - up until I tried loading the postgresql database driver which now throws an UnsupportedClassVersion: Tests run: 12, Failures: 1, Errors: 0, Skipped: 11, Time elapsed: 0.036 sec FAILURE! createFreshDatabase(com.theoryinpractise.dbng.TestDatabaseCreation) Time elapsed: 1,184,579,089.059 sec FAILURE! java.lang.UnsupportedClassVersionError: Bad version number in .class file at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:620) at java.security.SecureClassLoader.defineClass( SecureClassLoader.java:124) at java.net.URLClassLoader.defineClass(URLClassLoader.java:260) The tests all work fine when run under IDEA, so something's up at the maven side, running with -X I see: [DEBUG] Test Classpath : [DEBUG] /Users/amrk/IdeaProjects/dbng/dbng-core/target/classes [DEBUG] /Users/amrk/IdeaProjects/dbng/dbng-core/target/test-classes [DEBUG] /Users/amrk/.m2/repository/org/springframework/spring-beans/2.0.6/spring- beans-2.0.6.jar [DEBUG] /Users/amrk/.m2/repository/aopalliance/aopalliance/1.0/aopalliance-1.0.jar [DEBUG] /Users/amrk/.m2/repository/org/springframework/spring-dao/2.0.6/spring- dao-2.0.6.jar [DEBUG] /Users/amrk/.m2/repository/junit/junit/3.8.1/junit-3.8.1.jar [DEBUG] /Users/amrk/.m2/repository/commons-logging/commons-logging/1.1/commons- logging-1.1.jar [DEBUG] /Users/amrk/.m2/repository/javax/servlet/servlet-api/2.3/servlet- api-2.3.jar [DEBUG] /Users/amrk/.m2/repository/org/springframework/spring-jdbc/2.0.6/spring- jdbc-2.0.6.jar [DEBUG] /Users/amrk/.m2/repository/commons-collections/commons-collections/2.1/commons- collections-2.1.jar [DEBUG] /Users/amrk/.m2/repository/org/springframework/spring-core/2.0.6/spring- core-2.0.6.jar [DEBUG] /Users/amrk/.m2/repository/logkit/logkit/1.0.1/logkit-1.0.1.jar [DEBUG] /Users/amrk/.m2/repository/org/springframework/spring-context/2.0.6/spring- context-2.0.6.jar [DEBUG] /Users/amrk/.m2/repository/avalon-framework/avalon-framework/4.1.3/avalon- framework-4.1.3.jar [DEBUG] /Users/amrk/.m2/repository/commons-dbcp/commons-dbcp/1.2.1/commons- dbcp-1.2.1.jar [DEBUG] /Users/amrk/.m2/repository/org/apache/maven/maven-artifact/2.0.6/maven- artifact-2.0.6.jar [DEBUG] /Users/amrk/.m2/repository/postgresql/postgresql/8.2-504.jdbc4 /postgresql-8.2-504.jdbc4.jar [DEBUG] /Users/amrk/.m2/repository/org/testng/testng/5.1/testng- 5.1-jdk15.jar [DEBUG] /Users/amrk/.m2/repository/xml-apis/xml-apis/1.0.b2/xml- apis-1.0.b2.jar [DEBUG] /Users/amrk/.m2/repository/xerces/xercesImpl/2.0.2/xercesImpl- 2.0.2.jar [DEBUG] /Users/amrk/.m2/repository/commons-pool/commons-pool/1.2/commons- pool-1.2.jar [DEBUG] /Users/amrk/.m2/repository/log4j/log4j/1.2.14/log4j-1.2.14.jar [DEBUG] Setting system property [localRepository]=[/Users/amrk/.m2/repository] [DEBUG] Setting system property [basedir]=[/Users/amrk/IdeaProjects/dbng/dbng-core] [DEBUG] Using JVM: /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home/bin/java [INFO] Surefire report directory: /Users/amrk/IdeaProjects/dbng/dbng-core/target/surefire-reports Forking command line: /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home/bin/java -classpath /Users/amrk/.m2/repository/org/codehaus/plexus/plexus-archiver/1.0-alpha-7/plexus- archiver-1.0-alpha-7.jar:/Users/amrk/.m2/repository/junit/junit/3.8.1/junit-3.8.1.jar:/Users/amrk/.m2/repository/org/apache/maven/surefire/surefire-api/2.3/surefire-api-2.3.jar:/Users/amrk/.m2/repository/org/codehaus/plexus/plexus-container-default/1.0-alpha-8/plexus-container-default-1.0-alpha-8.jar:/Users/amrk/.m2/repository/classworlds/classworlds/1.1-alpha-2/classworlds-1.1-alpha-2.jar:/Users/amrk/.m2/repository/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar:/Users/amrk/.m2/repository/commons-lang/commons-lang/2.1/commons-lang-2.1.jar:/Users/amrk/.m2/repository/org/apache/maven/surefire/surefire-booter/2.3/surefire-booter-2.3.jar:/Users/amrk/.m2/repository/org/testng/testng/5.1/testng-5.1-jdk15.jar org.apache.maven.surefire.booter.SurefireBooter /tmp/surefire32297tmp /tmp/surefire32298tmp Now, from the looks of this 'forking command line' theres alot of things missing from the classpath that I would expect to be there based on whats listed at above it, so I'm guessing this isn't the actual classpath... Everything looks to be using the same the jvm - anyone seen anything similar or have any suggestions on where/how I could get more information on fixing this? Mark
RE: URGENT: Renaming files during compile time
You should do this using profiles. Typically you would define a profile for each environment profile iddev/id activation property nametarget-env/name valuedev/value /property /activation properties resource.filter.filesrc/main/filters/dev.filter.properties/resource.f ilter.file /properties /profile Depending on the env you want to build for dev/prod/stage , you can pass in the appropriate value with -Dtarget-env=env.name when running a maven goal. I am not sure if you have a plugin that will rename the files (you can definitely use a ant task to do that), instead the way its recommended is by using a filter file instead. Have the application.xml define variables for property values you want to change, and replace those with values from the appropriate environment filters file. -Satish -Original Message- From: Vaidya, Supriya A (US - Chicago) [mailto:[EMAIL PROTECTED] Sent: Thursday, June 28, 2007 5:49 PM To: users@maven.apache.org Subject: URGENT: Renaming files during compile time Hi: Here is what needs to be achieved: I have 3 different configuration files: application-dev.properties, application-int.properties, application-prod.properties. Depending on the value taken by a certain variable (where and how do shoudl I define this variable??), I need to have one of the above files copied to a certain directory, and renamed. How do I achieve this with Maven? I have tried using the maven-dependency-plugin, but am not sure how to define the artifacts... plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-dependency-plugin/artifactId executions execution idcopy/id phasepackage/phase goals goalcopy/goal /goals configuration artifactItems artifactItem groupIdmy-application/groupId artifactIdapplication-prod.xml/artifactId typefile/type overWritefalse/overWrite outputDirectory${project.build.directory}/outputDirectory destFileNameapplication.xml/destFileName /artifactItem /artifactItems /configuration /execution /executions /plugin This message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, you should delete this message. Any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited. [v.E.1] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] Build-number plug-in and install goal conflict?
Is it possible to retrieve the SVN version number to map the build number during mvn install and pulling this to bundle as part of war/jar file. Julian Wood wrote: I'm not sure. I don't actually use buildNumber in finalName, because there are multiple places throughout the build/release cycle where maven simply ignores that value and uses it's own finalName. This has been brought up before, and it's not likely to change. That said, I'm not sure that's your problem. What phase did you bind it to? You should bind it as early as possible, which would be validate. So to answer your question precisely - the buildNumber property has either not been set yet, or it is being ignored. If you are already binding to validate, I don't know how to fix it, or if it is even possible to fix it without changing maven internals. J PS. The alternative that I use, and which I think works better than messing with file names, is to place the build number in some metadata. My favourite place is the manifest.mf of your jar or war file. On 19-Feb-07, at 11:58 AM, Larry Meadors wrote: I am trying to use the build number plug-in: http://commons.ucalgary.ca/projects/maven-buildnumber-plugin/ howto.html I changed my pom to use ${project.artifactId}-${project.version}-r${buildNumber} as the final name, and it works great for all of the files built, but for the pom, it messes up the name like this: blah-SNAPSHOT-r${buildNumber}.pom blah-SNAPSHOT-r509202.jar Any ideas why the pom is being misnamed..or more importantly, how to fix it? Larry - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Julian Wood [EMAIL PROTECTED] Software Engineer Teaching Learning Centre University of Calgary http://tlc.ucalgary.ca -- View this message in context: http://www.nabble.com/Build-number-plug-in-and-install-goal-conflict--tf3254606s177.html#a9318787 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Reading a property that is initialized in profile in POM
Hello I am struggling with possibly that's a simple issue. I need to apply filters to my resources based on the environment that I build for. For example if building for local I want to use local.filter.properties as the filter property file . I am trying to do this by applying a profile for each environment. But some how the variable for which the value is set inside the profile definition still comes as a variable inside the build element. Below is the snippet of the code, can some one please help out. I think I am making some basic mistake. -Satish build filters filtersrc/main/filters/${envName}.filter.properties/filter /filters resources resource directorysrc/main/resources/directory filteringtrue/filtering /resource /resources /build profiles profile idlocal/id activation property nametarget-env/name valuelocal/value /property /activation properties envNamelocal/envName /properties /profile /profiles
inheriting parent version number in child poms
I believe this problem has already been discussed in the maven community as I see a jira that was opened. I am not quite sure if there is a solution yet. Here is the Jira http://jira.codehaus.org/browse/MNG-521?page=com.atlassian.jira.plugin.s ystem.issuetabpanels:comment-tabpanel#action_42869 Problem : I want to update the version number of my application (ear with multiple jars and wars) at the parent level and propogate it to the children. I update the version element of the parent pom but that only create a new parent pom definition , but the children continue to build with old version. The only way I can force each child project version change is by modifying the version number in the parent element of the child pom's. Given that my parent project has about 10 sub projects (hence poms') what is the correct solution to do this. I tried using the ${project.version} attribute , but that does'nt help since the child pom's only use the version value defined in the parent ' version element of their pom. Thanks -satish
RE: inheriting parent version number in child poms
Jo Thanks for the quick reply. I tried using the release plugin , but it expects the SCM tool to be available I guess. I use Accurev as my SCM tool , and I don't think there is any accurev integration for maven yet. Is there any other alternative or am I stuck now? -Satish -Original Message- From: Jo Vandermeeren [mailto:[EMAIL PROTECTED] Sent: Monday, February 26, 2007 3:25 PM To: Maven Users List Subject: Re: inheriting parent version number in child poms Hi Satish, I guess you're adjusting the parent version manually? This doesn't get picked up by the child modules since in the child poms you're still referencing the parent with its old version. You could always use the release-plugin to release your versions (which is the preferred way to cut a release).. A release:prepare will iterate through the modules of a POM project and prompt you for the desired version to set on them (defaults are usually just fine).. Cheers Jo On 2/26/07, Terala, Satish (IS Consultant) [EMAIL PROTECTED] wrote: I believe this problem has already been discussed in the maven community as I see a jira that was opened. I am not quite sure if there is a solution yet. Here is the Jira http://jira.codehaus.org/browse/MNG-521?page=com.atlassian.jira.plugin.s ystem.issuetabpanels:comment-tabpanel#action_42869 Problem : I want to update the version number of my application (ear with multiple jars and wars) at the parent level and propogate it to the children. I update the version element of the parent pom but that only create a new parent pom definition , but the children continue to build with old version. The only way I can force each child project version change is by modifying the version number in the parent element of the child pom's. Given that my parent project has about 10 sub projects (hence poms') what is the correct solution to do this. I tried using the ${project.version} attribute , but that does'nt help since the child pom's only use the version value defined in the parent ' version element of their pom. Thanks -satish - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
killing a hanging build in contrinuum
I have a build which is hanging for 4 days, even i restart the continuum, it's doesn't go away. Any tips for how to kills this. -- View this message in context: http://www.nabble.com/killing-a-hanging-build-in-contrinuum-tf3215400.html#a8929330 Sent from the Continuum - Users mailing list archive at Nabble.com.
updating the common.vm template for build emails
a. I want to update this common.vm template so that i can add a command to parse the current output currentline: $buildOutput - new line awk '/Tests run: [0-9], Failures: [1-9]/, /Running/ {print prev} {prev=$0}' buildOutput any idea, how can i plug a awk command in velocity template Thanks, Satish -- View this message in context: http://www.nabble.com/updating-the-common.vm-template-for-build-emails-tf3084084.html#a8570898 Sent from the Continuum - Users mailing list archive at Nabble.com.
create a surefire report link in build report
Create a link for surefire report in the build mail http://maven.zones.apache.org:8080/continuum/buildResult.action;jsessionid=3c8kkdrj16wq5?buildId=1688projectId=102 Note: The above links show for maven, but there are tips how to configure this. Thanks, Satish -- View this message in context: http://www.nabble.com/create-a-surefire-report-link-in-build-report-tf3084088.html#a8570911 Sent from the Continuum - Users mailing list archive at Nabble.com.
Re: email build notification not an href
I am also looking for this feature and also the way to send failure notifications only to the checkin users in that build activemqer wrote: Hi, How do I make the build results link a hyperlink? It seems to come in as a text string in the build notification emails. Thanks. -- View this message in context: http://www.nabble.com/email-build-notification-not-an-href-tf2892577.html#a8279824 Sent from the Continuum - Users mailing list archive at Nabble.com.
mvn -N install not working for daytrader
I am just starting to learn Maven. I am trying to follow the instrucations in Better Builds with Maven but get the following message right off the bat: It requires a project with an existing pom.xml , but the build is not using one. I am using maven2.0.4 on Windows XP. I'd appreciate any help. Thanks
Re: mvn -N install not working for daytrader
Thanks for your reply! Daytrader is the example being dealt with in the book Better Builds with Maven. I am trying to learn how to be able to work with J2EE projects. The book doesn't explicitly say to install a top-level pom.xml. I made a guess and did copy a pom.xml from another part of the book and tha part seem to have worked. Now I am working on the ejb module under daytrader directoy. So I copied a pom.xml from tha section to ejb directory and ran mvn install. Now I am getting the following error: Cannot find parent: org.apache.geronimo.samples.daytrader:daytrader for project: null:daytrader-ejb:ejb:null How do people learn Maven? It seems to be popular but the documentation seems very hard to understand! Do you have any suggestions? Thanks On 10/12/06, pjungwir [EMAIL PROTECTED] wrote: Hi Satish, Maven expects to find a pom.xml in the current directory. That message means there isn't one there. I don't know what daytrader is. Are you trying to build it from source? Paul Satish Gupta wrote: I am just starting to learn Maven. I am trying to follow the instrucations in Better Builds with Maven but get the following message right off the bat: It requires a project with an existing pom.xml , but the build is not using one. I am using maven2.0.4 on Windows XP. I'd appreciate any help. Thanks -- View this message in context: http://www.nabble.com/mvn--N-install-not-working-for-daytrader-tf2434911.html#a6789679 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Maven2 - Jira plugin - throwing errors
getting following error when running report after adding maven-jira-plugin [INFO] Trace java.lang.NullPointerException at org.apache.maven.plugin.DefaultPluginManager.addPlugin(DefaultPluginM anager.java:292) at org.apache.maven.plugin.DefaultPluginManager.verifyVersionedPlugin(De faultPluginManager.java:198) Any one got this working ?? -- View this message in context: http://www.nabble.com/Maven2--%3E-Jira-plugin---throwing-errors-tf2314620.html#a6437137 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
maven emma plugin
how to configure the maven emma plugin and where to get this from. Any body got success integrating this in Maven2 emma.jar emma-ant.jar maven-emma-plugin.jar Thanks, Satish -- View this message in context: http://www.nabble.com/maven-emma-plugin-tf2166530.html#a5989608 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JIRA issues - maven-changes-report
I was able to configure the maven-changes plugin for JIRA, but how to generate a report. my baisc question is: how does maven/svn knows what issues got fixes as part of checkin? Does the developer needs to mention this data in some xml file. I have read some where that if you configure the JIRA as the issue management tool, it should pull automatically...i don't get that..any clues.. -- View this message in context: http://www.nabble.com/JIRA-issues---maven-changes-report-tf2167220.html#a5991824 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
out of memory error - deploying to tomcat
using maven 2.0 and trying to deploy war to tomcat. any configuration need to do for handling this error [INFO] [tomcat:deploy] [INFO] Deploying war to http://localhost:8080/webtop-1.0-SNAPSHOT [INFO] [ERROR] FATAL ERROR [INFO] [INFO] Java heap space [INFO] [INFO] Trace java.lang.OutOfMemoryError: Java heap space -- View this message in context: http://www.nabble.com/out-of-memory-error---deploying-to-tomcat-tf2153802.html#a5949309 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
authorization error deploying to tomcat
Scenario: trying to deploy app to tomcat using org.codehaus.mojo plugin Error: getting authorization error, how do pass/specify the tomcat manger username/pwd [INFO] [tomcat:deploy] [INFO] Deploying war to http://localhost:8080/webtop-1.0-SNAPSHOT [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Cannot invoke Tomcat manager Embedded error: Server returned HTTP response code: 401 for URL: http://localhos t:8080/manager/deploy?path=%2Fwebtop-1.0-SNAPSHOTwar= [INFO] [INFO] Trace org.apache.maven.lifecycle.LifecycleExecutionException: Cannot invoke Tomcat man ager at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa ultLifecycleExecutor.java:559) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandalone Goal(DefaultLifecycleExecutor.java:488) -- View this message in context: http://www.nabble.com/authorization-error-deploying-to-tomcat-tf2155282.html#a5953887 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
surpress all the messages
when i do any mvn command, it shows lot of messages on the conosle. Is there any option/flag to surpress this. ex: mvn compile - echo lot of downloading file info... -Satish -- View this message in context: http://www.nabble.com/surpress-all-the-messages-tf2142285.html#a5913554 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
excluding unit tests
How can you do this explicitly, currently by default, package/install goals call these. i have the following snippet in my pom.xml and it's giving errors build excludes exclude **/*Test*.java /exclude /excludes /build -- View this message in context: http://www.nabble.com/excluding-unit-tests-tf2124320.html#a5860770 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
build after every checkin
How can i configure the build to happen after every checkin instead of the sceduled time. Does continum does this by default? when i go schedules tab, i only see specifying the cron timings - expressions. -- View this message in context: http://www.nabble.com/build-after-every-checkin-tf2118751.html#a5843565 Sent from the Continuum - Users forum at Nabble.com.
Re: adding maven 2 projects - invalid url
I am having a similar problem, but need to specify the url, as i have couple of modules specified in the top level pom. http://code.sharefare.com/trunk/pom.xml - this is the url am giiving, which is working fine from any browser, but continum says it's invalid URL any input -- View this message in context: http://www.nabble.com/adding-maven-2-projects-tf2108593.html#a5822632 Sent from the Continuum - Users forum at Nabble.com.
Re: [M2] Bug: Creating Internal repository
were you able to create the internal reposiotry successfully? I am still lookign for tips to get this working. Carlos Cadete wrote: Hi, I have my local maven repository in $HOME/.m2/repository and I want to change my local repository to c:\repository so I change in settings localRepositoryc:\repository/localRepostory and that runs ok. But I want to use $HOME/.m2/repository as my central repository so I create in global settings mirror idMyMirror/id mirrorOfcentral/mirrorOf nameMy New Repositorio/name urlfile://$HOME\.m2\repository/url /mirror but it give me the error [INFO] [ERROR] BUILD ERROR [INFO] [INFO] The plugin 'org.apache.maven.plugins:maven-resources-plugin' does not exi st or no valid version could be found I notice that it creates file c:\repository\org\apache\plugins\maven-resources-pluin\maven-metadata-central.xml but it differs from the one I have in $HOME/.m2/repository so I replace it, run again and it runs for this plugins, but the same problem arises for the other plugins the file it creates is something like this that don't work ?xml version=1.0 encoding=UTF-8? metadata groupIdorg.apache.maven.plugins/groupId artifactIdmaven-resources-plugin/artifactId versionLATEST/version /metadata witch differs from the one in repository metadata groupIdorg.apache.maven.plugins/groupId artifactIdmaven-resources-plugin/artifactId versioning latest2.1/latest release2.1/release versions version2.0-beta-1/version version2.0-beta-2/version version2.0/version version2.1/version /versions lastUpdated20051025005815/lastUpdated /versioning /metadata so is this a bug? If it is not what is wrong to give th error? I am using maven 2.0.4 the lastest version. -- View this message in context: http://www.nabble.com/-M2--Bug%3A-Creating-Internal-repository-tf1441274.html#a5750130 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
mvn:deploy to remote repository
getting following error in exectuing the deploy plugin, any clues... Cause: Class 'org.apache.maven.artifact.repository.ArtifactRepository' cannot be instantiated [INFO] [INFO] Trace org.apache.maven.lifecycle.LifecycleExecutionException: Error configuring: org.a pache.maven.plugins:maven-deploy-plugin. Reason: Unable to parse the created DOM for plugin configuration -- View this message in context: http://www.nabble.com/mvn%3Adeploy-to-remote-repository-tf2087804.html#a5754267 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Generating Cobertura reports using Continuum
Piyush, do you have a local repostory setup for maven? I am in the process of setting up this for my company, if you have any info., would like to get in touch with you. my email id: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Generating-Cobertura-reports-using-Continuum-tf2026373.html#a5583997 Sent from the Continuum - Users forum at Nabble.com.
scm: svn, Jira, conitinum
Hi, i have seen couple of posting on these, but not able to find some basic answers I got my project setup with Maven2 and build is working. a. How do we confirgure to scm: SVN - any samples configuration files with couple of instructions b. same for continum and JIRA Thanks for all help! -- View this message in context: http://www.nabble.com/scm%3A-svn%2C-Jira%2C-conitinum-tf2012580.html#a5531160 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
dependency on two versions
I have the following dependecies in my POM - ecahce - 1.2 - hibernate 3.1rc1 I have one of the package which depends on ecahce 1.2, but as part of hibernate dependency, it downloads ecache1.1. There are some method signatures change between ecache 1.1 and 1.2 and this results in the compile error as the end, i assume ecache 1.1 is taking the precedence in the classpath. any tips to resolve this. -- View this message in context: http://www.nabble.com/dependency-on-two-versions-tf2006689.html#a5512539 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: dependency on two versions
is there any way to specificy which version to take precedence in the classpath, looks like i have some other dependency jars which want the older version. I want the latest version to take precedence. -- View this message in context: http://www.nabble.com/dependency-on-two-versions-tf2006689.html#a5513171 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
want to compile with different file extenstions.
Hi all. i want to build my project which have different file extension like .ejb and .jpf . when we build it is taking only .java files for compilation. How i can compile all files. Regards, Satish.
want to compile with different file extenstions.
Hi all. in my project some of the files consists of .ejb and .jpf extensions. but when i say build it is taking only files with .java extensions. how can i build all of my files. Regards. satish
want to compile with different file extenstions.
Hi all. In my project some of files consists of .ejb and .jpf extensions. But when i build with maven it is taking only files with .java extensions. How can i compile all of my files. Regards G.satish
want to compile with different file extenstions.
Hai. Thanks to the maven user list for excellence support. I have a problem in my project when i try to compile with maven java:compile. the problem is in my project some files are having .ejb and .jpf extension(these are weblogic specific) But when i try to compile the modules which are having these files it is taking only the .java files for compilation. How do i ensure that all files in my project should compile. help me in this issue. Regards, G.Satish.
couldn't extract the dependencies from local system
Hi this is satish. I want to use maven for my project which resides in local system. i wrote the project.xml file. But when i say dependencies it is not getting the dependencies which are in my local system. i wrote like this dependencies dependency idftp/id urlc:\satish\lib/url /dependency /dependencies my local directory consist of ftp.jar file. but it taking like ftp-.jar and it is not getting the jar file. so i couldn't get compile my source files. help me on this issue.
Re: including dependencies in zip file
Hi I am not sure, if this post will help you.Anyway, the following maven.xml snippet copies all the dependency jars files from maven repository to a folder specified. you can zip them using ANT zip task for suit your packaging needs. goal name=copydependencies echoCopying Dependent Jars/echo mkdir dir=${maven.build.dir}/lib/ / deploy:copy-deps todir=${maven.build.dir}/lib/ / !-- Create a zip file -- zip zipfile=${maven.dist.dir}/${maven.final.name}-dependencies.zip zipfileset dir=${maven.build.dir}/lib/ / /zip /goal bye Satish On Tue, 2 Nov 2004 13:28:41 +0200, Jeffrey Mutonho [EMAIL PROTECTED] wrote: Hi guys We use Maven to build a distribution for one of our webapps. Currently we successfully build a zip file containing the webapp .war file and many web pages making up the standard maven documentation and some reports etc. What we would like to do is to also include in the zip file the jar files that the app is dependent on, i.e. those listed in the dependencies/ tag in project.xml. Please advise of an elegant way we can accomplish this. One way of doing this is to define a post goal where we manipulate the contents of the zip file, but we are trying to avoid having to define the set of jars twice in xml, i.e. we want to re-use the dependencies/ set. jeff mutonho - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Invalid xdoc transformation to HTML
Hi all I had been having this issue for some time, in my project, few Xdoc files are being transformed to invalid html files (The xml files are just being renamed to .html files with all xdoc tags). The same xdoc files yield the required results, when project.xml has no configured maven reports. I tried getting to the root of the problem with maven debug options, unfortunately the logs were clear and indicated no trouble. The next step, I tried was to build the project from grounds up by reworking on maven related files, After long frustrating hours, I could simulate the problem, The problem is xdoc are not transforming to a valid HTML files, when the project.xml includes reports like JavaDoc,jxr and JunitReport. The moment, I remove these standard maven reports, every thing works fine. The best hypothesis, I could speculate is of a probable memory problem. I decide pursue this line of hypothesis. Surprisingly, I don't have any OutOfMemory exceptions, However, by increasing memory, I could observer the results were little better. I tried the following tuning steps:- (a) Increased jvm heap size to -Xmx1500m (that's all I could allocate) in maven.bat file (b) Tuned JUNIT parameters maven.junit.fork=yes maven.junit.jvmargs=-Xmx128m (c) Tuned Java Doc Parameters maven.javadoc.useexternalfile=yes maven.javadoc.maxmemory=1024m After few more hours, the quest has ended no-where. I request your help in making me understand, where the problem might be? How do, I get over it. Any bright ideas or work-arounds? The project contains has less than 500 source files and is build using maven 1.0 on Windows XP M/C(2Ghz processor with 1.5 GB RAM) with IBM JDK 1.3.1 bye Satish Atluri - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Xdoc files are incorrectly transformed to HTML files
I posted this issue in JIRA (Issue No: MAVEN-1465) http://jira.codehaus.org/browse/MAVEN-1465 bye Satish On Wed, 13 Oct 2004 15:24:31 +1000, Brett Porter [EMAIL PROTECTED] wrote: is it invalid xdoc? If you run maven xdoc does it show an error message on that one? if it all seems ok after that, send a sample of the doc to the list or JIRA. Thanks, Brett On Wed, 13 Oct 2004 10:43:51 +0530, Atluri Satish [EMAIL PROTECTED] wrote: Hi I am encountering a strange behavior, Maven 1.0 some times doesn't transform xdoc xml file to HTML. it just renames xdoc.xml to .Html extension with all xdoc tags. Can some body help me understand where the problem lies? bye Satish - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Xdoc files are incorrectly transformed to HTML files
Hi I am encountering a strange behavior, Maven 1.0 some times doesn't transform xdoc xml file to HTML. it just renames xdoc.xml to .Html extension with all xdoc tags. Can some body help me understand where the problem lies? bye Satish - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Dependent jars in distribution zip file
The solution is written all over the place (Maven User Guide). project default=release xmlns:j=jelly:core xmlns:u=jelly:util xmlns:ant=jelly:ant xmlns:maven=jelly:maven xmlns:deploy=deploy goal name=copydependencies echoCopying Dependent Jars/echo mkdir dir=${maven.build.dir}/lib/ / deploy:copy-deps todir=${maven.build.dir}/lib/ / /goal /project bye Satish On Mon, 20 Sep 2004 16:25:26 +0530, Atluri Satish [EMAIL PROTECTED] wrote: Hi I want to include dependent jar (Specified in Project.xml file) into my distribution zip. I also want to exercise finer control in terms of specifying what dependent jars are to be included in distribution zip files. I request your help in letting me know, how to do it. bye Satish - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JCoverage Report always shows 0% Coverage
Hi I am trying to use JCoverage for a simple project, The JUNIT Test cases written ensure 100% code-coverage , However the JCoverage report always shows 0% coverage. I am using Maven 1.0, IBM JDK 1.3.1 Windows 32 build, JCoverage Plugin 1.0.8 and please find Maven Java files pasted below. I request your help in letting me know, where and what am I doing wrong. bye Satish M A V E N F I L E S *** ### project.xml file ?xml version=1.0 encoding=UTF-8? project xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; pomVersion3/pomVersion idTestMaven/id nameTestMaven/name currentVersion1.0/currentVersion organization nameTest/name /organization inceptionYear2004/inceptionYear !-- Project Build Process -- build nagEmailAddress[EMAIL PROTECTED]/nagEmailAddress sourceDirectory${basedir}/src/sourceDirectory unitTestSourceDirectory${basedir}/src/unitTestSourceDirectory !-- Unit Test Cases -- unitTest includes include**/*Test.java/include /includes /unitTest /build !-- Reports -- reports reportmaven-junit-report-plugin/report reportmaven-jcoverage-plugin/report /reports /project ### project.propeties file # xdoc Properties # maven.xdoc.date=left maven.xdoc.includeProjectDocumentation = yes maven.xdoc.version=${pom.currentVersion} #- # JUNIT Properties #-- maven.junit.fork=yes maven.junit.jvmargs=-Xmx512m #-- # JCoverage Properties #-- maven.jcoverage.junit.fork=yes maven.jcoverage.merge.outputDir=${basedir} J A V A F I L E S *** ### Java Test Fixture public class TestSubject { public int add(int a,int b) { return a+b; } public int substract(int a,int b) { return a-b; } } ### JUNIT Test Case import junit.framework.TestCase; public class TestSubjectTest extends TestCase { /** * Constructor for TestSubjectTest. * @param arg0 */ public TestSubjectTest(String arg0) { super(arg0); } public static void main(String[] args) { junit.swingui.TestRunner.run(TestSubjectTest.class); } public void testAdd() { TestSubject test = new TestSubject(); assertEquals( Add Failure, new Integer(test.add(5, 2)), new Integer(7)); } public void testsubstract() { TestSubject test = new TestSubject(); assertEquals( Substration Failure, new Integer(test.substract(5, 2)), new Integer(3)); } } - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Maven properties in XDoc xml file
Hi Is it possible to use maven properties tags like (${pom.artifactId}-${version}) in a XDoc xml file bye Satish - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Dependent jars in distribution zip file
Hi I want to include dependent jar (Specified in Project.xml file) into my distribution zip. I also want to exercise finer control in terms of specifying what dependent jars are to be included in distribution zip files. I request your help in letting me know, how to do it. bye Satish - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
PDF Link for Navigation
Hi I am using Maven to generate a site and PDF copy of documentation using PDF plugin, However, I need to link this PDF on top bar of home page like most of the sites do. I request your help in letting me know, How to do this. bye Satish - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Collapse Menu doesn't work well
Hi I tired to create a custom collapse menu in navigation.xml . However the collapse behavior doesn't work. Can somebody help me out in this regard. Please find the navigation.xml enclosed. ?xml version=1.0 encoding=UTF-8? project xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; titleNavigation/title head / body links item name=PDF Documentation href=/site.pdf img=/images/pdf.gif / /links menu name=User Documentation item name=Overview href=/Overview.html collapse=true item name=Getting Started href=/GettingStarted.html/item item name=UserGuide href=/UserGuide.html/item item name=FAQ href=/Faq.html/item item name=WSAD Installation href=/WSAD.html/item /item /menu /body /project bye satish - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]