Re: webproject does not find log4j.properties
I have never understood completely how Log4J and JCL interact. I found that following "http://wiki.apache.org/commons/How_to_Configure_the_Logging_Factory_and_the_Logging_Class"; and adding a commons-logging.properties file with org.apache.commons.logging.Log = org.apache.commons.logging.impl.Log4JLogger seems to help. Good luck ! On 05/12/2007, Adam Hardy <[EMAIL PROTECTED]> wrote: > VanIngen, Erik (ESTG) on 03/12/07 12:04, wrote: > > Hi all, > > > > My log4j.properties is located in > > src/test/resources/log4j.properties > > > > Loglevel is set to ERROR > > > > During the test, all logging is done on INFO level, e.g. it seems that log4j > > does not find the log4j.properties. > > It could be many things. Presumably you have log4j configured as a dependency. > Also, you are testing in mvn on the cmd line and not in Eclipse or your IDE? > > Ignorantly, I can't see how log4j is initialising itself in the test run - I'm > using commons-logging, maybe that's why. > > Also I assume you have not foobarred your log4j.properties? 'Loglevel' doesn't > sound encouraging. Your main logging statements should be enabled so > > log4j.category.org.permacode=WARN > > along with appropriate appenders. > > Adam > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Jabber : [EMAIL PROTECTED] Skype : Guillaume.Lederrey Projects : * http://rwanda.wordpress.com/ * http://rwandatech.wordpress.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Migrating to 1.1 NullPointerException
Hi, Please reply directly; I'm not subscribed to this list. Some more information on this situation. This is a multiproject and when run from the parent directory, it works. If I go into the subdirectory and run maven, some but not all projects throw NPE. For example, I can run maven tck2.build and it works fine. If I cd tck2; maven build it fails with the NPE. But cd api2; maven jar:install works fine. Thanks, Craig On Dec 4, 2007, at 9:48 AM, Craig L Russell wrote: Hi, Please reply directly; I'm not subscribed to this list. I'm trying to migrate from 1.0.2 to 1.1 and have a problem that I can't figure out. Some of the subprojects build fine; others throw NPE: [Bruiser:~/apache/jdo/trunk] clr% which maven /Users/clr/maven-1.1/bin/maven [Bruiser:jdo/trunk/tck2-legacy] clr% maven java.lang.NullPointerException at java.util.Hashtable.put(Hashtable.java:396) at org.apache.maven.cli.App.customizeLogging(App.java:703) at org.apache.maven.cli.App.initialize(App.java:433) at org.apache.maven.cli.App.initializeMain(App.java:1188) at org.apache.maven.cli.App.doMain(App.java:271) at org.apache.maven.cli.App.main(App.java:217) 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 com.werken.forehead.Forehead.run(Forehead.java:551) at com.werken.forehead.Forehead.main(Forehead.java:581) Any clues where to look for the problem? I expect it's a user error, but I can't figure out where it might be... Craig Russell Architect, Sun Java Enterprise System http://java.sun.com/products/jdo 408 276-5638 mailto:[EMAIL PROTECTED] P.S. A good JDO? O, Gasp! smime.p7s Description: S/MIME cryptographic signature
One plugin one:convert put Javadoc in build/plugins vs reporting/plugins
Is that correct or a bug? I haven't had success with it defined in the build/plugins section; of course it works great in reporting ;-). Plus the Javadoc plugin docs show the config in reporting, so my guess is this is a convert bug? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Re: [m2] eclipse plugin and WTP generating warnings in Europa
Did you define the M2_REPO variable (in Eclipse)? Yann Albou wrote: > Is someone facing the same issue ? > Yann. > > Yann Albou a écrit : >> Hello, >> >> After generating my eclipse projects with "mvn -Dwtpversion=2.0 >> eclipse:eclipse" and importing these projects into an europa >> workspace I get the following Warning: >> >> "Claspath entry >> > M2_REPO/commons-logging/commons-logging/1.0.4/commons-loggin-1 > .0.4.jar >> will not be exported or published. Runtime ClassNotFound Exceptions >> may result." >> >> All my dependencies get this warning. >> I use the last version of the maven eclipse plugin (from trunks) and >> I use the Eclipse JEE Europa that includes Eclipse 3.3.1.1 and WTP >> 2.0.1 >> >> any Idea ? >> >> Thanks >> Yann. > > > - > 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]
Re: [Unit Testing] Create MavenProject from a File
AFAIK the best way is to use MavenProjectBuilder.build( file, localRepository, null ); I'm not sure if null can be passed for localrepository. It is required to resolve project inheritence, so MAY be ignored. Nico. 2007/12/4, Saloucious <[EMAIL PROTECTED]>: > > > Hi, > > I would like to know which is the best way to build a MavenProject > instance > from a File. > > I do not want to use lookupMojo because i don't want to load my mojo but > just unit testing an Util Class. > -- > View this message in context: > http://www.nabble.com/-Unit-Testing--Create-MavenProject-from-a-File-tf4944127s177.html#a14154043 > Sent from the Maven - Users mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
Re: customize artifact contents
Thanks for the reply. I had something like this set up at first, but quickly changed it because I'm also working on the component library project at the same time. Any time I want to see my changes I have to mvn install that artifact and then (re)execute my demo app. On top of that, part of the components are JS and CSS whose changes I need to see immediately - without installing/stopping/starting the web app. I can do all of this in my current setup, with the (unacceptable) side affect of having a test app in a production artifact. If there is a way to do this using a dependent project, can you direct me towards information on how? Thanks, Chris Michael McCallum wrote: create a new web app project that just contains the demo code... depend on the real web app... voila when you build it overlays the demo on the real app war... you need to be careful not to include dependencies in the demo app or at least none of the same deps as the real app... you will see two versions of jars appearing in the demo war On Wed, 05 Dec 2007 07:56:35 Chris Lewis wrote: Hello list, I have a question regarding the final packaging of artifacts. Basically I want to exclude an entire (sub) package of class files - here's why: I'm working on an app (web) that contains a 'demo app', solely used to showcase visual components. The app project is actually a component library, and the app part isn't ever used in production. The demo app lives in a sub package under src/main/java, NOT src/test/java. The reason for this is because the demo app needs access to resources (javascripts, css, and images) that are part of the components, and naturally these resources also live in src/main/resources. Now if I move my demo app to the recommended place under src/test/java, then when I run my web app (jetty plugin) it fails to find the resources, since the tests never include resources from src/main/resources but only from src/test/resources. Keeping my demo app in the main directory allows it to access the resources. So now I need a way to strip the demo app from the final artifact, unless there is a way to move it to where it belongs (src/test/...) but modify the location used for resources. Any suggestions (links to docs, etc) are appreciated. I've read Better Builds ... and didn't come across anything of this nature. Thanks in advance sincerely, Chris Lewis - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Include library (jar file) in sar
Hi, I need to put a jar file in a sar file, myfile.sar +-- com (classes) +-- lib +-- mylib.jar +-- META-INF +-- jboss-service.xml I have search everywhere but I can not find a plug-in that can do the job (adding a jar file). Does anyone know how to do it ? Perhaps I miss something. Thanks. Regards, Ferry -- View this message in context: http://www.nabble.com/Include-library-%28jar-file%29-in-sar-tf4947837s177.html#a14166394 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Help on setting up a maven proxy for a build repository [ http & scp
You should try maven archiva that just was released as 1.0. (maven.apache.org/archiva) It can proxy repositories based on URL and a compliant maven Wagon implementation for transport protocol ("wagon" is the maven abstaction for file access protocols). As there is allready a scp wagon used by maven to deploy builds, this should (not sure : not tested) work by setting a network proxied repository to "scp://") Nico. 2007/12/5, Subramanian Olagappan <[EMAIL PROTECTED]>: > > Hi, > > I am new to maven tool and just started using it. I am setting up a local > proxy for a remote maven build repository. We have multiple build repository > and some are via http access and others via scp. Can you suggest some proxy > tools to sync up. I tried m2-proxy and it works fine for repositories with > http access. > > Thanks in Advance, > Subbu > > > > > Download prohibited? No problem. CHAT from any browser, without > download. Go to http://in.messenger.yahoo.com/webmessengerpromo.php/ > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
Help on setting up a maven proxy for a build repository [ http & scp ]
Hi, I am new to maven tool and just started using it. I am setting up a local proxy for a remote maven build repository. We have multiple build repository and some are via http access and others via scp. Can you suggest some proxy tools to sync up. I tried m2-proxy and it works fine for repositories with http access. Thanks in Advance, Subbu Download prohibited? No problem. CHAT from any browser, without download. Go to http://in.messenger.yahoo.com/webmessengerpromo.php/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Buggy version range ?
I use version ranges... make complex projects possible... makes parallel development possible too there are a few gotchas... * [3,4) will match 4.0-SNAPSHOT should use [3,4-!) * [3,4) will not match 3.0-SNAPSHOT * don't use - any in ranges just causes trouble make regular use of releases and where you have a breaking change increment the major version don't put [X.X] ranges in things that will resolve transitively.. that gives NPE have not figure out why yet... i suspect broken metadata broken metadata for external projects can be very anoyying... i wrap them in local projects I call composites that give the power of ranges with decent metadata and let me use ranges for projects with funny versions that don't work with ranges we use eclipse with the m2eclipse plugin which works very well with ranges using 2.0.7 and 2.0.8 we don't use modules have over 113 artifacts have both java4 and java6 repositories On Wed, 05 Dec 2007 17:26:32 [EMAIL PROTECTED] wrote: > Hi All, > > I'd like to get an idea if there are many people using the version range > feature in the community. For those users using/relying version range, do > you find any problems with it? > > In our organisation, some people advocate the usage of version range but > personally, I don't think it is robust enough for real world usage. > > Following problems are my main gripes that often stop me from runing maven > on a day to day basis. > > * idea plugin errors (can't resolve artifacts with obscure errors). > * dependencies resolution errors (various obscure NPE errors). > * release plugin errors (can't release because we do clean install first > and it will resolve to snapshot). > * release plugin does not crystalise the actual version that has been > resolved in the release pom that has been tagged. > * version range depends on maven-metadata.xml the content of the file > which can be errorneous. > > This is mainly based on Maven 2.0.6, because 2.0.7 gave us more NPE on > resolving transitive dependencies. The problem also seems to happen with > some projects and not others. Generally, we have about three or more > layers of inhouse artifacts that are imported as dependencies across > several maven modules. > > Like to hear any success/failure stories about this. > > Cheers, > rOnn c. > ## > DISCLAIMER: > This email and any attachment may contain confidential information. > If you are not the intended recipient you are not authorized to copy > or disclose all or any part of it without the prior written consent > of Toyota. > > Opinions expressed in this email and any attachments are those of the > sender and not necessarily the opinions of Toyota. > Please scan this email and any attachment(s) for viruses. > Toyota does not accept any responsibility for problems caused by > viruses, whether it is Toyota's fault or not. > ## -- Michael McCallum Enterprise Engineer mailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Buggy version range ?
Hi All, I'd like to get an idea if there are many people using the version range feature in the community. For those users using/relying version range, do you find any problems with it? In our organisation, some people advocate the usage of version range but personally, I don't think it is robust enough for real world usage. Following problems are my main gripes that often stop me from runing maven on a day to day basis. * idea plugin errors (can't resolve artifacts with obscure errors). * dependencies resolution errors (various obscure NPE errors). * release plugin errors (can't release because we do clean install first and it will resolve to snapshot). * release plugin does not crystalise the actual version that has been resolved in the release pom that has been tagged. * version range depends on maven-metadata.xml the content of the file which can be errorneous. This is mainly based on Maven 2.0.6, because 2.0.7 gave us more NPE on resolving transitive dependencies. The problem also seems to happen with some projects and not others. Generally, we have about three or more layers of inhouse artifacts that are imported as dependencies across several maven modules. Like to hear any success/failure stories about this. Cheers, rOnn c. ## DISCLAIMER: This email and any attachment may contain confidential information. If you are not the intended recipient you are not authorized to copy or disclose all or any part of it without the prior written consent of Toyota. Opinions expressed in this email and any attachments are those of the sender and not necessarily the opinions of Toyota. Please scan this email and any attachment(s) for viruses. Toyota does not accept any responsibility for problems caused by viruses, whether it is Toyota's fault or not. ##
One plugin one:convert put Javadoc in build/plugins vs reporting/plugins
Is that correct or a bug? I haven't had success with it defined in the build/plugins section; of course it works great in reporting ;-). Plus the Javadoc plugin docs show the config in reporting, so my guess is this is a convert bug? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to rebuild modules that depend on a changed module?
On Dec 3, 2007 5:33 PM, Kees van Dieren <[EMAIL PROTECTED]> wrote: > This would be helpful for us as well. We have a pom.xml with multiple > modules, e.g. > modA > modB > modC > modD > modB needs modA, modC needs modB. > > When modA is modified, modA, modB and ModC should be rebuilded; modD should > be skipped. > > Is there a way to achieve this, eventually via 3rdparty plugin? This is by design not what Maven does. Think of modules as an easy way to group projects so that the same command can be run at the top level across all projects that are defined in a module. The most common use case for a module is to group projects together that should be released as one logical unit. We have a large collection of modules and we just run builds from the top level almost all the time. Our build takes about 10 minutes. If you want to build the modules independently then look at Continuous Integration to build the modules and publish them to an internal snapshot repository. This way developers will automatically pull down the latest snapshots of the other projects when they build a project that depends on that articact. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: webproject does not find log4j.properties
VanIngen, Erik (ESTG) on 03/12/07 12:04, wrote: Hi all, My log4j.properties is located in src/test/resources/log4j.properties Loglevel is set to ERROR During the test, all logging is done on INFO level, e.g. it seems that log4j does not find the log4j.properties. It could be many things. Presumably you have log4j configured as a dependency. Also, you are testing in mvn on the cmd line and not in Eclipse or your IDE? Ignorantly, I can't see how log4j is initialising itself in the test run - I'm using commons-logging, maybe that's why. Also I assume you have not foobarred your log4j.properties? 'Loglevel' doesn't sound encouraging. Your main logging statements should be enabled so log4j.category.org.permacode=WARN along with appropriate appenders. Adam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] eclipse plugin and WTP generating warnings in Europa
Can you create a little test case and open an issue please ? I didn't yet found this problem but it's perhaps a bug in one change I made to add the support of WTP 2.0. Another test that you can do : - generates WTP settings for version 1.5 - import your project into eclipse (it should convert them in 2.0) - check that you have the same error. It will help us to analyze the problem. arnaud On Dec 4, 2007 10:55 PM, Yann Albou <[EMAIL PROTECTED]> wrote: > I just tried with the latest snapshot and I get the same behaviour. > I see these warnings during import. > > on the Warning it exists a "Quick fix" that says :"Mark the associated > raw classpath entry as a publish/export dependency". So I execued it > And then I get an error that says "Invalid classpath publish/export > dependency..." > > > Siarhei Dudzin a écrit : > > Do you get the same from getting the latest snapshot instead of the > trunk? > > Where do you see this waring? During import or after import in the > problems > > view? > > > > On 12/4/07, Yann Albou <[EMAIL PROTECTED]> wrote: > >> Is someone facing the same issue ? > >> Yann. > >> > >> Yann Albou a écrit : > >>> Hello, > >>> > >>> After generating my eclipse projects with "mvn -Dwtpversion=2.0 > >>> eclipse:eclipse" and importing these projects into an europa workspace > I > >>> get the following Warning: > >>> > >>> "Claspath entry > >>> M2_REPO/commons-logging/commons-logging/1.0.4/commons-loggin-1.0.4.jar > >>> will not be exported or published. Runtime ClassNotFound Exceptions > may > >>> result." > >>> > >>> All my dependencies get this warning. > >>> I use the last version of the maven eclipse plugin (from trunks) and I > >>> use the Eclipse JEE Europa that includes Eclipse 3.3.1.1 and WTP 2.0.1 > >>> > >>> any Idea ? > >>> > >>> Thanks > >>> Yann. > >> > >> - > >> 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] > > -- .. Arnaud HERITIER .. OCTO Technology - aheritier AT octo DOT com www.octo.com | blog.octo.com .. ASF - aheritier AT apache DOT org www.apache.org | maven.apache.org ...
Re: [m2] activeProfile overriding
What about wsdl's ? for http://localhost:* /common-logging-context-root/LoggingServiceSoapHttpPort"/> On Dec 4, 2007 1:00 PM, Michael McCallum <[EMAIL PROTECTED]> wrote: > filtering is such a ant way of thinking... > > why not properly export configurable entities and perhaps drop the > environment > configuration into that environment... > > for example you could export specific database settings and load them via > spring property placeholder from the classpath... put the properties into > a > jar thats in the tomcat server lib... so all applications in that > environment > get the same config on the classpath... > > you can then get proper change management on you environmental > configurations > by releasing them using the release plugin > > On Wed, 05 Dec 2007 08:11:46 Mick Knutson wrote: > > I have a local profile in my settings.xml that is activeby default. I am > > trying to solve: > > > > I want to switch filters based on environment: > > > > > > > > > ${projectRoot}/src/main/filters/filter-${env}.properties > > > > > > > > > > > SO I would like to keep local as the default: > > > > > > local > > > > > > > > > > local > > > > > > Then if I add -P dev I want to then have Maven override this: > > > > > > dev > > > > dev > > > > > > Is this the proper way to do this for multi-module project? > > > > -- > Michael McCallum > Enterprise Engineer > mailto:[EMAIL PROTECTED] > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Thanks, Mick Knutson http://www.baselogic.com http://www.blincmagazine.com http://www.djmick.com http://www.myspace.com/mickknutson http://www.myspace.com/BLiNCMagazine http://tahoe.baselogic.com ---
Re: [c-1.1][m2] Error building site with YDoc
Hi Mick, The semi-colon doesn't work as a path separator under Unix, you need to use a colon in you doclet path. Replace ; by ${file.pathSeparator} Actually, it may be better to specify your dependencies with a tag in your plugin. See http://maven.apache.org/pom.html#Plugins Ludovic Mick Knutson a écrit : Here is my javadoc declaration: org.apache.maven.plugins maven-javadoc-plugin 2.3 128m 512 ydoc.doclets.YStandard ${projectRoot}/src/main/resources/tools/ydoc- 3.0-jdk1.5/lib/ydoc.jar;${projectRoot}/src/main/resources/tools/ydoc- 3.0-jdk1.5/resources;${build.classes.dir} -link http://java.sun.com/j2se/1.5.0/docs/api/ -umlautogen This works just fine on windows, but on Solaris, I get this error: [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Error during page generation Embedded error: Error rendering Maven report: Exit code: 1 - javadoc: error - Cannot find doclet class ydoc.doclets.YStandard Command line was:"cd /opt/continuum-1.1/apps/continuum/webapp/WEB-INF/working-directory/81/utilities/common/common-jar/target/site/apidocs && /usr/jdk/instances/jdk1.5.0/jre/../bin/javadoc" -J-Xmx512m -J-Xms128m @options @packages [INFO] [INFO] Trace org.apache.maven.lifecycle.LifecycleExecutionException: Error during page generation at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:564) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:493) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:463) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.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(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) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] eclipse plugin and WTP generating warnings in Europa
I just tried with the latest snapshot and I get the same behaviour. I see these warnings during import. on the Warning it exists a "Quick fix" that says :"Mark the associated raw classpath entry as a publish/export dependency". So I execued it And then I get an error that says "Invalid classpath publish/export dependency..." Siarhei Dudzin a écrit : Do you get the same from getting the latest snapshot instead of the trunk? Where do you see this waring? During import or after import in the problems view? On 12/4/07, Yann Albou <[EMAIL PROTECTED]> wrote: Is someone facing the same issue ? Yann. Yann Albou a écrit : Hello, After generating my eclipse projects with "mvn -Dwtpversion=2.0 eclipse:eclipse" and importing these projects into an europa workspace I get the following Warning: "Claspath entry M2_REPO/commons-logging/commons-logging/1.0.4/commons-loggin-1.0.4.jar will not be exported or published. Runtime ClassNotFound Exceptions may result." All my dependencies get this warning. I use the last version of the maven eclipse plugin (from trunks) and I use the Eclipse JEE Europa that includes Eclipse 3.3.1.1 and WTP 2.0.1 any Idea ? Thanks Yann. - 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]
Re: maven assembly question
The includes/excludes in the dependencySet is for artifact patterns to be included/excluded. If you want to unpack a dependency and only include certain files, you'll need to use the latest snapshots of the assembly plugin, and then in your dependencySet: true [...] HTH, -john On Dec 4, 2007, at 1:44 PM, EJ Ciramella wrote: I'm trying to include just a few files from another projects output via the dependencySet feature of the maven assembly plugin. I keep seeing this: [WARNING] The following patterns were never triggered in this artifact inclusion filter: And obviously I'm not getting my warfile bits included. Anyone able to shed some light on this for me? --- John Casey Committer and PMC Member, Apache Maven mail: jdcasey at commonjava dot org blog: http://www.ejlife.net/blogs/john rss: http://feeds.feedburner.com/ejlife/john
Re: customize artifact contents
create a new web app project that just contains the demo code... depend on the real web app... voila when you build it overlays the demo on the real app war... you need to be careful not to include dependencies in the demo app or at least none of the same deps as the real app... you will see two versions of jars appearing in the demo war On Wed, 05 Dec 2007 07:56:35 Chris Lewis wrote: > Hello list, > > I have a question regarding the final packaging of artifacts. Basically > I want to exclude an entire (sub) package of class files - here's why: > > I'm working on an app (web) that contains a 'demo app', solely used to > showcase visual components. The app project is actually a component > library, and the app part isn't ever used in production. The demo app > lives in a sub package under src/main/java, NOT src/test/java. The > reason for this is because the demo app needs access to resources > (javascripts, css, and images) that are part of the components, and > naturally these resources also live in src/main/resources. > Now if I move my demo app to the recommended place under src/test/java, > then when I run my web app (jetty plugin) it fails to find the > resources, since the tests never include resources from > src/main/resources but only from src/test/resources. Keeping my demo app > in the main directory allows it to access the resources. > > So now I need a way to strip the demo app from the final artifact, > unless there is a way to move it to where it belongs (src/test/...) but > modify the location used for resources. Any suggestions (links to docs, > etc) are appreciated. I've read Better Builds ... and didn't come across > anything of this nature. > > Thanks in advance > sincerely, > Chris Lewis > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] -- Michael McCallum Enterprise Engineer mailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: maven assembly question
Nvm - slight oversight. -Original Message- From: EJ Ciramella [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 04, 2007 1:44 PM To: users@maven.apache.org Subject: maven assembly question I'm trying to include just a few files from another projects output via the dependencySet feature of the maven assembly plugin. I keep seeing this: [WARNING] The following patterns were never triggered in this artifact inclusion filter: And obviously I'm not getting my warfile bits included. Anyone able to shed some light on this for me? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] activeProfile overriding
filtering is such a ant way of thinking... why not properly export configurable entities and perhaps drop the environment configuration into that environment... for example you could export specific database settings and load them via spring property placeholder from the classpath... put the properties into a jar thats in the tomcat server lib... so all applications in that environment get the same config on the classpath... you can then get proper change management on you environmental configurations by releasing them using the release plugin On Wed, 05 Dec 2007 08:11:46 Mick Knutson wrote: > I have a local profile in my settings.xml that is activeby default. I am > trying to solve: > > I want to switch filters based on environment: > > > > ${projectRoot}/src/main/filters/filter-${env}.properties > > > > > SO I would like to keep local as the default: > > > local > > > > > local > > > Then if I add -P dev I want to then have Maven override this: > > > dev > > dev > > > Is this the proper way to do this for multi-module project? -- Michael McCallum Enterprise Engineer mailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] activeProfile overriding
Is there a way to activate a profile only if there was not one specified on the command line? ActiveByDefault seems to always be active no matter what. On Dec 4, 2007 11:11 AM, Mick Knutson <[EMAIL PROTECTED]> wrote: > I have a local profile in my settings.xml that is activeby default. I am > trying to solve: > > I want to switch filters based on environment: > > > > ${projectRoot}/src/main/filters/filter-${env}.properties > > > > > SO I would like to keep local as the default: > > > local > > > > > local > > > Then if I add -P dev I want to then have Maven override this: > > > dev > > dev > > > Is this the proper way to do this for multi-module project? > > > -- > Thanks, > Mick Knutson > > http://www.baselogic.com > http://www.blincmagazine.com > http://www.djmick.com > http://www.myspace.com/mickknutson > http://www.myspace.com/BLiNCMagazine > http://tahoe.baselogic.com > --- -- Thanks, Mick Knutson http://www.baselogic.com http://www.blincmagazine.com http://www.djmick.com http://www.myspace.com/mickknutson http://www.myspace.com/BLiNCMagazine http://tahoe.baselogic.com ---
Re: Profiles and filtering - global files
I have solved that issue by setting a projectRoot variable: local C:/viewstore/esp_lynx_dap/esp/dap Then my filter is: local ${projectRoot}/src/main/filters/filter- local.properties dev- ${projectRoot}/src/main/filters/filter- dev-.properties Then they all use the same filter. But I have an issue where only the local filter is picked up. Any idea how to override each filter as a profile? On Dec 4, 2007 12:05 PM, CasMeiron <[EMAIL PROTECTED]> wrote: > Yes, i got this problem too this week. > > On Dec 4, 2007 7:40 AM, heimlich <[EMAIL PROTECTED]> wrote: > > > > > Hi all, > > > > I'm in a bit of a pickle, and I'm hoping someone can help me out. > > > > I have an extensive Maven project with the following layout: > > > > project A, packaging: pom > > project A.A, packaging: pom > >project A.A.A, packaging: jar > >project A.A.B, packaging: jar > >project A.A.C, packaging: war > >... > > project A.B, packaging: pom > >project A.B.A, packaging: jar > >project A.B.B, packaging: war > >project A.B.C, packaging: war > > ... > > > > And I have a global properties file used as a configuration file that I > > want > > filtered depending on which profile I run: > > > > # conf.properties > > URL_TO_SERVER1=${env.server1.address} > > URL_TO_SERVER2=${env.server1.address} > > ... > > > > And I have three filter files: > > > > #dev.properties > > env.server1.address=server1.dev.example.com > > env.server2.address=server2.dev.example.com > > > > #test.properties > > env.server1.address=server1.test.example.com > > env.server2.address=server2.test.example.com > > > > #prod.properties > > env.server1.address=server1.prod.example.com > > env.server2.address=server2.prod.example.com > > > > Now, How do I configure the top POM (project A above) to filter > > conf.properties using (say) filter dev.properties. > > > > I had a go at it with the following top POM: > > > > > > 4.0.0 > > com.example > > projA > > pom > > 1.0-SNAPSHOT > > Project A > > > > > > > >A > >B > > > > > > ... > > > > > > > > junit > > junit > > test > > > > > > > > > > dev > > > >true > > > > > > > > ${basedir}/filters/dev.properties > > > > > > > >src/main/resources > >true > > > > > > > > > > > > test > > > > > > ${basedir}/filters/test.properties > > > > > > > >src/main/resources > >true > > > > > > > > > > > > prod > > > > > > ${basedir}/filters/prod.properties > > > > > > > >src/main/resources > >true > > > > > > > > > > > > > > > > The problem is that each subproject tries to refer to the 'filters' > > directory IN ITS OWN directory structure, > > not the one at the top. > > > > The reason for this structure is that I want: > > > > ONE conf.properties > > ONE filter file per profile > > > > and I want the filtered conf.properties copied into src/main/resources > of > > each subproject > > (I'm, willing to consider having copies of an unfiltered > conf.propertiesin > > each project's resources directory). > > Can it be done (how?) or should try a different approach (any > > suggestions)? > > > > Or should I have no filtering, and just three different properties files > > (dev, test and prod) > > at the top and have them included in each concrete project (how do I do > > that)? > > > > > > Thanks, > > heimlich > > > > -- > > View this message in context: > > > http://www.nabble.com/Profiles-and-filtering---global-files-tf4942371s177.html#a14148383 > > Sent from the Maven - Users mailing list archive at Nabble.com. > > > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > -- > Paulo Cesar Silva Reis > --- > Powered by GMAIL > -- Thanks, Mick Knutson http://www.baselogic.com http://www.blincmagazine.com http://www.djmick.com http://www.myspace.com/mickknutson http://www.myspace.com/BLiNCMagazine http://tahoe.baselogic.com ---
Re: [m2] eclipse plugin and WTP generating warnings in Europa
Do you get the same from getting the latest snapshot instead of the trunk? Where do you see this waring? During import or after import in the problems view? On 12/4/07, Yann Albou <[EMAIL PROTECTED]> wrote: > > Is someone facing the same issue ? > Yann. > > Yann Albou a écrit : > > Hello, > > > > After generating my eclipse projects with "mvn -Dwtpversion=2.0 > > eclipse:eclipse" and importing these projects into an europa workspace I > > get the following Warning: > > > > "Claspath entry > > M2_REPO/commons-logging/commons-logging/1.0.4/commons-loggin-1.0.4.jar > > will not be exported or published. Runtime ClassNotFound Exceptions may > > result." > > > > All my dependencies get this warning. > > I use the last version of the maven eclipse plugin (from trunks) and I > > use the Eclipse JEE Europa that includes Eclipse 3.3.1.1 and WTP 2.0.1 > > > > any Idea ? > > > > Thanks > > Yann. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
Re: Profiles and filtering - global files
Yes, i got this problem too this week. On Dec 4, 2007 7:40 AM, heimlich <[EMAIL PROTECTED]> wrote: > > Hi all, > > I'm in a bit of a pickle, and I'm hoping someone can help me out. > > I have an extensive Maven project with the following layout: > > project A, packaging: pom > project A.A, packaging: pom >project A.A.A, packaging: jar >project A.A.B, packaging: jar >project A.A.C, packaging: war >... > project A.B, packaging: pom >project A.B.A, packaging: jar >project A.B.B, packaging: war >project A.B.C, packaging: war > ... > > And I have a global properties file used as a configuration file that I > want > filtered depending on which profile I run: > > # conf.properties > URL_TO_SERVER1=${env.server1.address} > URL_TO_SERVER2=${env.server1.address} > ... > > And I have three filter files: > > #dev.properties > env.server1.address=server1.dev.example.com > env.server2.address=server2.dev.example.com > > #test.properties > env.server1.address=server1.test.example.com > env.server2.address=server2.test.example.com > > #prod.properties > env.server1.address=server1.prod.example.com > env.server2.address=server2.prod.example.com > > Now, How do I configure the top POM (project A above) to filter > conf.properties using (say) filter dev.properties. > > I had a go at it with the following top POM: > > > 4.0.0 > com.example > projA > pom > 1.0-SNAPSHOT > Project A > > > >A >B > > > ... > > > > junit > junit > test > > > > > dev > >true > > > > ${basedir}/filters/dev.properties > > > >src/main/resources >true > > > > > > test > > > ${basedir}/filters/test.properties > > > >src/main/resources >true > > > > > > prod > > > ${basedir}/filters/prod.properties > > > >src/main/resources >true > > > > > > > > The problem is that each subproject tries to refer to the 'filters' > directory IN ITS OWN directory structure, > not the one at the top. > > The reason for this structure is that I want: > > ONE conf.properties > ONE filter file per profile > > and I want the filtered conf.properties copied into src/main/resources of > each subproject > (I'm, willing to consider having copies of an unfiltered conf.propertiesin > each project's resources directory). > Can it be done (how?) or should try a different approach (any > suggestions)? > > Or should I have no filtering, and just three different properties files > (dev, test and prod) > at the top and have them included in each concrete project (how do I do > that)? > > > Thanks, > heimlich > > -- > View this message in context: > http://www.nabble.com/Profiles-and-filtering---global-files-tf4942371s177.html#a14148383 > Sent from the Maven - Users mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Paulo Cesar Silva Reis --- Powered by GMAIL
custom manifest file still using dependencies
Hi, I'm packaging my app in a zip. However if i want to use java -jar myapp.jar i have to include the dependencies in my manifest file. I've done this using: org.apache.maven.plugins maven-jar-plugin myapp.MainClass true However there are > 20 dependencies and the manifest file requires them to be in the same directory. I'd like to put all my dependencies in a "lib" folder and have my manifest file locate them. It's neat that the manifest file gets generated from the dependecies, so i dont want to maintain my own manifest file. Ialso like the way that the dependencies are external to the jar. Can anyone help? Thanks, Rich - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] eclipse plugin and WTP generating warnings in Europa
Is someone facing the same issue ? Yann. Yann Albou a écrit : Hello, After generating my eclipse projects with "mvn -Dwtpversion=2.0 eclipse:eclipse" and importing these projects into an europa workspace I get the following Warning: "Claspath entry M2_REPO/commons-logging/commons-logging/1.0.4/commons-loggin-1.0.4.jar will not be exported or published. Runtime ClassNotFound Exceptions may result." All my dependencies get this warning. I use the last version of the maven eclipse plugin (from trunks) and I use the Eclipse JEE Europa that includes Eclipse 3.3.1.1 and WTP 2.0.1 any Idea ? Thanks Yann. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m2] activeProfile overriding
I have a local profile in my settings.xml that is activeby default. I am trying to solve: I want to switch filters based on environment: ${projectRoot}/src/main/filters/filter-${env}.properties SO I would like to keep local as the default: local local Then if I add -P dev I want to then have Maven override this: dev dev Is this the proper way to do this for multi-module project? -- Thanks, Mick Knutson http://www.baselogic.com http://www.blincmagazine.com http://www.djmick.com http://www.myspace.com/mickknutson http://www.myspace.com/BLiNCMagazine http://tahoe.baselogic.com ---
[c-1.1][m2] Error building site with YDoc
Here is my javadoc declaration: org.apache.maven.plugins maven-javadoc-plugin 2.3 128m 512 ydoc.doclets.YStandard ${projectRoot}/src/main/resources/tools/ydoc- 3.0-jdk1.5/lib/ydoc.jar;${projectRoot}/src/main/resources/tools/ydoc- 3.0-jdk1.5/resources;${build.classes.dir} -link http://java.sun.com/j2se/1.5.0/docs/api/ -umlautogen This works just fine on windows, but on Solaris, I get this error: [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Error during page generation Embedded error: Error rendering Maven report: Exit code: 1 - javadoc: error - Cannot find doclet class ydoc.doclets.YStandard Command line was:"cd /opt/continuum-1.1/apps/continuum/webapp/WEB-INF/working-directory/81/utilities/common/common-jar/target/site/apidocs && /usr/jdk/instances/jdk1.5.0/jre/../bin/javadoc" -J-Xmx512m -J-Xms128m @options @packages [INFO] [INFO] Trace org.apache.maven.lifecycle.LifecycleExecutionException: Error during page generation at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:564) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:493) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:463) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.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(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) -- Thanks, Mick Knutson http://www.baselogic.com http://www.blincmagazine.com http://www.djmick.com http://www.myspace.com/mickknutson http://www.myspace.com/BLiNCMagazine http://tahoe.baselogic.com ---
customize artifact contents
Hello list, I have a question regarding the final packaging of artifacts. Basically I want to exclude an entire (sub) package of class files - here's why: I'm working on an app (web) that contains a 'demo app', solely used to showcase visual components. The app project is actually a component library, and the app part isn't ever used in production. The demo app lives in a sub package under src/main/java, NOT src/test/java. The reason for this is because the demo app needs access to resources (javascripts, css, and images) that are part of the components, and naturally these resources also live in src/main/resources. Now if I move my demo app to the recommended place under src/test/java, then when I run my web app (jetty plugin) it fails to find the resources, since the tests never include resources from src/main/resources but only from src/test/resources. Keeping my demo app in the main directory allows it to access the resources. So now I need a way to strip the demo app from the final artifact, unless there is a way to move it to where it belongs (src/test/...) but modify the location used for resources. Any suggestions (links to docs, etc) are appreciated. I've read Better Builds ... and didn't come across anything of this nature. Thanks in advance sincerely, Chris Lewis - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Some advice needed on native lib inclusion
Have a look on http://java.freehep.org/freehep-nar-plugin/intro.html, that could help you. Damien 2007/12/4, Daniele Dellafiore <[EMAIL PROTECTED]>: > Well I made something: > > http://download.java.net/maven/2/net/java/dev/jogl/ > > what do you think? > > Just remains to see how to explode the jar, I think I can make that > job in the start script, native-lib are needed just at runtime. > > On Dec 4, 2007 5:39 PM, Daniele Dellafiore <[EMAIL PROTECTED]> wrote: > > hi. I am developing an app that uses JOGL (Java OpenGL Binding) that > > has many native jars. > > There is no artifact on any repository. What I want to do his: > > > > 1. create a pom for jogl artifact and put it on a repo. > > That is, using maven for distribution (not for building) to have an > > artifact on a repo, with the correct dependencies. > > 2. Use jogl in my project, so that I can make a distribution for any > > operating system from maven or from some shell script that uses maven. > > > > Let's start with my solutions: > > > > 1. I already created a basic pom with all information needed to upload > > jogl to java.net maven2 repo and it seems to work (still waiting for > > authorization to upload artifact there). > > The problem here is that jogl.jar is the same for all platform, what > > changes are the binaries. jogl project provides a zip for webstart > > that contains jogl.jar and all the various jogl-natives packages, in > > jar format. > > > > What I think is that I can deploy jogl.jar and then a single artifact > > for each native jar that has jogl.jar as a dependencies. > > In this case I need a single pom for jogl and a pom for each native > > platform. The result is a different artifact deployed for every > > platform. > > A developer than can depend on a single native-jar and will get all > > the jogl.jar files. > > > > There is a issue here. I need that the native files, dll or so or > > whatever, are un-jarred in order to be used outside a webstart > > application. Any chance to make this with maven without using some ant > > task? > > > > 2. BTW, many developers will need to package it's application for > > different platform. In order to accomplish this, I think a way should > > be: > > . make different profile for different supported platforms > > . make a script that run "mvn package -P target-platform" every time > > that is needed to get all the distribution package with just one > > command. > > > > For what concern webstart, codehaus is working on a plugin and native > > liberies are supported in the development version that eventually will > > bocome 1.0 alpha2 so I will wait for a release. > > > > Thanks for reading, I wait for any advice! > > > > -- > > Daniele Dellafiore > > http://ildella.wordpress.com/ > > > > > > -- > Daniele Dellafiore > http://ildella.wordpress.com/ > > - > 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]
Re: Some advice needed on native lib inclusion
Well I made something: http://download.java.net/maven/2/net/java/dev/jogl/ what do you think? Just remains to see how to explode the jar, I think I can make that job in the start script, native-lib are needed just at runtime. On Dec 4, 2007 5:39 PM, Daniele Dellafiore <[EMAIL PROTECTED]> wrote: > hi. I am developing an app that uses JOGL (Java OpenGL Binding) that > has many native jars. > There is no artifact on any repository. What I want to do his: > > 1. create a pom for jogl artifact and put it on a repo. > That is, using maven for distribution (not for building) to have an > artifact on a repo, with the correct dependencies. > 2. Use jogl in my project, so that I can make a distribution for any > operating system from maven or from some shell script that uses maven. > > Let's start with my solutions: > > 1. I already created a basic pom with all information needed to upload > jogl to java.net maven2 repo and it seems to work (still waiting for > authorization to upload artifact there). > The problem here is that jogl.jar is the same for all platform, what > changes are the binaries. jogl project provides a zip for webstart > that contains jogl.jar and all the various jogl-natives packages, in > jar format. > > What I think is that I can deploy jogl.jar and then a single artifact > for each native jar that has jogl.jar as a dependencies. > In this case I need a single pom for jogl and a pom for each native > platform. The result is a different artifact deployed for every > platform. > A developer than can depend on a single native-jar and will get all > the jogl.jar files. > > There is a issue here. I need that the native files, dll or so or > whatever, are un-jarred in order to be used outside a webstart > application. Any chance to make this with maven without using some ant > task? > > 2. BTW, many developers will need to package it's application for > different platform. In order to accomplish this, I think a way should > be: > . make different profile for different supported platforms > . make a script that run "mvn package -P target-platform" every time > that is needed to get all the distribution package with just one > command. > > For what concern webstart, codehaus is working on a plugin and native > liberies are supported in the development version that eventually will > bocome 1.0 alpha2 so I will wait for a release. > > Thanks for reading, I wait for any advice! > > -- > Daniele Dellafiore > http://ildella.wordpress.com/ > -- Daniele Dellafiore http://ildella.wordpress.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Default executions
Thanks, that's a useful link. I noticed that the surefire test plugin is bound by default for the war packaging, but in my build that doesn't happen. If I include a plugin element in pom.xml with groupId and artifactId but no other information, does it override the default execution binding to the test phase? (i.e. should I remove it altogether?) matinh wrote: > > On 03 Dec 2007, lightbulb432 wrote: > >> >> How can I find out the default plugin executions? For example, how would >> I >> know that maven-clean-plugin or maven-site-plugin isn't automatically in >> the >> build lifecycle (therefore requiring me to do a mvn clean or mvn site >> specifically or adding it as an execution in pom.xml)? > > http://cvs.peopleware.be/training/maven/maven2/buildLifecyclePhases.html > > hth, > - martin > -- > Martin Höller | [EMAIL PROTECTED] > *x Software + Systeme | http://www.xss.co.at/ > Karmarschgasse 51/2/20 | Tel: +43-1-6060114-30 > A-1100 Vienna, Austria | Fax: +43-1-6060114-71 > > > -- View this message in context: http://www.nabble.com/Default-executions-tf4938531s177.html#a14155124 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: continuum 1.1 together with archiva 1.0 on tomcat 5.5
cool! i needed to change the mysql database charset to latin1 (see other discussion on mysql 5.0) thanks! regards ossi Brett Porter schrieb: yes, and yes. in fact, I would recommend sharing the user database connection. On 04/12/2007, ossi petz <[EMAIL PROTECTED]> wrote: Hallo thanks for all replies. the continuum settings are ok since it would run without archiva. the error appears on archiva is 'hot deployed' (start archiva with tomcat manager while continuum is running). since the database is a container resource, can i use mysql instead? oh wiki! http://docs.codehaus.org/display/CONTINUUMUSER/Continuum+on+MySQL :-) can archiva and continuum use the same user-database? (it all looks so similar) i will try using mysql and come back later. thanks ossi Brett Porter schrieb: from what I can see, the error is all about the continuum database - and the derby problem shouldn't be a concern since it's all in the one JVM. I think the settings for the continuum database should be double checked. On 04/12/2007, Ingo Siebert <[EMAIL PROTECTED]> wrote: Hi Ossi, I posted the same problem today, but i don't use archiva. If you find a solution, please let me know. :) Ingo ossi petz schrieb: Hallo I tried to install both archiva and continuum on the same tomcat 5.5.25 / Java 1.5 When i only install continuum things work fine. When i only install archiva things work too. When i install both continuum and archiva i end up with apache derby exceptions. archiva starts (i guess its because of its arc..< con..), continuum cant connect / create the database (see attached stacktrace). there is only a 'see next error'. i dont fully get the source of the problem. do i need to copy the derby.jar into each application? or should i use different resource names in the container configuration? any hints would be great! thanks ossi
[ci-1.1] best way to create daily site-deploy?
I want to know what the best practice would be to create my daily site documentation? Should I just create a new build definition? Run it at 5:00am? -- Thanks, Mick Knutson http://www.baselogic.com http://www.blincmagazine.com http://www.djmick.com http://www.myspace.com/mickknutson http://www.myspace.com/BLiNCMagazine http://tahoe.baselogic.com ---
Maven dependency issue
Hi We are using maven2.0.6. If i add some dependency for my war file then it would include all the dependencies on which this particular dependency is dependent but i don't require those dependencies. So could anyone please tell me how to get away from this issue. One thing that i can do is use the exclusion tag in the dependecy which would exclude those transitive dependencies. But the problem is my dependent jar is dependent upon so many other jars.Thats why i need some optimal solution for this problem. Regards Vishal.
Re: Contimuum 1.1 with MySQL 5.0
Hallo i have a very similar issue (etch mysql 5.0.32): 2007-12-04 17:09:50,777 [main] ERROR JPOX.RDBMS - Error thrown executing CREATE TABLE `SECURITY_OPERATIONS` ( `NAME` VARCHAR(256) BINARY NOT NULL, `DESCRIPTION` VARCHAR(256) BINARY NULL, `PERMANENT` BIT NOT NULL, `RESOURCE_REQUIRED` BIT NOT NULL, PRIMARY KEY (`NAME`) ) ENGINE=INNODB : Specified key was too long; max key length is 765 bytes com.mysql.jdbc.exceptions.MySQLSyntaxErrorException: Specified key was too long; max key length is 765 bytes in the jpox forums are quite some posts on this. it seems to be some 256 > 255 issue in JDO specs as mysql is a little strict in lengths. the workaround i found working is change the charset of the database from utf-8 to latin1_general_ci ALTER DATABASE `mvn_continuum` DEFAULT CHARACTER SET latin1 COLLATE latin1_general_ci hope this helps :) regards ossi Ingo Siebert schrieb: Hi Damien, i'm using MySQL 5.0.32. It's coming as a stable Debian package. I tried the other driver "com.mysql.jdbc.Driver", but it doesn't change anything. Maybe someone can look into my attached logfile to find a solution. Any other idea? I think VAHCHAR(256) isn't more than 756 Bytes. Ingo Damien Lecan schrieb: Hello, i'm trying to use MySQL instead of Derby, because it is already available at the server. I used this tutorial, but i use this JDBC driver: rg.gjt.mm.mysql.Driver http://docs.codehaus.org/display/CONTINUUMUSER/Continuum+on+MySQL ... Does someone use the current continuum version with MySQL 5.0? Yes, it works fine with Mysql 5.0.45. But class name for the official MySQL Connector/J driver is com.mysql.jdbc.Driver. Is there any workaround? Try com.mysql.jdbc.Driver driver ? Damien Lecan
Some advice needed on native lib inclusion
hi. I am developing an app that uses JOGL (Java OpenGL Binding) that has many native jars. There is no artifact on any repository. What I want to do his: 1. create a pom for jogl artifact and put it on a repo. That is, using maven for distribution (not for building) to have an artifact on a repo, with the correct dependencies. 2. Use jogl in my project, so that I can make a distribution for any operating system from maven or from some shell script that uses maven. Let's start with my solutions: 1. I already created a basic pom with all information needed to upload jogl to java.net maven2 repo and it seems to work (still waiting for authorization to upload artifact there). The problem here is that jogl.jar is the same for all platform, what changes are the binaries. jogl project provides a zip for webstart that contains jogl.jar and all the various jogl-natives packages, in jar format. What I think is that I can deploy jogl.jar and then a single artifact for each native jar that has jogl.jar as a dependencies. In this case I need a single pom for jogl and a pom for each native platform. The result is a different artifact deployed for every platform. A developer than can depend on a single native-jar and will get all the jogl.jar files. There is a issue here. I need that the native files, dll or so or whatever, are un-jarred in order to be used outside a webstart application. Any chance to make this with maven without using some ant task? 2. BTW, many developers will need to package it's application for different platform. In order to accomplish this, I think a way should be: . make different profile for different supported platforms . make a script that run "mvn package -P target-platform" every time that is needed to get all the distribution package with just one command. For what concern webstart, codehaus is working on a plugin and native liberies are supported in the development version that eventually will bocome 1.0 alpha2 so I will wait for a release. Thanks for reading, I wait for any advice! -- Daniele Dellafiore http://ildella.wordpress.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[Unit Testing] Create MavenProject from a File
Hi, I would like to know which is the best way to build a MavenProject instance from a File. I do not want to use lookupMojo because i don't want to load my mojo but just unit testing an Util Class. -- View this message in context: http://www.nabble.com/-Unit-Testing--Create-MavenProject-from-a-File-tf4944127s177.html#a14154043 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Running application from Maven
You can also use the ant task from the ant run plugin. -- Lee On Dec 4, 2007 10:10 AM, Dirk Olmes <[EMAIL PROTECTED]> wrote: > Marco Bakera wrote: > > Hey everybody, > > > > What is the preferred way of running an application from Maven? It would > be > > very nice to have the specified (runtime) dependencies at hand such that > > there is no need for further configuration of the classpath. > > > > I found the exec-plugin from codehaus but don't know whether that is the > > intended way of doing. > > Depends on what you're trying to do. If you want to run some class or > tool as part of the build process then I'd use the exec plugin. > > If you are looking for an easy way to build your app with all > dependencies have a look at mojo's appassembler plugin. > > -dirk > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- -- Lee Meador Sent from gmail. My real email address is lee AT leemeador.com
Re: Running application from Maven
Marco Bakera wrote: > Hey everybody, > > What is the preferred way of running an application from Maven? It would be > very nice to have the specified (runtime) dependencies at hand such that > there is no need for further configuration of the classpath. > > I found the exec-plugin from codehaus but don't know whether that is the > intended way of doing. Depends on what you're trying to do. If you want to run some class or tool as part of the build process then I'd use the exec plugin. If you are looking for an easy way to build your app with all dependencies have a look at mojo's appassembler plugin. -dirk - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: problem with mvn install
when running mvn -e install, the stacktrace point to the following error: Caused by: java.lang.NoClassDefFoundError: org/apache/maven/archiver/MavenArchiveConfiguration at org.apache.maven.plugin.jar.AbstractJarMojo.(AbstractJarMojo.java:99) at org.apache.maven.plugin.jar.JarMojo.(JarMojo.java:31) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at java.lang.Class.newInstance0(Class.java:355) at java.lang.Class.newInstance(Class.java:308) at org.codehaus.plexus.component.factory.java.JavaComponentFactory.newInstance(JavaComponentFactory.java:44) ... 24 more Maybe this can help? :) willem84 wrote: > > It doesn't work for me, i need JSF stuff (javax.faces.component)... > > > lmk wrote: >> >> proble resolved. >> I delete Jboss central repository from the config file..now it works >> fine.. >> >> regards ! >> >> >> willem84 wrote: >>> >>> I have got exact the same problem... >>> Probably error in maven? (A) >>> >>> >>> lmk wrote: hello I get a strange problem traying to install project into local repository. maven try to get unfound versio of maven jar plugin. the error is [ERROR] BUILD ERROR [INFO] [INFO] Internal error in the plugin manager executing goal 'org.apache.maven.plugins:maven-jar-plugin:2.1-jboss-1:jar': Unable to find the mojo 'org.apache.maven.plugins:maven-jar-plugin:2.1-jboss-1:jar' in the plugin 'org.apache.maven.plugins:maven-jar-plugin' org/apache/maven/archiver/MavenArchiveConfiguration regards! >>> >>> >> >> > > -- View this message in context: http://www.nabble.com/problem-with-mvn-install-tf4942373s177.html#a14153471 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 2.0.6 - Windows - SVN question
Hi, I have a setup, where I use maven 2.0.6 with svn for source control. I have a project which I want to release. The effective pom attached at the bottom. I can release it with: 'mvn release:prepare;mvn release:preform' on a debian linux box, but on Windows XP machines the 'mvn release:prepare' fails with the following message: [INFO] [ERROR] BUILD FAILURE [INFO] [INFO] Unable to commit files Provider message: The svn command failed. Command output: svn: Commit succeeded, but other errors follow: svn: Error bumping revisions post-commit (details follow): svn: In directory 'C:\temp\kl\modules\util\trunk' svn: Error processing command 'committed' in 'C:\temp\kl\modules\util\trunk' svn: Error replacing text-base of 'pom.xml' svn: Can't move 'C:\temp\kl\modules\util\trunk\.svn\tmp\pom.xml.tmp' to 'C:\temp\kl\modules\util\trunk\pom.xml': A hozzáférés megtagadva. The last part "A hozzáférés megtagadva." means - permission denied. If I run the 'mvn release:prepare' again, I get the following message: [INFO] [ERROR] BUILD FAILURE [INFO] [INFO] Unable to commit files Provider message: The svn command failed. Command output: svn: Working copy 'C:\temp\kl\modules\util\trunk' locked svn: run 'svn cleanup' to remove locks (type 'svn help cleanup' for details) Type 'svn help' for usage. If I run the 'svn cleanup' again, and then 'mvn release:prepare' then everything seems ok. Can anybody help me, what is the problem with my settings? Thanks, Peter C:\temp\kl\modules\util\trunk>mvn help:effective-pom [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'help'. [INFO] artifact org.apache.maven.plugins:maven-help-plugin: checking for updates from wildom.plugin.proxy [INFO] artifact org.apache.maven.plugins:maven-help-plugin: checking for updates from wildom.plugin.plugins WAGON_VERSION: 1.0-beta-2 [INFO] - --- [INFO] Building util [INFO]task-segment: [help:effective-pom] (aggregator-style) [INFO] - --- [INFO] [help:effective-pom] [INFO] Effective POM for project 'com.wildom:util:jar:1.7-SNAPSHOT' root-module com.wildom.maven 1.1 4.0.0 com.wildom util util 1.7-SNAPSHOT http://maven.apache.org scm:svn:svn+ssh://svn/var/svn/java/modules/util/tags/root-module-1.1/util scm:svn:svn+ssh://svn/var/svn/java/modules/util/tags/root-module-1.1/util C:\temp\kl\modules\util\trunk\src\main\java src/main/scripts C:\temp\kl\modules\util\trunk\src\test\java C:\temp\kl\modules\util\trunk\target\classes C:\temp\kl\modules\util\trunk\target\test-classes org.apache.maven.wagon wagon-webdav 1.0-beta-2 C:\temp\kl\modules\util\trunk\src\main\resources C:\temp\kl\modules\util\trunk\src\test\resources C:\temp\kl\modules\util\trunk\target util-1.7-SNAPSHOT com.wildom.maven.plugins warstub-plugin 1.2 true maven-war-plugin 2.0.2 maven-dependency-plugin 2.0-alpha-4 true unpack-dependencies generate-sources unpack-dependencies ${project.build.directory}/util-1.7-SNAPSHOT false true warstub com.wildom.maven.plugins warstub-plugin 1.2 compile maven-help-plugin 2.0.2 false wildom.proxy Archiva Managed Proxied Repository http://maven:9997/archiva/repository/external false wildom.modules Archiva Managed Internal Product Repository http://maven:9997/archiva/repository/modules false wildom.products Archiva Managed Internal Product Repository http://maven:9997/archiva/repository/products false wildom.snaps
Re: problem with mvn install
the build succeed for me, but the jar generate is wrong. it not includes the xml files on the root of project.it put's only package with classes.. willem84 wrote: > > It doesn't work for me, i need JSF stuff (javax.faces.component)... > > > lmk wrote: >> >> proble resolved. >> I delete Jboss central repository from the config file..now it works >> fine.. >> >> regards ! >> >> >> willem84 wrote: >>> >>> I have got exact the same problem... >>> Probably error in maven? (A) >>> >>> >>> lmk wrote: hello I get a strange problem traying to install project into local repository. maven try to get unfound versio of maven jar plugin. the error is [ERROR] BUILD ERROR [INFO] [INFO] Internal error in the plugin manager executing goal 'org.apache.maven.plugins:maven-jar-plugin:2.1-jboss-1:jar': Unable to find the mojo 'org.apache.maven.plugins:maven-jar-plugin:2.1-jboss-1:jar' in the plugin 'org.apache.maven.plugins:maven-jar-plugin' org/apache/maven/archiver/MavenArchiveConfiguration regards! >>> >>> >> >> > > -- View this message in context: http://www.nabble.com/problem-with-mvn-install-tf4942373s177.html#a14152905 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Vedr.: Re: deploying without deploying - how do I turn off deployment ofpom(oranyother default maven goal in a phase)?
Hi Martin, it didn't work. Thanks anyway for your help. I'll have a look at using the site lifecycle now... but I have a feeling I will have a similar problem, as I don't want site:site to run br, Michael Martin Hoeller <[EMAIL PROTECTED]> skrev den 04-12-2007 14:16:10: > Hi Michael! > > [I CC'd maven-users again, maybe it's interesting for some others as well.] > > > thanks for your mail - sorry to mail you directly, but I have already read > > all the relevant documentation, and I can't see anyway of preventing a > > plugin from executing. > > Well, I didn't test it but had something like this in mind: > > > > org.apache.maven.plugins > maven-deploy-plugin > > > > > > Let us know if it works. > > hth, > - martin > -- > Martin Höller | [EMAIL PROTECTED] > *x Software + Systeme | http://www.xss.co.at/ > Karmarschgasse 51/2/20 | Tel: +43-1-6060114-30 > A-1100 Vienna, Austria | Fax: +43-1-6060114-71 > > 6i0pY > [bilaget "signature.asc" blev fjernet af Michael Romose - T2450/SDC]
RE: POM file does not exist. Either the POM you specified or one of its modules does not exist.
solved...nothing to do with Continuum. I increased the output level and i saw an FileNotFoundException which was supressed with the normal output-level settings in log4j.xml: 2007-12-04 15:02:37,967 DEBUG [org.codehaus.plexus.redback.rbac.RBACManager:cached] building user permission map 2007-12-04 15:02:38,301 INFO [org.apache.maven.continuum.project.builder.ContinuumProjectBuilder:maven-two-builder] Downloading http://chbbs231.ch.eds.com/tweb-repos/company-eds/trunk/pom.xml 2007-12-04 15:02:38,301 INFO [org.apache.maven.continuum.project.builder.ContinuumProjectBuilder:maven-two-builder] Downloading http://chbbs231.ch.eds.com/tweb-repos/company-eds/trunk/pom.xml 2007-12-04 15:02:38,311 DEBUG [org.apache.maven.continuum.project.builder.ContinuumProjectBuilder:maven-two-builder] Error adding project: File not found http://chbbs231.ch.eds.com/tweb-repos/company-eds/trunk/pom.xml java.io.FileNotFoundException: /tmp/continuum/tweb-repos/company-eds/trunk/pom.xml (No such file or directory) /tmp/continuum/tweb-repos/company-eds belonged to the root user and JBoss runs with the jboss user. I think this happened after JBoss was started errorously with the root user instead with the jboss user). What a painand what a bad idea to suppress exceptions! brgds Dominique -Original Message- From: Siarhei [mailto:[EMAIL PROTECTED] Sent: Friday, November 30, 2007 08:09 PM To: [EMAIL PROTECTED] Subject: Re: POM file does not exist. Either the POM you specified or one of its modules does not exist. Actually, I have to take back what I said. It appeared the problem was that I had continuum running as a system service which doesn't find my settings.xml. After I modified the service to run as a local user and put settings.xml under the the users profile the problems seemed to be resolved. It was almost obvious I wish could find find that earlier: http://maven.apache.org/continuum/guides/getting-started/index.html Siarhei Emmanuel Venisse wrote: > > > Siarhei a écrit : >> I had the same problem. But in my case I had a parent which was a >> project from another repository (the build worked well from the >> command line) and it was never built on the same PC (maven didn't >> have a chance to download it to localRepository). After I removed the >> parent I could add the project. >> >> Am I correct in the assumption that it's not possible to add a pom >> project that has a parent (and which may be was never installed in >> the local repository)? > > You're not correct. > > where is declared your localrepository? Continuum can look only at the > settings.xml stored under ${user.home}/.m2/ > > Emmanuel >> >> Siarhei >> >> dboeckli wrote: >>> it was the first project i tried out, so i took the simpliest one, >>> no modules, no parents! >>> >>> -Original Message- >>> From: Emmanuel Venisse [mailto:[EMAIL PROTECTED] >>> Sent: Monday, November 05, 2007 05:24 PM >>> To: [EMAIL PROTECTED] >>> Subject: Re: POM file does not exist. Either the POM you specified >>> or one of its modules does not exist. >>> >>> Do you have modules in your pom? Are they in the tag? >>> >>> Emmanuel >>> >>> Boeckli, Dominique a écrit : Whenever i try to add a project to Continuum i get following error: POM file does not exist. Either the POM you specified or one of its modules does not exist. In the log i have following messages: 2007-11-05 16:14:02,175 1239586 WARN [com.opensymphony.webwork.dispatcher.multipart.MultiPartRequest] (http-0.0.0.0-8080-1:) Item is a file upload of 0 size, ignoring 2007-11-05 16:14:02,411 1239822 INFO [STDOUT] (http-0.0.0.0-8080-1:) [INFO] 2007-11-05 16:14:02,412 1239823 INFO [STDOUT] (http-0.0.0.0-8080-1:) checking for settings auth setup 2007-11-05 16:14:02,420 1239831 INFO [STDOUT] (http-0.0.0.0-8080-1:) [INFO] 2007-11-05 16:14:02,420 1239831 INFO [STDOUT] (http-0.0.0.0-8080-1:) Downloading http://chbbs231.ch.eds.com/tweb-repos/company-eds/tags/1.0/pom.xml 2007-11-05 16:14:02,426 1239837 INFO [STDOUT] (http-0.0.0.0-8080-1:) [INFO] 2007-11-05 16:14:02,426 1239837 INFO [STDOUT] (http-0.0.0.0-8080-1:) Created 0 projects. 2007-11-05 16:14:02,426 1239837 INFO [STDOUT] (http-0.0.0.0-8080-1:) [INFO] 2007-11-05 16:14:02,426 1239837 INFO [STDOUT] (http-0.0.0.0-8080-1:) Created 0 project groups. 2007-11-05 16:14:02,426 1239837 INFO [STDOUT] (http-0.0.0.0-8080-1:) [INFO] 2007-11-05 16:14:02,426 1239837 INFO [STDOUT] (http-0.0.0.0-8080-1:) 1 errors. 2007-11-05 16:14:02,426 1239837 INFO [STDOUT] (http-0.0.0.0-8080-1:) [INFO] 2007-11-05 16:14:02,426 1239837 INFO [STDOUT] (http-0.0.0.0-8080-1:) 1 errors during project add: 2007-11-05 16:14:02,426 1239837 INFO [STDOUT] (http-0.0.0.0-8080-1:) [INFO] 2007-11-05 16:14:02,426 1239837 INFO [STDOUT] (
Running application from Maven
Hey everybody, What is the preferred way of running an application from Maven? It would be very nice to have the specified (runtime) dependencies at hand such that there is no need for further configuration of the classpath. I found the exec-plugin from codehaus but don't know whether that is the intended way of doing. Thanks for any suggestions. Greetings from Germany, Marco. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: problem with mvn install
It doesn't work for me, i need JSF stuff (javax.faces.component)... lmk wrote: > > proble resolved. > I delete Jboss central repository from the config file..now it works > fine.. > > regards ! > > > willem84 wrote: >> >> I have got exact the same problem... >> Probably error in maven? (A) >> >> >> lmk wrote: >>> >>> hello >>> >>> I get a strange problem traying to install project into local >>> repository. >>> maven try to get unfound versio of maven jar plugin. >>> >>> the error is >>> >>> [ERROR] BUILD ERROR >>> [INFO] >>> >>> [INFO] Internal error in the plugin manager executing goal >>> 'org.apache.maven.plugins:maven-jar-plugin:2.1-jboss-1:jar': Unable to >>> find the mojo >>> 'org.apache.maven.plugins:maven-jar-plugin:2.1-jboss-1:jar' in the >>> plugin 'org.apache.maven.plugins:maven-jar-plugin' >>> org/apache/maven/archiver/MavenArchiveConfiguration >>> >>> regards! >>> >>> >>> >>> >> >> > > -- View this message in context: http://www.nabble.com/problem-with-mvn-install-tf4942373s177.html#a14151686 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: problem with mvn install
proble resolved. I delete Jboss central repository from the config file..now it works fine.. regards ! willem84 wrote: > > I have got exact the same problem... > Probably error in maven? (A) > > > lmk wrote: >> >> hello >> >> I get a strange problem traying to install project into local >> repository. >> maven try to get unfound versio of maven jar plugin. >> >> the error is >> >> [ERROR] BUILD ERROR >> [INFO] >> >> [INFO] Internal error in the plugin manager executing goal >> 'org.apache.maven.plugins:maven-jar-plugin:2.1-jboss-1:jar': Unable to >> find the mojo 'org.apache.maven.plugins:maven-jar-plugin:2.1-jboss-1:jar' >> in the plugin 'org.apache.maven.plugins:maven-jar-plugin' >> org/apache/maven/archiver/MavenArchiveConfiguration >> >> regards! >> >> >> >> > > -- View this message in context: http://www.nabble.com/problem-with-mvn-install-tf4942373s177.html#a14151290 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: order of member project execution
Hi Mark, Ok. I'll give that a try. Funny thing is that my (root) parent pom ultimately references 64 modules in the project graph. I am getting a table length error in the logs and am unable to build anything. Is there a limit to the number of modules that Continuum can handle from a single parent pom? Thanks for your help! Jeff -Original Message- From: Mark Eramo [mailto:[EMAIL PROTECTED] Sent: Monday, December 03, 2007 4:01 PM To: [EMAIL PROTECTED] Subject: RE: order of member project execution Hi Jeff, What you want to do is build a Parent pom for the projects then you can define modules in the order that they will be built. When you run mvn against the Parent Pom, it will build the modules in the order they are defined. You will still need poms for all the childrens projects as they will get executed at the individual project level. For example, in the parent pom at the top, I have a modules section that defines the projecs in order that I want to build: Project1 Project2 Projec3 Regards, Mark From: Danda, Jeff X [ITG Consultant for Sprint] [mailto:[EMAIL PROTECTED] Sent: Mon 12/3/2007 12:07 PM To: [EMAIL PROTECTED] Subject: order of member project execution I need to execute a collection of member projects in a specific order. I have some mvn artifact dependencies that need to be compiled in sequence. I have created a single Project Group and added Member Projects in a specific order all with the DEFAULT_SCHEDULE. The Project Group Summary then lists out all of these Member Projects in alphabetical order. When Build All Project(s) is clicked the Member Projects are then executed in alphabetical order. This is not desired. I wish to execute them in the order that they were added. How do I do this? How do I ensure that Member Projects are executed in a desired order? Also, I did try to get Continuum to execute my Member Projects in order by creating a parent pom with my child pom projects as modules. This did not work either - the (module) Member Projects were still executed alphabetically. Any help would be appreciated! Jeff
Re: problem with mvn install
I have got exact the same problem... Probably error in maven? (A) lmk wrote: > > hello > > I get a strange problem traying to install project into local repository. > maven try to get unfound versio of maven jar plugin. > > the error is > > [ERROR] BUILD ERROR > [INFO] > > [INFO] Internal error in the plugin manager executing goal > 'org.apache.maven.plugins:maven-jar-plugin:2.1-jboss-1:jar': Unable to > find the mojo 'org.apache.maven.plugins:maven-jar-plugin:2.1-jboss-1:jar' > in the plugin 'org.apache.maven.plugins:maven-jar-plugin' > org/apache/maven/archiver/MavenArchiveConfiguration > > regards! > > > > -- View this message in context: http://www.nabble.com/problem-with-mvn-install-tf4942373s177.html#a14151286 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Default executions
On 03 Dec 2007, lightbulb432 wrote: > > How can I find out the default plugin executions? For example, how would I > know that maven-clean-plugin or maven-site-plugin isn't automatically in the > build lifecycle (therefore requiring me to do a mvn clean or mvn site > specifically or adding it as an execution in pom.xml)? http://cvs.peopleware.be/training/maven/maven2/buildLifecyclePhases.html hth, - martin -- Martin Höller | [EMAIL PROTECTED] *x Software + Systeme | http://www.xss.co.at/ Karmarschgasse 51/2/20 | Tel: +43-1-6060114-30 A-1100 Vienna, Austria | Fax: +43-1-6060114-71 signature.asc Description: PGP signature
Re: Assembly Plugins question
On Dec 4, 2007 6:16 AM, Matthias Wessendorf <[EMAIL PROTECTED]> wrote: > To get the assemblies, I have to do (currently) two things: > mvn clean install -Pgenerate-assembly > (since I have a profile for the "assembly modules"), > > cd assembly > mvn assembly:assembly > > cd demo/demoAssembly > mvn assembly:assembly > > I know, that I can move the "assembly modules" to the default, but how > to ensure, that > the two "mvn assembly:assembly" calls where made as well ? Take a look at "Building an assembly as part of the build lifecycle" here, and try the "attached" goal: http://maven.apache.org/plugins/maven-assembly-plugin/usage.html -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Fw: deploying without deploying - how do I turn off deployment of pom(or anyother default maven goal in a phase)?
I forgot to CC the list... Begin forwarded message: Date: Tue, 4 Dec 2007 14:16:10 +0100 From: Martin Hoeller <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: Re: deploying without deploying - how do I turn off deployment of pom(or anyother default maven goal in a phase)? Hi Michael! [I CC'd maven-users again, maybe it's interesting for some others as well.] > thanks for your mail - sorry to mail you directly, but I have already read > all the relevant documentation, and I can't see anyway of preventing a > plugin from executing. Well, I didn't test it but had something like this in mind: org.apache.maven.plugins maven-deploy-plugin Let us know if it works. hth, - martin -- Martin Höller | [EMAIL PROTECTED] *x Software + Systeme | http://www.xss.co.at/ Karmarschgasse 51/2/20 | Tel: +43-1-6060114-30 A-1100 Vienna, Austria | Fax: +43-1-6060114-71 signature.asc Description: PGP signature
Assembly Plugins question
Hi, I have a question regarding optimizing my use of the assembly plugin. I have a build structure like / -api -assembly/ -impl/ -demos/ -demo1 ... -demoN -demoAssembly a regular "mvn clean install" now builds, api, impl and all the demos. To get the assemblies, I have to do (currently) two things: mvn clean install -Pgenerate-assembly (since I have a profile for the "assembly modules"), cd assembly mvn assembly:assembly cd demo/demoAssembly mvn assembly:assembly I know, that I can move the "assembly modules" to the default, but how to ensure, that the two "mvn assembly:assembly" calls where made as well ? Thx! Matthias -- Matthias Wessendorf further stuff: blog: http://matthiaswessendorf.wordpress.com/ sessions: http://www.slideshare.net/mwessendorf mail: matzew-at-apache-dot-org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Failing test suite with 2.0.8
Any plugin may fork a build and if it forks a phase later than test (package most likely), then your tests will run twice. You really should lock down your plugin versions to avoid accidental updates like that. If you're using javadoc in your build, that could be the culprit since I believe it recently changed to forking the build. -Original Message- From: Francesco Vivoli [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 04, 2007 2:03 AM To: users@maven.apache.org Subject: RE: Failing test suite with 2.0.8 No, we haven't specified any version for the plugins. Actually the problem seems to be exactly that tests are run twice...As I said in another post, setting never solved it, even if it takes much longer to run the whole suite now. Are you saying that plugins other than surefire could come in the way when doing mvn test? Btw, I'll try to bind the pom to a specific version of the surefire plugin and see what happens. Thanks a lot for the hint btw! cheers Francesco Brian E Fox wrote: > > Did you also update any plugins at the same time? Are your plugins > locked down in your poms? I'm wondering if a new version of a plugin is > forking the build causing your tests to run twice. Javadoc comes to > mind, but there may be others. > > -Original Message- > From: Francesco Vivoli [mailto:[EMAIL PROTECTED] > Sent: Monday, December 03, 2007 2:23 AM > To: users@maven.apache.org > Subject: Failing test suite with 2.0.8 > > > Hi all > > A part of my test suite uses a combination of DBUnit and HSQL to test > database code. A base class basically reads a location ( using > this.getClass().getClassLoader().getResource() ) and populates the > database > during setup. Everything is shut down on teardown. > Now, after upgrading to 2.0.8 I end up with > > Tests run: 211, Failures: 0, Errors: 95, Skipped: 6 > > while with 2.0.7 I get no failing tests. Also running them within an IDE > makes them pass. > It seems that all database driven tests are failing during setup, i.e > when > inserting the test data into the embedded database, with an exception > like > the following: > > testFindMostRecent(org.atalaya.isec.aggregation.dao.AggregationDaoTest) > Time elapsed: 0.533 sec <<< ERROR! > java.sql.SQLException: Violation of unique constraint $$: duplicate > value(s) > for column(s) $$: > > Now, I'm aware of the classpath order change in 2.0.8, but it seems that > data is loaded just fine anyway... > Is there any other thing that I should check? > > Any feedback would be mostly appreciated, > cheers > Francesco > -- > View this message in context: > http://www.nabble.com/Failing-test-suite-with-2.0.8-tf4934941s177.html#a > 14125469 > Sent from the Maven - Users mailing list archive at Nabble.com. > > > - > 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] > > > -- View this message in context: http://www.nabble.com/Failing-test-suite-with-2.0.8-tf4934941s177.html#a 14146290 Sent from the Maven - Users mailing list archive at Nabble.com. - 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]
continuum results in email
Hi, I just upgraded continuum from 1.0.3 to 1.1 and one important thing for us is changed, the build result output is not added to the email any more, is there a way to turn this on again? Also I noticed in the beta4 announcement: New Feature * [CONTINUUM-310] - customisable email templates Is there an example how to customize the email templates? Regards, Wouter de Vaal - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven task/approach for producing depended JARs cleanly?
jimpo wrote: > I have a maven project which produces a foo.jar as a result. > > jar > > My code depends on several jars (javax.persistence, commons-beanutils, ...). > These JARs are (of course) not included in my outcome foo.jar. When I deploy > the foo.jar to target environment, I need to copy all dependent JARs to > classpath. > > I could copy them manually from my local repository, surebut how do I > tell Maven "copy all dependent JARs to location x"? Have a look at the maven-dependency-plugin (http://maven.apache.org/plugins/maven-dependency-plugin/) -dirk - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Maven task/approach for producing depended JARs cleanly?
I have a maven project which produces a foo.jar as a result. jar My code depends on several jars (javax.persistence, commons-beanutils, ...). These JARs are (of course) not included in my outcome foo.jar. When I deploy the foo.jar to target environment, I need to copy all dependent JARs to classpath. I could copy them manually from my local repository, surebut how do I tell Maven "copy all dependent JARs to location x"? -- View this message in context: http://www.nabble.com/Maven-task-approach-for-producing-depended-JARs-cleanly--tf4942601s177.html#a14149100 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Linux Etch Tomca5 5.5 Deployment of Continumm 1.1 solved
Hi, Just to let you know: I do not have any docBase in my continuum.xml ... Cheers, Raul Ingo Siebert wrote: Hi, Continuum starts up if i use the docBase="..." attribute in the continuum.xml and if the WAR referenced by docBase isn't in the webapps folder. But i have another problem. But i'll post it in another email, because it's something completely different. Cheers, Ingo Raúl Casado Piqueras schrieb: Hi Ingo. Maybe this is a naive question but have you checked your file permission on /var/continuum/database/continuum? is the directory path created? Regards, Raul Ingo Siebert wrote: Hi Emmanuel, this is my current config: Ingo Emmanuel Venisse schrieb: What is your jdbc url? Emmanuel Ingo Siebert a écrit : Hi, i solved my first problem: Cannot create JDBC driver of class '' for connect URL 'null' The coninuum.xml must be in CATALINA_HOME/conf/Standalone/localhost, because it is used as "load balancer" target (Standalone not Catalina). Additionally, i had to remove the docBase attribute from the continuum.xml: docBase="/var/lib/tomcat5.5/webapps/continuum.war" The path is fine, but if i use the attribute it is not working. Now i have another problem, please take a look at the complete stacktrace at the end of the email. Any idea what's wrong? The tomcat user has full access to the target folders. My main problem is this: "Failed to create database...see the next exception for details. ...82 more" Do i have any chance to get the other exceptions printed? Cheers, Ingo 1464 [http-9080-Processor25] ERROR org.apache.catalina.core.ContainerBase.[Standalone].[localhost].[/continuum] - Exception sending context initialized event to listener instance of class org.codehaus.plexus.xwork.PlexusLifecycleListener javax.jdo.JDODataStoreException: Failed initialising database. Please check that your database JDBC driver is accessible, and the database URL and username/password are correct. Exception : Cannot create PoolableConnectionFactory (Failed to create database '/var/continuum/database/continuum', see the next exception for details.) org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (Failed to create database '/var/continuum/database/continuum', see the next exception for details.) at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:855) at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:540) at org.jpox.util.FailoverUtils.getConnection(FailoverUtils.java:51) at org.jpox.store.rdbms.RDBMSManager.(RDBMSManager.java:241) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:494) at org.jpox.util.ClassUtils.newInstance(ClassUtils.java:73) at org.jpox.store.StoreManagerFactory.getStoreManager(StoreManagerFactory.java:73) at org.jpox.AbstractPersistenceManager.getStoreManager(AbstractPersistenceManager.java:295) at org.jpox.AbstractPersistenceManager.(AbstractPersistenceManager.java:217) at org.jpox.PersistenceManagerImpl.(PersistenceManagerImpl.java:42) at org.jpox.PersistenceManagerFactoryImpl.getPersistenceManager(PersistenceManagerFactoryImpl.java:178) at org.jpox.PersistenceManagerFactoryImpl.getPersistenceManager(PersistenceManagerFactoryImpl.java:153) at org.apache.maven.continuum.store.JdoContinuumStore.getPersistenceManager(JdoContinuumStore.java:2033) at org.apache.maven.continuum.store.JdoContinuumStore.getPersistenceManager(JdoContinuumStore.java:2028) at org.apache.maven.continuum.store.JdoContinuumStore.getContinuumBuildDefinitionTemplateWithType(JdoContinuumStore.java:792) at org.apache.maven.continuum.builddefinition.DefaultBuildDefinitionService.getContinuumDefaultWithType(DefaultBuildDefinitionService.java:244) at org.apache.maven.continuum.builddefinition.DefaultBuildDefinitionService.getDefaultAntBuildDefinitionTemplate(DefaultBuildDefinitionService.java:255) at org.apache.maven.continuum.builddefinition.DefaultBuildDefinitionService.initializeDefaultContinuumBuildDefintions(DefaultBuildDefinitionService.java:115) at org.apache.maven.continuum.builddefinition.DefaultBuildDefinitionService.initialize(DefaultBuildDefinitionService.java:104) at org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializePhase.execute(InitializePhase.java:33) at org.codehaus.plexus.lifecycle.AbstractLifecycleHandler.start(AbstractLifecycleHandler.java:128) at org.codehaus.plexus.component.manager.AbstractComponentManager.startComponentLifecycle(AbstractComponentManager.java:142) at or
problem with mvn install
hello I get a strange problem traying to install project into local repository. maven try to get unfound versio of maven jar plugin. the error is [ERROR] BUILD ERROR [INFO] [INFO] Internal error in the plugin manager executing goal 'org.apache.maven.plugins:maven-jar-plugin:2.1-jboss-1:jar': Unable to find the mojo 'org.apache.maven.plugins:maven-jar-plugin:2.1-jboss-1:jar' in the plugin 'org.apache.maven.plugins:maven-jar-plugin' org/apache/maven/archiver/MavenArchiveConfiguration regards! -- View this message in context: http://www.nabble.com/problem-with-mvn-install-tf4942373s177.html#a14148387 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Profiles and filtering - global files
Hi all, I'm in a bit of a pickle, and I'm hoping someone can help me out. I have an extensive Maven project with the following layout: project A, packaging: pom project A.A, packaging: pom project A.A.A, packaging: jar project A.A.B, packaging: jar project A.A.C, packaging: war ... project A.B, packaging: pom project A.B.A, packaging: jar project A.B.B, packaging: war project A.B.C, packaging: war ... And I have a global properties file used as a configuration file that I want filtered depending on which profile I run: # conf.properties URL_TO_SERVER1=${env.server1.address} URL_TO_SERVER2=${env.server1.address} ... And I have three filter files: #dev.properties env.server1.address=server1.dev.example.com env.server2.address=server2.dev.example.com #test.properties env.server1.address=server1.test.example.com env.server2.address=server2.test.example.com #prod.properties env.server1.address=server1.prod.example.com env.server2.address=server2.prod.example.com Now, How do I configure the top POM (project A above) to filter conf.properties using (say) filter dev.properties. I had a go at it with the following top POM: 4.0.0 com.example projA pom 1.0-SNAPSHOT Project A A B ... junit junit test dev true ${basedir}/filters/dev.properties src/main/resources true test ${basedir}/filters/test.properties src/main/resources true prod ${basedir}/filters/prod.properties src/main/resources true The problem is that each subproject tries to refer to the 'filters' directory IN ITS OWN directory structure, not the one at the top. The reason for this structure is that I want: ONE conf.properties ONE filter file per profile and I want the filtered conf.properties copied into src/main/resources of each subproject (I'm, willing to consider having copies of an unfiltered conf.properties in each project's resources directory). Can it be done (how?) or should try a different approach (any suggestions)? Or should I have no filtering, and just three different properties files (dev, test and prod) at the top and have them included in each concrete project (how do I do that)? Thanks, heimlich -- View this message in context: http://www.nabble.com/Profiles-and-filtering---global-files-tf4942371s177.html#a14148383 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: SDL and the config folder
Rémy Sanlaville ha scritto: > Hi Stefano, > > Have a look to the mailing archive : > http://www.nabble.com/Default-location-of-config-files--%3E-Maven-Standard-Directroy-Layo-ut--tf3466078s177.html#a9672316 Thank you for the link! Unfortunately my google/archive searches failed: maybe the mispelled "Directroy" and the space in "Layo ut" in that thread subjects took me away from the answer ;-) So, to provide much more keywords to google here is the summary: The config folder (src/main/config) in the Standard Directory Layout is for the *build* process configuration files, while configuration files that we want to include in the generated package have to be placed in the resources folder (src/main/resources). Thank you, Stefano > It would be nice to update the documentation in order to clarifier this point > because it's a quite common question. > http://maven.apache.org/guides/introduction/introduction-to-the-standard-directory-layout.html > > Rémy > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
jetty:run Failed startup of context
Hi, I've been using Jetty on a project successfully for a while but now we get this error... Starting jetty 6.1.5 ... 2007-12-04 09:00:55.230::INFO: jetty-6.1.5 2007-12-04 09:00:56.699::WARN: Failed startup of context [EMAIL PROTECTED]/eTraderII,Z:\jcoleman\pro jects\eTraderII\branches\SCB2\target\eTraderII} javax.naming.NameNotFoundException; remaining name 'java:comp' I've not seen this error before with Jetty, does anyone know how to fix it? TIA John Eurobase International Limited and its subsidiaries (Eurobase) are unable to exercise control over the content of information in E-Mails. Any views and opinions expressed may be personal to the sender and are not necessarily those of Eurobase. Eurobase will not enter into any contractual obligations in respect of any part of its business in any E-mail. Privileged / confidential information may be contained in this message and /or any attachments. This E-mail is intended for the use of the addressee(s) only and may contain confidential information. If you are not the / an intended recipient, you are hereby notified that any use or dissemination of this communication is strictly prohibited. If you receive this transmission in error, please notify us immediately, and then delete this E-mail. Neither the sender nor Eurobase accepts any liability whatsoever for any defects of any kind either in or arising from this E-mail transmission. E-Mail transmission cannot be guaranteed to be secure or error-free, as messages can be intercepted, lost, corrupted, destroyed, contain viruses, or arrive late or incomplete. Eurobase does not accept any responsibility for viruses and it is your responsibility to scan any attachments. Eurobase Systems Limited is the main trading company in the Eurobase International Group; registered in England and Wales as company number 02251162; registered address: Essex House, 2 County Place, Chelmsford, Essex CM2 0RE, UK.
Re: How to create multi-module project from archetype?
I agree also that more and more people use the multi-project feature and will be happy to have the possibility to create a multi-project archetype. Hope that ArchetypeNG plugin will offer this feature soon. Rémy
Re: UnsatisfiedDependencyException
You have to add the 'tags' part in both artifactId's and you can remove the tags eg: commons-jelly commons-jelly-tags-interaction 1.0 HTH, -Lukas Rice Yeh wrote: Hi Lukas, In the project.xml, the dependencies are as follows: commons-jelly-interaction commons-jelly commons-jelly-tags-interaction-1.0.jar 1.0 commons-jelly-http commons-jelly commons-jelly-tags-http-1.0.jar 1.0 In the repository, two files commons-jelly-tags-http-1.0.jar and commons-jelly-tags-interaction-1.0.jar are under commons-jelly directory. I do not know much about maven 1.x. What is going wrong? Regards, Rice On Dec 4, 2007 5:01 PM, Lukas Theussl <[EMAIL PROTECTED]> wrote: Shouldn't it be jelly-tags-interaction and jelly-tags-http? HTH, -Lukas Rice Yeh wrote: Hi, I am using maven to build glassfish. I get the errors below. I check my local repositories. I do have these 2 artifacts in it. I am using maven 1.1. Any clue? Exception stack traces : org.apache.maven.verifier.UnsatisfiedDependencyException : The build cannot conti nue because of the following unsatisfied dependencies: - commons-jelly:commons-jelly-interaction:1.0:jar - commons-jelly:commons-jelly-http:1.0:jar Regards, Rice - 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]
Re: SDL and the config folder
Hi Stefano, Have a look to the mailing archive : http://www.nabble.com/Default-location-of-config-files--%3E-Maven-Standard-Directroy-Layo-ut--tf3466078s177.html#a9672316 It would be nice to update the documentation in order to clarifier this point because it's a quite common question. http://maven.apache.org/guides/introduction/introduction-to-the-standard-directory-layout.html Rémy
Re: Linux Etch Tomca5 5.5 Deployment of Continumm 1.1
Hi Ingo. Maybe this is a naive question but have you checked your file permission on /var/continuum/database/continuum? is the directory path created? Regards, Raul Ingo Siebert wrote: Hi Emmanuel, this is my current config: Ingo Emmanuel Venisse schrieb: What is your jdbc url? Emmanuel Ingo Siebert a écrit : Hi, i solved my first problem: Cannot create JDBC driver of class '' for connect URL 'null' The coninuum.xml must be in CATALINA_HOME/conf/Standalone/localhost, because it is used as "load balancer" target (Standalone not Catalina). Additionally, i had to remove the docBase attribute from the continuum.xml: docBase="/var/lib/tomcat5.5/webapps/continuum.war" The path is fine, but if i use the attribute it is not working. Now i have another problem, please take a look at the complete stacktrace at the end of the email. Any idea what's wrong? The tomcat user has full access to the target folders. My main problem is this: "Failed to create database...see the next exception for details. ...82 more" Do i have any chance to get the other exceptions printed? Cheers, Ingo 1464 [http-9080-Processor25] ERROR org.apache.catalina.core.ContainerBase.[Standalone].[localhost].[/continuum] - Exception sending context initialized event to listener instance of class org.codehaus.plexus.xwork.PlexusLifecycleListener javax.jdo.JDODataStoreException: Failed initialising database. Please check that your database JDBC driver is accessible, and the database URL and username/password are correct. Exception : Cannot create PoolableConnectionFactory (Failed to create database '/var/continuum/database/continuum', see the next exception for details.) org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (Failed to create database '/var/continuum/database/continuum', see the next exception for details.) at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:855) at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:540) at org.jpox.util.FailoverUtils.getConnection(FailoverUtils.java:51) at org.jpox.store.rdbms.RDBMSManager.(RDBMSManager.java:241) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:494) at org.jpox.util.ClassUtils.newInstance(ClassUtils.java:73) at org.jpox.store.StoreManagerFactory.getStoreManager(StoreManagerFactory.java:73) at org.jpox.AbstractPersistenceManager.getStoreManager(AbstractPersistenceManager.java:295) at org.jpox.AbstractPersistenceManager.(AbstractPersistenceManager.java:217) at org.jpox.PersistenceManagerImpl.(PersistenceManagerImpl.java:42) at org.jpox.PersistenceManagerFactoryImpl.getPersistenceManager(PersistenceManagerFactoryImpl.java:178) at org.jpox.PersistenceManagerFactoryImpl.getPersistenceManager(PersistenceManagerFactoryImpl.java:153) at org.apache.maven.continuum.store.JdoContinuumStore.getPersistenceManager(JdoContinuumStore.java:2033) at org.apache.maven.continuum.store.JdoContinuumStore.getPersistenceManager(JdoContinuumStore.java:2028) at org.apache.maven.continuum.store.JdoContinuumStore.getContinuumBuildDefinitionTemplateWithType(JdoContinuumStore.java:792) at org.apache.maven.continuum.builddefinition.DefaultBuildDefinitionService.getContinuumDefaultWithType(DefaultBuildDefinitionService.java:244) at org.apache.maven.continuum.builddefinition.DefaultBuildDefinitionService.getDefaultAntBuildDefinitionTemplate(DefaultBuildDefinitionService.java:255) at org.apache.maven.continuum.builddefinition.DefaultBuildDefinitionService.initializeDefaultContinuumBuildDefintions(DefaultBuildDefinitionService.java:115) at org.apache.maven.continuum.builddefinition.DefaultBuildDefinitionService.initialize(DefaultBuildDefinitionService.java:104) at org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializePhase.execute(InitializePhase.java:33) at org.codehaus.plexus.lifecycle.AbstractLifecycleHandler.start(AbstractLifecycleHandler.java:128) at org.codehaus.plexus.component.manager.AbstractComponentManager.startComponentLifecycle(AbstractComponentManager.java:142) at org.codehaus.plexus.component.manager.AbstractComponentManager.createComponentInstance(AbstractComponentManager.java:132) at org.codehaus.plexus.component.manager.ClassicSingletonComponentManager.getComponent(ClassicSingletonComponentManager.java:90) at org.codehaus.plexus.DefaultComponentLookupManager.lookup(DefaultComponentLookupManager.java:147) at org.codehaus.plexus.DefaultPlexusContainer.lookup(Default
Re: UnsatisfiedDependencyException
Hi Lukas, In the project.xml, the dependencies are as follows: commons-jelly-interaction commons-jelly commons-jelly-tags-interaction-1.0.jar 1.0 commons-jelly-http commons-jelly commons-jelly-tags-http-1.0.jar 1.0 In the repository, two files commons-jelly-tags-http-1.0.jar and commons-jelly-tags-interaction-1.0.jar are under commons-jelly directory. I do not know much about maven 1.x. What is going wrong? Regards, Rice On Dec 4, 2007 5:01 PM, Lukas Theussl <[EMAIL PROTECTED]> wrote: > Shouldn't it be jelly-tags-interaction and jelly-tags-http? > > HTH, > -Lukas > > > Rice Yeh wrote: > > Hi, > > I am using maven to build glassfish. I get the errors below. I check > my > > local repositories. I do have these 2 artifacts in it. I am using maven > 1.1. > > Any clue? > > > > Exception stack traces : > > org.apache.maven.verifier.UnsatisfiedDependencyException : The build > cannot > > conti > > nue because of the following unsatisfied dependencies: > > - commons-jelly:commons-jelly-interaction:1.0:jar > > - commons-jelly:commons-jelly-http:1.0:jar > > > > > > Regards, > > Rice > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
Re: UnsatisfiedDependencyException
Shouldn't it be jelly-tags-interaction and jelly-tags-http? HTH, -Lukas Rice Yeh wrote: Hi, I am using maven to build glassfish. I get the errors below. I check my local repositories. I do have these 2 artifacts in it. I am using maven 1.1. Any clue? Exception stack traces : org.apache.maven.verifier.UnsatisfiedDependencyException : The build cannot conti nue because of the following unsatisfied dependencies: - commons-jelly:commons-jelly-interaction:1.0:jar - commons-jelly:commons-jelly-http:1.0:jar Regards, Rice - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
UnsatisfiedDependencyException
Hi, I am using maven to build glassfish. I get the errors below. I check my local repositories. I do have these 2 artifacts in it. I am using maven 1.1. Any clue? Exception stack traces : org.apache.maven.verifier.UnsatisfiedDependencyException : The build cannot conti nue because of the following unsatisfied dependencies: - commons-jelly:commons-jelly-interaction:1.0:jar - commons-jelly:commons-jelly-http:1.0:jar Regards, Rice
Re: 2.0.8 broken war build
In my case it's not the ordering that causes trouble, in fact no matter how I set the forkmode my classpath looks like this (running with -X): [DEBUG] (f) classpathElements = [/Users/villo/Documents/projects/atalaya/trunk/atalaya-web/target/test-classes, /Users/villo/Documents/projects/atalaya/trunk/atalaya-web/target/classes, /Users/villo/.m2/repository/junit/junit/4.2/junit-4.2.jar... Both test-classes and classes are added to the classpath, and my test resources are found. I don't use Spring wildcard matching though. Have you tried to see if resources in other locations rather than . (the classpath root) are picked up? I don't know if it's relevant but in my pom I've got this as well src/main/webapp/WEB-INF src/test/resources Francesco Paul Benedict-2 wrote: > > Francesco, how did you determine that forking creates the correct > classpath > ordering? > > On Dec 3, 2007 3:16 AM, Francesco Vivoli <[EMAIL PROTECTED]> wrote: > >> >> Hi all >> >> I've just posted a similar issue[*]; I'm also using war packaging and >> setting never solved it. >> >> I still wonder what happens though... >> Anyone's got an explanation? >> >> Cheers >> Francesco >> >> >> *: http://www.nabble.com/Failing-test-suite-with-2.0.8-tf4934941s177.html >> >> Damien Lecan 2 wrote: >> > >> > Similar problem for me when swithcing from 2.07 to 2.0.8 >> > >> > Despite http://jira.codehaus.org/browse/MNG-3118, config files are now >> > read by surefire classloader in target/classes first, then in >> > target/test-classes >> > >> > Try a simple getClass().getResource("/my.property") >> > >> > As a workaround, I configured surefire 2.3 with this : >> > never >> > >> > Then Surefire classloader read config file in target/test-classes >> first. >> > >> > Strange thing, I had to do that only for projects with war packaging >> > (but with classical unit tests). >> > >> > So hard to say if it's a bug with surefire, war plugin (?) or Maven >> > itself. >> > >> > Damien Lecan >> > >> > 2007/11/29, Paul Benedict <[EMAIL PROTECTED]>: >> >> Kev, >> >> >> >> I reported something similar in the user list today. The classpath >> that >> >> Spring gets back in 2.0.8 points to classes, not test-classes, so all >> my >> >> testing data cannot be found. As you said, things work fine in 2.0.7 >> >> >> >> Paul >> >> >> >> On Nov 28, 2007 9:29 PM, Kev Jackson <[EMAIL PROTECTED]> wrote: >> >> >> >> > Hi, >> >> > >> >> > I've just been re-building my project with the new mvn 2.0.8 binary. >> >> > >> >> > Here's my experience so far. >> >> > >> >> > mvn clean install (jars) -> works as 2.0.7 >> >> > >> >> > mvn clean package -P (war) -> broken (re-tested on 2.0.7 >> and >> >> > works) >> >> > >> >> > So something has changed in 2.0.8 that has affected surefire. >> >> > >> >> > Here is a snippet of the error >> >> > >> >> > Nov 29, 2007 10:09:01 AM com.seanergie.persistence.SessionsManager >> >> > initialize >> >> > SEVERE: Exception building Hibernate SessionFactory : >> >> > Could not find datasource >> >> > org.hibernate.HibernateException: Could not find datasource >> >> > at >> >> > >> org.hibernate.connection.DatasourceConnectionProvider.configure(Datas >> >> > ourceConnectionProvider.java:56) >> >> > at >> >> > >> org.hibernate.connection.ConnectionProviderFactory.newConnectionProvi >> >> > der(ConnectionProviderFactory.java:124) >> >> > at >> >> > >> org.hibernate.connection.ConnectionProviderFactory.newConnectionProvi >> >> > >> >> > For each unit test that uses Hibernate (v3 with Annotations & >> >> > HibernateSearch), the same error 'Could not find datasource'. >> >> > >> >> > For mvn 2.0.7 the build works perfectly. >> >> > >> >> > I haven't changed my hibernate.cfg.xml file between builds, I >> haven't >> >> > changed any code or config between builds, the only thing I changed >> was >> >> > MVN_HOME & PATH to 2.0.8. >> >> > >> >> > As these errors occur during the surefire:test phase of the build >> I'm >> >> > assuming that something has changed in the Classpath management for >> >> > surefire? >> >> > >> >> > Any help would be appreciated. >> >> > >> >> > Thanks, >> >> > Kev >> >> > >> >> > >> - >> >> > 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] >> > >> > >> > >> >> -- >> View this message in context: >> http://www.nabble.com/2.0.8-broken-war-build-tf4894912s177.html#a14126098 >> Sent from the Maven - Users mailing list archive at Nabble.com. >> >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional comman
RE: Failing test suite with 2.0.8
No, we haven't specified any version for the plugins. Actually the problem seems to be exactly that tests are run twice...As I said in another post, setting never solved it, even if it takes much longer to run the whole suite now. Are you saying that plugins other than surefire could come in the way when doing mvn test? Btw, I'll try to bind the pom to a specific version of the surefire plugin and see what happens. Thanks a lot for the hint btw! cheers Francesco Brian E Fox wrote: > > Did you also update any plugins at the same time? Are your plugins > locked down in your poms? I'm wondering if a new version of a plugin is > forking the build causing your tests to run twice. Javadoc comes to > mind, but there may be others. > > -Original Message- > From: Francesco Vivoli [mailto:[EMAIL PROTECTED] > Sent: Monday, December 03, 2007 2:23 AM > To: users@maven.apache.org > Subject: Failing test suite with 2.0.8 > > > Hi all > > A part of my test suite uses a combination of DBUnit and HSQL to test > database code. A base class basically reads a location ( using > this.getClass().getClassLoader().getResource() ) and populates the > database > during setup. Everything is shut down on teardown. > Now, after upgrading to 2.0.8 I end up with > > Tests run: 211, Failures: 0, Errors: 95, Skipped: 6 > > while with 2.0.7 I get no failing tests. Also running them within an IDE > makes them pass. > It seems that all database driven tests are failing during setup, i.e > when > inserting the test data into the embedded database, with an exception > like > the following: > > testFindMostRecent(org.atalaya.isec.aggregation.dao.AggregationDaoTest) > Time elapsed: 0.533 sec <<< ERROR! > java.sql.SQLException: Violation of unique constraint $$: duplicate > value(s) > for column(s) $$: > > Now, I'm aware of the classpath order change in 2.0.8, but it seems that > data is loaded just fine anyway... > Is there any other thing that I should check? > > Any feedback would be mostly appreciated, > cheers > Francesco > -- > View this message in context: > http://www.nabble.com/Failing-test-suite-with-2.0.8-tf4934941s177.html#a > 14125469 > Sent from the Maven - Users mailing list archive at Nabble.com. > > > - > 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] > > > -- View this message in context: http://www.nabble.com/Failing-test-suite-with-2.0.8-tf4934941s177.html#a14146290 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]