Archiva on Geronimo 1.1, anyone?
Hello everyone, I wonder if there's anyone using Archiva 1.0 on Geronimo 1.1 I tried to simply deploy the war and I got the following error: Unable to resolve resource reference 'jdbc/users' (Could not auto-map to resource. Try adding a resource-ref mapping to your Geronimo deployment plan.) org.apache.geronimo.common.DeploymentException: Unable to resolve resource reference 'jdbc/users' (Could not auto-map to resource. Try adding a resource-ref mapping to your Geronimo deployment plan.) at org.apache.geronimo.naming.deployment.ENCConfigBuilder.addResourceRefs(ENCConfigBuilder.java:207) at org.apache.geronimo.naming.deployment.ENCConfigBuilder.buildComponentContext(ENCConfigBuilder.java:734) at org.apache.geronimo.tomcat.deployment.TomcatModuleBuilder.buildComponentContext(TomcatModuleBuilder.java:450) at org.apache.geronimo.tomcat.deployment.TomcatModuleBuilder.addGBeans(TomcatModuleBuilder.java:281) at org.apache.geronimo.tomcat.deployment.TomcatModuleBuilder$$FastClassByCGLIB$$6f85ec2c.invoke(generated) at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53) at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38) at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:122) at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:817) at org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57) at org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperationInvoker.java:35) at org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java:96) at org.apache.geronimo.j2ee.deployment.ModuleBuilder$$EnhancerByCGLIB$$2130db1a.addGBeans(generated) at org.apache.geronimo.j2ee.deployment.SwitchingModuleBuilder.addGBeans(SwitchingModuleBuilder.java:162) at org.apache.geronimo.j2ee.deployment.SwitchingModuleBuilder$$FastClassByCGLIB$$d0c31844.invoke(generated) at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53) at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38) at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:122) at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:817) at org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57) at org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperationInvoker.java:35) at org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java:96) at org.apache.geronimo.j2ee.deployment.ModuleBuilder$$EnhancerByCGLIB$$2130db1a.addGBeans(generated) at org.apache.geronimo.j2ee.deployment.EARConfigBuilder.buildConfiguration(EARConfigBuilder.java:562) at org.apache.geronimo.j2ee.deployment.EARConfigBuilder$$FastClassByCGLIB$$38e56ec6.invoke(generated) at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53) at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38) at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:122) at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:817) at org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57) at org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperationInvoker.java:35) at org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java:96) at org.apache.geronimo.deployment.ConfigurationBuilder$$EnhancerByCGLIB$$2d1de38c.buildConfiguration(generated) at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:302) at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:124) at org.apache.geronimo.deployment.Deployer$$FastClassByCGLIB$$734a235d.invoke(generated) at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53) at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38) at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:122) at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:852) at org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java:239) at org.apache.geronimo.deployment.plugin.local.AbstractDeployCommand.doDeploy(AbstractDeployCommand.java:106) at org.apache.geronimo.deployment.plugin.local.DistributeCommand.run(DistributeCommand.java:60) at java.lang.Thread.run(Thread.java:799) Anyone with a Geronimo deployment plan that you can share? Also is the SQL needed to initialize the Derby database somewhere? Thanks in advance, Alex -- View this message in context:
Re: repository and database
More information : deleting the local repository (only the groupId) fix the problem, artifact is then correctly downloaded. Is it due to corruption during download or what else ? This wasn't often happening until upgrade to beta-4 and then 1.0; now this error seems to occur more often. Julien CARSIQUE a écrit : Hi, What's the difference between repositories scanning cron and database update cron ? Is there some recommended values ? Could you give me a cron example please ? I already asked and you answered me to see quartz but there is two different cron patterns using the web interface; even I know cron, I don't understand the 6th value for repositories and not for database. Usually it's about a user but here I don't know and didn't find doc in quartz about how you use the library. Last, I currently have a strange issue happening sometimes (why I suspect the scanning process) : maven can't find some artifacts whereas they are present in the filesystem and findable using the web ui. In archiva logs, I can lines saying it didn't find the wanted artifact (and many many others). Could this be link to a misconfigured cron ? Thanks, Julien
Re: repository and database
Julien, Might this help on the Quartz http://wiki.opensymphony.com/display/QRTZ1/TutorialLesson6 ? Best luck, Alex -- View this message in context: http://www.nabble.com/repository-and-database-tf4884104.html#a13979600 Sent from the archiva-users mailing list archive at Nabble.com.
Deployment Tomcat 5.5.20 (Etch)
Hi, i'm just trying to deloy the continuum.war on Tomcat 5.5.20. I hope someone can help me. I'm using the Debian(stable) version which doesn't suffer from the typical tomcat 5.5 problem reported on your page (missing classes). I created the continuum.xml in the tomcat/conf/catalina/localhost folder and added the same lines like in the installation instructions (except the docBase value). I also copied the derby and mail/activation JARs into the common/lib directory. I wonder why he wants to create a jdbc driver class without a name: ''. Please see below. Any idea what's wrong? 2112 [main] 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 JDBC driver of class '' for connect URL 'null' org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null' at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:780) 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.init(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.init(AbstractPersistenceManager.java:217) at org.jpox.PersistenceManagerImpl.init(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(DefaultPlexusContainer.java:333) at org.codehaus.plexus.component.composition.AbstractComponentComposer.findRequirement(AbstractComponentComposer.java:232) at org.codehaus.plexus.component.composition.FieldComponentComposer.assignRequirementToField(FieldComponentComposer.java:66) at org.codehaus.plexus.component.composition.FieldComponentComposer.assignRequirement(FieldComponentComposer.java:57) at org.codehaus.plexus.component.composition.AbstractComponentComposer.assembleComponent(AbstractComponentComposer.java:142) at org.codehaus.plexus.component.composition.DefaultComponentComposerManager.assembleComponent(DefaultComponentComposerManager.java:72) at org.codehaus.plexus.personality.plexus.lifecycle.phase.CompositionPhase.execute(CompositionPhase.java:46) at
Re: Deployment Tomcat 5.5.20 (Etch)
Hi, This link [1] can help ? Specially information concerningResource name=jdbc/continuum What do you have in url=jdbc:derby:database/continuum;create=true Note the path database/continuum is relative to $CATALINA_HOME/bin (you have to create a continuum folder first). -- Olivier [1] http://maven.apache.org/continuum/documentation/1_1/installation/tomcat.html#Tomcat_5.5.x_Specifics 2007/11/27, Ingo Siebert [EMAIL PROTECTED]: Hi, i'm just trying to deloy the continuum.war on Tomcat 5.5.20. I hope someone can help me. I'm using the Debian(stable) version which doesn't suffer from the typical tomcat 5.5 problem reported on your page (missing classes). I created the continuum.xml in the tomcat/conf/catalina/localhost folder and added the same lines like in the installation instructions (except the docBase value). I also copied the derby and mail/activation JARs into the common/lib directory. I wonder why he wants to create a jdbc driver class without a name: ''. Please see below. Any idea what's wrong? 2112 [main] 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 JDBC driver of class '' for connect URL 'null' org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null' at org.apache.commons.dbcp.BasicDataSource.createDataSource( BasicDataSource.java:780) 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.init(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.init(AbstractPersistenceManager.java :217) at org.jpox.PersistenceManagerImpl.init( 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( DefaultPlexusContainer.java:333) at
Re: Deployment Tomcat 5.5.20 (Etch)
Hi Olivier, thank your for your fast answer. :) My config is looking like in [1] and my jdbc url is jdbc:derby:/var/continuum/database;create=true That's my log messages: 0[main] INFO org.apache.catalina.core.ContainerBase.[Standalone].[localhost].[/continuum] - Loading plexus context properties from: '/WEB-INF/plexus.properties' 3[main] INFO org.apache.catalina.core.ContainerBase.[Standalone].[localhost].[/continuum] - Could not load plexus context properties from: '/WEB-INF/plexus.properties' 854 [main] INFO org.codehaus.plexus.PlexusContainer - Loading on start [role,roleHint]: [org.apache.maven.continuum.Continuum,default] 2079 [main] ERROR JPOX.RDBMS.Schema - Failed initialising database. Please check that your database JDBC driver is accessible, and the database URL and username/password are correct. Exception : Cannot create JDBC driver of class '' for connect URL 'null' org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null' [...] same es before Still any idea? Do i have to put the continuum.war in CATALINA_HOME/webapps/? That's how i'm doing it in the moment. Or should i put the WAR somewhere else and only reference the WAR by using the continuun.xml docBase value? Ingo olivier lamy schrieb: Hi, This link [1] can help ? Specially information concerningResource name=jdbc/continuum What do you have in url=jdbc:derby:database/continuum;create=true Note the path database/continuum is relative to $CATALINA_HOME/bin (you have to create a continuum folder first). -- Olivier [1] http://maven.apache.org/continuum/documentation/1_1/installation/tomcat.html#Tomcat_5.5.x_Specifics 2007/11/27, Ingo Siebert [EMAIL PROTECTED]: Hi, i'm just trying to deloy the continuum.war on Tomcat 5.5.20. I hope someone can help me. I'm using the Debian(stable) version which doesn't suffer from the typical tomcat 5.5 problem reported on your page (missing classes). I created the continuum.xml in the tomcat/conf/catalina/localhost folder and added the same lines like in the installation instructions (except the docBase value). I also copied the derby and mail/activation JARs into the common/lib directory. I wonder why he wants to create a jdbc driver class without a name: ''. Please see below. Any idea what's wrong? 2112 [main] 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 JDBC driver of class '' for connect URL 'null' org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null' at org.apache.commons.dbcp.BasicDataSource.createDataSource( BasicDataSource.java:780) 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.init(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.init(AbstractPersistenceManager.java :217) at org.jpox.PersistenceManagerImpl.init( 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
Re: Deployment Tomcat 5.5.20 (Etch)
what is the derby jar you use? Emmanuel Ingo Siebert a écrit : Hi Olivier, thank your for your fast answer. :) My config is looking like in [1] and my jdbc url is jdbc:derby:/var/continuum/database;create=true That's my log messages: 0[main] INFO org.apache.catalina.core.ContainerBase.[Standalone].[localhost].[/continuum] - Loading plexus context properties from: '/WEB-INF/plexus.properties' 3[main] INFO org.apache.catalina.core.ContainerBase.[Standalone].[localhost].[/continuum] - Could not load plexus context properties from: '/WEB-INF/plexus.properties' 854 [main] INFO org.codehaus.plexus.PlexusContainer - Loading on start [role,roleHint]: [org.apache.maven.continuum.Continuum,default] 2079 [main] ERROR JPOX.RDBMS.Schema - Failed initialising database. Please check that your database JDBC driver is accessible, and the database URL and username/password are correct. Exception : Cannot create JDBC driver of class '' for connect URL 'null' org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null' [...] same es before Still any idea? Do i have to put the continuum.war in CATALINA_HOME/webapps/? That's how i'm doing it in the moment. Or should i put the WAR somewhere else and only reference the WAR by using the continuun.xml docBase value? Ingo olivier lamy schrieb: Hi, This link [1] can help ? Specially information concerningResource name=jdbc/continuum What do you have in url=jdbc:derby:database/continuum;create=true Note the path database/continuum is relative to $CATALINA_HOME/bin (you have to create a continuum folder first). -- Olivier [1] http://maven.apache.org/continuum/documentation/1_1/installation/tomcat.html#Tomcat_5.5.x_Specifics 2007/11/27, Ingo Siebert [EMAIL PROTECTED]: Hi, i'm just trying to deloy the continuum.war on Tomcat 5.5.20. I hope someone can help me. I'm using the Debian(stable) version which doesn't suffer from the typical tomcat 5.5 problem reported on your page (missing classes). I created the continuum.xml in the tomcat/conf/catalina/localhost folder and added the same lines like in the installation instructions (except the docBase value). I also copied the derby and mail/activation JARs into the common/lib directory. I wonder why he wants to create a jdbc driver class without a name: ''. Please see below. Any idea what's wrong? 2112 [main] 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 JDBC driver of class '' for connect URL 'null' org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null' at org.apache.commons.dbcp.BasicDataSource.createDataSource( BasicDataSource.java:780) 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.init(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.init(AbstractPersistenceManager.java :217) at org.jpox.PersistenceManagerImpl.init( 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
Re: Deployment Tomcat 5.5.20 (Etch)
Hi, I'm using derby-10.1.3.1.jar and derbytools-10.1.3.1.jar in common/lib. Is this log message fine? Could not load plexus context properties from '/WEB-INF/plexus.properties' Ingo Emmanuel Venisse schrieb: what is the derby jar you use? Emmanuel Ingo Siebert a écrit : Hi Olivier, thank your for your fast answer. :) My config is looking like in [1] and my jdbc url is jdbc:derby:/var/continuum/database;create=true That's my log messages: 0[main] INFO org.apache.catalina.core.ContainerBase.[Standalone].[localhost].[/continuum] - Loading plexus context properties from: '/WEB-INF/plexus.properties' 3[main] INFO org.apache.catalina.core.ContainerBase.[Standalone].[localhost].[/continuum] - Could not load plexus context properties from: '/WEB-INF/plexus.properties' 854 [main] INFO org.codehaus.plexus.PlexusContainer - Loading on start [role,roleHint]: [org.apache.maven.continuum.Continuum,default] 2079 [main] ERROR JPOX.RDBMS.Schema - Failed initialising database. Please check that your database JDBC driver is accessible, and the database URL and username/password are correct. Exception : Cannot create JDBC driver of class '' for connect URL 'null' org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null' [...] same es before Still any idea? Do i have to put the continuum.war in CATALINA_HOME/webapps/? That's how i'm doing it in the moment. Or should i put the WAR somewhere else and only reference the WAR by using the continuun.xml docBase value? Ingo olivier lamy schrieb: Hi, This link [1] can help ? Specially information concerningResource name=jdbc/continuum What do you have in url=jdbc:derby:database/continuum;create=true Note the path database/continuum is relative to $CATALINA_HOME/bin (you have to create a continuum folder first). -- Olivier [1] http://maven.apache.org/continuum/documentation/1_1/installation/tomcat.html#Tomcat_5.5.x_Specifics 2007/11/27, Ingo Siebert [EMAIL PROTECTED]: Hi, i'm just trying to deloy the continuum.war on Tomcat 5.5.20. I hope someone can help me. I'm using the Debian(stable) version which doesn't suffer from the typical tomcat 5.5 problem reported on your page (missing classes). I created the continuum.xml in the tomcat/conf/catalina/localhost folder and added the same lines like in the installation instructions (except the docBase value). I also copied the derby and mail/activation JARs into the common/lib directory. I wonder why he wants to create a jdbc driver class without a name: ''. Please see below. Any idea what's wrong? 2112 [main] 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 JDBC driver of class '' for connect URL 'null' org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null' at org.apache.commons.dbcp.BasicDataSource.createDataSource( BasicDataSource.java:780) 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.init(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.init(AbstractPersistenceManager.java :217) at org.jpox.PersistenceManagerImpl.init( 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
Re: Deployment Tomcat 5.5.20 (Etch)
Ingo Siebert a écrit : Hi, I'm using derby-10.1.3.1.jar and derbytools-10.1.3.1.jar in common/lib. Is this log message fine? Could not load plexus context properties from '/WEB-INF/plexus.properties' Yes, it is normal but this exception in your log: Caused by: java.sql.SQLException: No suitable driver isn't normal Oh, I didn't see you used 5.5.20. You can't use this version. Look at the warning in the link sent by Olivier: Warning: The Tomcat 5.5.20 and 5.5.23 releases are missing MailSessionFactory and a few other classes. JNDI mail sessions will not work. Use Tomcat 5.5.17 or see the workaround on Bug 40668 Emmanuel Ingo Emmanuel Venisse schrieb: what is the derby jar you use? Emmanuel Ingo Siebert a écrit : Hi Olivier, thank your for your fast answer. :) My config is looking like in [1] and my jdbc url is jdbc:derby:/var/continuum/database;create=true That's my log messages: 0[main] INFO org.apache.catalina.core.ContainerBase.[Standalone].[localhost].[/continuum] - Loading plexus context properties from: '/WEB-INF/plexus.properties' 3[main] INFO org.apache.catalina.core.ContainerBase.[Standalone].[localhost].[/continuum] - Could not load plexus context properties from: '/WEB-INF/plexus.properties' 854 [main] INFO org.codehaus.plexus.PlexusContainer - Loading on start [role,roleHint]: [org.apache.maven.continuum.Continuum,default] 2079 [main] ERROR JPOX.RDBMS.Schema - Failed initialising database. Please check that your database JDBC driver is accessible, and the database URL and username/password are correct. Exception : Cannot create JDBC driver of class '' for connect URL 'null' org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null' [...] same es before Still any idea? Do i have to put the continuum.war in CATALINA_HOME/webapps/? That's how i'm doing it in the moment. Or should i put the WAR somewhere else and only reference the WAR by using the continuun.xml docBase value? Ingo olivier lamy schrieb: Hi, This link [1] can help ? Specially information concerningResource name=jdbc/continuum What do you have in url=jdbc:derby:database/continuum;create=true Note the path database/continuum is relative to $CATALINA_HOME/bin (you have to create a continuum folder first). -- Olivier [1] http://maven.apache.org/continuum/documentation/1_1/installation/tomcat.html#Tomcat_5.5.x_Specifics 2007/11/27, Ingo Siebert [EMAIL PROTECTED]: Hi, i'm just trying to deloy the continuum.war on Tomcat 5.5.20. I hope someone can help me. I'm using the Debian(stable) version which doesn't suffer from the typical tomcat 5.5 problem reported on your page (missing classes). I created the continuum.xml in the tomcat/conf/catalina/localhost folder and added the same lines like in the installation instructions (except the docBase value). I also copied the derby and mail/activation JARs into the common/lib directory. I wonder why he wants to create a jdbc driver class without a name: ''. Please see below. Any idea what's wrong? 2112 [main] 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 JDBC driver of class '' for connect URL 'null' org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null' at org.apache.commons.dbcp.BasicDataSource.createDataSource( BasicDataSource.java:780) 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.init(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.init(AbstractPersistenceManager.java :217) at org.jpox.PersistenceManagerImpl.init( PersistenceManagerImpl.java:42) at org.jpox.PersistenceManagerFactoryImpl.getPersistenceManager( PersistenceManagerFactoryImpl.java:178) at
Re: Deployment Tomcat 5.5.20 (Etch)
Hi Emmanuel, in the referenced workaround thread is written, that the tomcat 5.5.20 version packaged by debian etch(stable) doesn't has the problem. Ingo Emmanuel Venisse schrieb: Ingo Siebert a écrit : Hi, I'm using derby-10.1.3.1.jar and derbytools-10.1.3.1.jar in common/lib. Is this log message fine? Could not load plexus context properties from '/WEB-INF/plexus.properties' Yes, it is normal but this exception in your log: Caused by: java.sql.SQLException: No suitable driver isn't normal Oh, I didn't see you used 5.5.20. You can't use this version. Look at the warning in the link sent by Olivier: Warning: The Tomcat 5.5.20 and 5.5.23 releases are missing MailSessionFactory and a few other classes. JNDI mail sessions will not work. Use Tomcat 5.5.17 or see the workaround on Bug 40668 Emmanuel Ingo Emmanuel Venisse schrieb: what is the derby jar you use? Emmanuel Ingo Siebert a écrit : Hi Olivier, thank your for your fast answer. :) My config is looking like in [1] and my jdbc url is jdbc:derby:/var/continuum/database;create=true That's my log messages: 0[main] INFO org.apache.catalina.core.ContainerBase.[Standalone].[localhost].[/continuum] - Loading plexus context properties from: '/WEB-INF/plexus.properties' 3[main] INFO org.apache.catalina.core.ContainerBase.[Standalone].[localhost].[/continuum] - Could not load plexus context properties from: '/WEB-INF/plexus.properties' 854 [main] INFO org.codehaus.plexus.PlexusContainer - Loading on start [role,roleHint]: [org.apache.maven.continuum.Continuum,default] 2079 [main] ERROR JPOX.RDBMS.Schema - Failed initialising database. Please check that your database JDBC driver is accessible, and the database URL and username/password are correct. Exception : Cannot create JDBC driver of class '' for connect URL 'null' org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null' [...] same es before Still any idea? Do i have to put the continuum.war in CATALINA_HOME/webapps/? That's how i'm doing it in the moment. Or should i put the WAR somewhere else and only reference the WAR by using the continuun.xml docBase value? Ingo olivier lamy schrieb: Hi, This link [1] can help ? Specially information concerningResource name=jdbc/continuum What do you have in url=jdbc:derby:database/continuum;create=true Note the path database/continuum is relative to $CATALINA_HOME/bin (you have to create a continuum folder first). -- Olivier [1] http://maven.apache.org/continuum/documentation/1_1/installation/tomcat.html#Tomcat_5.5.x_Specifics 2007/11/27, Ingo Siebert [EMAIL PROTECTED]: Hi, i'm just trying to deloy the continuum.war on Tomcat 5.5.20. I hope someone can help me. I'm using the Debian(stable) version which doesn't suffer from the typical tomcat 5.5 problem reported on your page (missing classes). I created the continuum.xml in the tomcat/conf/catalina/localhost folder and added the same lines like in the installation instructions (except the docBase value). I also copied the derby and mail/activation JARs into the common/lib directory. I wonder why he wants to create a jdbc driver class without a name: ''. Please see below. Any idea what's wrong? 2112 [main] 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 JDBC driver of class '' for connect URL 'null' org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null' at org.apache.commons.dbcp.BasicDataSource.createDataSource( BasicDataSource.java:780) 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.init(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.init(AbstractPersistenceManager.java :217) at org.jpox.PersistenceManagerImpl.init(
Re: Deployment Tomcat 5.5.20 (Etch)
Hi, i've added the missing classes fomr the patch zip file to test if i'm wrong. But it doesn't change the problem. I think the Debina-Tomcat 5.5.20 package is pretty good. I wonder why the message says: Cannot create JDBC driver of class '' for connect URL 'null' The continuum.xml listed the derby class and a URL. If he would say he can't load the derby jdbc class, than i would look after it. But it seems the server is not reading the /conf/Catalina/localhost/continuum.xml file. What can be the reason? Do i have to say Tomcat somehow, that he must read the file? Cheers, Ingo Emmanuel Venisse schrieb: Ingo Siebert a écrit : Hi, I'm using derby-10.1.3.1.jar and derbytools-10.1.3.1.jar in common/lib. Is this log message fine? Could not load plexus context properties from '/WEB-INF/plexus.properties' Yes, it is normal but this exception in your log: Caused by: java.sql.SQLException: No suitable driver isn't normal Oh, I didn't see you used 5.5.20. You can't use this version. Look at the warning in the link sent by Olivier: Warning: The Tomcat 5.5.20 and 5.5.23 releases are missing MailSessionFactory and a few other classes. JNDI mail sessions will not work. Use Tomcat 5.5.17 or see the workaround on Bug 40668 Emmanuel Ingo Emmanuel Venisse schrieb: what is the derby jar you use? Emmanuel Ingo Siebert a écrit : Hi Olivier, thank your for your fast answer. :) My config is looking like in [1] and my jdbc url is jdbc:derby:/var/continuum/database;create=true That's my log messages: 0[main] INFO org.apache.catalina.core.ContainerBase.[Standalone].[localhost].[/continuum] - Loading plexus context properties from: '/WEB-INF/plexus.properties' 3[main] INFO org.apache.catalina.core.ContainerBase.[Standalone].[localhost].[/continuum] - Could not load plexus context properties from: '/WEB-INF/plexus.properties' 854 [main] INFO org.codehaus.plexus.PlexusContainer - Loading on start [role,roleHint]: [org.apache.maven.continuum.Continuum,default] 2079 [main] ERROR JPOX.RDBMS.Schema - Failed initialising database. Please check that your database JDBC driver is accessible, and the database URL and username/password are correct. Exception : Cannot create JDBC driver of class '' for connect URL 'null' org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null' [...] same es before Still any idea? Do i have to put the continuum.war in CATALINA_HOME/webapps/? That's how i'm doing it in the moment. Or should i put the WAR somewhere else and only reference the WAR by using the continuun.xml docBase value? Ingo olivier lamy schrieb: Hi, This link [1] can help ? Specially information concerningResource name=jdbc/continuum What do you have in url=jdbc:derby:database/continuum;create=true Note the path database/continuum is relative to $CATALINA_HOME/bin (you have to create a continuum folder first). -- Olivier [1] http://maven.apache.org/continuum/documentation/1_1/installation/tomcat.html#Tomcat_5.5.x_Specifics 2007/11/27, Ingo Siebert [EMAIL PROTECTED]: Hi, i'm just trying to deloy the continuum.war on Tomcat 5.5.20. I hope someone can help me. I'm using the Debian(stable) version which doesn't suffer from the typical tomcat 5.5 problem reported on your page (missing classes). I created the continuum.xml in the tomcat/conf/catalina/localhost folder and added the same lines like in the installation instructions (except the docBase value). I also copied the derby and mail/activation JARs into the common/lib directory. I wonder why he wants to create a jdbc driver class without a name: ''. Please see below. Any idea what's wrong? 2112 [main] 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 JDBC driver of class '' for connect URL 'null' org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null' at org.apache.commons.dbcp.BasicDataSource.createDataSource( BasicDataSource.java:780) 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.init(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
Re: overriding jspc-maven-plugin
Put your config in a pluginManagement and that way the war projects need only specify plugin groupIdorg.codehaus.mojo.jspc/groupId artifactIdjspc-maven-plugin/artifactId /plugin and they'll pick up the config from the plugin management section. Alternatively, use two parent poms, one for the jars and the other for the wars These need not require a change in directory structure /pom.xml (the super pom) /jar-common-config/pom.xml (the jar common parent) /war-common-config/pom.xml (the war common parent) /jar-a/pom.xml /jar-b/pom.xml ... /war-a/pom.xml /war-b/pom.xml where /pom.xml has project ... modules modulejar-common-config/module modulewar-common-config/module modulejar-a/module modulejar-b/module ... modulewar-a/module modulewar-b/module ... /modules That will allow building all the modules from the root pom /jar-a/pom.xml's parent would be jar-common-config with relativePath../jar-common-config/pom.xml/relativePath (although I'm unsure if this is needed I think it's to do with release) and /war-a/pom.xml's parent would be war-common-config... I prefer using the pluginManagement technique, but the separate parents can work also. -Stephen On Nov 27, 2007 1:49 AM, Wayne Fay [EMAIL PROTECTED] wrote: Many plugins offer a skip configuration option. Check the plugin docs to see if jspc-m-p does, and if it does not, file a JIRA to request that someone else add it or do it yourself. Then you could simply add the plugin in the parent, and declare it with skiptrue/skip in the non-WAR children projects. Wayne On 11/26/07, Amir Mistric [EMAIL PROTECTED] wrote: Hi I have a super-parent POM that all of my projects inherit... 90% of the projects are WAR files and few are multi module JARs I would like to define a JSPC compile plugin at the super-parent POM level but the problem arises when building non-WAR projects How can I redefine specific project's POMs (the ones that are JARs) not to consider JSPC plugin? The obvious solution is not to define jspc-maven-plugin at the super-parent POM level but in each project individually... But that means I have to specify something like this in multiple places which I am trying to avoid: plugin groupIdorg.codehaus.mojo.jspc/groupId artifactIdjspc-maven-plugin/artifactId version2.0-alpha-1/version executions execution goals goalcompile/goal /goals /execution /executions dependencies dependency groupIdorg.codehaus.mojo.jspc/groupId artifactIdjspc-compiler-tomcat5/artifactId version2.0-alpha-1/version /dependency /dependencies configuration sources directory${basedir}/src/main/resources//directory includes include**/*.jsp/include /includes /sources source1.6/source target1.6/target verbose1/verbose /configuration /plugin Is there a way to do this? Currently I get following error when I try to build one of my JAR projects: [WARNING] Compiled JSPs will not be added to the project and web.xml will not be modified, either because includeInProject is set to false or because the project's packaging is not 'war'. [INFO] Created dir: C:\mycompany\project\COOLP\mycompany-common\target\jsp-source [INFO] Created dir: C:\mycompany\project\COOLP\mycompany-common\target\classes [INFO] Compiling JSP source files to C:\mycompany\project\COOLP\mycompany-common\target/jsp-source [INFO] [ERROR] FATAL ERROR [INFO] [INFO] The -uriroot option must specify a pre-existing directory [INFO] [INFO] Trace org.apache.jasper.JasperException: The -uriroot option must specify a pre-existing directory - 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: Dependency issue (war and jar) in multimodule project
Yes. I have included typewar/type in dependency declaration. Below is a pom snapshot. * POM - START * ?xml version=1.0 encoding=UTF-8? project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd; modelVersion4.0.0/modelVersion groupIdtest/groupId artifactIdchild2/artifactId version1.0-SNAPSHOT/version descriptionchild2/description packagingwar/packaging namechild2/name parent groupIdtest/groupId artifactIdparent/artifactId version1.0-SNAPSHOT/version relativePath../parent/pom.xml/relativePath /parent build resources resource directorysrc/main/resources/directory /resource resource directorysrc/main/java/directory filteringtrue/filtering includes include**/*.properties/include /includes /resource /resources testResources testResource directory src/test/resources /directory includes include**/*.properties/include include**/*.xml/include /includes /testResource /testResources plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-jar-plugin/artifactId version2.1/version executions execution configuration classesDirectorytarget/classes/classesDirectory finalNamechild2-1.0-SNAPSHOT/finalName outputDirectorytarget/outputDirectory /configuration phasepackage/phase idCreate JAR in project/id goals goaljar/goal /goals /execution /executions /plugin plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-war-plugin/artifactId version2.0.2-SNAPSHOT/version configuration archiveClassesfalse/archiveClasses webResources resource directory ${basedir}/src/main/config/torque /directory excludes exclude**/*model/exclude /excludes targetPathWEB-INF/data/targetPath /resource resource directory ${basedir}/src/main/resources /directory includes include**/hibernate.properties/include /includes targetPathWEB-INF/classes/targetPath /resource /webResources dependentWarExcludesWEB-INF/classes/hibernate.properties/dependentWarExcludes /configuration executions execution phasevalidate/phase idcopy jars/id goals goalexploded/goal /goals /execution /executions /plugin plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-install-plugin/artifactId version2.2/version executions execution configuration filetarget/child2-1.0-SNAPSHOT.war/file repositoryLayoutdefault/repositoryLayout groupIdtest/groupId artifactIdchild2/artifactId version1.0-SNAPSHOT/version packagingwar/packaging generatePomtrue/generatePom /configuration phaseinstall/phase idinstall WAR in M2 repos/id goals goalinstall-file/goal /goals /execution execution configuration filetarget/child2-1.0-SNAPSHOT.jar/file repositoryLayoutdefault/repositoryLayout groupIdtest/groupId artifactIdchild2/artifactId version1.0-SNAPSHOT/version packagingjar/packaging generatePomtrue/generatePom /configuration phaseinstall/phase idinstall JAR in M2 repos/id goals goalinstall-file/goal /goals /execution /executions /plugin plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-surefire-plugin/artifactId version2.3-SNAPSHOT/version configuration excludes /excludes testFailureIgnoretrue/testFailureIgnore /configuration /plugin plugin artifactIdmaven-clean-plugin/artifactId configuration filesets fileset directory${basedir}/src/main/etc/directory includes includesetup.properties/include include*.tmp/include includeutils/**/include /includes followSymlinksfalse/followSymlinks /fileset fileset directory${basedir}/src/main/webapp/WEB-INF/classes/directory followSymlinksfalse/followSymlinks /fileset fileset directory${basedir}/src/main/java/directory includes includereport.om.generation/include /includes /fileset /filesets /configuration /plugin /plugins /build dependencies !-- Few Dependencies are present here -- dependency groupIdtest/groupId
Javadocs during install phase
After adding javadoc plugin to the build plugins section Maven fails to compile my code anymore. Before, with nothing in the local repository, Maven would compile and test each module, and then install it in the repository. Now it state No goals needed for project - skipping for each project and then, after working through each module in the same ways, tries to download the artifacts it should have just created. This fails as the repository hasn't had them added yet (with a typical failed to load artifact message). This is what has been added to the build element of the parent pom (note - it is not within the reporting element as my aim is to subsequently include the javadocs in a generated assembly). plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-javadoc-plugin/artifactId executions execution inheritedfalse/inherited phaseinstall/phase goals goaljar/goal /goals /execution /executions configuration inheritedfalse/inherited aggregatetrue/aggregate /configuration /plugin Why is this not working? Am I taking the wrong approach? What more information can I provide? Many thanks. -- View this message in context: http://www.nabble.com/Javadocs-during-install-phase-tf4880601s177.html#a13967427 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: Javadocs during install phase
2007/11/27, rmatthews [EMAIL PROTECTED]: aggregatetrue/aggregate This is the problem :-( http://jira.codehaus.org/browse/MJAVADOC-116 22 votes and 15 watches, and no one that takes care of it :-( Antonio
[ANNOUNCE] Archiva 1.0 Released
Hi Everyone, The Maven Archiva team is pleased to announce the release of Archiva 1.0final. Archiva is a build artifact repository manager for use with build tools such as Maven, Continuum and Ant. It has features like repository search and browse, securing repositories, identifying unknown artifacts and reporting of repository problems. Aside from these, it can also act as a nearby (proxy) cache of popular global repositories. The latest release is now available here: http://maven.apache.org/archiva/download.html The site has also been updated, you can visit it at: http://maven.apache.org/archiva Below are the jira issues that were resolved for Archiva 1.0: Release Notes - Archiva - Version 1.0 ** Bug * [MRM-545] - Documentation for configuring for Tomcat is invalid * [MRM-586] - entire proxy request fails if a queried remote repository throws a proxyexception * [MRM-595] - regression : server-side relocation fails * [MRM-596] - regression : cannot get java-sources anymore from maven1 * [MRM-598] - Validation error on new repository creation ** Task * [MRM-583] - Finalise and publish updated web site * [MRM-587] - further changes to logging needed Thanks, Deng
Re: [ANNOUNCE] Archiva 1.0 Released
Hi, None of the mirrors have the war for download http://www.apache.org/dyn/closer.cgi/maven/binaries/apache-archiva-1.0.war Ben On Nov 27, 2007 9:49 AM, Maria Odea Ching [EMAIL PROTECTED] wrote: Hi Everyone, The Maven Archiva team is pleased to announce the release of Archiva 1.0final. Archiva is a build artifact repository manager for use with build tools such as Maven, Continuum and Ant. It has features like repository search and browse, securing repositories, identifying unknown artifacts and reporting of repository problems. Aside from these, it can also act as a nearby (proxy) cache of popular global repositories. The latest release is now available here: http://maven.apache.org/archiva/download.html The site has also been updated, you can visit it at: http://maven.apache.org/archiva Below are the jira issues that were resolved for Archiva 1.0: Release Notes - Archiva - Version 1.0 ** Bug * [MRM-545] - Documentation for configuring for Tomcat is invalid * [MRM-586] - entire proxy request fails if a queried remote repository throws a proxyexception * [MRM-595] - regression : server-side relocation fails * [MRM-596] - regression : cannot get java-sources anymore from maven1 * [MRM-598] - Validation error on new repository creation ** Task * [MRM-583] - Finalise and publish updated web site * [MRM-587] - further changes to logging needed Thanks, Deng - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [ANNOUNCE] Archiva 1.0 Released
It will get there eventually - it just takes a little time to sync. out (even to the backup) - Brett On 27/11/2007, ben short [EMAIL PROTECTED] wrote: Hi, None of the mirrors have the war for download http://www.apache.org/dyn/closer.cgi/maven/binaries/apache-archiva-1.0.war Ben On Nov 27, 2007 9:49 AM, Maria Odea Ching [EMAIL PROTECTED] wrote: Hi Everyone, The Maven Archiva team is pleased to announce the release of Archiva 1.0final. Archiva is a build artifact repository manager for use with build tools such as Maven, Continuum and Ant. It has features like repository search and browse, securing repositories, identifying unknown artifacts and reporting of repository problems. Aside from these, it can also act as a nearby (proxy) cache of popular global repositories. The latest release is now available here: http://maven.apache.org/archiva/download.html The site has also been updated, you can visit it at: http://maven.apache.org/archiva Below are the jira issues that were resolved for Archiva 1.0: Release Notes - Archiva - Version 1.0 ** Bug * [MRM-545] - Documentation for configuring for Tomcat is invalid * [MRM-586] - entire proxy request fails if a queried remote repository throws a proxyexception * [MRM-595] - regression : server-side relocation fails * [MRM-596] - regression : cannot get java-sources anymore from maven1 * [MRM-598] - Validation error on new repository creation ** Task * [MRM-583] - Finalise and publish updated web site * [MRM-587] - further changes to logging needed Thanks, Deng - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Brett Porter Blog: http://www.devzuz.org/blogs/bporter/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
junit fails in install but not in test
Hi, I can test my multimodule-project with mvn test - no problems. However when I run mvn install, it fails. And it fails because resources are not found. What is difference between the two commands, test and install, while testing? Jan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven release plugin: Address already in use!
It is not a maven limitation, but a java one. I would like the embedded maven to still be launched with MAVEN_OPTS in any case. It is up to the developer to not set things in there that cannot be executed concurrently. Jorg On Nov 26, 2007 7:03 PM, Bashar Jawad [EMAIL PROTECTED] wrote: Yup, that was the problem, removing the remote debug args fixed it. Should I file a Jira issue about it? Bashar Jorg Heymans wrote: I've seen this happening when MAVEN_OPTS is set to enable remote debugging. What happens is that the release plugin invokes a system exec of some sort of mvn which then tries to use the same MAVEN_OPTS and fails because the debug port is already taken. Makes sense? Jorg On Nov 26, 2007 5:11 PM, Bashar Jawad [EMAIL PROTECTED] wrote: I still can't resolve this issue. I am using Maven 2.0.7. This is a major blocker issue for me so I would really appreciate any help. Does anyone at least know what port the release plugin uses ? Thanks, Bashar Jawad wrote: I am trying to use the maven-release-plugin to prepare and perform a release. I simply created a new empty maven 2 project and added the required scm information in the POM. However any time I run the command: mvn release:clean release:prepare maven asks me for release/tag/developement version information and then exists with the following error: [INFO] Transforming 'Unnamed - ReleasePluginDemo:ReleasePluginDemo:jar:1.0-SNAPSHOT'... [INFO] Not generating release POMs [INFO] Executing goals 'clean verify'... [INFO] Executing: mvn clean verify --no-plugin-updates -P default ERROR: transport error 202: bind failed: Address already in use [transport.c,L41] FATAL ERROR in native method: JDWP No transports initialized, jvmtiError=JVMTI_ERROR_INTERNAL(113) ERROR: JDWP Transport dt_socket failed to initialize, TRANSPORT_INIT(510) [debugInit.c,L500] JDWP exit error JVMTI_ERROR_INTERNAL(113): No transports initialized [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Maven execution failed, exit code: '1' [INFO] [INFO] Trace org.apache.maven.lifecycle.LifecycleExecutionException: Maven execution failed, exit code: '1' 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:224) 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) Caused by: org.apache.maven.plugin.MojoExecutionException: Maven execution failed, exit code: '1' at org.apache.maven.plugins.release.PrepareReleaseMojo.execute( PrepareReleaseMojo.java:131) at org.apache.maven.plugin.DefaultPluginManager.executeMojo( DefaultPluginManager.java:443) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals( DefaultLifecycleExecutor.java:539) ... 16 more Caused by: org.apache.maven.shared.release.ReleaseExecutionException: Maven execution failed, exit code: '1' at org.apache.maven.shared.release.phase.AbstractRunGoalsPhase.execute( AbstractRunGoalsPhase.java:66) at org.apache.maven.shared.release.phase.RunPrepareGoalsPhase.execute( RunPrepareGoalsPhase.java:42) at org.apache.maven.shared.release.DefaultReleaseManager.prepare( DefaultReleaseManager.java:194)
Re: Dependency issue (war and jar) in multimodule project
Anand: I can't really understand your dependency. Why not configure dependency like this: dependencies dependency groupIdtest/groupId artifactIdchild2/artifactId version1.0-SNAPSHOT/version /dependency /dependencies And when you have dependency on war file, you should use maven-warpath-plugin. Thanks, Juven On Nov 27, 2007 4:51 PM, Anand Rathi [EMAIL PROTECTED] wrote: Yes. I have included typewar/type in dependency declaration. Below is a pom snapshot. * POM - START * ?xml version=1.0 encoding=UTF-8? project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd; modelVersion4.0.0/modelVersion groupIdtest/groupId artifactIdchild2/artifactId version1.0-SNAPSHOT/version descriptionchild2/description packagingwar/packaging namechild2/name parent groupIdtest/groupId artifactIdparent/artifactId version1.0-SNAPSHOT/version relativePath../parent/pom.xml/relativePath /parent build resources resource directorysrc/main/resources/directory /resource resource directorysrc/main/java/directory filteringtrue/filtering includes include**/*.properties/include /includes /resource /resources testResources testResource directory src/test/resources /directory includes include**/*.properties/include include**/*.xml/include /includes /testResource /testResources plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-jar-plugin/artifactId version2.1/version executions execution configuration classesDirectorytarget/classes/classesDirectory finalNamechild2-1.0-SNAPSHOT/finalName outputDirectorytarget/outputDirectory /configuration phasepackage/phase idCreate JAR in project/id goals goaljar/goal /goals /execution /executions /plugin plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-war-plugin/artifactId version2.0.2-SNAPSHOT/version configuration archiveClassesfalse/archiveClasses webResources resource directory ${basedir}/src/main/config/torque /directory excludes exclude**/*model/exclude /excludes targetPathWEB-INF/data/targetPath /resource resource directory ${basedir}/src/main/resources /directory includes include**/hibernate.properties/include /includes targetPathWEB-INF/classes/targetPath /resource /webResources dependentWarExcludesWEB-INF/classes/hibernate.properties/dependentWarExcludes /configuration executions execution phasevalidate/phase idcopy jars/id goals goalexploded/goal /goals /execution /executions /plugin plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-install-plugin/artifactId version2.2/version executions execution configuration filetarget/child2-1.0-SNAPSHOT.war/file repositoryLayoutdefault/repositoryLayout groupIdtest/groupId artifactIdchild2/artifactId version1.0-SNAPSHOT/version packagingwar/packaging generatePomtrue/generatePom /configuration phaseinstall/phase idinstall WAR in M2 repos/id goals goalinstall-file/goal /goals /execution execution configuration filetarget/child2-1.0-SNAPSHOT.jar/file repositoryLayoutdefault/repositoryLayout groupIdtest/groupId artifactIdchild2/artifactId version1.0-SNAPSHOT/version packagingjar/packaging generatePomtrue/generatePom /configuration phaseinstall/phase idinstall JAR in M2 repos/id goals goalinstall-file/goal /goals /execution /executions /plugin plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-surefire-plugin/artifactId version2.3-SNAPSHOT/version configuration excludes /excludes testFailureIgnoretrue/testFailureIgnore /configuration /plugin plugin artifactIdmaven-clean-plugin/artifactId configuration filesets fileset directory${basedir}/src/main/etc/directory includes includesetup.properties/include include*.tmp/include includeutils/**/include /includes followSymlinksfalse/followSymlinks /fileset fileset directory${basedir}/src/main/webapp/WEB-INF/classes/directory followSymlinksfalse/followSymlinks /fileset fileset directory${basedir}/src/main/java/directory
How to deploy a zip produce with the assempbly plugin ?
I have a module with a packaging pom. Purpose of this module is to produce a zip assembly and to deploy in the local repo (with mvn install) or in one of my archiva repo (mvn deploy). zip is produced during the package phase. Unfortunately, in the install phase zip is not copied into the local repo. Is it possible to configure the assembly plugin in order that the zip produced will be deployed in repo during install or deploy ?? Regards -- View this message in context: http://www.nabble.com/How-to-deploy-a-zip-produce-with-the-assempbly-plugin---tf4882049s177.html#a13971688 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: How to deploy a zip produce with the assempbly plugin ?
2007/11/27, Wendy Smoak [EMAIL PROTECTED]: On Nov 27, 2007 7:18 AM, JC Walmetz [EMAIL PROTECTED] wrote: Is it possible to configure the assembly plugin in order that the zip produced will be deployed in repo during install or deploy ?? I think you want the 'attached' goal. See Building an Assembly as part of the Build Lifecycle here: http://maven.apache.org/plugins/maven-assembly-plugin/usage.html As an addition to what Wendy wrote, see a working example at Tiles (look at the release profile): http://svn.apache.org/repos/asf/tiles/framework/trunk/assembly/pom.xml Antonio
Re: How to deploy a zip produce with the assempbly plugin ?
On Nov 27, 2007 7:18 AM, JC Walmetz [EMAIL PROTECTED] wrote: Is it possible to configure the assembly plugin in order that the zip produced will be deployed in repo during install or deploy ?? I think you want the 'attached' goal. See Building an Assembly as part of the Build Lifecycle here: http://maven.apache.org/plugins/maven-assembly-plugin/usage.html -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to deploy a zip produce with the assempbly plugin ?
So simple. I missed that in the doc. Thanks Antonio Petrelli-3 wrote: 2007/11/27, Wendy Smoak [EMAIL PROTECTED]: On Nov 27, 2007 7:18 AM, JC Walmetz [EMAIL PROTECTED] wrote: Is it possible to configure the assembly plugin in order that the zip produced will be deployed in repo during install or deploy ?? I think you want the 'attached' goal. See Building an Assembly as part of the Build Lifecycle here: http://maven.apache.org/plugins/maven-assembly-plugin/usage.html As an addition to what Wendy wrote, see a working example at Tiles (look at the release profile): http://svn.apache.org/repos/asf/tiles/framework/trunk/assembly/pom.xml Antonio -- View this message in context: http://www.nabble.com/How-to-deploy-a-zip-produce-with-the-assempbly-plugin---tf4882049s177.html#a13972127 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: latest version of maven-dependency-plugin - missing excludes on ArtifactItem
The excludes is used for unpacking and it's available in 2.0-alpha-5-SNAPSHOT -Original Message- From: Erez Nahir [mailto:[EMAIL PROTECTED] Sent: Monday, November 26, 2007 2:53 AM To: users@maven.apache.org Subject: latest version of maven-dependency-plugin - missing excludes on ArtifactItem Hi, I'm trying to use maven-dependency-plugin with excludes tag in my configuration part: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-dependency-plugin/artifactId executions execution idget-resources/id phaseprocess-resources/phase goals goalcopy/goal /goals configuration artifactItems artifactItem groupIdmy.company.groupid/groupId artifactIdmyartifact/artifactId version${my.version}/version excludes**/*.class/excludes classifierfoo/classifier destFileNamemy-foo.zip/destFileName typezip/type /artifactItem ... /plugin But, I get this error: [INFO] Using default encoding to copy filtered resources. [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Failed to configure plugin parameters for: org.apache.maven.plugins:maven-dependency-plugin:2.0-alpha-4 Cause: Cannot find setter nor field in org.apache.maven.plugin.dependency.fromConfiguration.ArtifactItem for 'excludes' Looking at javadoc and sources of maven-dependency-plugin I can see setExcludes(String excludes). In which version does excludes cofniguration is available and how can I get it? Thanks, Erez. - 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 release plugin: Address already in use!
It might be nice if Maven could be coded to watch for/parse this exception and provide a more user-friendly error message, though. Wayne On 11/27/07, Jorg Heymans [EMAIL PROTECTED] wrote: It is not a maven limitation, but a java one. I would like the embedded maven to still be launched with MAVEN_OPTS in any case. It is up to the developer to not set things in there that cannot be executed concurrently. Jorg On Nov 26, 2007 7:03 PM, Bashar Jawad [EMAIL PROTECTED] wrote: Yup, that was the problem, removing the remote debug args fixed it. Should I file a Jira issue about it? Bashar Jorg Heymans wrote: I've seen this happening when MAVEN_OPTS is set to enable remote debugging. What happens is that the release plugin invokes a system exec of some sort of mvn which then tries to use the same MAVEN_OPTS and fails because the debug port is already taken. Makes sense? Jorg On Nov 26, 2007 5:11 PM, Bashar Jawad [EMAIL PROTECTED] wrote: I still can't resolve this issue. I am using Maven 2.0.7. This is a major blocker issue for me so I would really appreciate any help. Does anyone at least know what port the release plugin uses ? Thanks, Bashar Jawad wrote: I am trying to use the maven-release-plugin to prepare and perform a release. I simply created a new empty maven 2 project and added the required scm information in the POM. However any time I run the command: mvn release:clean release:prepare maven asks me for release/tag/developement version information and then exists with the following error: [INFO] Transforming 'Unnamed - ReleasePluginDemo:ReleasePluginDemo:jar:1.0-SNAPSHOT'... [INFO] Not generating release POMs [INFO] Executing goals 'clean verify'... [INFO] Executing: mvn clean verify --no-plugin-updates -P default ERROR: transport error 202: bind failed: Address already in use [transport.c,L41] FATAL ERROR in native method: JDWP No transports initialized, jvmtiError=JVMTI_ERROR_INTERNAL(113) ERROR: JDWP Transport dt_socket failed to initialize, TRANSPORT_INIT(510) [debugInit.c,L500] JDWP exit error JVMTI_ERROR_INTERNAL(113): No transports initialized [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Maven execution failed, exit code: '1' [INFO] [INFO] Trace org.apache.maven.lifecycle.LifecycleExecutionException: Maven execution failed, exit code: '1' 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:224) 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) Caused by: org.apache.maven.plugin.MojoExecutionException: Maven execution failed, exit code: '1' at org.apache.maven.plugins.release.PrepareReleaseMojo.execute( PrepareReleaseMojo.java:131) at org.apache.maven.plugin.DefaultPluginManager.executeMojo( DefaultPluginManager.java:443) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals( DefaultLifecycleExecutor.java:539) ... 16 more Caused by: org.apache.maven.shared.release.ReleaseExecutionException: Maven execution failed, exit code: '1' at
Re: latest version of maven-dependency-plugin - missing excludes on ArtifactItem
Thank you. Any plans to publish 2.0-alpha-5 soon? On Nov 27, 2007 6:17 PM, Brian E. Fox [EMAIL PROTECTED] wrote: The excludes is used for unpacking and it's available in 2.0-alpha-5-SNAPSHOT -Original Message- From: Erez Nahir [mailto:[EMAIL PROTECTED] Sent: Monday, November 26, 2007 2:53 AM To: users@maven.apache.org Subject: latest version of maven-dependency-plugin - missing excludes on ArtifactItem Hi, I'm trying to use maven-dependency-plugin with excludes tag in my configuration part: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-dependency-plugin/artifactId executions execution idget-resources/id phaseprocess-resources/phase goals goalcopy/goal /goals configuration artifactItems artifactItem groupIdmy.company.groupid/groupId artifactIdmyartifact/artifactId version${my.version}/version excludes**/*.class/excludes classifierfoo/classifier destFileNamemy-foo.zip/destFileName typezip/type /artifactItem ... /plugin But, I get this error: [INFO] Using default encoding to copy filtered resources. [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Failed to configure plugin parameters for: org.apache.maven.plugins:maven-dependency-plugin:2.0-alpha-4 Cause: Cannot find setter nor field in org.apache.maven.plugin.dependency.fromConfiguration.ArtifactItem for 'excludes' Looking at javadoc and sources of maven-dependency-plugin I can see setExcludes(String excludes). In which version does excludes cofniguration is available and how can I get it? Thanks, Erez. - 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: Adding a folder to the surefire classpath
Hi Nathan, I had a similar issue when I wanted to run seam integration tests from within Maven. I needed to add the web.xml file onto the classpath. In the end I configured up the maven antrun plugin to copy my seam configuration files to the test-classes directory under target. I bound this plugin to run on one of the test lifecycle phases. I was then able to run the tests as shown within the seam documentation. Trent On 27/11/2007, Silberman, Nathan [EMAIL PROTECTED] wrote: Is there away to add a resource or config folder to the surefire classpath? I want to ensure that my src/main/config folder is on the classpath but I cannot find any documentation that would support this requirement - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Wrong behavior of notifactions
Hi, I have a list of notifiers in my project. When the alwaysSendfalse/alwaysSend ,Continuum send emails to the notifiers in each status change, sending in success/error/warning in the right way. However, if I set alwaysSendtrue/alwaysSend, continuum send a email in each build, but in a wrong way, sending for all events (success,/error/warning). I want send a notification always, don't care the status's change but only in the selected events, in error, for example. Thanks . Martin.
Re: Adding a folder to the surefire classpath
Similar to what Trent described... We add src/main/webapp as a test resource in the parent pom of all our web applications so we can render our view templates (Freemarker) via unit tests -- very, very handy! You could do something similar in your pom: ... build ... testResources testResource directorysrc/main/config/directory /testResource testResource directorysrc/test/resources/directory /testResource /testResources ... /build HTH, Doug On Nov 27, 2007 10:16 AM, Trent Rosenbaum [EMAIL PROTECTED] wrote: Hi Nathan, I had a similar issue when I wanted to run seam integration tests from within Maven. I needed to add the web.xml file onto the classpath. In the end I configured up the maven antrun plugin to copy my seam configuration files to the test-classes directory under target. I bound this plugin to run on one of the test lifecycle phases. I was then able to run the tests as shown within the seam documentation. Trent On 27/11/2007, Silberman, Nathan [EMAIL PROTECTED] wrote: Is there away to add a resource or config folder to the surefire classpath? I want to ensure that my src/main/config folder is on the classpath but I cannot find any documentation that would support this requirement - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Interpolation of Pom Properties in Assembly Descriptor
Some time back I encountered a problem with properties in the pom using a dot-notation. I solved that by using camelHump-notation instead. In your case that would mean replacing my.path with myPath. Not sure if it will work in this case, but it's worth a try. Mark Reynolds wrote: I was using maven-assembly-plugin 2.2-SNAPSHOT and tried to switch to 2.2-beta-2-SNAPSHOT but encountered a problem. I reference properties from my pom in the assembly descriptor, like this: project ... properties my.pathmyapp/WEB-INF/my.path /properties .. /project assembly ... files file source${basedir}/target/config/somefile.conf/source outputDirectory${my.path}/etc/outputDirectory /file /files ... /assembly In 2.2-SNAPSHOT, the value was substituted but in 2.2-beta-2-SNAPSHOT the literal ${my.path} is used. Is this a regression, a removed feature, or has the syntax for doing this changed? -- Mark R -- Dennis Lundberg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Javadocs during install phase
Antonio Petrelli wrote: 2007/11/27, rmatthews [EMAIL PROTECTED]: aggregatetrue/aggregate This is the problem :-( http://jira.codehaus.org/browse/MJAVADOC-116 22 votes and 15 watches, and no one that takes care of it :-( Please, feel free to attach a patch to that issue ;-) Antonio -- Dennis Lundberg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Interpolation of Pom Properties in Assembly Descriptor
I've seen that mentioned on this list a couple times, and I generally use this notation myself as well for no particular reason. Wayne On 11/27/07, Dennis Lundberg [EMAIL PROTECTED] wrote: Some time back I encountered a problem with properties in the pom using a dot-notation. I solved that by using camelHump-notation instead. In your case that would mean replacing my.path with myPath. Not sure if it will work in this case, but it's worth a try. Mark Reynolds wrote: I was using maven-assembly-plugin 2.2-SNAPSHOT and tried to switch to 2.2-beta-2-SNAPSHOT but encountered a problem. I reference properties from my pom in the assembly descriptor, like this: project ... properties my.pathmyapp/WEB-INF/my.path /properties .. /project assembly ... files file source${basedir}/target/config/somefile.conf/source outputDirectory${my.path}/etc/outputDirectory /file /files ... /assembly In 2.2-SNAPSHOT, the value was substituted but in 2.2-beta-2-SNAPSHOT the literal ${my.path} is used. Is this a regression, a removed feature, or has the syntax for doing this changed? -- Mark R -- Dennis Lundberg - 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: How to deploy a zip produce with the assempbly plugin ?
For me, for some reason using just the assembly plugin didn't work. I solved using the http://mojo.codehaus.org/build-helper-maven-plugin/ build-helper-maven-plugin JC Walmetz wrote: So simple. I missed that in the doc. Thanks Antonio Petrelli-3 wrote: 2007/11/27, Wendy Smoak [EMAIL PROTECTED]: On Nov 27, 2007 7:18 AM, JC Walmetz [EMAIL PROTECTED] wrote: Is it possible to configure the assembly plugin in order that the zip produced will be deployed in repo during install or deploy ?? I think you want the 'attached' goal. See Building an Assembly as part of the Build Lifecycle here: http://maven.apache.org/plugins/maven-assembly-plugin/usage.html As an addition to what Wendy wrote, see a working example at Tiles (look at the release profile): http://svn.apache.org/repos/asf/tiles/framework/trunk/assembly/pom.xml Antonio -- View this message in context: http://www.nabble.com/How-to-deploy-a-zip-produce-with-the-assempbly-plugin---tf4882049s177.html#a13975979 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-archetype-webapp Directory Structure?
Hey, I was trying out maven-archetype-webapp with Maven 2.0.7 and maven-archetype 1.0-alpha-7 and noticed that the following directory structure is created: /src /main /resources /webapp However I was expecting this: /src /main /java /resources /webapp /test /java /resources Is there not supposed to be a directory structure for Java source code and unit test source code and resources? Is this a bug or am I missing out on a best practice? Thomas
Re: maven-archetype-webapp Directory Structure?
On 11/27/07, Thomas Van de Velde [EMAIL PROTECTED] wrote: I was trying out maven-archetype-webapp with Maven 2.0.7 and maven-archetype 1.0-alpha-7 and noticed that the following directory structure is created: ... Is there not supposed to be a directory structure for Java source code and unit test source code and resources? Is this a bug or am I missing out on a best practice? It's intentional. The recommendation is to have a separate module for the Java code and resources, and to declare it as a dependency in your webapp. (However, there's nothing stopping you from creating the directories and using them, which is often fine for simple webapps, example apps for frameworks for example.) -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: maven-archetype-webapp Directory Structure?
I think you probably should use maven-archetype-quickstart for a standard Java app. Wayne On 11/27/07, Thomas Van de Velde [EMAIL PROTECTED] wrote: Hey, I was trying out maven-archetype-webapp with Maven 2.0.7 and maven-archetype 1.0-alpha-7 and noticed that the following directory structure is created: /src /main /resources /webapp However I was expecting this: /src /main /java /resources /webapp /test /java /resources Is there not supposed to be a directory structure for Java source code and unit test source code and resources? Is this a bug or am I missing out on a best practice? Thomas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Version moving up fast
Hello, 2007/11/27, [EMAIL PROTECTED] [EMAIL PROTECTED] : It sounds odd to have that many release version per day. Yes indeed. Well, not per day, but per week. Nevertheless, it is odd. Version range notation would be perfect for what you need.. The first thing we will try is to use ranges like [2.1,) If I understand ranges correctly, then whenever we release this fast moving artifact (the version moves up) all the clients will pick the latest release version. Someone mentioned 2.0.7 has problems with ranges? Is there a JIRA issue? Cheers, Borut i.e., [2.1, ) Having said that I found a number of problems with using version range and I am stuck with 2.0.6 because 2.0.7 gives me NPE when it tries to resolve conflict between version ranges. Cheers, rOnn c. Borut Bolčina [EMAIL PROTECTED] 11/26/2007 06:31 PM Please respond to Maven Users List users@maven.apache.org To Maven users@maven.apache.org cc Subject Version moving up fast Hello maven users, if one of our in-house jars (lets call it A.jar) is progressing fast in terms of artifact version numbers (several times per week: 2.1 - 2.2 - 2.3- ... - 2.678 - 2.679 - ...), what is the best way for other artifacts which depend on this fast one to always use the last one? All the artifacts which depend on the A, would have to have their poms modified to 2.1-SNAPSHOT, 2.2-SNAPSHOT etc. because the SNAPSHOT version is in the trunk. This is error prone. I haven't looked into the release plugin yet, but I don't think it addresses this issue. One solution might be to name the A's version to something like 999-SNAPSHOT and then all the other jars would have their dependencies to this version. This smells like a dead fish in the sewer to me. What do you say? ## 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. ##
dependency:tree not working in maven 2.0.7
Hi, I would like to run some of the dependency goals listed in the documentation http://maven.apache.org/plugins/maven-dependency-plugin/ however when I do, I get an error stating that the goal cannot be found? Does anyone know why this is? /cygdrive/c/hasdev/servicesImpl$ mvn -e dependency:tree + Error stacktraces are turned on. [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'dependency'. [INFO] [ERROR] BUILD FAILURE [INFO] [INFO] Required goal not found: dependency:tree [INFO] [INFO] Trace org.apache.maven.BuildFailureException: Required goal not found: dependency:tree at org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(DefaultLifecycleExe cutor.java:1538) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListByAggregationNeeds(Def aultLifecycleExecutor.java:386) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java :138) 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) [INFO] [INFO] Total time: 1 second [INFO] Finished at: Tue Nov 27 11:14:47 MST 2007 [INFO] Final Memory: 2M/4M [INFO] -- View this message in context: http://www.nabble.com/dependency%3Atree-not-working-in-maven-2.0.7-tf4883555s177.html#a13976690 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Best way of changing project version
Greets, I have a big maven project that has about 300 pom files in it. Currently, the version is hardcoded on all the pom.xml files and moving from one version to another is a PITA. My question is, what's the best way of doing away with the hardcoded value and moving to a variable where it can be set in the parent pom. Right now, I'm experimenting by setting version to version${build_version}/version and added in my parent pom propertiesbuild_version2.2/build_version/properties. For the most part, this works fine, but there are some sub-components in the project where ${build_version} is not getting expanded, which is quite annoying, to say the least. Here's a sample output where the variable is not getting expanded. [INFO] [INFO] Building CSDPRoleMappingPortlet [INFO]task-segment: [clean, antrun:run, install, rpm:rpm] [INFO] [INFO] [clean:clean] [INFO] Deleting directory /home/egaona/projects/csdp_build/sources/csdp/com.ibm.csdp.pm.selfcare/CSDPRoleMappingPortlet/target [INFO] Deleting directory /home/egaona/projects/csdp_build/sources/csdp/com.ibm.csdp.pm.selfcare/CSDPRoleMappingPortlet/WebContent/WEB-INF/classes [INFO] Deleting directory /home/egaona/projects/csdp_build/sources/csdp/com.ibm.csdp.pm.selfcare/CSDPRoleMappingPortlet/target/test-classes Downloading: ftp://ausgsa.austin.ibm.com/projects/c/csdpbuildrepository/maven/repository/com/ibm/csdp/prereq/com.ibm.csdp.prereq/${csdp_version}/com.ibm.csdp.prereq-${csdp_version}.pom [WARNING] Unable to get resource from repository csdpFtpRepository (ftp://ausgsa.austin.ibm.com/projects/c/csdpbuildrepository/maven/repository) Downloading: ftp://ausgsa.ibm.com/projects/c/csdpbuildrepository/maven/repository/com/ibm/csdp/prereq/com.ibm.csdp.prereq/${csdp_version}/com.ibm.csdp.prereq-${csdp_version}.pom [WARNING] Unable to get resource from repository csdpFtpRepository (ftp://ausgsa.ibm.com/projects/c/csdpbuildrepository/maven/repository) Downloading: http://ausgsa.ibm.com/projects/c/csdpbuildrepository/maven/repository/com/ibm/csdp/prereq/com.ibm.csdp.prereq/${csdp_version}/com.ibm.csdp.prereq-${csdp_version}.pom [WARNING] Unable to get resource from repository csdpRepository (http://ausgsa.ibm.com/projects/c/csdpbuildrepository/maven/repository) Downloading: http://www.ibiblio.net/pub/packages/maven2/com/ibm/csdp/prereq/com.ibm.csdp.prereq/${csdp_version}/com.ibm.csdp.prereq-${csdp_version}.pom [WARNING] Unable to get resource from repository central (http://repo1.maven.org/maven2) [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Failed to resolve artifact. GroupId: com.ibm.csdp.prereq ArtifactId: com.ibm.csdp.prereq Version: ${csdp_version} Reason: Unable to download the artifact from any repository com.ibm.csdp.prereq:com.ibm.csdp.prereq:pom:${csdp_version} from the specified remote repositories: Maven Snapshots (http://snapshots.maven.codehaus.org/maven2/), central (http://repo1.maven.org/maven2), csdpRepository (http://ausgsa.ibm.com/projects/c/csdpbuildrepository/maven/repository), csdpFtpRepository (ftp://ausgsa.austin.ibm.com/projects/c/csdpbuildrepository/maven/repository) [INFO] [INFO] For more information, run Maven with the -e switch [INFO] [INFO] Total time: 1 minute 21 seconds [INFO] Finished at: Tue Nov 27 12:36:55 CST 2007 [INFO] Final Memory: 11M/30M [INFO] Any ideas? Thanks. Enrique
Re: HTTP 500 on proxyConnectors.action
Re, I've updated to archiva 1.0 and still have the same issue Julien CARSIQUE a écrit : Hello, I get an error going on archiva/admin/proxyConnectors.action Here's what I see on the client side in Firefox : | HTTP ERROR: 500| |Exception in JSP: /WEB-INF/jsp/admin/proxyConnectors.jsp:127 124: img src=c:url value=/images/archiva-world.png// 125: p class=id${connector.targetRepoId}/p 126: p class=name${repoMap[connector.targetRepoId].name}/p 127: p class=urla href=${repoMap[connector.targetRepoId].url}${repoMap[connector.targetRepoId].url}/a/p 128: /div 129: 130: a class=expand href=# onclick=Effect.toggle('proxySettings_${connector.sourceRepoId}_${connector.targetRepoId}','slide'); return false;Expand/a Stacktrace: ||RequestURI=/archiva/admin/prox||yConnectors.action| And here's what I see on the server side in the logs : INFO | jvm 1| 2007/11/27 16:24:11 | Nov 27, 2007 4:24:11 PM org.mortbay.jetty.servlet.ServletHandler handle INFO | jvm 1| 2007/11/27 16:24:11 | WARNING: /archiva/admin/proxyConnectors.action: INFO | jvm 1| 2007/11/27 16:24:11 | javax.servlet.jsp.el.ELException: Unable to find a value for url in object of class org.apache.maven.archiva.configuration.ManagedRepositoryConfiguration using operator . INFO | jvm 1| 2007/11/27 16:24:11 | at org.apache.commons.el.Logger.logError(Logger.java:481) INFO | jvm 1| 2007/11/27 16:24:11 | at org.apache.commons.el.Logger.logError(Logger.java:498) INFO | jvm 1| 2007/11/27 16:24:11 | at org.apache.commons.el.Logger.logError(Logger.java:611) INFO | jvm 1| 2007/11/27 16:24:11 | at org.apache.commons.el.ArraySuffix.evaluate(ArraySuffix.java:340) INFO | jvm 1| 2007/11/27 16:24:11 | at org.apache.commons.el.ComplexValue.evaluate(ComplexValue.java:145) INFO | jvm 1| 2007/11/27 16:24:11 | at org.apache.commons.el.ExpressionEvaluatorImpl.evaluate(ExpressionEvaluatorImpl.java:263) INFO | jvm 1| 2007/11/27 16:24:11 | at org.apache.commons.el.ExpressionEvaluatorImpl.evaluate(ExpressionEvaluatorImpl.java:190) INFO | jvm 1| 2007/11/27 16:24:11 | at org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(PageContextImpl.java:932) INFO | jvm 1| 2007/11/27 16:24:11 | at org.apache.jsp.WEB_002dINF.jsp.admin.proxyConnectors_jsp._jspx_meth_c_forEach_1(proxyConnectors_jsp.java:658) INFO | jvm 1| 2007/11/27 16:24:11 | at org.apache.jsp.WEB_002dINF.jsp.admin.proxyConnectors_jsp._jspx_meth_c_forEach_0(proxyConnectors_jsp.java:569) INFO | jvm 1| 2007/11/27 16:24:11 | at org.apache.jsp.WEB_002dINF.jsp.admin.proxyConnectors_jsp._jspx_meth_c_otherwise_0(proxyConnectors_jsp.java:518) INFO | jvm 1| 2007/11/27 16:24:11 | at org.apache.jsp.WEB_002dINF.jsp.admin.proxyConnectors_jsp._jspx_meth_c_choose_0(proxyConnectors_jsp.java:460) INFO | jvm 1| 2007/11/27 16:24:11 | at org.apache.jsp.WEB_002dINF.jsp.admin.proxyConnectors_jsp._jspService(proxyConnectors_jsp.java:166) INFO | jvm 1| 2007/11/27 16:24:11 | at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) Thanks for help, Julien
Re: Best way of changing project version
Can't you use the release plugin ? It will automatically update it for you Arnaud On Nov 27, 2007 7:41 PM, Enrique Gaona [EMAIL PROTECTED] wrote: Greets, I have a big maven project that has about 300 pom files in it. Currently, the version is hardcoded on all the pom.xml files and moving from one version to another is a PITA. My question is, what's the best way of doing away with the hardcoded value and moving to a variable where it can be set in the parent pom. Right now, I'm experimenting by setting version to version${build_version}/version and added in my parent pom propertiesbuild_version2.2/build_version/properties. For the most part, this works fine, but there are some sub-components in the project where ${build_version} is not getting expanded, which is quite annoying, to say the least. Here's a sample output where the variable is not getting expanded. [INFO] [INFO] Building CSDPRoleMappingPortlet [INFO]task-segment: [clean, antrun:run, install, rpm:rpm] [INFO] [INFO] [clean:clean] [INFO] Deleting directory /home/egaona/projects/csdp_build/sources/csdp/com.ibm.csdp.pm.selfcare/CSDPRoleMappingPortlet/target [INFO] Deleting directory /home/egaona/projects/csdp_build/sources/csdp/com.ibm.csdp.pm.selfcare/CSDPRoleMappingPortlet/WebContent/WEB-INF/classes [INFO] Deleting directory /home/egaona/projects/csdp_build/sources/csdp/com.ibm.csdp.pm.selfcare/CSDPRoleMappingPortlet/target/test-classes Downloading: ftp://ausgsa.austin.ibm.com/projects/c/csdpbuildrepository/maven/repository/com/ibm/csdp/prereq/com.ibm.csdp.prereq/${csdp_version}/com.ibm.csdp.prereq-${csdp_version}.pomftp://ausgsa.austin.ibm.com/projects/c/csdpbuildrepository/maven/repository/com/ibm/csdp/prereq/com.ibm.csdp.prereq/$%7Bcsdp_version%7D/com.ibm.csdp.prereq-$%7Bcsdp_version%7D.pom [WARNING] Unable to get resource from repository csdpFtpRepository ( ftp://ausgsa.austin.ibm.com/projects/c/csdpbuildrepository/maven/repository ) Downloading: ftp://ausgsa.ibm.com/projects/c/csdpbuildrepository/maven/repository/com/ibm/csdp/prereq/com.ibm.csdp.prereq/${csdp_version}/com.ibm.csdp.prereq-${csdp_version}.pomftp://ausgsa.ibm.com/projects/c/csdpbuildrepository/maven/repository/com/ibm/csdp/prereq/com.ibm.csdp.prereq/$%7Bcsdp_version%7D/com.ibm.csdp.prereq-$%7Bcsdp_version%7D.pom [WARNING] Unable to get resource from repository csdpFtpRepository (ftp://ausgsa.ibm.com/projects/c/csdpbuildrepository/maven/repository) Downloading: http://ausgsa.ibm.com/projects/c/csdpbuildrepository/maven/repository/com/ibm/csdp/prereq/com.ibm.csdp.prereq/${csdp_version}/com.ibm.csdp.prereq-${csdp_version}.pomhttp://ausgsa.ibm.com/projects/c/csdpbuildrepository/maven/repository/com/ibm/csdp/prereq/com.ibm.csdp.prereq/$%7Bcsdp_version%7D/com.ibm.csdp.prereq-$%7Bcsdp_version%7D.pom [WARNING] Unable to get resource from repository csdpRepository (http://ausgsa.ibm.com/projects/c/csdpbuildrepository/maven/repository) Downloading: http://www.ibiblio.net/pub/packages/maven2/com/ibm/csdp/prereq/com.ibm.csdp.prereq/${csdp_version}/com.ibm.csdp.prereq-${csdp_version}.pomhttp://www.ibiblio.net/pub/packages/maven2/com/ibm/csdp/prereq/com.ibm.csdp.prereq/$%7Bcsdp_version%7D/com.ibm.csdp.prereq-$%7Bcsdp_version%7D.pom [WARNING] Unable to get resource from repository central (http://repo1.maven.org/maven2) [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Failed to resolve artifact. GroupId: com.ibm.csdp.prereq ArtifactId: com.ibm.csdp.prereq Version: ${csdp_version} Reason: Unable to download the artifact from any repository com.ibm.csdp.prereq:com.ibm.csdp.prereq:pom:${csdp_version} from the specified remote repositories: Maven Snapshots (http://snapshots.maven.codehaus.org/maven2/), central (http://repo1.maven.org/maven2), csdpRepository (http://ausgsa.ibm.com/projects/c/csdpbuildrepository/maven/repository), csdpFtpRepository ( ftp://ausgsa.austin.ibm.com/projects/c/csdpbuildrepository/maven/repository ) [INFO] [INFO] For more information, run Maven with the -e switch [INFO] [INFO] Total time: 1 minute 21 seconds [INFO] Finished at: Tue Nov 27 12:36:55 CST 2007 [INFO] Final Memory: 11M/30M [INFO] Any ideas? Thanks. Enrique -- .. Arnaud HERITIER .. OCTO Technology - aheritier AT octo DOT com www.octo.com | blog.octo.com
Re: Best way of changing project version
I forgot to add : If you have an inheritence, you don't have to define the version in each submodule (just the parent) and for dependencies you can use ${pom.version} in each dependency or in the dependencyManagement of the parent like Kalle proposed. The problem is with the parent part of the pom because you have to always define the version. For that I think that the release plugin is the best choice. Arnaud On Nov 27, 2007 7:57 PM, Kalle Korhonen [EMAIL PROTECTED] wrote: Is there a reason why you just don't set the versions of the child modules in the dependencyManagement section of the parent pom? Kalle On 11/27/07, Enrique Gaona [EMAIL PROTECTED] wrote: Greets, I have a big maven project that has about 300 pom files in it. Currently, the version is hardcoded on all the pom.xml files and moving from one version to another is a PITA. My question is, what's the best way of doing away with the hardcoded value and moving to a variable where it can be set in the parent pom. Right now, I'm experimenting by setting version to version${build_version}/version and added in my parent pom propertiesbuild_version2.2/build_version/properties. For the most part, this works fine, but there are some sub-components in the project where ${build_version} is not getting expanded, which is quite annoying, to say the least. Here's a sample output where the variable is not getting expanded. [INFO] [INFO] Building CSDPRoleMappingPortlet [INFO]task-segment: [clean, antrun:run, install, rpm:rpm] [INFO] [INFO] [clean:clean] [INFO] Deleting directory /home/egaona/projects/csdp_build/sources/csdp/com.ibm.csdp.pm.selfcare/CSDPRoleMappingPortlet/target [INFO] Deleting directory /home/egaona/projects/csdp_build/sources/csdp/com.ibm.csdp.pm.selfcare/CSDPRoleMappingPortlet/WebContent/WEB-INF/classes [INFO] Deleting directory /home/egaona/projects/csdp_build/sources/csdp/com.ibm.csdp.pm.selfcare/CSDPRoleMappingPortlet/target/test-classes Downloading: ftp://ausgsa.austin.ibm.com/projects/c/csdpbuildrepository/maven/repository/com/ibm/csdp/prereq/com.ibm.csdp.prereq/${csdp_version}/com.ibm.csdp.prereq-${csdp_version}.pomftp://ausgsa.austin.ibm.com/projects/c/csdpbuildrepository/maven/repository/com/ibm/csdp/prereq/com.ibm.csdp.prereq/$%7Bcsdp_version%7D/com.ibm.csdp.prereq-$%7Bcsdp_version%7D.pom [WARNING] Unable to get resource from repository csdpFtpRepository ( ftp://ausgsa.austin.ibm.com/projects/c/csdpbuildrepository/maven/repository ) Downloading: ftp://ausgsa.ibm.com/projects/c/csdpbuildrepository/maven/repository/com/ibm/csdp/prereq/com.ibm.csdp.prereq/${csdp_version}/com.ibm.csdp.prereq-${csdp_version}.pomftp://ausgsa.ibm.com/projects/c/csdpbuildrepository/maven/repository/com/ibm/csdp/prereq/com.ibm.csdp.prereq/$%7Bcsdp_version%7D/com.ibm.csdp.prereq-$%7Bcsdp_version%7D.pom [WARNING] Unable to get resource from repository csdpFtpRepository (ftp://ausgsa.ibm.com/projects/c/csdpbuildrepository/maven/repository) Downloading: http://ausgsa.ibm.com/projects/c/csdpbuildrepository/maven/repository/com/ibm/csdp/prereq/com.ibm.csdp.prereq/${csdp_version}/com.ibm.csdp.prereq-${csdp_version}.pomhttp://ausgsa.ibm.com/projects/c/csdpbuildrepository/maven/repository/com/ibm/csdp/prereq/com.ibm.csdp.prereq/$%7Bcsdp_version%7D/com.ibm.csdp.prereq-$%7Bcsdp_version%7D.pom [WARNING] Unable to get resource from repository csdpRepository (http://ausgsa.ibm.com/projects/c/csdpbuildrepository/maven/repository) Downloading: http://www.ibiblio.net/pub/packages/maven2/com/ibm/csdp/prereq/com.ibm.csdp.prereq/${csdp_version}/com.ibm.csdp.prereq-${csdp_version}.pomhttp://www.ibiblio.net/pub/packages/maven2/com/ibm/csdp/prereq/com.ibm.csdp.prereq/$%7Bcsdp_version%7D/com.ibm.csdp.prereq-$%7Bcsdp_version%7D.pom [WARNING] Unable to get resource from repository central (http://repo1.maven.org/maven2) [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Failed to resolve artifact. GroupId: com.ibm.csdp.prereq ArtifactId: com.ibm.csdp.prereq Version: ${csdp_version} Reason: Unable to download the artifact from any repository com.ibm.csdp.prereq:com.ibm.csdp.prereq:pom:${csdp_version} from the specified remote repositories: Maven Snapshots (http://snapshots.maven.codehaus.org/maven2/), central (http://repo1.maven.org/maven2), csdpRepository (http://ausgsa.ibm.com/projects/c/csdpbuildrepository/maven/repository), csdpFtpRepository ( ftp://ausgsa.austin.ibm.com/projects/c/csdpbuildrepository/maven/repository ) [INFO]
Re: Best way of changing project version
Best way of changing the project version is by not doing it (yourself). Please have a look at the maven release plugin, which will make a tag in your scm and change the version number. So for example, if your trunk is at version 0.1.0-SNAPSHOT. When you run mvn release:prepare and mvn release:perform you have a tag of version 0.1.0, your 0.1.0 is deployed in your repository and your trunk is at 0.1.1-SNAPSHOT. See [1] for the documentation, Hth, Nick Stolwijk [1] http://maven.apache.org/plugins/maven-release-plugin/ Enrique Gaona wrote: Greets, I have a big maven project that has about 300 pom files in it. Currently, the version is hardcoded on all the pom.xml files and moving from one version to another is a PITA. My question is, what's the best way of doing away with the hardcoded value and moving to a variable where it can be set in the parent pom. Right now, I'm experimenting by setting version to version${build_version}/version and added in my parent pom propertiesbuild_version2.2/build_version/properties. For the most part, this works fine, but there are some sub-components in the project where ${build_version} is not getting expanded, which is quite annoying, to say the least. Here's a sample output where the variable is not getting expanded. [INFO] [INFO] Building CSDPRoleMappingPortlet [INFO]task-segment: [clean, antrun:run, install, rpm:rpm] [INFO] [INFO] [clean:clean] [INFO] Deleting directory /home/egaona/projects/csdp_build/sources/csdp/com.ibm.csdp.pm.selfcare/CSDPRoleMappingPortlet/target [INFO] Deleting directory /home/egaona/projects/csdp_build/sources/csdp/com.ibm.csdp.pm.selfcare/CSDPRoleMappingPortlet/WebContent/WEB-INF/classes [INFO] Deleting directory /home/egaona/projects/csdp_build/sources/csdp/com.ibm.csdp.pm.selfcare/CSDPRoleMappingPortlet/target/test-classes Downloading: ftp://ausgsa.austin.ibm.com/projects/c/csdpbuildrepository/maven/repository/com/ibm/csdp/prereq/com.ibm.csdp.prereq/${csdp_version}/com.ibm.csdp.prereq-${csdp_version}.pom [WARNING] Unable to get resource from repository csdpFtpRepository (ftp://ausgsa.austin.ibm.com/projects/c/csdpbuildrepository/maven/repository) Downloading: ftp://ausgsa.ibm.com/projects/c/csdpbuildrepository/maven/repository/com/ibm/csdp/prereq/com.ibm.csdp.prereq/${csdp_version}/com.ibm.csdp.prereq-${csdp_version}.pom [WARNING] Unable to get resource from repository csdpFtpRepository (ftp://ausgsa.ibm.com/projects/c/csdpbuildrepository/maven/repository) Downloading: http://ausgsa.ibm.com/projects/c/csdpbuildrepository/maven/repository/com/ibm/csdp/prereq/com.ibm.csdp.prereq/${csdp_version}/com.ibm.csdp.prereq-${csdp_version}.pom [WARNING] Unable to get resource from repository csdpRepository (http://ausgsa.ibm.com/projects/c/csdpbuildrepository/maven/repository) Downloading: http://www.ibiblio.net/pub/packages/maven2/com/ibm/csdp/prereq/com.ibm.csdp.prereq/${csdp_version}/com.ibm.csdp.prereq-${csdp_version}.pom [WARNING] Unable to get resource from repository central (http://repo1.maven.org/maven2) [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Failed to resolve artifact. GroupId: com.ibm.csdp.prereq ArtifactId: com.ibm.csdp.prereq Version: ${csdp_version} Reason: Unable to download the artifact from any repository com.ibm.csdp.prereq:com.ibm.csdp.prereq:pom:${csdp_version} from the specified remote repositories: Maven Snapshots (http://snapshots.maven.codehaus.org/maven2/), central (http://repo1.maven.org/maven2), csdpRepository (http://ausgsa.ibm.com/projects/c/csdpbuildrepository/maven/repository), csdpFtpRepository (ftp://ausgsa.austin.ibm.com/projects/c/csdpbuildrepository/maven/repository) [INFO] [INFO] For more information, run Maven with the -e switch [INFO] [INFO] Total time: 1 minute 21 seconds [INFO] Finished at: Tue Nov 27 12:36:55 CST 2007 [INFO] Final Memory: 11M/30M [INFO] Any ideas? Thanks. Enrique - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Best way of changing project version
Is there a reason why you just don't set the versions of the child modules in the dependencyManagement section of the parent pom? Kalle On 11/27/07, Enrique Gaona [EMAIL PROTECTED] wrote: Greets, I have a big maven project that has about 300 pom files in it. Currently, the version is hardcoded on all the pom.xml files and moving from one version to another is a PITA. My question is, what's the best way of doing away with the hardcoded value and moving to a variable where it can be set in the parent pom. Right now, I'm experimenting by setting version to version${build_version}/version and added in my parent pom propertiesbuild_version2.2/build_version/properties. For the most part, this works fine, but there are some sub-components in the project where ${build_version} is not getting expanded, which is quite annoying, to say the least. Here's a sample output where the variable is not getting expanded. [INFO] [INFO] Building CSDPRoleMappingPortlet [INFO]task-segment: [clean, antrun:run, install, rpm:rpm] [INFO] [INFO] [clean:clean] [INFO] Deleting directory /home/egaona/projects/csdp_build/sources/csdp/com.ibm.csdp.pm.selfcare/CSDPRoleMappingPortlet/target [INFO] Deleting directory /home/egaona/projects/csdp_build/sources/csdp/com.ibm.csdp.pm.selfcare/CSDPRoleMappingPortlet/WebContent/WEB-INF/classes [INFO] Deleting directory /home/egaona/projects/csdp_build/sources/csdp/com.ibm.csdp.pm.selfcare/CSDPRoleMappingPortlet/target/test-classes Downloading: ftp://ausgsa.austin.ibm.com/projects/c/csdpbuildrepository/maven/repository/com/ibm/csdp/prereq/com.ibm.csdp.prereq/${csdp_version}/com.ibm.csdp.prereq-${csdp_version}.pom [WARNING] Unable to get resource from repository csdpFtpRepository ( ftp://ausgsa.austin.ibm.com/projects/c/csdpbuildrepository/maven/repository ) Downloading: ftp://ausgsa.ibm.com/projects/c/csdpbuildrepository/maven/repository/com/ibm/csdp/prereq/com.ibm.csdp.prereq/${csdp_version}/com.ibm.csdp.prereq-${csdp_version}.pom [WARNING] Unable to get resource from repository csdpFtpRepository (ftp://ausgsa.ibm.com/projects/c/csdpbuildrepository/maven/repository) Downloading: http://ausgsa.ibm.com/projects/c/csdpbuildrepository/maven/repository/com/ibm/csdp/prereq/com.ibm.csdp.prereq/${csdp_version}/com.ibm.csdp.prereq-${csdp_version}.pom [WARNING] Unable to get resource from repository csdpRepository (http://ausgsa.ibm.com/projects/c/csdpbuildrepository/maven/repository) Downloading: http://www.ibiblio.net/pub/packages/maven2/com/ibm/csdp/prereq/com.ibm.csdp.prereq/${csdp_version}/com.ibm.csdp.prereq-${csdp_version}.pom [WARNING] Unable to get resource from repository central (http://repo1.maven.org/maven2) [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Failed to resolve artifact. GroupId: com.ibm.csdp.prereq ArtifactId: com.ibm.csdp.prereq Version: ${csdp_version} Reason: Unable to download the artifact from any repository com.ibm.csdp.prereq:com.ibm.csdp.prereq:pom:${csdp_version} from the specified remote repositories: Maven Snapshots (http://snapshots.maven.codehaus.org/maven2/), central (http://repo1.maven.org/maven2), csdpRepository (http://ausgsa.ibm.com/projects/c/csdpbuildrepository/maven/repository), csdpFtpRepository ( ftp://ausgsa.austin.ibm.com/projects/c/csdpbuildrepository/maven/repository ) [INFO] [INFO] For more information, run Maven with the -e switch [INFO] [INFO] Total time: 1 minute 21 seconds [INFO] Finished at: Tue Nov 27 12:36:55 CST 2007 [INFO] Final Memory: 11M/30M [INFO] Any ideas? Thanks. Enrique
Re: dependency:tree not working in maven 2.0.7
You need at least version 2.0-alpha-5 of the dependency-plugin. The tree goal was introduced in that version as indicated here: http://maven.apache.org/plugins/maven-dependency-plugin/tree-mojo.html bryan ward wrote: Hi, I would like to run some of the dependency goals listed in the documentation http://maven.apache.org/plugins/maven-dependency-plugin/ however when I do, I get an error stating that the goal cannot be found? Does anyone know why this is? /cygdrive/c/hasdev/servicesImpl$ mvn -e dependency:tree + Error stacktraces are turned on. [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'dependency'. [INFO] [ERROR] BUILD FAILURE [INFO] [INFO] Required goal not found: dependency:tree [INFO] [INFO] Trace org.apache.maven.BuildFailureException: Required goal not found: dependency:tree at org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(DefaultLifecycleExe cutor.java:1538) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListByAggregationNeeds(Def aultLifecycleExecutor.java:386) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java :138) 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) [INFO] [INFO] Total time: 1 second [INFO] Finished at: Tue Nov 27 11:14:47 MST 2007 [INFO] Final Memory: 2M/4M [INFO] -- Dennis Lundberg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
finding the dependency artifact name for filtering
Hello, I have the following dependency on a war artifact (contains a bundle of jnlp/webstart apps): dependency groupIdfoo.bar/groupId artifactIdwebstart-apps/artifactId version[8,)/version typewar/type scoperuntime/scope /dependency I'm planning to use the assembly plugin to bundle some files, including one that will provide a URL to these webstart apps. My guess is that I will filter this file containing the URL, since before the build I don't necessarily know what it will be. For instance, if the war file is this: webstart-apps-8.5.2.war Then it seems that 'webstart-apps-8.5.2' must be part of the URL. Is there some variable I can use to provide this artifact's name during the build? Or some other standard approach? And some documentation I should like to read about for these kinds of questions? Thanks in advance. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: maven-archetype-webapp Directory Structure?
That's interesting. Isn't the JEE standard to store servlet classes under WEB-INF/classes? What's the value of creating a separate JAR file for servlets? It seems to me that this adds unnecessary complexity. Having worked on several large projects, I've never seen servlets being packaged in multiple jar files. I do see how this can be valuable for architectural code, domain classes, services and repositories (DAO's). Any other perspectives on this? On Nov 27, 2007 10:07 AM, Wendy Smoak [EMAIL PROTECTED] wrote: On 11/27/07, Thomas Van de Velde [EMAIL PROTECTED] wrote: I was trying out maven-archetype-webapp with Maven 2.0.7 and maven-archetype 1.0-alpha-7 and noticed that the following directory structure is created: ... Is there not supposed to be a directory structure for Java source code and unit test source code and resources? Is this a bug or am I missing out on a best practice? It's intentional. The recommendation is to have a separate module for the Java code and resources, and to declare it as a dependency in your webapp. (However, there's nothing stopping you from creating the directories and using them, which is often fine for simple webapps, example apps for frameworks for example.) -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: HTTP 500 on proxyConnectors.action
Ok, it's fixed removing the proxy connectors def and redo it via the web interface. Re, I've updated to archiva 1.0 and still have the same issue Julien CARSIQUE a écrit : Hello, I get an error going on archiva/admin/proxyConnectors.action Here's what I see on the client side in Firefox : | HTTP ERROR: 500| |Exception in JSP: /WEB-INF/jsp/admin/proxyConnectors.jsp:127 124: img src=c:url value=/images/archiva-world.png// 125: p class=id${connector.targetRepoId}/p 126: p class=name${repoMap[connector.targetRepoId].name}/p 127: p class=urla href=${repoMap[connector.targetRepoId].url}${repoMap[connector.targetRepoId].url}/a/p 128: /div 129: 130: a class=expand href=# onclick=Effect.toggle('proxySettings_${connector.sourceRepoId}_${connector.targetRepoId}','slide'); return false;Expand/a Stacktrace: ||RequestURI=/archiva/admin/prox||yConnectors.action| And here's what I see on the server side in the logs : INFO | jvm 1| 2007/11/27 16:24:11 | Nov 27, 2007 4:24:11 PM org.mortbay.jetty.servlet.ServletHandler handle INFO | jvm 1| 2007/11/27 16:24:11 | WARNING: /archiva/admin/proxyConnectors.action: INFO | jvm 1| 2007/11/27 16:24:11 | javax.servlet.jsp.el.ELException: Unable to find a value for url in object of class org.apache.maven.archiva.configuration.ManagedRepositoryConfiguration using operator . INFO | jvm 1| 2007/11/27 16:24:11 | at org.apache.commons.el.Logger.logError(Logger.java:481) INFO | jvm 1| 2007/11/27 16:24:11 | at org.apache.commons.el.Logger.logError(Logger.java:498) INFO | jvm 1| 2007/11/27 16:24:11 | at org.apache.commons.el.Logger.logError(Logger.java:611) INFO | jvm 1| 2007/11/27 16:24:11 | at org.apache.commons.el.ArraySuffix.evaluate(ArraySuffix.java:340) INFO | jvm 1| 2007/11/27 16:24:11 | at org.apache.commons.el.ComplexValue.evaluate(ComplexValue.java:145) INFO | jvm 1| 2007/11/27 16:24:11 | at org.apache.commons.el.ExpressionEvaluatorImpl.evaluate(ExpressionEvaluatorImpl.java:263) INFO | jvm 1| 2007/11/27 16:24:11 | at org.apache.commons.el.ExpressionEvaluatorImpl.evaluate(ExpressionEvaluatorImpl.java:190) INFO | jvm 1| 2007/11/27 16:24:11 | at org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(PageContextImpl.java:932) INFO | jvm 1| 2007/11/27 16:24:11 | at org.apache.jsp.WEB_002dINF.jsp.admin.proxyConnectors_jsp._jspx_meth_c_forEach_1(proxyConnectors_jsp.java:658) INFO | jvm 1| 2007/11/27 16:24:11 | at org.apache.jsp.WEB_002dINF.jsp.admin.proxyConnectors_jsp._jspx_meth_c_forEach_0(proxyConnectors_jsp.java:569) INFO | jvm 1| 2007/11/27 16:24:11 | at org.apache.jsp.WEB_002dINF.jsp.admin.proxyConnectors_jsp._jspx_meth_c_otherwise_0(proxyConnectors_jsp.java:518) INFO | jvm 1| 2007/11/27 16:24:11 | at org.apache.jsp.WEB_002dINF.jsp.admin.proxyConnectors_jsp._jspx_meth_c_choose_0(proxyConnectors_jsp.java:460) INFO | jvm 1| 2007/11/27 16:24:11 | at org.apache.jsp.WEB_002dINF.jsp.admin.proxyConnectors_jsp._jspService(proxyConnectors_jsp.java:166) INFO | jvm 1| 2007/11/27 16:24:11 | at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) Thanks for help, Julien
Re: Include source, javadocs, etc in installed artifact
lightbulb432 wrote: From where can I download maven-javadoc-plugin 2.4? There's a documented IBM JVM-specific bug that's fixed in 2.4 that I need to download. Unfortunately, it doesn't look like it's released yet (is it?), with the latest version being 2.3 (see http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-javadoc-plugin). When will 2.4 be released, and how can I use a currently-unreleased version at this time? How do I build a version I can deploy to my local repository for use in my project? If I check out the SVN link corresponding to trunk/maven-javadoc-plugin/, which contains src/ and pom.xml, what mvn command would I use to build it? mvn install to install it in your local repo. Also, would I be able to check out only trunk/maven-javadoc-plugin, or do I need to check out the folder structure higher up in the hierarchy? No, you'll get everything else (parent pom etc.) from the central repository. Thanks. Yaakov Chaikin wrote: As part of your plugins configuration, do this; plugin artifactIdmaven-source-plugin/artifactId configuration aggregatefalse/aggregate /configuration executions execution phasepackage/phase goals goaljar/goal /goals /execution /executions /plugin If you're using Eclipse, you can then do this (after closing eclipse): mvn eclipse:clean eclipse:eclipse -DdownloadSources=true Eclipse will parse the JavaDocs for you from the source. However, if you still want javadocs, do this in the pom: plugin artifactIdmaven-javadoc-plugin/artifactId configuration aggregatetrue/aggregate /configuration /plugin Similarly, for Eclipse, you would now add this to the line: mvn eclipse:clean eclipse:eclipse -DdownloadSource=true -DdownloadJavadocs=true Hope this helps. Yaakov. On 11/4/07, Dennis Lundberg [EMAIL PROTECTED] wrote: This was answered on October 31. on this list. Check the archives for a thread titled Attaching source code. lightbulb432 wrote: When I run the mvn install, install:install, or install:install-file command, only the JAR itself is put into my local repository. How can I get the source, Javadocs, and other things to also be put into the local repository? I looked at the following link for any parameters to add, but nothing relating to this was mentioned. http://maven.apache.org/plugins/maven-install-plugin/install-mojo.html Also, what's the difference between the three types of install commands specified above? install is a phase, while the other two are goals? Does the install phase by default call one of those two goals? Thanks. -- Dennis Lundberg - 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] -- Dennis Lundberg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: maven-archetype-webapp Directory Structure?
It is also JEE standard to include jars in WEB-INF/lib. There is a difference between a standard and recommendation. Another possible perspective for you is avoiding potential classloading problems. If you work with various vendors you may notice not all vendors are as moderate to how your archives are packaged. On Nov 27, 2007 8:18 PM, Thomas Van de Velde [EMAIL PROTECTED] wrote: That's interesting. Isn't the JEE standard to store servlet classes under WEB-INF/classes? What's the value of creating a separate JAR file for servlets? It seems to me that this adds unnecessary complexity. Having worked on several large projects, I've never seen servlets being packaged in multiple jar files. I do see how this can be valuable for architectural code, domain classes, services and repositories (DAO's). Any other perspectives on this? On Nov 27, 2007 10:07 AM, Wendy Smoak [EMAIL PROTECTED] wrote: On 11/27/07, Thomas Van de Velde [EMAIL PROTECTED] wrote: I was trying out maven-archetype-webapp with Maven 2.0.7 and maven-archetype 1.0-alpha-7 and noticed that the following directory structure is created: ... Is there not supposed to be a directory structure for Java source code and unit test source code and resources? Is this a bug or am I missing out on a best practice? It's intentional. The recommendation is to have a separate module for the Java code and resources, and to declare it as a dependency in your webapp. (However, there's nothing stopping you from creating the directories and using them, which is often fine for simple webapps, example apps for frameworks for example.) -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Javadocs during install phase
2007/11/27, Dennis Lundberg [EMAIL PROTECTED]: Antonio Petrelli wrote: 2007/11/27, rmatthews [EMAIL PROTECTED]: aggregatetrue/aggregate This is the problem :-( http://jira.codehaus.org/browse/MJAVADOC-116 22 votes and 15 watches, and no one that takes care of it :-( Please, feel free to attach a patch to that issue ;-) If I was able to correct it, I would have fixed it a long time ago. But I think that I helped anyway, because I made a small test case, attached to the issue, to help developers in debugging the issue. Sorry Antonio - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: dependency:tree not working in maven 2.0.7
I simply generate site to see the dependency tree... On Nov 27, 2007 7:40 PM, Dennis Lundberg [EMAIL PROTECTED] wrote: You need at least version 2.0-alpha-5 of the dependency-plugin. The tree goal was introduced in that version as indicated here: http://maven.apache.org/plugins/maven-dependency-plugin/tree-mojo.html bryan ward wrote: Hi, I would like to run some of the dependency goals listed in the documentation http://maven.apache.org/plugins/maven-dependency-plugin/ however when I do, I get an error stating that the goal cannot be found? Does anyone know why this is? /cygdrive/c/hasdev/servicesImpl$ mvn -e dependency:tree + Error stacktraces are turned on. [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'dependency'. [INFO] [ERROR] BUILD FAILURE [INFO] [INFO] Required goal not found: dependency:tree [INFO] [INFO] Trace org.apache.maven.BuildFailureException: Required goal not found: dependency:tree at org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor (DefaultLifecycleExe cutor.java:1538) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListByAggregationNeeds (Def aultLifecycleExecutor.java:386) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute( DefaultLifecycleExecutor.java :138) 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) [INFO] [INFO] Total time: 1 second [INFO] Finished at: Tue Nov 27 11:14:47 MST 2007 [INFO] Final Memory: 2M/4M [INFO] -- Dennis Lundberg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: dependency:tree not working in maven 2.0.7
I looked in my local repository and it currently has version 2.0-alpha-4 of the dependency plugin. Do you know how A) it chose to use 2.0-alpha-4 and B) how do I change it to use alpha-5 (or the latest available). Thanks! Bryan dennisl-2 wrote: You need at least version 2.0-alpha-5 of the dependency-plugin. The tree goal was introduced in that version as indicated here: http://maven.apache.org/plugins/maven-dependency-plugin/tree-mojo.html bryan ward wrote: Hi, I would like to run some of the dependency goals listed in the documentation http://maven.apache.org/plugins/maven-dependency-plugin/ however when I do, I get an error stating that the goal cannot be found? Does anyone know why this is? /cygdrive/c/hasdev/servicesImpl$ mvn -e dependency:tree + Error stacktraces are turned on. [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'dependency'. [INFO] [ERROR] BUILD FAILURE [INFO] [INFO] Required goal not found: dependency:tree [INFO] [INFO] Trace org.apache.maven.BuildFailureException: Required goal not found: dependency:tree at org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(DefaultLifecycleExe cutor.java:1538) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListByAggregationNeeds(Def aultLifecycleExecutor.java:386) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java :138) 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) [INFO] [INFO] Total time: 1 second [INFO] Finished at: Tue Nov 27 11:14:47 MST 2007 [INFO] Final Memory: 2M/4M [INFO] -- Dennis Lundberg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/dependency%3Atree-not-working-in-maven-2.0.7-tf4883555s177.html#a13979033 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
The specified resource isn't a file or the protocol used isn't allowed - Please Help
Hi All I just installed continuum-1.1 and trying to setup maven2 project with clearcase 1. i created pom.xml with entry scm !-- using ucm format scm:clearcasedelimiter[view_name]delimiterconfig_specdelimitervob_namedelimiterstream_name -- connectionscm:clearcase|buildsvr_myview|/home/me/config_spec.txt|My_VOB|STREAM/connection developerConnection / tag/ url/ /scm saved it to /home/me/pom.xml 2. opened continuum in browser went thru creating maven2projects and gave POM Url as file:///home/pom.xml , but i'm getting The specified resource isn't a file or the protocol used isn't allowed. 3. i checked the file, it is there 4. This is what i see in wrapper.log INFO | jvm 1| 2007/11/27 14:17:54 | 2007-11-27 14:17:54,628 [SocketListener0-0] WARN com.opensymphony.webwork.dispatcher.multipart.MultiPartRequest - Item is a file upload of 0 size, ignoring INFO | jvm 1| 2007/11/27 14:17:54 | 2007-11-27 14:17:54,632 [SocketListener0-0] ERROR com.opensymphony.webwork.dispatcher.DispatcherUtils - Error setting character encoding to 'UTF-8' - ignoring. INFO | jvm 1| 2007/11/27 14:17:54 | java.lang.IllegalStateException: getReader() or getInputStream() called INFO | jvm 1| 2007/11/27 14:17:54 | at org.mortbay.jetty.servlet.ServletHttpRequest.setCharacterEncoding( ServletHttpRequest.java:602) INFO | jvm 1| 2007/11/27 14:17:54 | at javax.servlet.ServletRequestWrapper.setCharacterEncoding( ServletRequestWrapper.java:112) INFO | jvm 1| 2007/11/27 14:17:54 | at com.opensymphony.webwork.dispatcher.DispatcherUtils.prepare( DispatcherUtils.java:438) INFO | jvm 1| 2007/11/27 14:17:54 | at com.opensymphony.webwork.dispatcher.FilterDispatcher.doFilter( FilterDispatcher.java:160) INFO | jvm 1| 2007/11/27 14:17:54 | at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter( WebApplicationHandler.java:821) INFO | jvm 1| 2007/11/27 14:17:54 | at com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java :118) INFO | jvm 1| 2007/11/27 14:17:54 | at com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java :52) INFO | jvm 1| 2007/11/27 14:17:54 | at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter( WebApplicationHandler.java:821) INFO | jvm 1| 2007/11/27 14:17:54 | at com.opensymphony.webwork.dispatcher.ActionContextCleanUp.doFilter( ActionContextCleanUp.java:88) INFO | jvm 1| 2007/11/27 14:17:54 | at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter( WebApplicationHandler.java:821) INFO | jvm 1| 2007/11/27 14:17:54 | at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch( WebApplicationHandler.java:471) INFO | jvm 1| 2007/11/27 14:17:54 | at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:568) INFO | jvm 1| 2007/11/27 14:17:54 | at org.mortbay.http.HttpContext.handle(HttpContext.java:1530) INFO | jvm 1| 2007/11/27 14:17:54 | at org.mortbay.jetty.servlet.WebApplicationContext.handle( WebApplicationContext.java:633) INFO | jvm 1| 2007/11/27 14:17:54 | at org.mortbay.http.HttpContext.handle(HttpContext.java:1482) INFO | jvm 1| 2007/11/27 14:17:54 | at org.mortbay.http.HttpServer.service(HttpServer.java:909) INFO | jvm 1| 2007/11/27 14:17:54 | at org.mortbay.http.HttpConnection.service(HttpConnection.java:816) INFO | jvm 1| 2007/11/27 14:17:54 | at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:982) INFO | jvm 1| 2007/11/27 14:17:54 | at org.mortbay.http.HttpConnection.handle(HttpConnection.java:833) INFO | jvm 1| 2007/11/27 14:17:54 | at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:244) INFO | jvm 1| 2007/11/27 14:17:54 | at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357) INFO | jvm 1| 2007/11/27 14:17:54 | at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534) What am i doing wrong, please help
Re: dependency:tree not working in maven 2.0.7
Assuming the plugin has been released, you have two options: 1. Specify the plugin version in your pom. 2. Use the full name of the plugin on the command line: mvn groupId:artifactId:version:goal eg mvn org.apache.maven.plugins:maven-dependency-plugin:2.0-alpha-5:tree Unfortunately, this plugin version is still in development, so this is not sufficient. You can see the latest versions here: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-dependency-plugin/ If you must use this new version, you will need to add the Apache snapshot repo to your pom or settings.xml, or pull the code from SVN and build/install it locally. Wayne On 11/27/07, bryan ward [EMAIL PROTECTED] wrote: I looked in my local repository and it currently has version 2.0-alpha-4 of the dependency plugin. Do you know how A) it chose to use 2.0-alpha-4 and B) how do I change it to use alpha-5 (or the latest available). Thanks! Bryan dennisl-2 wrote: You need at least version 2.0-alpha-5 of the dependency-plugin. The tree goal was introduced in that version as indicated here: http://maven.apache.org/plugins/maven-dependency-plugin/tree-mojo.html bryan ward wrote: Hi, I would like to run some of the dependency goals listed in the documentation http://maven.apache.org/plugins/maven-dependency-plugin/ however when I do, I get an error stating that the goal cannot be found? Does anyone know why this is? /cygdrive/c/hasdev/servicesImpl$ mvn -e dependency:tree + Error stacktraces are turned on. [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'dependency'. [INFO] [ERROR] BUILD FAILURE [INFO] [INFO] Required goal not found: dependency:tree [INFO] [INFO] Trace org.apache.maven.BuildFailureException: Required goal not found: dependency:tree at org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(DefaultLifecycleExe cutor.java:1538) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListByAggregationNeeds(Def aultLifecycleExecutor.java:386) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java :138) 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) [INFO] [INFO] Total time: 1 second [INFO] Finished at: Tue Nov 27 11:14:47 MST 2007 [INFO] Final Memory: 2M/4M [INFO] -- Dennis Lundberg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/dependency%3Atree-not-working-in-maven-2.0.7-tf4883555s177.html#a13979033 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]
Re: Problem with MANIFEST.MF in maven-jar-plugin
What do you mean my jar does not work out? How does it break? Please review the JAR spec -- I am reasonably certain the Maven-produced manifest.mf is correct: http://java.sun.com/j2se/1.5.0/docs/guide/jar/jar.html#Notes%20on%20Manifest%20and%20Signature%20Files Line length: No line may be longer than 72 bytes (not characters), in its UTF8-encoded form. If a value would make the initial line longer than this, it should be continued on extra lines (each starting with a single SPACE). Wayne On 11/27/07, helio [EMAIL PROTECTED] wrote: Hi, I am using maven-jar-plugin on maven 2.0.7. I added this in my pom.xml: build plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-jar-plugin/artifactId configuration archive manifestFilesrc/main/resources/META-INF/MANIFEST.MF/manifestFile /archive /configuration /plugin /plugins /build In src/main/resources/META-INF/MANIFEST.MF I have: Manifest-Version: 1.0 Class-Path: activation.jar commons-logging.jar getopt.jar javassist.jar jaxb-api.jar jaxb-impl.jar jbossall-client.jar jboss-ejb3x.jar jboss-j2ee.jar jboss-jaxrpc.jar jboss-jaxws.jar jboss-saaj.jar jbossws-client.jar jbossws-spi.jar jboss-xml-binding.jar jtds-1.2.jar log4j.jar mail.jar mysql-connector-java-3.1.12-bin.jar policy.jar stax-api.jar wsdl4j.jar wstx.jar xercesImpl.jar Main-Class: com.Claudio But when I run mvn clean package, into jar´s MANIFEST.MF I got: Manifest-Version: 1.0 Archiver-Version: Plexus Archiver Created-By: Apache Maven Built-By: claudior Build-Jdk: 1.5.0_06 Main-Class: com.Claudio Class-Path: activation.jar commons-logging.jar getopt.jar javassist.ja r jaxb-api.jar jaxb-impl.jar jbossall-client.jar jboss-ejb3x.jar jbos s-j2ee.jar jboss-jaxrpc.jar jboss-jaxws.jar jboss-saaj.jar jbossws-cl ient.jar jbossws-spi.jar jboss-xml-binding.jar jtds-1.2.jar log4j.jar mail.jar mysql-connector-java-3.1.12-bin.jar policy.jar stax-api.jar wsdl4j.jar wstx.jar xercesImpl.jar The plugin maven-jar-plugin adds breaklines in Class-Path and my jar does not work out!!! Please, help me. Helio - 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]
Maven Usage on Enterprise Application
Our problems 1. Multi environment like DEV,QA, STAGING and PROD.A Perl script will take two parameters .One for environment and other for application and produce the configuration XML file. 2.We use GNU M4 for variable substitution to substitute variables from configuration XML file to substitute dynamic variables in tomcat/conf or httpd/conf files.How do I do this in Maven and eliminate M4 for variable substitution? 3.We use GNU Make to build and deploy.4. There are makefiles in each subdirectory thus helping us build that subdirectory or build a java file in that subdirectory like Make abc.java or say make on that directory, This gives us flexibility to make only that subdirectory .We did provide intelligence to that make process to compile the classes in that subdirectory and also compile only the depenedent classes if any from the root source. How can Maven help us here to eliminate MAKE all together? Our environment consists of PERL,cvs,ANT,GNU MAKE,GNU M4. Gurus please post your proposed solutions of using Maven? -- View this message in context: http://www.nabble.com/Maven-Usage-on-Enterprise-Application-tf4884771s177.html#a13980963 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problem with MANIFEST.MF in maven-jar-plugin
Hi, I am using maven-jar-plugin on maven 2.0.7. I added this in my pom.xml: build plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-jar-plugin/artifactId configuration archive manifestFilesrc/main/resources/META-INF/MANIFEST.MF/manifestFile /archive /configuration /plugin /plugins /build In src/main/resources/META-INF/MANIFEST.MF I have: Manifest-Version: 1.0 Class-Path: activation.jar commons-logging.jar getopt.jar javassist.jar jaxb-api.jar jaxb-impl.jar jbossall-client.jar jboss-ejb3x.jar jboss-j2ee.jar jboss-jaxrpc.jar jboss-jaxws.jar jboss-saaj.jar jbossws-client.jar jbossws-spi.jar jboss-xml-binding.jar jtds-1.2.jar log4j.jar mail.jar mysql-connector-java-3.1.12-bin.jar policy.jar stax-api.jar wsdl4j.jar wstx.jar xercesImpl.jar Main-Class: com.Claudio But when I run mvn clean package, into jar´s MANIFEST.MF I got: Manifest-Version: 1.0 Archiver-Version: Plexus Archiver Created-By: Apache Maven Built-By: claudior Build-Jdk: 1.5.0_06 Main-Class: com.Claudio Class-Path: activation.jar commons-logging.jar getopt.jar javassist.ja r jaxb-api.jar jaxb-impl.jar jbossall-client.jar jboss-ejb3x.jar jbos s-j2ee.jar jboss-jaxrpc.jar jboss-jaxws.jar jboss-saaj.jar jbossws-cl ient.jar jbossws-spi.jar jboss-xml-binding.jar jtds-1.2.jar log4j.jar mail.jar mysql-connector-java-3.1.12-bin.jar policy.jar stax-api.jar wsdl4j.jar wstx.jar xercesImpl.jar The plugin maven-jar-plugin adds breaklines in Class-Path and my jar does not work out!!! Please, help me. Helio - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven Usage on Enterprise Application
Did you look into filtering and profiles? http://maven.apache.org/guides/getting-started/index.html#How_do_I_filter_resource_files http://maven.apache.org/guides/introduction/introduction-to-profiles.html Regards, Siahrei On Nov 27, 2007 11:04 PM, nash4403 [EMAIL PROTECTED] wrote: Our problems 1. Multi environment like DEV,QA, STAGING and PROD.A Perl script will take two parameters .One for environment and other for application and produce the configuration XML file. 2.We use GNU M4 for variable substitution to substitute variables from configuration XML file to substitute dynamic variables in tomcat/conf or httpd/conf files.How do I do this in Maven and eliminate M4 for variable substitution? 3.We use GNU Make to build and deploy.4. There are makefiles in each subdirectory thus helping us build that subdirectory or build a java file in that subdirectory like Make abc.java or say make on that directory, This gives us flexibility to make only that subdirectory .We did provide intelligence to that make process to compile the classes in that subdirectory and also compile only the depenedent classes if any from the root source. How can Maven help us here to eliminate MAKE all together? Our environment consists of PERL,cvs,ANT,GNU MAKE,GNU M4. Gurus please post your proposed solutions of using Maven? -- View this message in context: http://www.nabble.com/Maven-Usage-on-Enterprise-Application-tf4884771s177.html#a13980963 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: [ANNOUNCE] Archiva 1.0 Released
To the Archiva team, Great job. We are looking forward to leveraging this new release. Brian Maria Odea Ching-5 wrote: Hi Everyone, The Maven Archiva team is pleased to announce the release of Archiva 1.0final. Archiva is a build artifact repository manager for use with build tools such as Maven, Continuum and Ant. It has features like repository search and browse, securing repositories, identifying unknown artifacts and reporting of repository problems. Aside from these, it can also act as a nearby (proxy) cache of popular global repositories. The latest release is now available here: http://maven.apache.org/archiva/download.html The site has also been updated, you can visit it at: http://maven.apache.org/archiva Below are the jira issues that were resolved for Archiva 1.0: Release Notes - Archiva - Version 1.0 ** Bug * [MRM-545] - Documentation for configuring for Tomcat is invalid * [MRM-586] - entire proxy request fails if a queried remote repository throws a proxyexception * [MRM-595] - regression : server-side relocation fails * [MRM-596] - regression : cannot get java-sources anymore from maven1 * [MRM-598] - Validation error on new repository creation ** Task * [MRM-583] - Finalise and publish updated web site * [MRM-587] - further changes to logging needed Thanks, Deng -- View this message in context: http://www.nabble.com/-ANNOUNCE--Archiva-1.0-Released-tf4880761.html#a13981482 Sent from the archiva-users mailing list archive at Nabble.com.
Re: Maven Usage on Enterprise Application
That answers the environment and variable substitution part. But how would maven help me in building parts of the project. Say I want to build only a file in the subdirectory like make abc.java or make [which builds just the subdirectory and dependent jave files from the parent and grand parent root directories] This will help the DEV teams they dont need to run the complete build instead just build that changed class to test. Thanks for your response earlier regarding profiles and filter resource files. Siarhei Dudzin wrote: Did you look into filtering and profiles? http://maven.apache.org/guides/getting-started/index.html#How_do_I_filter_resource_files http://maven.apache.org/guides/introduction/introduction-to-profiles.html Regards, Siahrei On Nov 27, 2007 11:04 PM, nash4403 [EMAIL PROTECTED] wrote: Our problems 1. Multi environment like DEV,QA, STAGING and PROD.A Perl script will take two parameters .One for environment and other for application and produce the configuration XML file. 2.We use GNU M4 for variable substitution to substitute variables from configuration XML file to substitute dynamic variables in tomcat/conf or httpd/conf files.How do I do this in Maven and eliminate M4 for variable substitution? 3.We use GNU Make to build and deploy.4. There are makefiles in each subdirectory thus helping us build that subdirectory or build a java file in that subdirectory like Make abc.java or say make on that directory, This gives us flexibility to make only that subdirectory .We did provide intelligence to that make process to compile the classes in that subdirectory and also compile only the depenedent classes if any from the root source. How can Maven help us here to eliminate MAKE all together? Our environment consists of PERL,cvs,ANT,GNU MAKE,GNU M4. Gurus please post your proposed solutions of using Maven? -- View this message in context: http://www.nabble.com/Maven-Usage-on-Enterprise-Application-tf4884771s177.html#a13980963 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Maven-Usage-on-Enterprise-Application-tf4884771s177.html#a13981495 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: dependency:tree not working in maven 2.0.7
The site does say that the goal is available since 2.0-alpha-5. dependency:tree Displays the dependency tree for this project. Mojo Attributes: * Requires a Maven 2.0 project to execute. * Requires dependency resolution of artifacts in scope: test * Since version: 2.0-alpha-5 -Original Message- From: bryan ward [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 27, 2007 2:10 PM To: users@maven.apache.org Subject: Re: dependency:tree not working in maven 2.0.7 Hi, Thanks for the informative reply. It leaves me wondering though why functionality that is not currently available via the standard maven install is listed in the plugin documentation? Thanks, Bryan Wayne Fay wrote: Assuming the plugin has been released, you have two options: 1. Specify the plugin version in your pom. 2. Use the full name of the plugin on the command line: mvn groupId:artifactId:version:goal eg mvn org.apache.maven.plugins:maven-dependency-plugin:2.0-alpha-5:tree Unfortunately, this plugin version is still in development, so this is not sufficient. You can see the latest versions here: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-dependency- plugin/ If you must use this new version, you will need to add the Apache snapshot repo to your pom or settings.xml, or pull the code from SVN and build/install it locally. Wayne On 11/27/07, bryan ward [EMAIL PROTECTED] wrote: I looked in my local repository and it currently has version 2.0-alpha-4 of the dependency plugin. Do you know how A) it chose to use 2.0-alpha-4 and B) how do I change it to use alpha-5 (or the latest available). Thanks! Bryan dennisl-2 wrote: You need at least version 2.0-alpha-5 of the dependency-plugin. The tree goal was introduced in that version as indicated here: http://maven.apache.org/plugins/maven-dependency-plugin/tree-mojo.html bryan ward wrote: Hi, I would like to run some of the dependency goals listed in the documentation http://maven.apache.org/plugins/maven-dependency-plugin/ however when I do, I get an error stating that the goal cannot be found? Does anyone know why this is? /cygdrive/c/hasdev/servicesImpl$ mvn -e dependency:tree + Error stacktraces are turned on. [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'dependency'. [INFO] [ERROR] BUILD FAILURE [INFO] [INFO] Required goal not found: dependency:tree [INFO] [INFO] Trace org.apache.maven.BuildFailureException: Required goal not found: dependency:tree at org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(De faultLifecycleExe cutor.java:1538) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListByAgg regationNeeds(Def aultLifecycleExecutor.java:386) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifec ycleExecutor.java :138) 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.jav a:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor Impl.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) [INFO] [INFO] Total time: 1 second [INFO] Finished at: Tue Nov 27 11:14:47 MST 2007 [INFO] Final Memory: 2M/4M [INFO] -- Dennis Lundberg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/dependency%3Atree-not-working-in-maven-2.0.7-tf488 3555s177.html#a13979033 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: repository and database
Julien CARSIQUE wrote: More information : deleting the local repository (only the groupId) fix the problem, artifact is then correctly downloaded. Is it due to corruption during download or what else ? This wasn't often happening until upgrade to beta-4 and then 1.0; now this error seems to occur more often. Could you post some log snippets from this error you encountered? Julien CARSIQUE a écrit : Hi, What's the difference between repositories scanning cron and database update cron ? Is there some recommended values ? Could you give me a cron example please ? I already asked and you answered me to see quartz but there is two different cron patterns using the web interface; even I know cron, I don't understand the 6th value for repositories and not for database. Usually it's about a user but here I don't know and didn't find doc in quartz about how you use the library. Hmm.. I think both the repository scanning cron and the database cron have the same number of values (up to the 6th) by default. Actually, a valid cron expression should have 6 to 7 fields. I'm not certain about this but I think I remember there was a jira before that one of the default cron expressions set were invalid, maybe the database cron expression for your configuration was still a leftover from the old archiva having that issue :) Last, I currently have a strange issue happening sometimes (why I suspect the scanning process) : maven can't find some artifacts whereas they are present in the filesystem and findable using the web ui. In archiva logs, I can lines saying it didn't find the wanted artifact (and many many others). Could this be link to a misconfigured cron ? Thanks, Julien Thanks, Deng
Re: dependency:tree not working in maven 2.0.7
Hi, Thanks for the informative reply. It leaves me wondering though why functionality that is not currently available via the standard maven install is listed in the plugin documentation? Thanks, Bryan Wayne Fay wrote: Assuming the plugin has been released, you have two options: 1. Specify the plugin version in your pom. 2. Use the full name of the plugin on the command line: mvn groupId:artifactId:version:goal eg mvn org.apache.maven.plugins:maven-dependency-plugin:2.0-alpha-5:tree Unfortunately, this plugin version is still in development, so this is not sufficient. You can see the latest versions here: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-dependency-plugin/ If you must use this new version, you will need to add the Apache snapshot repo to your pom or settings.xml, or pull the code from SVN and build/install it locally. Wayne On 11/27/07, bryan ward [EMAIL PROTECTED] wrote: I looked in my local repository and it currently has version 2.0-alpha-4 of the dependency plugin. Do you know how A) it chose to use 2.0-alpha-4 and B) how do I change it to use alpha-5 (or the latest available). Thanks! Bryan dennisl-2 wrote: You need at least version 2.0-alpha-5 of the dependency-plugin. The tree goal was introduced in that version as indicated here: http://maven.apache.org/plugins/maven-dependency-plugin/tree-mojo.html bryan ward wrote: Hi, I would like to run some of the dependency goals listed in the documentation http://maven.apache.org/plugins/maven-dependency-plugin/ however when I do, I get an error stating that the goal cannot be found? Does anyone know why this is? /cygdrive/c/hasdev/servicesImpl$ mvn -e dependency:tree + Error stacktraces are turned on. [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'dependency'. [INFO] [ERROR] BUILD FAILURE [INFO] [INFO] Required goal not found: dependency:tree [INFO] [INFO] Trace org.apache.maven.BuildFailureException: Required goal not found: dependency:tree at org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(DefaultLifecycleExe cutor.java:1538) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListByAggregationNeeds(Def aultLifecycleExecutor.java:386) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java :138) 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) [INFO] [INFO] Total time: 1 second [INFO] Finished at: Tue Nov 27 11:14:47 MST 2007 [INFO] Final Memory: 2M/4M [INFO] -- Dennis Lundberg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/dependency%3Atree-not-working-in-maven-2.0.7-tf4883555s177.html#a13979033 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/dependency%3Atree-not-working-in-maven-2.0.7-tf4883555s177.html#a13980965 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.8 Release
The Apache Maven team would like to announce the availability of Maven 2.0.8. We closed out 32 issues and no major issues upgrading are expected. There is one slight change to be aware of, the test-classes folder is now before the classes in the classpath to allow test resources to override runtime for testing purposes (http://jira.codehaus.org/browse/MNG-3118) You can find the binaries here: http://maven.apache.org/download.html You can find the release notes here: http://maven.apache.org/release-notes.html You can find the roadmap here: http://jira.codehaus.org/browse/MNG?report=com.atlassian.jira.plugin.system.project:roadmap-panel Thanks, The Apache Maven Team - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: dependency:tree not working in maven 2.0.7
On 11/27/07, bryan ward [EMAIL PROTECTED] wrote: Thanks for the informative reply. It leaves me wondering though why functionality that is not currently available via the standard maven install is listed in the plugin documentation? My fault. :) A while back I had the brilliant idea of publishing the latest-and-greatest plugin docs with new features clearly marked as Since X.X. It ended up causing too much confusion, so we switched back to only publishing docs for the latest release. The next time the dependency plugin is released, the docs for 2.0-alpha-5 will be published, and they will stay on the site until the next version is ready. (I can't do it from here, but someone could check out the tag for 2.0-alpha-4 and deploy the site... might need to update the parent pom locally to v10 to pick up recent changes.) -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven Usage on Enterprise Application
It only compiles classes you changed (and that's not unique to just maven). If you want to control which projects/modules 'to build or not to build' - you can define that in profiles. If you want to build only specific files in a project then probably your project isn't well organized (most likely too big and needs a split up). Besides you can always build only module you want. For getting started please refer to http://maven.apache.org/guides/getting-started/index.html On 11/27/07, nash4403 [EMAIL PROTECTED] wrote: That answers the environment and variable substitution part. But how would maven help me in building parts of the project. Say I want to build only a file in the subdirectory like make abc.java or make [which builds just the subdirectory and dependent jave files from the parent and grand parent root directories] This will help the DEV teams they dont need to run the complete build instead just build that changed class to test. Thanks for your response earlier regarding profiles and filter resource files. Siarhei Dudzin wrote: Did you look into filtering and profiles? http://maven.apache.org/guides/getting-started/index.html#How_do_I_filter_resource_files http://maven.apache.org/guides/introduction/introduction-to-profiles.html Regards, Siahrei On Nov 27, 2007 11:04 PM, nash4403 [EMAIL PROTECTED] wrote: Our problems 1. Multi environment like DEV,QA, STAGING and PROD.A Perl script will take two parameters .One for environment and other for application and produce the configuration XML file. 2.We use GNU M4 for variable substitution to substitute variables from configuration XML file to substitute dynamic variables in tomcat/conf or httpd/conf files.How do I do this in Maven and eliminate M4 for variable substitution? 3.We use GNU Make to build and deploy.4. There are makefiles in each subdirectory thus helping us build that subdirectory or build a java file in that subdirectory like Make abc.java or say make on that directory, This gives us flexibility to make only that subdirectory .We did provide intelligence to that make process to compile the classes in that subdirectory and also compile only the depenedent classes if any from the root source. How can Maven help us here to eliminate MAKE all together? Our environment consists of PERL,cvs,ANT,GNU MAKE,GNU M4. Gurus please post your proposed solutions of using Maven? -- View this message in context: http://www.nabble.com/Maven-Usage-on-Enterprise-Application-tf4884771s177.html#a13980963 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Maven-Usage-on-Enterprise-Application-tf4884771s177.html#a13981495 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[ANN] Maven Help Plugin 2.0.2 Released
The Maven team is pleased to announce the release of Maven Help Plugin, version 2.0.2. http://maven.apache.org/plugins/maven-help-plugin/ Release Notes - Maven 2.x Help Plugin - Version 2.0.2 ** Bug * [MPH-16] - help:active-profiles doesn't include profiles derived from the parent pom. * [MPH-21] - Help;effective-pom: don't aggregrate when called from lifecycle * [MPH-25] - Simplify Help Plugin - Add medium describe flag ** Improvement * [MPH-18] - Plugin site out of date? Enjoy! - The Maven Team - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with MANIFEST.MF in maven-jar-plugin
On 28/11/2007, Wayne Fay [EMAIL PROTECTED] wrote: What do you mean my jar does not work out? How does it break? Please review the JAR spec -- I am reasonably certain the Maven-produced manifest.mf is correct: http://java.sun.com/j2se/1.5.0/docs/guide/jar/jar.html#Notes%20on%20Manifest%20and%20Signature%20Files Line length: No line may be longer than 72 bytes (not characters), in its UTF8-encoded form. If a value would make the initial line longer than this, it should be continued on extra lines (each starting with a single SPACE). that's correct - you'll see the same effect when using plain old jar: jar cfm foo.jar src/main/resources/META-INF/MANIFEST.MF jar xf foo.jar and META-INF/MANIFEST.MF will be formatted with the 72 char limit as Wayne said, could you explain more about does not work out? do you see any exceptions / errors when using your jar? are those jarfiles listed in Class-Path, in the same directory as your jar. note Class-Path does not allow you to refer to embedded jars, see: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4648386 for the (long-running!) saga... Wayne On 11/27/07, helio [EMAIL PROTECTED] wrote: Hi, I am using maven-jar-plugin on maven 2.0.7. I added this in my pom.xml: build plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-jar-plugin/artifactId configuration archive manifestFilesrc/main/resources/META-INF/MANIFEST.MF/manifestFile /archive /configuration /plugin /plugins /build In src/main/resources/META-INF/MANIFEST.MF I have: Manifest-Version: 1.0 Class-Path: activation.jar commons-logging.jar getopt.jar javassist.jar jaxb-api.jar jaxb-impl.jar jbossall-client.jar jboss-ejb3x.jar jboss-j2ee.jar jboss-jaxrpc.jar jboss-jaxws.jar jboss-saaj.jar jbossws-client.jar jbossws-spi.jar jboss-xml-binding.jar jtds-1.2.jar log4j.jar mail.jar mysql-connector-java-3.1.12-bin.jar policy.jar stax-api.jar wsdl4j.jar wstx.jar xercesImpl.jar Main-Class: com.Claudio But when I run mvn clean package, into jar´s MANIFEST.MF I got: Manifest-Version: 1.0 Archiver-Version: Plexus Archiver Created-By: Apache Maven Built-By: claudior Build-Jdk: 1.5.0_06 Main-Class: com.Claudio Class-Path: activation.jar commons-logging.jar getopt.jar javassist.ja r jaxb-api.jar jaxb-impl.jar jbossall-client.jar jboss-ejb3x.jar jbos s-j2ee.jar jboss-jaxrpc.jar jboss-jaxws.jar jboss-saaj.jar jbossws-cl ient.jar jbossws-spi.jar jboss-xml-binding.jar jtds-1.2.jar log4j.jar mail.jar mysql-connector-java-3.1.12-bin.jar policy.jar stax-api.jar wsdl4j.jar wstx.jar xercesImpl.jar The plugin maven-jar-plugin adds breaklines in Class-Path and my jar does not work out!!! Please, help me. Helio - 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] -- Cheers, Stuart
deploy:deploy-file with URL just http://
I found in wagon doc. that it does not support deployment for HTTP (and HTTP lightweight). It makes sense with URL like dav:http://;, file:// or scpexe: with explicit protocol. What happen if it is just plain http://;? Which protocol will be used between maven and the remote repository? I have Proximity to host the remote repostoritory, I found that I can do both: mvn -deploy:deploy-file -DrepositoryId= -Durl=http://.. and mvn -deploy:deploy-file -DrepositoryId= -Durl=dav:http://.. I just not sure why both of them work? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Maven-Scm Plugin with CVS: Wrong password exception
I am trying to use maven scm plugin to checkout some files from CVS but I always get a Wrong Password exception. Here is what I am tying: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-scm-plugin/artifactId version1.0/version executions execution idcheckout/id phasepackage/phase goals goalcheckout/goal /goals configuration connectionUrlscm:cvs:pserver:[EMAIL PROTECTED]:/home/cvs/idev:module/connectionUrl passwordabc123/password /configuration /execution /executions /plugin I am sure that password is correct but what can be wrong then? Regards, Usman
performance unit testing with maven 2
We are trying to find out which are the best ways for us to create performance unit tests directly to our already existing test cases. Have anyone have a good way to do that (we are looking at junitperf performance unit testing framework) but we are not sure how to integrate with maven pom.xml so that we can just run mvn test? Thanks dev