Re: [m2] cobertura from sandbox
Yes, that's exactly the same problem I faced yesterday too! The problem is described on the Cobertura FAQ page and they recommend: "Cobertura does not need ASM in your classpath when running tests. If you're seeing classpath conflicts, just make sure the asm jar that comes with Cobertura is used only by Cobertura, and only when instrumenting." Hm, seems a little bit more difficult with Maven2. ASM is a dependency of cobertura.jar which is already in the classpath when running the tests. I think there is currently no way of "unloading" or "replacing" this jar with another version (1.5.3) of ASM. Maybe someone of the Maven2 team can answer this question? Any help would be greatly appreciated. Take care Ralf Adam Hardy wrote: Maybe I should have added - I think it's a classloader issue because Hibernate specifies asm-1.5.3 in its pom which requires the file but cobertura specifies asm-2.1 in its pom. The problem seems to be that Hibernate cannot load asm-1.5.3 because cobertura has already loaded the latest version, which is incompatible. Adam Original Message Date: Tue, 27 Dec 2005 00:34:29 + From: Adam Hardy <[EMAIL PROTECTED]> To: Maven Users List Subject: [m2] cobertura from sandbox I get this huge stacktrace when running cobertura. It looks like a dependencies issue. The missing class is found in dependency asm-1.5.3 of Hibernate, but not in dependency asm-2.1 of cobertura-maven-plugin. Is there a setting I can use? Is this a fault with cobertura or the hibernate pom? Or a maven classloader issue? Thanks Adam ERROR [hibernate.proxy.BasicLazyInitializer.getProxyFactory()] CGLIB Enhancement failed: com.gargantus.tradingcode.domain.Market java.lang.NoClassDefFoundError: org/objectweb/asm/CodeVisitor at net.sf.cglib.core.KeyFactory$Generator.generateClass(KeyFactory.java:165) at net.sf.cglib.core.DefaultGeneratorStrategy.generate(DefaultGeneratorStrategy.java:25) at net.sf.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:216) at net.sf.cglib.core.KeyFactory$Generator.create(KeyFactory.java:145) at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:117) at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:108) at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:104) at net.sf.cglib.proxy.Enhancer.(Enhancer.java:69) at org.hibernate.proxy.CGLIBLazyInitializer.getProxyFactory(CGLIBLazyInitializer.java:116) at org.hibernate.proxy.CGLIBProxyFactory.postInstantiate(CGLIBProxyFactory.java:41) at org.hibernate.tuple.PojoEntityTuplizer.buildProxyFactory(PojoEntityTuplizer.java:161) at org.hibernate.tuple.AbstractEntityTuplizer.(AbstractEntityTuplizer.java:131) at org.hibernate.tuple.PojoEntityTuplizer.(PojoEntityTuplizer.java:55) at org.hibernate.tuple.TuplizerLookup.create(TuplizerLookup.java:64) at org.hibernate.tuple.EntityMetamodel.(EntityMetamodel.java:257) at org.hibernate.persister.entity.AbstractEntityPersister.(AbstractEntityPersister.java:412) at org.hibernate.persister.entity.SingleTableEntityPersister.(SingleTableEntityPersister.java:108) at org.hibernate.persister.PersisterFactory.createClassPersister(PersisterFactory.java:55) at org.hibernate.impl.SessionFactoryImpl.(SessionFactoryImpl.java:215) at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1154) at com.gargantus.tradingcode.HibernateUtil.(HibernateUtil.java:74) 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.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:172) at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:75) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:670) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:329) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:226) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:147) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:176) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:105)
RE: configure plugin (jboss-maven)
Hi, Below is the full stacktrace. (mvn -X jboss:harddeploy) It isn't picking up the parameters. Edwin [DEBUG] Configuring mojo 'org.codehaus.mojo:jboss-maven-plugin:1.0:harddeploy' --> [DEBUG] (f) fileName = C:\cvs\wfz-leda\target/Leda-1.0-SNAPSHOT.pom [DEBUG] (f) jbossHome = NONE [DEBUG] (f) serverName = default [DEBUG] -- end configuration -- [INFO] [jboss:harddeploy] [INFO] [ERROR] BUILD ERROR [INFO] [INFO] jbossHome configuration parameter is not set. [INFO] [DEBUG] Trace org.apache.maven.lifecycle.LifecycleExecutionException: jbossHome configuration parameter is not set. at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:555) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:485) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:455) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.ja a:303) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:270) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:139) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115) at org.apache.maven.cli.MavenCli.main(MavenCli.java:249) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) Caused by: org.apache.maven.plugin.MojoExecutionException: jbossHome configuration parameter is not set. at org.codehaus.mojo.jboss.AbstractJBossMojo.checkConfig(AbstractJBossMojo.java:52) at org.codehaus.mojo.jboss.HardDeployMojo.execute(HardDeployMojo.java:43) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:432) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:530) ... 16 more -Oorspronkelijk bericht- Van: Edwin Punzalan [mailto:[EMAIL PROTECTED] Verzonden: donderdag 29 december 2005 2:59 Aan: Maven Users List Onderwerp: Re: configure plugin (jboss-maven) That seems to be the correct configuration... can you give the full stack trace of the error you encountered? Btw, if you want to specify a path relative to your current dir, don't put the leading backslash "\" in Edwin van der Elst wrote: >Hi, > >I'm going nuts here, trying to use the jboss-maven plugin in Maven2. >I downloaded the plugin from codehause and installed locally. > >Now > >In my pom.xml > ... > > org.codehause.mojo > jboss-maven-plugin > 1.0 > false > > \apps\Jboss-4.0.3\ > > > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m2] surefire and commons-logging problem
Hello, I have a problem with running surefire tests when I have commons-logging in my classpath. I get java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory. I am subscriber of this list and I think I saw a solution here (adding something to the commons-logging...???) but I can't find it now. Could you, please, refresh my memory what it is? Best regards, Piotrek - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [m2] Migrating mockobject calls to Maven2
I'm not sure if it was already in 2.0, but in the latest version there is a parameter testSourceRoot you can add. This will add a directory to the test source directories. Your configuration will look like this : target/generated-sources/nextmock > -Original Message- > From: Dennis Ho [mailto:[EMAIL PROTECTED] > Sent: 29 December 2005 01:52 > To: Maven Users List > Subject: RE: [m2] Migrating mockobject calls to Maven2 > > Hi, > > > > I managed to add the mock generator using the > maven-antrun-plugin but I am having trouble adding the generated test > sources to the test compile source directory. How can I make the > maven-compiler-plugin to compile both the src/test/java and > target/generated-test-src directories? > > > > Thanks, > > > > Dennis. > > > > -Original Message- > From: David Sag [mailto:[EMAIL PROTECTED] > Sent: Wednesday, December 28, 2005 2:48 AM > To: Maven Users List > Subject: Re: [m2] Migrating mockobject calls to Maven2 > > > > > We use EasyMock and all that needs is to put the folllowwing in the pom. > there are no generated files like with what you describe however. it > makes great little mockobjects though using the cglib. > > > easymock > easymock > 1.2_Java1.3 > test > > > > easymock > easymockclassextension > 1.1 > test > > > Kind regards, > Dave Sag > > > > > > > "Dennis Ho" <[EMAIL PROTECTED]> wrote on 28-12-2005 07:08:42: > > > Hi, > > > >I am in the process of migrating some existing maven tasks to > > use maven 2. We use mockobjects in our code for testing purposes, and > I > > would like to know if anyone has experience using maven2 with > > mockobjects can give me some pointer as to how the pom should look > like. > > > >When we did it with maven 1.x we have to use ant like the > > following: > > > > > classname="de.abstrakt.tools.codegeneration.file.MockCreatorFile" > > fork="yes" failonerror="true" > > classpathref="mockcreator.classpath"> > > > > > > > > > > > > > > > > > > > > > > > > Is there a more natural way to do it in Maven 2? I can't find > anything > > from the web so any advice is welcome. > > > > Thanks in advance for your help! > > > > Regards, > > > > Dennis Ho. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: What means @aggregator
> -Original Message- > From: Edwin Punzalan [mailto:[EMAIL PROTECTED] > > If I'm not mistaken, it also gives you access to ${reactorProjects} > where reactorProjects are the MavenProject references to the parent pom > modules... Yes, @aggregator mojo can only be run on projects with > pom > No @aggregator mojo can be used on any kind of projects. For example, the assembly mojo is an aggregator mojo. > ^_^ > > > dan tran wrote: > > >to turn off multi module build, without this tag you have to do > > > > mvn -N goals > > > >-D What is the impact when put '@aggregator' and '@phase ' or when the user attach it to a particular phase inside his pom.xml ? I guess that all the 'normal' plugin attached to the phases before xxx will be executed on the sub-mudules, but not the plugin flagged with '@aggregator'. Is it correct? Thanks, Gilles > > > > > >On 12/28/05, Scokart Gilles <[EMAIL PROTECTED]> wrote: > > > > > >>This is a tag we can place in the mojo. What does it means? What is > its > >>purpose? > >> > >> > >> > >>Thanks, > >> > >> > >> > >>SCOKART Gilles > >> > >> > >> > >> > >> > >> > >> > > > > > > > > - > 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]
[m2] any one is running JunitPerf test?
in M2, surefire seems skipping TestSuite. when I do default 'mvn compile'. JunitPerf will not run at all! --- My Junit Perf test case: --- public class ExampleTimedTest { public static final long toleranceInMillis = 100; public static Test suite() { long maxElapsedTimeInMillis = 1000 + toleranceInMillis; Test testCase = new ExampleTestCase("testOneSecondResponse"); Test timedTest = new TimedTest(testCase, maxElapsedTimeInMillis); return timedTest; } public static void main(String args[]) { junit.textui.TestRunner.run(suite()); } } *the onlye method I currently using is to forcefully extend ExampleTimedTest from TestCase, so that surefire will run ExampleTimedTest! any better solution? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] Using optional ant tasks with antrun plugin
Thanks Yann, works as expected. Cheers, -Ralph. On 28.12.2005, at 19:17, Yann Le Du wrote: Hi Ralph, Try ant-nodeps instead of ant-optional, there is a 1.6.5 and I believe this is the new name for ant-optional. -- Yann 2005/12/28, Ralph Pöllath <[EMAIL PROTECTED]>: Hi, I'd like to use the antrun plugin to execute optional ant tasks. Extending the example from http://maven.apache.org/guides/mini/guide- using-ant.html , I added a dependency to ant:ant-optional: 1.5.3-1:jar, which results in an error: An invalid artifact was detected, ArtifactID: <<< MISSING >>>. I noticed that the used version of ant itself is 1.6.5, but I found no matching ant-optional.jar in the repository. Any help apreciated, see below for full details. Thanks, -Ralph. --- 4.0.0 my-test-app my-test-group 1.0-SNAPSHOT maven-antrun-plugin generate-sources *** happy holidays! run ant ant-optional 1.5.3-1 $ mvn -X package + Error stacktraces are turned on. [DEBUG] Building Maven user-level plugin registry from: '~/.m2/ plugin- registry.xml' [DEBUG] Building Maven global-level plugin registry from: '$M2_HOME/ conf/plugin-registry.xml' [INFO] Scanning for projects... [INFO] - --- [INFO] Building Unnamed - my-test-group:my-test-app:jar:1.0-SNAPSHOT [INFO]task-segment: [package] [INFO] - --- [DEBUG] maven-resources-plugin: resolved to version 2.1 from repository central [DEBUG] Retrieving parent-POM from the repository for project: null:maven-resources-plugin:maven-plugin:2.1 [DEBUG] maven-compiler-plugin: resolved to version 2.0 from repository central [DEBUG] Retrieving parent-POM from the repository for project: null:maven-compiler-plugin:maven-plugin:2.0 [DEBUG] maven-surefire-plugin: resolved to version 2.0 from repository central [DEBUG] Retrieving parent-POM from the repository for project: null:maven-surefire-plugin:maven-plugin:2.0 [DEBUG] maven-jar-plugin: resolved to version 2.0 from repository central [DEBUG] Retrieving parent-POM from the repository for project: null:maven-jar-plugin:maven-plugin:2.0 [DEBUG] maven-antrun-plugin: resolved to version 1.0 from repository central [DEBUG] Retrieving parent-POM from the repository for project: null:maven-antrun-plugin:maven-plugin:1.0 [DEBUG] my-test-group:my-test-app:jar:1.0-SNAPSHOT (selected for null) [DEBUG] org.apache.maven.plugins:maven-antrun-plugin:maven-plugin:1.0 (selected for runtime) [DEBUG] ant:ant:jar:1.6.5 (selected for runtime) [DEBUG] Retrieving parent-POM from the repository for project: null:maven-project:jar:2.0 [DEBUG] org.apache.maven:maven-project:jar:2.0 (selected for runtime) [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4 (selected for runtime) [DEBUG] org.codehaus.plexus:plexus-container-default:jar:1.0- alpha-8 (selected for runtime) [DEBUG] classworlds:classworlds:jar:1.1-alpha-2 (selected for runtime) [DEBUG] junit:junit:jar:3.8.1 (selected for runtime) [DEBUG] Retrieving parent-POM from the repository for project: org.apache.maven:maven-artifact:jar:2.0 [DEBUG] org.apache.maven:maven-artifact:jar:2.0 (selected for runtime) [DEBUG] Retrieving parent-POM from the repository for project: org.apache.maven:maven-model:jar:2.0 [DEBUG] org.apache.maven:maven-model:jar:2.0 (selected for runtime) [DEBUG] Retrieving parent-POM from the repository for project: org.apache.maven:maven-artifact-manager:jar:2.0 [DEBUG] org.apache.maven:maven-artifact-manager:jar:2.0 (selected for runtime) [DEBUG] Retrieving parent-POM from the repository for project: org.apache.maven:maven-repository-metadata:jar:2.0 [DEBUG] org.apache.maven:maven-repository-metadata:jar:2.0 (selected for runtime) [DEBUG] org.apache.maven.wagon:wagon-provider-api:jar:1.0- alpha-5 (selected for runtime) [DEBUG] Retrieving parent-POM from the repository for project: null:maven-profile:jar:2.0 [DEBUG] org.apache.maven:maven-profile:jar:2.0 (selected for runtime) [INFO] - --- [ERROR] FATAL ERROR [INFO] - --- [INFO] An invalid artifact was detected. This artifact might be in your project's POM, or it might have been included transitively during the resolution process. Here is the information we do have for this artifact: o GroupID: ant o ArtifactID: <<< MISSING >>> o Version: 1.5.3-1 o Type:jar [INFO] -
Component SNAPSHOT
I would like to browse the maven source in eclipse. I have downloaded the sources from maven. But when I try to run mvn eclipse:eclipse on the maven-core project, I receive an error like this : required artifacts missing: org.apache.maven:maven-monitor:jar:2.1-SNAPSHOT org.apache.maven:maven-error-diagnostics:jar:2.1-SNAPSHOT org.apache.maven:maven-plugin-api:jar:2.1-SNAPSHOT org.apache.maven:maven-model:jar:2.1-SNAPSHOT org.apache.maven:maven-plugin-registry:jar:2.1-SNAPSHOT org.apache.maven:maven-artifact:jar:2.1-SNAPSHOT org.apache.maven:maven-profile:jar:2.1-SNAPSHOT org.apache.maven:maven-plugin-parameter-documenter:jar:2.1-SNAPSHOT org.codehaus.plexus:plexus-utils:jar:1.0.6-SNAPSHOT org.apache.maven:maven-plugin-descriptor:jar:2.1-SNAPSHOT org.apache.maven.reporting:maven-reporting-api:jar:2.1-SNAPSHOT org.apache.maven:maven-project:jar:2.1-SNAPSHOT org.apache.maven:maven-repository-metadata:jar:2.1-SNAPSHOT org.apache.maven:maven-artifact-manager:jar:2.1-SNAPSHOT org.apache.maven:maven-settings:jar:2.1-SNAPSHOT for the artifact: org.apache.maven:maven-core:jar:2.1-SNAPSHOT from the specified remote repositories: central (http://repo1.maven.org/maven2), apache.snapshots (http://cvs.apache.org/maven-snapshot-repository), snapshots (http://snapshots.maven.codehaus.org/maven2) Yesterday, I did the same thing with some plugins, and it worked. The dependent SNAPSHOT where available. Is it because it's the core module who need bootstrap. Is it because the SNAPSHOT are not available today, or is it for an other reason? By the way, I wonder if apache.snapshots should be used. There is much less on this reposiroty than on the last one (on codehaus). SCOKART Gilles - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m2] run plugin after webapp is assembled and before it's zipped
Hi, I'd like to post-process my JSPs using the antrun plugin (which uses ant's replaceregexp task). The plugin execution itself works fine, but now I need it to run after the webapp is assembled and before it's zipped up as a warfile. My JSPs live in src/main/webapp/WEB-INF/jsp/ and I do not want to modifiy them there. I thought about dropping them into src/main/ resources/ but then they would end up in target/myApp/WEB-INF/ classes/ instead of WEB-INF. Any ideas? Thanks, -Ralph. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] cobertura from sandbox
Could you open an issue in jira? On 12/29/05, Ralf Quebbemann <[EMAIL PROTECTED]> wrote: > Yes, that's exactly the same problem I faced yesterday too! The problem > is described on the Cobertura FAQ page and they recommend: > > "Cobertura does not need ASM in your classpath when running tests. If > you're seeing classpath conflicts, just make sure the asm jar that comes > with Cobertura is used only by Cobertura, and only when instrumenting." > > Hm, seems a little bit more difficult with Maven2. ASM is a dependency > of cobertura.jar which is already in the classpath when running the tests. > > I think there is currently no way of "unloading" or "replacing" this jar > with another version (1.5.3) of ASM. > > Maybe someone of the Maven2 team can answer this question? Any help > would be greatly appreciated. > > Take care > > Ralf > > Adam Hardy wrote: > > Maybe I should have added - I think it's a classloader issue because > > Hibernate specifies asm-1.5.3 in its pom which requires the file but > > cobertura specifies asm-2.1 in its pom. > > > > The problem seems to be that Hibernate cannot load asm-1.5.3 because > > cobertura has already loaded the latest version, which is incompatible. > > > > > > Adam > > > > Original Message > > Date: Tue, 27 Dec 2005 00:34:29 + > > From: Adam Hardy <[EMAIL PROTECTED]> > > To: Maven Users List > > Subject: [m2] cobertura from sandbox > > > > I get this huge stacktrace when running cobertura. > > > > It looks like a dependencies issue. The missing class is found in > > dependency asm-1.5.3 of Hibernate, but not in dependency asm-2.1 of > > cobertura-maven-plugin. > > > > Is there a setting I can use? Is this a fault with cobertura or the > > hibernate pom? Or a maven classloader issue? > > > > Thanks > > Adam > > > > > > > > ERROR [hibernate.proxy.BasicLazyInitializer.getProxyFactory()] CGLIB > > Enhancement failed: com.gargantus.tradingcode.domain.Market > > java.lang.NoClassDefFoundError: org/objectweb/asm/CodeVisitor > > at > > net.sf.cglib.core.KeyFactory$Generator.generateClass(KeyFactory.java:165) > > at > > net.sf.cglib.core.DefaultGeneratorStrategy.generate(DefaultGeneratorStrategy.java:25) > > > > at > > net.sf.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:216) > > > > at > > net.sf.cglib.core.KeyFactory$Generator.create(KeyFactory.java:145) > > at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:117) > > at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:108) > > at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:104) > > at net.sf.cglib.proxy.Enhancer.(Enhancer.java:69) > > at > > org.hibernate.proxy.CGLIBLazyInitializer.getProxyFactory(CGLIBLazyInitializer.java:116) > > > > at > > org.hibernate.proxy.CGLIBProxyFactory.postInstantiate(CGLIBProxyFactory.java:41) > > > > at > > org.hibernate.tuple.PojoEntityTuplizer.buildProxyFactory(PojoEntityTuplizer.java:161) > > > > at > > org.hibernate.tuple.AbstractEntityTuplizer.(AbstractEntityTuplizer.java:131) > > > > at > > org.hibernate.tuple.PojoEntityTuplizer.(PojoEntityTuplizer.java:55) > > at > > org.hibernate.tuple.TuplizerLookup.create(TuplizerLookup.java:64) > > at > > org.hibernate.tuple.EntityMetamodel.(EntityMetamodel.java:257) > > at > > org.hibernate.persister.entity.AbstractEntityPersister.(AbstractEntityPersister.java:412) > > > > at > > org.hibernate.persister.entity.SingleTableEntityPersister.(SingleTableEntityPersister.java:108) > > > > at > > org.hibernate.persister.PersisterFactory.createClassPersister(PersisterFactory.java:55) > > > > at > > org.hibernate.impl.SessionFactoryImpl.(SessionFactoryImpl.java:215) > > at > > org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1154) > > > > at > > com.gargantus.tradingcode.HibernateUtil.(HibernateUtil.java:74) > > 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.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:172) > > at > > org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:75) > > > > at > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:670) > > > > at > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:329) > > > > at > > org.springframework.beans.factory.support
Maven - help
Hi, I tried for ear:deploy in maven in following 2 ways, but I am getting problem. Please help me. way 1: C:\TF\maven-2.0.1-bin\maven-2.0.1\bin\my-app>mvn ear:deploy -DgroupId=com.mycomp any.app -DartifactId=my-app [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'ear'. [INFO] - --- [ERROR] BUILD FAILURE [INFO] - --- [INFO] Required goal not found: ear:deploy [INFO] - --- [INFO] For more information, run Maven with the -e switch [INFO] - --- [INFO] Total time: < 1 second [INFO] Finished at: Thu Dec 29 16:09:54 GMT+05:30 2005 [INFO] Final Memory: 1M/3M [INFO] - way 2: C:\TF\maven-2.0.1-bin\maven-2.0.1\bin\my-app>mvn ear:deploy [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'ear'. [INFO] - --- [ERROR] BUILD FAILURE [INFO] - --- [INFO] Required goal not found: ear:deploy [INFO] - --- [INFO] For more information, run Maven with the -e switch [INFO] - --- [INFO] Total time: < 1 second [INFO] Finished at: Thu Dec 29 16:11:00 GMT+05:30 2005 [INFO] Final Memory: 1M/3M [INFO] - Thanks & Regards T.Jagan
[m2] how can I add more source directory?
I would like to add more source directory for groovy script. but if I add the following in pom.xml, the default setting of src/ main/java will be removed! src/main/groovy ... YES ! the following will caused xml syntax error!! src/main/groovy: src/main/groovy pls help Regards, manchi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] run plugin after webapp is assembled and before it's zipped
Hi Ralph, > I'd like to post-process my JSPs using the antrun plugin (which uses > ant's replaceregexp task). The plugin execution itself works fine, > but now I need it to run after the webapp is assembled and before > it's zipped up as a warfile. I had do dig around in the maven-war-plugin myself and I'm pretty sure that the maven-war-plugin currently does not support what you want. The webapp will be assembled in an uncompressed folder structure first, afterwards it's compressed. If you need to put some code in between those two steps, you might also be forced to hack around in the war plugin :-( -dirk -- Anyway kids, have fun, play nicely, be good. And remember - if it ain't broke, hit it again. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [m2] run plugin after webapp is assembled and before it's zipped
> Hi Ralph, > > > I'd like to post-process my JSPs using the antrun plugin (which uses > > ant's replaceregexp task). The plugin execution itself works fine, > > but now I need it to run after the webapp is assembled and before > > it's zipped up as a warfile. > > I had do dig around in the maven-war-plugin myself and I'm pretty sure > that the maven-war-plugin currently does not support what you want. The > webapp will be assembled in an uncompressed folder structure first, > afterwards it's compressed. If you need to put some code in between those > two steps, you might also be forced to hack around in the war plugin :-( I had similar problem. As I remember I modified contents of "target/${finalname}" directory using several ant tasks in antrun plugin. After that I _updated_ "target/${finalname}.war" using war ant tasks (also in the same antrun). maven-antrun-plugin package run I think this is the fastest way to archive what you want. btw. you can't use property for "${project.build.directory}/${project.build.finalName}", since http://jira.codehaus.org/browse/MANTRUN-29. best regards, -- Michal Stochmialek IT Department, Technology Division Euro Bank S.A. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] how can I add more source directory?
Hi, you can use the build-helper-plugin available from the Mojo sandbox to add an extra source dir. http://svn.mojo.codehaus.org/trunk/mojo/mojo-sandbox/build-helper-maven-plugin/ This allows adding an extra source directory, though I don't think it will update/change the pom.xml for the extra directory added. Cheers, Rahul - Original Message - From: "Man-Chi Leung" <[EMAIL PROTECTED]> To: "Maven Users List" Sent: Thursday, December 29, 2005 11:58 PM Subject: [m2] how can I add more source directory? I would like to add more source directory for groovy script. but if I add the following in pom.xml, the default setting of src/ main/java will be removed! src/main/groovy ... YES ! the following will caused xml syntax error!! src/main/groovy: src/main/groovy pls help Regards, manchi - 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 - help
Hi, what do you want to do? Deploy the ear to your internal remote repository or deploy the ear to an application server? If you want to deploy to your internal remote repository just do an 'mvn deploy' -Tim jagan t schrieb: Hi, I tried for ear:deploy in maven in following 2 ways, but I am getting problem. Please help me. way 1: C:\TF\maven-2.0.1-bin\maven-2.0.1\bin\my-app>mvn ear:deploy -DgroupId=com.mycomp any.app -DartifactId=my-app [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'ear'. [INFO] - --- [ERROR] BUILD FAILURE [INFO] - --- [INFO] Required goal not found: ear:deploy [INFO] - --- [INFO] For more information, run Maven with the -e switch [INFO] - --- [INFO] Total time: < 1 second [INFO] Finished at: Thu Dec 29 16:09:54 GMT+05:30 2005 [INFO] Final Memory: 1M/3M [INFO] - way 2: C:\TF\maven-2.0.1-bin\maven-2.0.1\bin\my-app>mvn ear:deploy [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'ear'. [INFO] - --- [ERROR] BUILD FAILURE [INFO] - --- [INFO] Required goal not found: ear:deploy [INFO] - --- [INFO] For more information, run Maven with the -e switch [INFO] - --- [INFO] Total time: < 1 second [INFO] Finished at: Thu Dec 29 16:11:00 GMT+05:30 2005 [INFO] Final Memory: 1M/3M [INFO] - Thanks & Regards T.Jagan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Multiproject site
Hi, I've read that the multiproject is build-in with Maven 2. But I can't find the way to create a site for multiproject like in Maven 1. Is it possible ? Tks. Damien -- Damien Viel | +33 1 41 97 83 20 | [EMAIL PROTECTED] -- __/ \__ | http://www.improve.fr improve | http://www.application-servers.com /_\-| http://www.improve-technologies.com -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Help with custom osgi packaging (Maven 2.0)
I am new to Maven, so this might be a simple answer. I couldn't seem to find the right way to do this. Here is what I want: I am trying to create OSGi bundles with maven. OSGi bundles are just like regular jar files (with an extension of ".jar") except that in order for them to be tested, they need to run in an OSGi framework. Even so, OSGi bundles can implement junit "TestCase" and hence look like normal junit tests to the default Maven surefile tester. But I don't want this, these tests will always fail because they attempt to run the jars outside the OSGi framework. So, I wanted to come up with my own testing framework (using an junit OSGi bundle and another OSGi junit utility called junit_runner which runs your tests as OSGi bundles). I figured that the best way to do this was to define a packaging type called osgi-bundle. In order to do this, I created a "plugin" that has a plexus descriptor like the following (and no other code at all - only the components.xml file): org.apache.maven.lifecycle.mapping.LifecycleMapping osgi-bundle org.apache.maven.lifecycle.mapping.DefaultLifecycleMappi ng org.apache.maven.plugins:maven-resources-plugin:resou rces org.apache.maven.plugins:maven-compiler-plugin:compile org.apache.maven.plugins:maven-resources-plugin: testResources org.apache.maven.plugins:maven-compiler-plugin:testCompile org.apache.maven.plugins:maven-jar-plugin:jar org.apache.maven.plugins:maven-install-plugin:install org.apache.maven.plugins:maven-deploy-plugin:deploy org.apache.maven.artifact.handler.ArtifactHandler osgi-bundle org.apache.maven.artifact.handler.DefaultArtifactHandler jar osgi-bundle jar java false Note that the first part seemed to work fine (the test phase is commented out). Eventually, I plan to replace the "test" phase with my own plugin to run an OSGi framework suite. But I am new to Maven so I am just trying to get going with the basics first. My problem is that the artifact that gets put into the repository at "install" time looks like this: Osgi-1.0-SNAPSHOT.osgi-bundle Rather than: Osgi-1.0-SNAPSHOT.jar I thought that the second component of my plugin would make "osgi-bundle" map to ".jar". I must admit that I am little confused as to what is meant by "type". Sometimes in the documentation "type" means "packaging" while at other times there seem to be specific artifact "types" (Like jar, war, test-jar). I tried changing the role-hint and the type fields in the second component to "jar" but that didn't seem to help. The strange thing is that in my target directory the file created does have the ".jar" extension. But when I run "install" it copies the file from the ".jar" name to the ".osgi-bundle" name. I think there is something simple I am missing here, but I am stuck. Can someone please help me? John Wells (Aziz) [EMAIL PROTECTED]
RE: Breaking up an existing webapp build
I wasn't aware that you can create poms with different names. How does maven know to run with the secondary poms? I know you reference the main pom in the other two with a parent tag, but how does maven know to look for other two? Do I pass something in as an argument? Thanks... Frank Russo Senior Developer FX Alliance, LLC -Original Message- From: Eric Redmond [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 28, 2005 7:34 PM To: Maven Users List Subject: Re: Breaking up an existing webapp build What you could do is create a pom project in the base of the WAR, which then kicks off two modules... one as a JAR project which builds first, then the second one builds the WAR, with everything wrapped up inside it. This would require 3 POMs. For example, if your directory is set up as: BASE_WAR_DIR/java/source/files/ You can create: BASE_WAR_DIR/pom.xml BASE_WAR_DIR/war_pom.xml BASE_WAR_DIR/jar_pom.xml Or better yet, you extend the WAR plugin and branch off another build cycle... the branched cycle would build the .class files into a jar, deploy, and then return to the main build cycle where it would use the jar (presumably with some derrivative name of the war). On 12/28/05, Frank Russo <[EMAIL PROTECTED]> wrote: > > I currently have a standard webapp project with a working m2 build > process. It builds a war with the typical web-inf structure as follows: > > web-inf/classes/*this is where the app's compiled > classes go. > web-inf/lib/*.jarthis is where the dependency jars go. > > I want to alter my build so that instead of the app's class files in a > classes folder in the war, I'd prefer they first be built into a jar > file, placed in the local repository for other apps to use, and then > included as a dependcy in war's web-inf/lib folder. > > I know I need to set up two poms (maybe three), but I don't want to > break up the current package structure if possible, and I'd like this > to be done as one build. > > Can someone point me in the right direction? > > Thanks... > > Frank Russo > Senior Developer > FX Alliance, LLC > > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m2] Multiproject (POM inheritance) plugin and properties questions
Hi, I have read through several threads about related subjects, but I am still not getting it. Let me explain what I want to accomplish. I want to have a top-level POM (packaging: pom), that defines several plugins that will be applied to the sub-projects (not necessarily defined in the same directory hierarchy). Simple, but there's always a but - The first issue: I have defined the plugin configuration in the parent POM, but the configuration needs to vary slightly by module. I need to provide a package naming variable (for example), that is different per module, but not per user (hence, settings.xml is not appropriate), and need to happen automatically in a multiproject build (hence, not suitable as a command line param). I saw a post where I could simply define the variable in a element, nested right below the element. I defined ... myname in each module's pom.xml, and in the plugin config in the parent pom, used ${namespace}. Doesn't seem to get evaluated. I tried ${ pom.properties.namespace} and that didn't work either (using m2 2.0.1). As an experiment, I tried to not use a parent POM, and define/use properties in the same POM, and that didn't work either. What am I doing wrong? - The second issue: I would like the module pom-s to be unaware of the plugins being applied, and just control the behavior from the parent POM. I can define the plugins in the section in the parent POM, but the build fails because the plugins are applied to the parent module also (which has no sources etc.). I can put it in the section, but now I have to define the plugin in each module's POM, which is what I wanted to avoid in the first place. Is there a solution for this? I haven't yet, but as I experiment more with profiles and activations, I think the repeated configuration in each module's POM will likely grow, and I'd like to avoid that. Thanks in advance, Shash
M2 integration with eclipse
Hi all, does someone already use m2 plugin integration with eclipse. I use it , it works fine but i don't find how to configure such that added dependency is only scanned on my own-central repository (actually maven-proxy) , not on central repository. Thanks, Tom - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Multiproject site
They are working on "multiproject:site". Multiprojects are indeed build in with the module system (already in maven 2.0 & 2.0.1). I believe multiproject:site is for 2.1. Geoffrey Damien Viel wrote: Hi, I've read that the multiproject is build-in with Maven 2. But I can't find the way to create a site for multiproject like in Maven 1. Is it possible ? Tks. Damien -- Damien Viel | +33 1 41 97 83 20 | [EMAIL PROTECTED] -- __/ \__ | http://www.improve.fr improve | http://www.application-servers.com /_\-| http://www.improve-technologies.com -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: M2 integration with eclipse
I face the same problem since there isn't any settings.xml file. On 12/29/05, Tom Joad <[EMAIL PROTECTED]> wrote: > Hi all, > does someone already use m2 plugin integration with eclipse. I use it > , it works fine but i don't find how to configure such that added > dependency is only scanned on my own-central repository (actually > maven-proxy) , not on central repository. > > Thanks, > > Tom > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Alexandre Poitras Québec, Canada - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: M2 integration with eclipse
I find an issue on this link . This question is still unresolved http://jira.codehaus.org/browse/MNGECLIPSE-12 Tom. 2005/12/29, Alexandre Poitras <[EMAIL PROTECTED]>: > I face the same problem since there isn't any settings.xml file. > > On 12/29/05, Tom Joad <[EMAIL PROTECTED]> wrote: > > Hi all, > > does someone already use m2 plugin integration with eclipse. I use it > > , it works fine but i don't find how to configure such that added > > dependency is only scanned on my own-central repository (actually > > maven-proxy) , not on central repository. > > > > Thanks, > > > > Tom > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > -- > Alexandre Poitras > Québec, Canada > > - > 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]
Write maven plugin - Please help
I am currently creating a plugin for exporting data from the database using Maven 1.x. To acheive this I use octopus. The directory of the plugin that I create is in C:\Workspace\plugins\spec-config-plugin. I have files Plugin.jelly, plugin.properties, project.xml and folders like src, target, Xdoc in this directory. I am able to do the desired task in this directory. But when I run the goal outside of this directory (like c:\temp) I am not able to get the desired output. I get the following error [java] [ERROR] Could not find org.webdocwf.util.loader.Loader. Make sure you have it in your classpath. (Its not able to find the octopus Jar ). I have included the following dependency in the project.xml. octopus octopus 3.0.1 root I have the following in the plugin.jelly If I include the location of the Jar as it seems to resolve the issue. But I get another exception as it is dependent on another Jar (javax.xml.parsers.FactoryConfigurationError: Provider org.apache.xerces.jaxp.DocumentBuilderFactoryImpl not found) I have the following in the classpath MAVEN_HOME=C:\maven\maven-1.1-beta-1 MAVEN_HOME_LOCAL=C:\Workspace\.maven MAVEN_OPTS=-Xms128M -Xmx256M -Dfile.separ MAVEN_REPO=C:\Workspace\.maven\repository and Octopus-3.0.1 is in C:\Workspace\.maven\repository\octopus\jars and org.webdocwf.util.loader.Loader class is present in Octopus-3.0.1 My question is how do I specify the classpath of the Jar when I work in C:\Jar. Can you please help me to figure out the problem. Please let me know if you need more information. Thanks, Devi - Yahoo! for Good - Make a difference this year.
RE: [m2] Migrating mockobject calls to Maven2
Hi, I didn't try the testSourceRoot soluction but I got it to work in the following way: 1) Use testIncludes to add specify my test source with the maven-compiler-plugin. 2) Use the antrun plug in to run the ant tasks for mock object creation. Thanks for everyone's help. See the following for my pom: org.apache.maven.plugins maven-compiler-plugin 1.5 1.4 1.4 src/test/java/**/*.java target/generated-test-src/mocked/**/*. java maven-antrun-plugin generate-test-sources run mockcreator MockCreator 2.8.0 jar -Original Message- From: Scokart Gilles [mailto:[EMAIL PROTECTED] Sent: Thursday, December 29, 2005 12:29 AM To: Maven Users List Subject: RE: [m2] Migrating mockobject calls to Maven2 I'm not sure if it was already in 2.0, but in the latest version there is a parameter testSourceRoot you can add. This will add a directory to the test source directories. Your configuration will look like this : target/generated-sources/nextmock > -Original Message- > From: Dennis Ho [mailto:[EMAIL PROTECTED] > Sent: 29 December 2005 01:52 > To: Maven Users List > Subject: RE: [m2] Migrating mockobject calls to Maven2 > > Hi, > > > > I managed to add the mock generator using the > maven-antrun-plugin but I am having trouble adding the generated test > sources to the test compile source directory. How can I make the > maven-compiler-plugin to compile both the src/test/java and > target/generated-test-src directories? > > > > Thanks, > > > > Dennis. > > > > -Original Message- > From: David Sag [mailto:[EMAIL PROTECTED] > Sent: Wednesday, December 28, 2005 2:48 AM > To: Maven Users List > Subject: Re: [m2] Migrating mockobject calls to Maven2 > > > > > We use EasyMock and all that needs is to put the folllowwing in the pom. > there are no generated files like with what you describe however. it > makes great little mockobjects though using the cglib. > > > easymock > easymock > 1.2_Java1.3 > test > > > > easymock > easymockclassextension > 1.1 > test > > > Kind regards, > Dave Sag > > > > > > > "Dennis Ho" <[EMAIL PROTECTED]> wrote on 28-12-2005 07:08:42: > > > Hi, > > > >I am in the process of migrating some existing maven tasks to > > use maven 2. We use mockobjects in our code for testing purposes, and > I > > would like to know if anyone has experience using maven2 with > > mockobjects can give me some pointer as to how the pom should look > like. > > > >When we did it with maven 1.x we have to use ant like the > > following: > > > > > classname="de.abstrakt.tools.codegeneration.file.MockCreatorFile" > > fork="yes" failonerror="true" > > classpathref="mockcreator.classpath"> > > > > > > > > > > > > > > > > > > > > > > > > Is there a more natural way to do it in Maven 2? I can't find > anything > > from the web so any advice is welcome. > > > > Thanks in advance for your help! > > > > Regards, > > > > Dennis Ho. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ---
Re: Write maven plugin - Please help
p Devi wrote: I am currently creating a plugin for exporting data from the database using Maven 1.x. To acheive this I use octopus. The directory of the plugin that I create is in C:\Workspace\plugins\spec-config-plugin. I have files Plugin.jelly, plugin.properties, project.xml and folders like src, target, Xdoc in this directory. I am able to do the desired task in this directory. But when I run the goal outside of this directory (like c:\temp) I am not able to get the desired output. I get the following error [java] [ERROR] Could not find org.webdocwf.util.loader.Loader. Make sure you have it in your classpath. (Its not able to find the octopus Jar ). I have included the following dependency in the project.xml. octopus octopus 3.0.1 root I have the following in the plugin.jelly To resolve the plugin dependency not being found in the classpath try changing your classpath element to this: HTH, Doug - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [m2] how can I add more source directory?
Hi, I have use testIncludes which works when configuring the compiler plugin. See the following: . org.apache.maven.plugins maven-compiler-plugin 2.0 1.5 1.5 src/main/java/**/*.java target/schema-src/**/*.java src/test/java/**/*.java Dennis. -Original Message- From: Rinku [mailto:[EMAIL PROTECTED] Sent: Thursday, December 29, 2005 4:10 AM To: Maven Users List Subject: Re: [m2] how can I add more source directory? Hi, you can use the build-helper-plugin available from the Mojo sandbox to add an extra source dir. http://svn.mojo.codehaus.org/trunk/mojo/mojo-sandbox/build-helper-maven- plugin/ This allows adding an extra source directory, though I don't think it will update/change the pom.xml for the extra directory added. Cheers, Rahul - Original Message - From: "Man-Chi Leung" <[EMAIL PROTECTED]> To: "Maven Users List" Sent: Thursday, December 29, 2005 11:58 PM Subject: [m2] how can I add more source directory? >I would like to add more source directory for groovy script. > > but if I add the following in pom.xml, the default setting of src/ > main/java will be removed! > > > src/main/groovy >... > > > > YES ! the following will caused xml syntax error!! > > src/main/groovy: > src/main/groovy > > > pls help > > Regards, > manchi > > - > 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m2] dbMonster or dbUnit howto's
Did anyone have success in integrating dbMonster or dbUnit with a maven2 j2ee project? Could you paste some pom's or how-to's on how you did this? Thanks and Happy Holidays Srgjan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Multiproject site
Actually it will be available in the next release of the site plugin, which is compatible with 2.0.2 (it is working in SVN). - Brett On 12/30/05, Geoffrey <[EMAIL PROTECTED]> wrote: > They are working on "multiproject:site". > Multiprojects are indeed build in with the module system (already in > maven 2.0 & 2.0.1). > I believe multiproject:site is for 2.1. > > Geoffrey > > Damien Viel wrote: > > Hi, > > > > I've read that the multiproject is build-in with Maven 2. > > But I can't find the way to create a site for multiproject like in Maven > > 1. > > Is it possible ? > > > > Tks. > > > > Damien > > -- > > Damien Viel | +33 1 41 97 83 20 | [EMAIL PROTECTED] > > -- > > __/ \__ | http://www.improve.fr > > improve | http://www.application-servers.com > > /_\-| http://www.improve-technologies.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: Help with custom osgi packaging (Maven 2.0)
I'd suggest looking at: http://svn.apache.org/viewcvs.cgi/incubator/felix/trunk/tools/maven2/maven-osgi-plugin/ I think they've already done what you want to do. Cheers, Brett On 12/30/05, John Wells <[EMAIL PROTECTED]> wrote: > I am new to Maven, so this might be a simple answer. I couldn't seem to > find the right way to do this. Here is what I want: > > > > I am trying to create OSGi bundles with maven. OSGi bundles are just > like regular jar files (with an extension of ".jar") except that in > order for them to be tested, they need to run in an OSGi framework. > Even so, OSGi bundles can implement junit "TestCase" and hence look like > normal junit tests to the default Maven surefile tester. But I don't > want this, these tests will always fail because they attempt to run the > jars outside the OSGi framework. > > > > So, I wanted to come up with my own testing framework (using an junit > OSGi bundle and another OSGi junit utility called junit_runner which > runs your tests as OSGi bundles). > > > > I figured that the best way to do this was to define a packaging type > called osgi-bundle. In order to do this, I created a "plugin" that has > a plexus descriptor like the following (and no other code at all - only > the components.xml file): > > > > > > > > > > org.apache.maven.lifecycle.mapping.LifecycleMapping > > osgi-bundle > > > org.apache.maven.lifecycle.mapping.DefaultLifecycleMappi > ng > > > > > > > org.apache.maven.plugins:maven-resources-plugin:resou > rces > > > org.apache.maven.plugins:maven-compiler-plugin:compile > > > > org.apache.maven.plugins:maven-resources-plugin: > testResources > > > org.apache.maven.plugins:maven-compiler-plugin:testCompile > > > > > > org.apache.maven.plugins:maven-jar-plugin:jar > > > org.apache.maven.plugins:maven-install-plugin:install > > > org.apache.maven.plugins:maven-deploy-plugin:deploy > > > > > > > > > > org.apache.maven.artifact.handler.ArtifactHandler > > osgi-bundle > > > org.apache.maven.artifact.handler.DefaultArtifactHandler > > > > > jar > > osgi-bundle > > jar > > java > > false > > > > > > > > > > > > Note that the first part seemed to work fine (the test phase is > commented out). Eventually, I plan to replace the "test" phase with my > own plugin to run an OSGi framework suite. But I am new to Maven so I > am just trying to get going with the basics first. > > > > My problem is that the artifact that gets put into the repository at > "install" time looks like this: > > > > Osgi-1.0-SNAPSHOT.osgi-bundle > > > > Rather than: > > > > Osgi-1.0-SNAPSHOT.jar > > > > I thought that the second component of my plugin would make > "osgi-bundle" map to ".jar". > > > > I must admit that I am little confused as to what is meant by "type". > Sometimes in the documentation "type" means "packaging" while at other > times there seem to be specific artifact "types" (Like jar, war, > test-jar). I tried changing the role-hint and the type fields in the > second component to "jar" but that didn't seem to help. > > > > The strange thing is that in my target directory the file created does > have the ".jar" extension. But when I run "install" it copies the file > from the ".jar" name to the ".osgi-bundle" name. > > > > I think there is something simple I am missing here, but I am stuck. > Can someone please help me? > > > > John Wells (Aziz) > > [EMAIL PROTECTED] > > > > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: my first m2 plugin
It requires to be called after jar:jar as it also needs the final artifact that got built. So I've added "@phase package" and expected a simple "mvn minijar:minijar" would also build the jar. What am I missing? Anyone an answer? Would like to finish up the plugin ASAP :) cheers -- Torsten PGP.sig Description: This is a digitally signed message part
Re: Breaking up an existing webapp build
Ah, I see your point. Well, you can manually build the seperate peices using: mvn -f=jar_pom.xml. There's no reason that the parent pom.xml file can't have as part of it's build profile manual steps to execute the jar and war poms (perhaps through an ant task bound to a phase?). This is not as nice as the modules setup, however, may work. Also, if your jars live in a source directory (such as, /src), then perhaps the jar pom can be named simply pom.xml, and the war pom can also be named pom in the base dir, with the parent pom being named parent_pom.xml. I still beleive, however, that the best thing to do is to override the war build plugin to spawn off seperate lifecycles, install the parts, then continute assembling the whole war. Thanks; Eric On 12/29/05, Frank Russo <[EMAIL PROTECTED]> wrote: > > I wasn't aware that you can create poms with different names. How does > maven know to run with the secondary poms? I know you reference the main > pom in the other two with a parent tag, but how does maven know to look > for other two? Do I pass something in as an argument? > > Thanks... > > Frank Russo > Senior Developer > FX Alliance, LLC > > > -Original Message- > From: Eric Redmond [mailto:[EMAIL PROTECTED] > Sent: Wednesday, December 28, 2005 7:34 PM > To: Maven Users List > Subject: Re: Breaking up an existing webapp build > > What you could do is create a pom project in the base of the WAR, which > then kicks off two modules... one as a JAR project which builds first, > then the second one builds the WAR, with everything wrapped up inside > it. This would require 3 POMs. > > For example, if your directory is set up as: > BASE_WAR_DIR/java/source/files/ > > You can create: > BASE_WAR_DIR/pom.xml > BASE_WAR_DIR/war_pom.xml > BASE_WAR_DIR/jar_pom.xml > > Or better yet, you extend the WAR plugin and branch off another build > cycle... the branched cycle would build the .class files into a jar, > deploy, and then return to the main build cycle where it would use the > jar (presumably with some derrivative name of the war). > > > On 12/28/05, Frank Russo <[EMAIL PROTECTED]> wrote: > > > > I currently have a standard webapp project with a working m2 build > > process. It builds a war with the typical web-inf structure as > follows: > > > > web-inf/classes/*this is where the app's compiled > > classes go. > > web-inf/lib/*.jarthis is where the dependency jars go. > > > > I want to alter my build so that instead of the app's class files in a > > > classes folder in the war, I'd prefer they first be built into a jar > > file, placed in the local repository for other apps to use, and then > > included as a dependcy in war's web-inf/lib folder. > > > > I know I need to set up two poms (maybe three), but I don't want to > > break up the current package structure if possible, and I'd like this > > to be done as one build. > > > > Can someone point me in the right direction? > > > > Thanks... > > > > Frank Russo > > Senior Developer > > FX Alliance, LLC > > > > > > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
Re: my first m2 plugin
If you expect to run it as "mvn minijar:minijar", then you should use @execute phase="package" instead of @phase package. HTH, Brett On 12/30/05, Torsten Curdt <[EMAIL PROTECTED]> wrote: > >> It requires to be called after jar:jar as it also > >> needs the final artifact that got built. So I've > >> added "@phase package" and expected a simple "mvn > >> minijar:minijar" would also build the jar. > >> > >> What am I missing? > > Anyone an answer? > Would like to finish up the plugin ASAP :) > > cheers > -- > Torsten > > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [m2] run plugin after webapp is assembled and before it's zipped
Or you could unpack it and then pack it up again after modifying your files. -Original Message- From: Dirk Olmes [mailto:[EMAIL PROTECTED] Sent: Thursday, December 29, 2005 6:43 AM To: Maven Users List Subject: Re: [m2] run plugin after webapp is assembled and before it's zipped Hi Ralph, > I'd like to post-process my JSPs using the antrun plugin (which uses > ant's replaceregexp task). The plugin execution itself works fine, but > now I need it to run after the webapp is assembled and before it's > zipped up as a warfile. I had do dig around in the maven-war-plugin myself and I'm pretty sure that the maven-war-plugin currently does not support what you want. The webapp will be assembled in an uncompressed folder structure first, afterwards it's compressed. If you need to put some code in between those two steps, you might also be forced to hack around in the war plugin :-( -dirk -- Anyway kids, have fun, play nicely, be good. And remember - if it ain't broke, hit it again. - 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: my first m2 plugin
On 29.12.2005, at 18:36, Brett Porter wrote: If you expect to run it as "mvn minijar:minijar", then you should use @execute phase="package" instead of @phase package. But doesn't that mean it will be called also on a "mvn jar:jar"? Basically I would like to get the same behavior as: ...call to plugin... cheers -- Torsten PGP.sig Description: This is a digitally signed message part
Re: [m2] run plugin after webapp is assembled and before it's zipped
This is probably the only workaround at present. I think the war plugin should be capable of letting you add extras though - perhaps someone could check for this in JIRA and file it if it has not already been requested? - Brett On 12/30/05, Brian E. Fox <[EMAIL PROTECTED]> wrote: > Or you could unpack it and then pack it up again after modifying your > files. > > -Original Message- > From: Dirk Olmes [mailto:[EMAIL PROTECTED] > Sent: Thursday, December 29, 2005 6:43 AM > To: Maven Users List > Subject: Re: [m2] run plugin after webapp is assembled and before it's > zipped > > Hi Ralph, > > > I'd like to post-process my JSPs using the antrun plugin (which uses > > ant's replaceregexp task). The plugin execution itself works fine, but > > > now I need it to run after the webapp is assembled and before it's > > zipped up as a warfile. > > I had do dig around in the maven-war-plugin myself and I'm pretty sure > that the maven-war-plugin currently does not support what you want. The > webapp will be assembled in an uncompressed folder structure first, > afterwards it's compressed. If you need to put some code in between > those two steps, you might also be forced to hack around in the war > plugin :-( > > -dirk > > -- > Anyway kids, have fun, play nicely, be good. And remember - if it ain't > broke, hit it again. > > > - > 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] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Write maven plugin - Please help
Thank you very much for the reply. For my goal to work I had to get many dependencies in the plugin.jelly file. I had to import some thing like the following to work as octopus is dependent on many other Jars. Is there any way of setting the classpath instead of individually setting it. I tried some thing like which didn't work Can you please suggest me other way to set the classpath Thanks, Devi Doug Douglass <[EMAIL PROTECTED]> wrote: p Devi wrote: >I am currently creating a plugin for exporting >data from the database using Maven 1.x. To acheive this I use octopus. > The directory of the plugin that I create is in > C:\Workspace\plugins\spec-config-plugin. I have files Plugin.jelly, > plugin.properties, project.xml and folders like src, target, Xdoc in this > directory. >I am able to do the desired task in this directory. But when I run the goal >outside of this directory (like c:\temp) I am not able to get the desired >output. > >I get the following error > >[java] [ERROR] Could not find org.webdocwf.util.loader.Loader. Make sure you >have it in your classpath. (Its not able to find the octopus Jar ). > >I have included the following dependency in the project.xml. > > octopus > octopus > 3.0.1 > > > root > > > I have the following in the plugin.jelly > > > > To resolve the plugin dependency not being found in the classpath try changing your classpath element to this: HTH, Doug - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Yahoo! for Good - Make a difference this year.
Re: my first m2 plugin
mvn jar:jar doesn't do anything useful. @execute phase="package" is what you want here (its something similar to attainGoal) See: http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html (hopefully it helps a little here). - Brett On 12/30/05, Torsten Curdt <[EMAIL PROTECTED]> wrote: > > On 29.12.2005, at 18:36, Brett Porter wrote: > > > If you expect to run it as "mvn minijar:minijar", then you should use > > @execute phase="package" instead of @phase package. > > But doesn't that mean it will be called also on a "mvn jar:jar"? > > Basically I would like to get the same behavior as: > > > > > ...call to plugin... > > > > cheers > -- > Torsten > > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Creating archetype with resources in package directory
I'd like to create an archetype that builds projects with a resource that maps to the same directory where the class files will eventually reside. The Maven 2 project itself would have the following structure: src `-- main |-- java | `-- somepackagename | `-- SomeClassName.java `-- resources `-- somepackagename `-- SomeClassName.properties This works fine, I just can't figure out how to create it via an archetype. SomeClassName.java will be put into whatever package the user requests automatically, but the properties file will just sit under "resources". Is there a way to do this -- and I don't mind if it's ugly -- or is the archetype creator just not that flexible yet? (Hi, I'm new here. Thanks for Maven 2; it's saving my life!) Nathan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Write maven plugin - Please help
p Devi wrote: Thank you very much for the reply. For my goal to work I had to get many dependencies in the plugin.jelly file. I had to import some thing like the following to work as octopus is dependent on many other Jars. Is there any way of setting the classpath instead of individually setting it. I tried some thing like which didn't work Can you please suggest me other way to set the classpath I just re-read this[1] section of the Developing Plugins page, I think item #2 should resolve your problems. [1] http://maven.apache.org/maven-1.x/using/developing-plugins.html#Plugin_dependencies Doug - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m2] WAS plugin
Hi, Does a Web Sphere Application Server (WAS) plugin exist for Maven 2? The plugin matrix says it doesnt yet. Any idea if a snapshot version for Maven 2 is available or when it will be available? Thanks and regards, Karthik.
RE: How to use M2 with AspectJ?
Hi, Does anyone know which maven 2 repository has the aspectj-maven-plugin? I tried using the following in my pom but got : [INFO] The plugin 'org.codehaus.mojo:aspectj-maven-plugin' does not exist or no valid version could be found org.codehaus.mojo aspectj-maven-plugin compile build.ajproperties compile Thanks in advance. Regards, Dennis. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Carlos Sanchez Sent: Monday, November 21, 2005 7:39 PM To: Maven Users List Subject: Re: How to use M2 with AspectJ? It has just been added http://svn.mojo.codehaus.org/trunk/mojo/mojo-sandbox/aspectj-maven-plugi n/ On 11/21/05, Law Green-A20134 <[EMAIL PROTECTED]> wrote: > Hi, > > Anyone has the idea of using M2 along with aspectJ since there is no > aspectJ plug-in for M2. > > Thanks > Green > > - 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]
install_repo.bat doesn't exist
Hello, I'm using maven2.0 for building Jackrabbit. When I try to run the command: %MAVEN_HOME%\bin\install_repo.bat %HOMEDRIVE%%HOMEPATH%\.maven\repository to create a local repository. However, install-repo.bat doesn't exist. I would appreciate your help. Very urgent... Leïla P.S: Actually, do I need to create this local repository for Jackrabbit? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: install_repo.bat doesn't exist
Jackrabbit requires Maven 1.x, not Maven 2.0. http://maven.apache.org/maven-1.x/start/download.html On 12/30/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Hello, > > I'm using maven2.0 for building Jackrabbit. > > When I try to run the command: > %MAVEN_HOME%\bin\install_repo.bat %HOMEDRIVE%%HOMEPATH%\.maven\repository > > to create a local repository. However, install-repo.bat doesn't exist. > > I would appreciate your help. Very urgent... > > Leïla > > P.S: Actually, do I need to create this local repository for Jackrabbit? > > > > - > 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: install_repo.bat doesn't exist
Thank you Brett. Although I have installed maven 1.x before, but I thought that a new release would be O.K. too. Anyways, now it works, thanks you :-) Leïla Quoting Brett Porter <[EMAIL PROTECTED]>: > Jackrabbit requires Maven 1.x, not Maven 2.0. > > http://maven.apache.org/maven-1.x/start/download.html > > On 12/30/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Hello, > > > > I'm using maven2.0 for building Jackrabbit. > > > > When I try to run the command: > > %MAVEN_HOME%\bin\install_repo.bat > %HOMEDRIVE%%HOMEPATH%\.maven\repository > > > > to create a local repository. However, install-repo.bat doesn't > exist. > > > > I would appreciate your help. Very urgent... > > > > Leïla > > > > P.S: Actually, do I need to create this local repository for > Jackrabbit? > > > > > > > > > - > > 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] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Can I call Continuum goals from Maven?
I just successfully installed and configured Continuum and was able to import my Maven projects into it. Is there a way I can call Continuum tasks from Maven itself - mainly notification? Thanks, Sandeep --- ***National City made the following annotations --- This communication is a confidential and proprietary business communication. It is intended solely for the use of the designated recipient(s). If this communication is received in error, please contact the sender and delete this communication. ===
Re: How to use M2 with AspectJ?
Hi, you have to check it out from svn (svn://svn.codehaus.org/mojo/scm/trunk/mojo) It's in the mojo-sandbox. Ralf Dennis Ho wrote: Hi, Does anyone know which maven 2 repository has the aspectj-maven-plugin? I tried using the following in my pom but got : [INFO] The plugin 'org.codehaus.mojo:aspectj-maven-plugin' does not exist or no valid version could be found org.codehaus.mojo aspectj-maven-plugin compile build.ajproperties compile Thanks in advance. Regards, Dennis. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Carlos Sanchez Sent: Monday, November 21, 2005 7:39 PM To: Maven Users List Subject: Re: How to use M2 with AspectJ? It has just been added http://svn.mojo.codehaus.org/trunk/mojo/mojo-sandbox/aspectj-maven-plugi n/ On 11/21/05, Law Green-A20134 <[EMAIL PROTECTED]> wrote: Hi, Anyone has the idea of using M2 along with aspectJ since there is no aspectJ plug-in for M2. Thanks Green - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] cobertura from sandbox
I have opened an issue (MOJO-194) in jira. Let me know if it's ok. Maybe Adam or me can provide more help. Ralf Carlos Sanchez wrote: Could you open an issue in jira? On 12/29/05, Ralf Quebbemann <[EMAIL PROTECTED]> wrote: Yes, that's exactly the same problem I faced yesterday too! The problem is described on the Cobertura FAQ page and they recommend: "Cobertura does not need ASM in your classpath when running tests. If you're seeing classpath conflicts, just make sure the asm jar that comes with Cobertura is used only by Cobertura, and only when instrumenting." Hm, seems a little bit more difficult with Maven2. ASM is a dependency of cobertura.jar which is already in the classpath when running the tests. I think there is currently no way of "unloading" or "replacing" this jar with another version (1.5.3) of ASM. Maybe someone of the Maven2 team can answer this question? Any help would be greatly appreciated. Take care Ralf Adam Hardy wrote: Maybe I should have added - I think it's a classloader issue because Hibernate specifies asm-1.5.3 in its pom which requires the file but cobertura specifies asm-2.1 in its pom. The problem seems to be that Hibernate cannot load asm-1.5.3 because cobertura has already loaded the latest version, which is incompatible. Adam Original Message Date: Tue, 27 Dec 2005 00:34:29 + From: Adam Hardy <[EMAIL PROTECTED]> To: Maven Users List Subject: [m2] cobertura from sandbox I get this huge stacktrace when running cobertura. It looks like a dependencies issue. The missing class is found in dependency asm-1.5.3 of Hibernate, but not in dependency asm-2.1 of cobertura-maven-plugin. Is there a setting I can use? Is this a fault with cobertura or the hibernate pom? Or a maven classloader issue? Thanks Adam ERROR [hibernate.proxy.BasicLazyInitializer.getProxyFactory()] CGLIB Enhancement failed: com.gargantus.tradingcode.domain.Market java.lang.NoClassDefFoundError: org/objectweb/asm/CodeVisitor at net.sf.cglib.core.KeyFactory$Generator.generateClass(KeyFactory.java:165) at net.sf.cglib.core.DefaultGeneratorStrategy.generate(DefaultGeneratorStrategy.java:25) at net.sf.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:216) at net.sf.cglib.core.KeyFactory$Generator.create(KeyFactory.java:145) at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:117) at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:108) at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:104) at net.sf.cglib.proxy.Enhancer.(Enhancer.java:69) at org.hibernate.proxy.CGLIBLazyInitializer.getProxyFactory(CGLIBLazyInitializer.java:116) at org.hibernate.proxy.CGLIBProxyFactory.postInstantiate(CGLIBProxyFactory.java:41) at org.hibernate.tuple.PojoEntityTuplizer.buildProxyFactory(PojoEntityTuplizer.java:161) at org.hibernate.tuple.AbstractEntityTuplizer.(AbstractEntityTuplizer.java:131) at org.hibernate.tuple.PojoEntityTuplizer.(PojoEntityTuplizer.java:55) at org.hibernate.tuple.TuplizerLookup.create(TuplizerLookup.java:64) at org.hibernate.tuple.EntityMetamodel.(EntityMetamodel.java:257) at org.hibernate.persister.entity.AbstractEntityPersister.(AbstractEntityPersister.java:412) at org.hibernate.persister.entity.SingleTableEntityPersister.(SingleTableEntityPersister.java:108) at org.hibernate.persister.PersisterFactory.createClassPersister(PersisterFactory.java:55) at org.hibernate.impl.SessionFactoryImpl.(SessionFactoryImpl.java:215) at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1154) at com.gargantus.tradingcode.HibernateUtil.(HibernateUtil.java:74) 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.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:172) at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:75) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:670) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:329) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:226) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:147) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(Be
[m2] : howto run jdepend?
I try to run the jdepend plugin... In the "" part of my pom: jdepend jdepend 2.9.1 (the conf which is describe on mojo.codehaus.org/jdepend-maven-plugin/howto.html doesn't work : it doesn't find the plug-in in the remote repository) When I try "mvn jdepend:jdepend" I have got the following error: [ERROR] FATAL ERROR ... java.lang.NullPointerException at org.apache.maven.plugin.DefaultPluginManager.addPlugin(DefaultPluginManager. java:312) at org.apache.maven.plugin.DefaultPluginManager.verifyVersionedPlugin(DefaultPl uginManager.j ava:217) ... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] cobertura from sandbox
It's good you spotted that one Ralf. Anything I can do to help would be a pleasure, although having said that I am actually going away for a week tomorrow. Ralf Quebbemann on 29/12/05 20:00, wrote: I have opened an issue (MOJO-194) in jira. Let me know if it's ok. Maybe Adam or me can provide more help. Ralf Carlos Sanchez wrote: Could you open an issue in jira? On 12/29/05, Ralf Quebbemann <[EMAIL PROTECTED]> wrote: Yes, that's exactly the same problem I faced yesterday too! The problem is described on the Cobertura FAQ page and they recommend: "Cobertura does not need ASM in your classpath when running tests. If you're seeing classpath conflicts, just make sure the asm jar that comes with Cobertura is used only by Cobertura, and only when instrumenting." Hm, seems a little bit more difficult with Maven2. ASM is a dependency of cobertura.jar which is already in the classpath when running the tests. I think there is currently no way of "unloading" or "replacing" this jar with another version (1.5.3) of ASM. Maybe someone of the Maven2 team can answer this question? Any help would be greatly appreciated. Take care Ralf Adam Hardy wrote: Maybe I should have added - I think it's a classloader issue because Hibernate specifies asm-1.5.3 in its pom which requires the file but cobertura specifies asm-2.1 in its pom. The problem seems to be that Hibernate cannot load asm-1.5.3 because cobertura has already loaded the latest version, which is incompatible. Adam Original Message Date: Tue, 27 Dec 2005 00:34:29 + From: Adam Hardy <[EMAIL PROTECTED]> To: Maven Users List Subject: [m2] cobertura from sandbox I get this huge stacktrace when running cobertura. It looks like a dependencies issue. The missing class is found in dependency asm-1.5.3 of Hibernate, but not in dependency asm-2.1 of cobertura-maven-plugin. Is there a setting I can use? Is this a fault with cobertura or the hibernate pom? Or a maven classloader issue? Thanks Adam ERROR [hibernate.proxy.BasicLazyInitializer.getProxyFactory()] CGLIB Enhancement failed: com.gargantus.tradingcode.domain.Market java.lang.NoClassDefFoundError: org/objectweb/asm/CodeVisitor at net.sf.cglib.core.KeyFactory$Generator.generateClass(KeyFactory.java:165) at net.sf.cglib.core.DefaultGeneratorStrategy.generate(DefaultGeneratorStrategy.java:25) at net.sf.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:216) at net.sf.cglib.core.KeyFactory$Generator.create(KeyFactory.java:145) at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:117) at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:108) at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:104) at net.sf.cglib.proxy.Enhancer.(Enhancer.java:69) at org.hibernate.proxy.CGLIBLazyInitializer.getProxyFactory(CGLIBLazyInitializer.java:116) at org.hibernate.proxy.CGLIBProxyFactory.postInstantiate(CGLIBProxyFactory.java:41) at org.hibernate.tuple.PojoEntityTuplizer.buildProxyFactory(PojoEntityTuplizer.java:161) at org.hibernate.tuple.AbstractEntityTuplizer.(AbstractEntityTuplizer.java:131) at org.hibernate.tuple.PojoEntityTuplizer.(PojoEntityTuplizer.java:55) at org.hibernate.tuple.TuplizerLookup.create(TuplizerLookup.java:64) at org.hibernate.tuple.EntityMetamodel.(EntityMetamodel.java:257) at org.hibernate.persister.entity.AbstractEntityPersister.(AbstractEntityPersister.java:412) at org.hibernate.persister.entity.SingleTableEntityPersister.(SingleTableEntityPersister.java:108) at org.hibernate.persister.PersisterFactory.createClassPersister(PersisterFactory.java:55) at org.hibernate.impl.SessionFactoryImpl.(SessionFactoryImpl.java:215) at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1154) at com.gargantus.tradingcode.HibernateUtil.(HibernateUtil.java:74) 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.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:172) at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:75) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:670) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:329) at org.springframework.beans.factory.support.Abstract
Re: [m2] dbMonster or dbUnit howto's
Srepfler Srgjan on 29/12/05 17:14, wrote: Did anyone have success in integrating dbMonster or dbUnit with a maven2 j2ee project? Could you paste some pom's or how-to's on how you did this? Thanks and Happy Holidays I use DbUnit and the only interaction it has with maven2 is as a dependency. My unit tests are set up with a base class that uses DbUnit. I don't inherit the DbUnit testcase. I used some code from the DbUnit website to extract a DTD from the schema with which I write the test data in xml. I have one xml file per table with test data for that table in it. I wrote a method in my base class to insert the test data in setup, and the subclass specifies which tables it needs data in. I do a delete on all tables first. The base class runs a transaction which wraps the deletes, the test data inserts and the test itself in a transaction and I roll back the transaction at the end. It's not perfect but it's almost there. Adam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] dbMonster or dbUnit howto's
Adam Hardy wrote: Srepfler Srgjan on 29/12/05 17:14, wrote: Did anyone have success in integrating dbMonster or dbUnit with a maven2 j2ee project? Could you paste some pom's or how-to's on how you did this? Thanks and Happy Holidays I use DbUnit and the only interaction it has with maven2 is as a dependency. My unit tests are set up with a base class that uses DbUnit. I don't inherit the DbUnit testcase. Thanks for your use case, very useful. How about dbMonster? Cheers, Srepfler - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
auto download plugins from remote repo NOT central
Is it possible to get maven2 to automatically download plugins from a remote repository other than central? I have been unsuccessful in getting mvn to use my own remote repository to download plugins from. This is for initial generation of a project so I can't specify in a POM because there is none yet. I would like to just add the project repo to settings.xml and see 'mvn myproject:generate' work right off the bat. Ryan Marsh (281) 785-1805 [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: auto download plugins from remote repo NOT central
Ryan, You can use the section of ~/.m2/settings.xml. Note: this file is located in C:\Documents and Settings\\.m2\settings.xml on WinXP. Kind Regards, John Fallows. On 12/29/05, Ryan Marsh <[EMAIL PROTECTED]> wrote: > > Is it possible to get maven2 to automatically download plugins from a > remote repository other than central? I have been unsuccessful in > getting mvn to use my own remote repository to download plugins from. > > This is for initial generation of a project so I can't specify > in a POM because there is none yet. I would like > to just add the project repo to settings.xml and see 'mvn > myproject:generate' work right off the bat. > > Ryan Marsh > (281) 785-1805 > [EMAIL PROTECTED] > > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Author Pro JSF and Ajax: Building Rich Internet Components http://www.apress.com/book/bookDisplay.html?bID=10044
Re: [m2] dbMonster or dbUnit howto's
Srepfler Srgjan on 29/12/05 20:42, wrote: Adam Hardy wrote: Srepfler Srgjan on 29/12/05 17:14, wrote: Did anyone have success in integrating dbMonster or dbUnit with a maven2 j2ee project? Could you paste some pom's or how-to's on how you did this? Thanks and Happy Holidays I use DbUnit and the only interaction it has with maven2 is as a dependency. My unit tests are set up with a base class that uses DbUnit. I don't inherit the DbUnit testcase. Thanks for your use case, very useful. How about dbMonster? I don't use it. In fact, I don't even know what it does. Adam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: auto download plugins from remote repo NOT central
John, for some reason the pluginRepositories that i have put in settings.xml are not getting used to look for plugins. i know the syntax is correct and the profile is active. what is the other missing piece? here is my settings.xml default snapshots http://192.168.1.102/~ryan default snapshots http://192.168.1.102/~ryan always default org.apache.maven.plugins my plugin is in org.apache.maven.plugins.maven-myproject-plugin and all the maven-metadata.xml files in my repo are done exactly like those in central. i just don't think it's even checking my repo. On Dec 29, 2005, at 5:01 PM, John Fallows wrote: Ryan, You can use the section of ~/.m2/settings.xml. Note: this file is located in C:\Documents and Settings\\.m2\settings.xml on WinXP. Kind Regards, John Fallows. On 12/29/05, Ryan Marsh <[EMAIL PROTECTED]> wrote: Is it possible to get maven2 to automatically download plugins from a remote repository other than central? I have been unsuccessful in getting mvn to use my own remote repository to download plugins from. This is for initial generation of a project so I can't specify in a POM because there is none yet. I would like to just add the project repo to settings.xml and see 'mvn myproject:generate' work right off the bat. Ryan Marsh (281) 785-1805 [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Author Pro JSF and Ajax: Building Rich Internet Components http://www.apress.com/book/bookDisplay.html?bID=10044 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m2] Re: How to use M2 with AspectJ?
hi u may check out from mojo sandbox http://svn.mojo.codehaus.org/trunk/mojo/mojo-sandbox/ I just got this, thinking to write a m2 plug-in to implement logging with AspectJ via mvn something like the plugin sample in Maven Developer's Notebook, however, which is based on M1. I would like to create a m2 version. want to share the experience? Best Regards, Manchi Leung -- On Dec 30, 2005, at 2:36 AM, Dennis Ho wrote: Hi, Does anyone know which maven 2 repository has the aspectj-maven-plugin? I tried using the following in my pom but got : [INFO] The plugin 'org.codehaus.mojo:aspectj-maven-plugin' does not exist or no valid version could be found org.codehaus.mojo aspectj-maven-plugin compile build.ajproperties compile Thanks in advance. Regards, Dennis. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Carlos Sanchez Sent: Monday, November 21, 2005 7:39 PM To: Maven Users List Subject: Re: How to use M2 with AspectJ? It has just been added http://svn.mojo.codehaus.org/trunk/mojo/mojo-sandbox/aspectj-maven- plugi n/ On 11/21/05, Law Green-A20134 <[EMAIL PROTECTED]> wrote: Hi, Anyone has the idea of using M2 along with aspectJ since there is no aspectJ plug-in for M2. Thanks Green - 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]
[m2] anyone is running groovy plugin on m2?
hi, i checked out the groovy plugin from svn checkout svn://svn.codehaus.org/mojo/scm/trunk/mojo/mojo-sandbox/ maven-groovy-plugin maven-groovy-plugin it seems that the classpath is not recognized in groovy. anyone is having the same problem? $>mvn groovy:groovy -e -DfileName=/src/main/groovy/ MyTest.groovy [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Mojo error occurred: Caused by: /src/main/groovy/MyTest.groovy: 3: unable to resolve class GroovyTestCase @ line 3, column 1. class MyTest extends GroovyTestCase { import groovy.util.GroovyTestCase class MyTest extends GroovyTestCase { void testSomething() { assert 1 == 1 assert 2 + 2 == 5 : "We're in trouble, arithmetic is broken" } } For your information, I can run from Command Line Interface via groovy! $groovy src/main/groovy/MyTest.groovy
maven2 ignores pluginRepository
ok, i've tried everything. maven ignores my plugin repository and it ignores any other plugin repositories i add. any ideas? here is settings.xml default default http://192.168.1.102/~ryan default default http://192.168.1.102/~ryan true always default org.apache.maven.plugins Ryan Marsh (281) 785-1805 [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Any one got Proximity working ??
any one got proximity to work would care to share your expirence? Thanks -D
Maven 2 JNLP plugin
Hi, On the Maven plugin matrix I see that the JNLP plugin has a check mark under M2, but a X under FC, and the status says the M2 version is still in progress. I can't find the JNLP plugin anywhere on both Apache and Mojo websites. Could someone tell me if the plugin has been released? If not, when is it expected to be available? We have a project that use the plugin in the M1 version, and now we are migrating to M2. If the plugin won't be available for a while, is there any temporary solution to use the M1 plugin in M2? Thanks, yao
Re: Creating archetype with resources in package directory
hmm, not sure if it's the right solution, but I just specified the resources to be sources.. src/main/resources/layer.xml src/main/resources/Bundle.properties that seemed to do the trick as far as I remember. Regards Milos On 12/29/05, Nathan Hamblen <[EMAIL PROTECTED]> wrote: > > I'd like to create an archetype that builds projects with a resource that > maps to the same directory where the class files will eventually reside. > The Maven 2 project itself would have the following structure: > > src > `-- main > |-- java > | `-- somepackagename > | `-- SomeClassName.java > `-- resources > `-- somepackagename > `-- SomeClassName.properties > > This works fine, I just can't figure out how to create it via an > archetype. > SomeClassName.java will be put into whatever package the user requests > automatically, but the properties file will just sit under "resources". > > Is there a way to do this -- and I don't mind if it's ugly -- or is the > archetype creator just not that flexible yet? > > (Hi, I'm new here. Thanks for Maven 2; it's saving my life!) > > Nathan > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >