Re: Contimuum 1.1 with MySQL 5.0
Thank you! I also needed to change the 'users' database to the latin1 charset. It seems it's working fine now. Cheers, Ingo ossi petz schrieb: Hallo i have a very similar issue (etch mysql 5.0.32): 2007-12-04 17:09:50,777 [main] ERROR JPOX.RDBMS - Error thrown executing CREATE TABLE `SECURITY_OPERATIONS` ( `NAME` VARCHAR(256) BINARY NOT NULL, `DESCRIPTION` VARCHAR(256) BINARY NULL, `PERMANENT` BIT NOT NULL, `RESOURCE_REQUIRED` BIT NOT NULL, PRIMARY KEY (`NAME`) ) ENGINE=INNODB : Specified key was too long; max key length is 765 bytes com.mysql.jdbc.exceptions.MySQLSyntaxErrorException: Specified key was too long; max key length is 765 bytes in the jpox forums are quite some posts on this. it seems to be some 256 255 issue in JDO specs as mysql is a little strict in lengths. the workaround i found working is change the charset of the database from utf-8 to latin1_general_ci ALTER DATABASE `mvn_continuum` DEFAULT CHARACTER SET latin1 COLLATE latin1_general_ci hope this helps :) regards ossi Ingo Siebert schrieb: Hi Damien, i'm using MySQL 5.0.32. It's coming as a stable Debian package. I tried the other driver com.mysql.jdbc.Driver, but it doesn't change anything. Maybe someone can look into my attached logfile to find a solution. Any other idea? I think VAHCHAR(256) isn't more than 756 Bytes. Ingo Damien Lecan schrieb: Hello, i'm trying to use MySQL instead of Derby, because it is already available at the server. I used this tutorial, but i use this JDBC driver: rg.gjt.mm.mysql.Driver http://docs.codehaus.org/display/CONTINUUMUSER/Continuum+on+MySQL ... Does someone use the current continuum version with MySQL 5.0? Yes, it works fine with Mysql 5.0.45. But class name for the official MySQL Connector/J driver is com.mysql.jdbc.Driver. Is there any workaround? Try com.mysql.jdbc.Driver driver ? Damien Lecan
Scheduler bug, Continuum 1.1 (MySQL)
Hi, i ceated my own work time scheduler. 0 0/30 8-18 * * 1-5 But he doesn't accept the 1-5 value. It's the same with MON-FRI. Continuum says invalid cron expression. Is the day of week value working for someone? Ingo -- CRM Products Development - EIM CAS Software AG Well informed. Always and everywhere. www.cas.de CAS Software AG - Wilhelm-Schickard-Straße 10-12 - 76131 Karlsruhe - Telefon +49 721 9638-0 - www.cas.de - Impressum und AGB Vorstand: Martin Hubschneider (Vorsitz) - Ludwig Neer - Frank Widmayer Aufsichtsrat: Dr. Dr. Jörg Maurer (Vorsitz) - Prof. Dr. Peter Lockemann - Dr. habil. Karl Schlagenhauf Amtsgericht Mannheim - Handelsregister-Nr.: HRB 108751 - UID Nr.: DE143593148
Re: Directory naming in working-directory
Hi, I am facing a problem with checking out because of the numbers being used for the checked out directories One of my sub project ( Eclipse Plug In project) is getting checked out in completely. Not sure whether this is the reason, but developer told me to have the original directory name as is on the CVS, he claimed the problem to be because of that. I did not believe him at first, but to my surprise the problem got resolved when I checked out the project again in a separate directory(outside continuum) using CVS client installed on windows. According to him some source files were not getting checked out because at the original name of the Root directory wasn't there. Is there no overriding possible? Regards, Hemant Malik On Dec 13, 2007 1:18 AM, Emmanuel Venisse [EMAIL PROTECTED] wrote: numbers are project IDs. We don't use the origin name because with it, it won't be easy to work with branches if you want to work/build more than one branch. Actually, it isn't possible to use an other strategy. Why is it a problem for you? Emmanuel Ritz, Martin a écrit : Hi Continuum Users, i've a problem with the continuum 1.1. The import and build of my projects works. But one thing I can't get: why takes Continuum not the origin name of the directory to checkout (SVN) and build in the working directory. In my case Continuum takes numbers for the name of the directories. To navigate in these cryptical directories is very confussing. Is there a possibility to take the directories as they are? THX --- kindly regards Martin Ritz BTC AG - Unit Softwaredevelopment mailto:[EMAIL PROTECTED]
Re: Upgrade from Continuum 1.0.3 to 1.1
Hi, I'm trying to upgrade from 1.0.3 to 1.1, but without success. The environnement is : Maven 2.0.7 Mysql Ver 14.7 Distrib 4.1.11, for pc-linux-gnu (i386) I launch the upgrade tools with the following command: java -Xmx512m -jar data-management-cli-1.1-beta-4-app.jar -buildsJdbcUrl jdbc:mysql://localhost:3307/continuum -databaseFormat CONTINUUM_103 -databaseType OTHER -driverClass com.mysql.jdbc.Driver -groupId mysql -artifactId mysql-connector-java -artifactVersion 3.1.12 -username sa -password password -mode EXPORT -directory /opt/lutece/continuum_backups I get the following exception: ERROR : Exception in thread main org.codehaus.plexus.component.repository.exception.ComponentLookupException: Unable to lookup component ' org.apache.maven.continuum.management.DataManagementTool', it could not be created at org.codehaus.plexus.DefaultComponentLookupManager.lookup( DefaultComponentLookupManager.java:151) at org.codehaus.plexus.DefaultPlexusContainer.lookup( DefaultPlexusContainer.java:333) at org.apache.maven.continuum.management.DataManagementCli.processDatabase( DataManagementCli.java:245) at org.apache.maven.continuum.management.DataManagementCli.main( DataManagementCli.java:158) Caused by: org.codehaus.plexus.component.factory.ComponentInstantiationException: Could not instantiate component: role: ' org.apache.maven.continuum.management.DataManagementTool', implementation: ' org.apache.maven.continuum.management.LegacyJdoDataManagementTool', role hint: 'legacy-continuum-jdo' realm: app at org.codehaus.plexus.component.factory.java.JavaComponentFactory.makeException (JavaComponentFactory.java:113) at org.codehaus.plexus.component.factory.java.JavaComponentFactory.newInstance( JavaComponentFactory.java:87) at org.codehaus.plexus.component.manager.AbstractComponentManager.createComponentInstance (AbstractComponentManager.java:239) at org.codehaus.plexus.component.manager.AbstractComponentManager.createComponentInstance (AbstractComponentManager.java:128) at org.codehaus.plexus.component.manager.ClassicSingletonComponentManager.getComponent (ClassicSingletonComponentManager.java:90) at org.codehaus.plexus.DefaultComponentLookupManager.lookup( DefaultComponentLookupManager.java:147) ... 3 more Caused by: java.lang.NoClassDefFoundError: org/apache/maven/continuum/store/ContinuumStoreException at java.lang.Class.getDeclaredConstructors0(Native Method) at java.lang.Class.privateGetDeclaredConstructors(Class.java:2357) at java.lang.Class.getConstructor0(Class.java:2671) at java.lang.Class.newInstance0(Class.java:321) at java.lang.Class.newInstance(Class.java:303) at org.codehaus.plexus.component.factory.java.JavaComponentFactory.newInstance( JavaComponentFactory.java:66) ... 7 more When I launch with data-management-cli-1.1-app.jar, the exception is shorter: Exception in thread main java.lang.NullPointerException at org.apache.maven.continuum.management.DataManagementCli.downloadArtifact( DataManagementCli.java:364) at org.apache.maven.continuum.management.DataManagementCli.processDatabase( DataManagementCli.java:198) at org.apache.maven.continuum.management.DataManagementCli.main( DataManagementCli.java:170) Could someone help me? -- Géraud
AW: AW: Wrong build status in Project Group Summary
I searched in JIRA but I could not find a entry that describes the problem. Here you can see a snippet from the logs: 276440818 [pool-1-thread-1] WARN org.apache.maven.continuum.scm.ContinuumScm:default - Provider message: The cvs command failed. 276440850 [pool-1-thread-1] INFO org.apache.maven.continuum.buildcontroller.BuildController:default - Merging SCM results 276440896 [Thread-6] ERROR org.codehaus.plexus.taskqueue.execution.TaskQueueExecutor:build-project - Error executing task edu.emory.mathcs.backport.java.util.concurrent.ExecutionException: javax.jdo.JDOFatalUserException: Attempt to store value cvs server: src/...CheckBox.java is no longer in the repository cvs server: src/...ResearchConstants.java is no longer in the repository cvs update: move away src/...Model.java; it is in the way . . [snip] . cvs server: src...Researcj.java is no longer in the repository cvs server: src/...Something.java is no longer in the repository in column COMMAND_OUTPUT that has maximum length of 1024. Please correct your data! at edu.emory.mathcs.backport.java.util.concurrent.FutureTask.getResult(FutureTask.java:299) at edu.emory.mathcs.backport.java.util.concurrent.FutureTask.get(FutureTask.java:118) at org.codehaus.plexus.taskqueue.execution.ThreadedTaskQueueExecutor$ExecutorRunnable.waitForTask(ThreadedTaskQueueExecutor.java:159) at org.codehaus.plexus.taskqueue.execution.ThreadedTaskQueueExecutor$ExecutorRunnable.run(ThreadedTaskQueueExecutor.java:127) Caused by: javax.jdo.JDOFatalUserException: Attempt to store value cvs server: src/...Box.java is no longer in the repository cvs server: src...Constants.java is no longer in the repository . . [snip] . cvs update: move away src/...Panel.java; it is in the way in column COMMAND_OUTPUT that has maximum length of 1024. Please correct your data! at org.jpox.store.rdbms.mapping.CharRDBMSMapping.setString(CharRDBMSMapping.java:214) at org.jpox.store.mapping.SingleFieldMapping.setString(SingleFieldMapping.java:203) at org.jpox.store.rdbms.fieldmanager.ParameterSetter.storeStringField(ParameterSetter.java:122) at org.jpox.state.StateManagerImpl.providedStringField(StateManagerImpl.java:2757) at org.apache.maven.continuum.model.scm.ScmResult.jdoProvideField(ScmResult.java) at org.apache.maven.continuum.model.scm.ScmResult.jdoProvideFields(ScmResult.java) at org.jpox.state.StateManagerImpl.provideFields(StateManagerImpl.java:3115) at org.jpox.store.rdbms.request.InsertRequest.execute(InsertRequest.java:252) at org.jpox.store.rdbms.table.ClassTable.insert(ClassTable.java:2519) at org.jpox.store.StoreManager.insert(StoreManager.java:920) at org.jpox.state.StateManagerImpl.internalMakePersistent(StateManagerImpl.java:3667) at org.jpox.state.StateManagerImpl.makePersistent(StateManagerImpl.java:3646) at org.jpox.AbstractPersistenceManager.internalMakePersistent(AbstractPersistenceManager.java:1198) at org.jpox.AbstractPersistenceManager.makePersistentInternal(AbstractPersistenceManager.java:1243) at org.jpox.store.mapping.PersistenceCapableMapping.setObject(PersistenceCapableMapping.java:450) at org.jpox.store.rdbms.fieldmanager.ParameterSetter.storeObjectField(ParameterSetter.java:144) at org.jpox.state.StateManagerImpl.providedObjectField(StateManagerImpl.java:2771) at org.apache.maven.continuum.model.project.BuildResult.jdoProvideField(BuildResult.java) at org.apache.maven.continuum.model.project.BuildResult.jdoProvideFields(BuildResult.java) at org.jpox.state.StateManagerImpl.provideFields(StateManagerImpl.java:3115) at org.jpox.store.rdbms.request.InsertRequest.execute(InsertRequest.java:252) at org.jpox.store.rdbms.table.ClassTable.insert(ClassTable.java:2519) at org.jpox.store.StoreManager.insert(StoreManager.java:920) at org.jpox.state.StateManagerImpl.internalMakePersistent(StateManagerImpl.java:3667) at org.jpox.state.StateManagerImpl.makePersistent(StateManagerImpl.java:3646) at org.jpox.AbstractPersistenceManager.internalMakePersistent(AbstractPersistenceManager.java:1198) at org.jpox.AbstractPersistenceManager.makePersistent(AbstractPersistenceManager.java:1261) at org.codehaus.plexus.jdo.PlexusJdoUtils.makePersistent(PlexusJdoUtils.java:175) at org.apache.maven.continuum.store.JdoContinuumStore.makePersistent(JdoContinuumStore.java:1000) at org.apache.maven.continuum.store.JdoContinuumStore.addBuildResult(JdoContinuumStore.java:438) at org.apache.maven.continuum.buildcontroller.DefaultBuildController.makeAndStoreBuildResult(DefaultBuildController.java:715) at org.apache.maven.continuum.buildcontroller.DefaultBuildController.checkScmResult(DefaultBuildController.java:821) at
Re: Creating new user in Continuum 1.1I
Hi, On Dec 7, 2007 1:15 AM, L. J. [EMAIL PROTECTED] wrote: Hi, Just want to see if anyone else having this problem. I can only create admin user during the initial installation. After that, whatever the users I created, it says that either the username or password is incorrect while trying to log in. I have the same problem with Continuum 1.1 release... For now I empowered Guest user with all the rights necessary to trigger builds etc. -- Yours, oleg
Re: Problem with surefire-reports in Continuum 1.1 final
If you cd to C:\continuum\work\6 and launch mvn clean install. What's happened ? Because as I see in the stack Trace it looks to be more an issue with surefire. Thanks, -- Olivier 2007/12/13, Diego [EMAIL PROTECTED]: Hi Oliver ... It means :The system could not found the specified path tks olivier lamy escreveu: Hi, What does it mean in english : Caused by: java.io.IOException: O sistema natilde;o pode encontrar o caminho especificado ? :-) Thanks, -- Olivier 2007/12/13, Diego [EMAIL PROTECTED]: Hi, I am using Continuum 1.1 final, Maven 2.0.7, Java 1.5.0_06 and WindowsXP I added a M2 project in Continuum, but in result of build I got: + Error stacktraces are turned on. [INFO] Scanning for projects... [INFO] [INFO] Building Sincronismo [INFO]task-segment: [clean, install] [INFO] [INFO] [clean:clean] [INFO] Deleting directory C:\continuum\work\6\target [INFO] [resources:resources] [INFO] Using default encoding to copy filtered resources. [INFO] [compiler:compile] [INFO] Compiling 8 source files to C:\continuum\work\6\target\classes [INFO] [resources:testResources] [INFO] Using default encoding to copy filtered resources. [INFO] [compiler:testCompile] [INFO] Compiling 1 source file to C:\continuum\work\6\target\test-classes [INFO] [surefire:test] [INFO] Surefire report directory: C:\continuum\work\6\target\surefire-reports [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Error creating properties files for forking; nested exception is java.io.IOException: O sistema natilde;o pode encontrar o caminho especificado [INFO] [INFO] Trace org.apache.maven.lifecycle.LifecycleExecutionException: Error creating properties files for forking; nested exception is java.io.IOException: O sistema natilde;o pode encontrar o caminho especificado at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals( DefaultLifecycleExecutor.java:564) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle (DefaultLifecycleExecutor.java:480) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal( DefaultLifecycleExecutor.java:459) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures (DefaultLifecycleExecutor.java:311) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments ( DefaultLifecycleExecutor.java:278) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute( DefaultLifecycleExecutor.java:143) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125) at org.apache.maven.cli.MavenCli.main(MavenCli.java:280) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke( NativeMethodAccessorImpl.java :39) at sun.reflect.DelegatingMethodAccessorImpl.invoke( DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java :430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) Caused by: org.apache.maven.plugin.MojoExecutionException: Error creating properties files for forking; nested exception is java.io.IOException: O sistema natilde;o pode encontrar o caminho especificado at org.apache.maven.plugin.surefire.SurefirePlugin.execute( SurefirePlugin.java:402) 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.surefire.booter.SurefireBooterForkException : Error creating properties files for forking; nested exception is java.io.IOException: O sistema natilde;o pode encontrar o caminho especificado at org.apache.maven.surefire.booter.SurefireBooter.fork( SurefireBooter.java :519) at org.apache.maven.surefire.booter.SurefireBooter.forkSuites( SurefireBooter.java:412) at org.apache.maven.surefire.booter.SurefireBooter.runSuitesForkOnce( SurefireBooter.java:312) at org.apache.maven.surefire.booter.SurefireBooter.run(SurefireBooter.java :202) at org.apache.maven.plugin.surefire.SurefirePlugin.execute( SurefirePlugin.java:398) ... 18 more Caused by: java.io.IOException: O
Re: Creating new user in Continuum 1.1I
On Thu, 2007-12-13 at 13:47 +0300, Oleg Alexeyev wrote: Hi, On Dec 7, 2007 1:15 AM, L. J. [EMAIL PROTECTED] wrote: Hi, Just want to see if anyone else having this problem. I can only create admin user during the initial installation. After that, whatever the users I created, it says that either the username or password is incorrect while trying to log in. I have the same problem with Continuum 1.1 release... For now I empowered Guest user with all the rights necessary to trigger builds etc. Hi, I have the same problem. I found that users have to be validated (by clicking on the link sent to them via email) before they can log in. There is a resend validation button for existing users. -Olivier
Re: setting compiler options for all modules
Define root/pom.xml as the parent for your sub poms. Jeff On 12/10/07, Kevin TierOne [EMAIL PROTECTED] wrote: Hello, I'm looking for a way to set compiler options for all of my modules. My application structure looks something like this. root/pom.xml root/app1/pom.xml root/app2/pom.xml root/app3/pom.xml I currently have the following text pasted in the pom files in each app directory. plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-compiler-plugin/artifactId configuration source1.5/source target1.5/target debugfalse/debug /configuration /plugin Is there a way to set the source, target, and debug parameters in a single place so they are not copied in all 3 pom files? Is it possible to define these parameters in the root/pom.xml? Thank you. Kevin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- La mélancolie c'est communiste Tout le monde y a droit de temps en temps La mélancolie n'est pas capitaliste C'est même gratuit pour les perdants La mélancolie c'est pacifiste On ne lui rentre jamais dedans La mélancolie oh tu sais ça existe Elle se prend même avec des gants La mélancolie c'est pour les syndicalistes Il faut juste sa carte de permanent Miossec (2006) http://www.jeffmaury.com http://riadiscuss.jeffmaury.com
maven-changelog-plugin 2.1 + SVN : generate changeslog between 'lastversion' and trunk
Hi, I'am using the maven-changelog-plugin v2.1 successfully with SVN. I use the default configuration and I got 3 reports : change log, dev activity, file activity. I 'am quite happy with that! Those reports use a timespan of 30 days by default. But I want to get the changes beetwen my current version and the last one! I mean betwwen x/trunk and ./tags/x.y.z In the FAQ (http://maven.apache.org/plugins/maven-changelog-plugin/examples/configuration-tag-type.html), the tag type is documented but is it just the tag name? Furthermore, tag type is not supported by SVN (!)... My first idea was to try to hack the system with something like , but I can't test it because SVN is not supported. configuration typetag/type tags tag implementation=java.lang.Stringx.y.z/tag tag implementation=java.lang.String../trunk/tag /tags /configuration ... I hope plugin developper is building url with ${tagurl}/(value of tag element) ... But even if this hack will work, when I use mvn release:prepare mvn release:perform, I will like to replace ../trunk by x.y.z+1 (my new tag created by release:prepare)... I have tried with version 2.2-SNAPSHOT, but SVN is still not supported by tag type. So my question is : what do you use to create a changelog of changes occured in the current version of your artefact? and how do you use that with the release plugin. (Note : I have an homemade issue management system not compatible with maven-changes-plugin...) May be I want to do sth that nobody needs? Thx. -- Julien Graglia - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: license-report
If i'm right, maven-remote-resources-plugin just allow to include some bundles in all generated ja : it can be used to include a LICENSE or NOTICE file. But I think that Andreas is looking for a plugin that will generate a License reports listing all licenses used in his project (dependencies) , and by who.. Then, he can use this report to create a LICENSE/NOTICE file and include it in hist generated jars... I 'am currently doing this by hand, but I'd love to find a plugin that will create such a report...! -- Julien Graglia olivier lamy a écrit : Hi, Have a look at the maven-remote-resources-plugin and how it's used for the maven build to License and Notice files. -- Olivier 2007/12/10, Hoehmann, Andreas [EMAIL PROTECTED]: Hello, i need a file (LICENSES.TXT) which contains all dependend modules with there licenses. Exists a plugin to generate such a license-report for my project? I use maven 2. Best regards Andreas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Julien Graglia [EMAIL PROTECTED] 04.92.57.12.12 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
distributionManagement - deployment to 3rd party and release repository
Hi, i am setting up our company repositories. I have made 3 repositories (3rd party repo, snapshots repo, releases repo) . I want to make it available to the users to deploy archives to all 3 repositories. How do i in my company.pom state this in the distributionmanagement, as it doesnt let me set 2 different repositories (3rd party and release): distributionManagement repository id3rdparty/id namearr repo/name url dav:http://linuxserver:8080/archiva/repository/3rdparty/ /url /repository snapshotRepository uniqueVersionfalse/uniqueVersion idsnapshots/id url dav:http://linuxserver:8080/archiva/repository/snapshots/ /url /snapshotRepository /distributionManagement /snapshotRepository /distributionManagement
Re: state of maven support for Google Web Toolkit ?
The plugin http://code.google.com/p/gwt-maven/ http://code.google.com/p/gwt-maven/is not developped but simply HOSTED by google code. The plugin at codehaus is currently in mojo sandbox. Maybe you could merge your code with this one to make it more efficient ? Providing support for the gwt shell would be a nice enhancement, and this plugin could be promoted out of the sandbox if more developers contribute to make it a Must-have plugin ! The goal of the Mojo project is to avoid many developers to work on there side on equivalent plugins. There may be reasons not to merge similar projects, but there also are many advantages to do, especially to be more attractive and get more good developers provide new features. Nico. 2007/12/13, Bob Allison [EMAIL PROTECTED]: I thought about doing that, but I wasn't sure about adding another plugin to do about the same thing. Should we just let Google maintain the plugin for their toolkit? Since there is already a gwt-maven-plugin in the Mojo sandbox and a maven-googlewebtoolkit-plugin at Google, do you have a suggestion as to what to call my version? - Original Message - From: nicolas de loof [EMAIL PROTECTED] To: Maven Users List users@maven.apache.org Sent: Wednesday, December 12, 2007 2:43 AM Subject: Re: state of maven support for Google Web Toolkit ? What about submitting your plugin to the Mojo project ? Nico. 2007/12/12, Bob Allison [EMAIL PROTECTED]: I have built a version that I use which supports both running the development shell from Maven and compiling as part of the normal build process. I think there are a least two other plugins in Codehaus. I haven't used the plugins at Codehaus because last time I looked they did not support the development shell. I had not seen the plugin produced by Google before, so I have not used it. One thing the Google plugin does that I don't is to build the template project (doesn't seem very useful to put a bunch of configuration in the POM for a one-time event). I use my plugin on an almost daily basis for development. If anyone is interested, I can probably post it somewhere for people to access. - Original Message - From: nicolas de loof [EMAIL PROTECTED] To: Maven Users List users@maven.apache.org Sent: Tuesday, December 11, 2007 8:49 AM Subject: state of maven support for Google Web Toolkit ? Thanks to google, I've found http://codehaus.org/~shinobu/gwt-maven-plugin/and http://code.google.com/p/gwt-maven/ What is the status of supporting GWT compiler in maven builds ? Nico. - 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: Re: [m2] Any suggestion to include pom root in eclipse workspace
what i do: check out multi project. check out sub projects as needed. that's all. -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Yann Albou Sent: Monday, December 03, 2007 11:07 PM To: users@maven.apache.org Subject: Re: [m2] Any suggestion to include pom root in eclipse workspace That will be very useful... What is the feature in Europa that allows to have recursive projects ? I couldn't find any information on it... Yann. Carlos Sanchez a écrit : In Q4E we are going to add that option in the next release so you see the parent pom as another project http://code.google.com/p/q4e/ On Dec 2, 2007 2:36 PM, Siarhei Dudzin [EMAIL PROTECTED] wrote: Eclipse Europa allows you to have recursive projects. Which means you can checkout the project with the parent poms and then simply import the sub-projects. Siarhei On 12/2/07, Nick Stolwijk [EMAIL PROTECTED] wrote: I'm on a Linux machine and simply created a symlink to the parent pom in one of the submodules. Then it showed up in Eclipse. Hth, Nick Stolwijk Yann Albou wrote: Hello; I use a multi module maven project. after generating the eclipse project and importing these project in an eclipse workspace I get all my projects in my worspace. Now I would to have a way to get access to the root pom.xml (parent pom of all my imported projects). Do you guys have any suggestion on how to acheive this in eclipse ? I have created a simple project in which I created a linked resource and it works. The only issue is that linked resources doesn't support relative path and doesn't support variables like ${project_loc}, So that means I need to reference an absolute path. And in my company we don't all use the same directory to store projects... Yann. --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - 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: Pre-release Testing Best Practices?
Eric, When I read your email I think it's more an issue for source code management and versioning, then that it should be for maven. If you start the process of releasing a module, you could create a branch for that version and then release some beta or milestones (M1, M2, M3, ., M10) from that branch and send it to QA. If QA approves a certain milestone, you could check it out and adjusted the version-number to remove the milestone identifier and release the actual version. Changes to mainline code should be performed on the trunk so they won't get in the way of you release and QA proces. Upon your release, you should merge the changes from the branch to the trunk and continue to work on the next release. With kind regards, Marco -Original Message- From: Eric Minick [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 12, 2007 11:25 PM To: users@maven.apache.org Subject: Pre-release Testing Best Practices? I'm looking at doing some releases using the maven release plugin. Our environment is a set of pretty typical in house development projects for some web-apps. So we have things like dev, qa and production environments for deployment and frequent releases. We don't want to cut a release before doing QA on it. So an ideal scenario is to put a snapshot build into QA, and get it approved. Once approved, we would want to release that code, verify that dependency changes didn't break things with regression tests, then move on to staging and production. A natural concern here is that there are likely more changes to the mainline code base that come in during testing and we would not want to release those. Getting the code that went into the tested build out of source control at release time is not a problem though. I have two questions: 1) Are there common \ recommended strategies for dealing with this type of scenerio? 2) If I just pull the old code out and run a release, is the SVN label (copy) command a local copy (which would only include the files in my release space) or a remote copy (which would include my newly checked in pom as well as any changes committed since we went to QA)? Thanks, Eric - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ** For information, services and offers, please visit our web site: http://www.klm.com. This e-mail and any attachment may contain confidential and privileged material intended for the addressee only. If you are not the addressee, you are notified that no part of the e-mail or any attachment may be disclosed, copied or distributed, and that any other action related to this e-mail or attachment is strictly prohibited, and may be unlawful. If you have received this e-mail by error, please notify the sender immediately by return e-mail, and delete this message. Koninklijke Luchtvaart Maatschappij NV (KLM), its subsidiaries and/or its employees shall not be liable for the incorrect or incomplete transmission of this e-mail or any attachments, nor responsible for any delay in receipt. Koninklijke Luchtvaart Maatschappij N.V. (also known as KLM Royal Dutch Airlines) is registered in Amstelveen, The Netherlands, with registered number 33014286 ** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] Any suggestion to include pom root in eclipse workspace
I myselft use this process : - check out with command line svn outside eclipse - run mvn eclipse:eclipse - in eclipse : right clic / import existing projects into workspace - create a new simple (non java) project at the project root Europa supports having multiple projects in workspace that overlap : my root project contains all sub-projects as folder. Nico. 2007/12/3, Yann Albou [EMAIL PROTECTED]: That will be very useful... What is the feature in Europa that allows to have recursive projects ? I couldn't find any information on it... Yann. Carlos Sanchez a écrit : In Q4E we are going to add that option in the next release so you see the parent pom as another project http://code.google.com/p/q4e/ On Dec 2, 2007 2:36 PM, Siarhei Dudzin [EMAIL PROTECTED] wrote: Eclipse Europa allows you to have recursive projects. Which means you can checkout the project with the parent poms and then simply import the sub-projects. Siarhei On 12/2/07, Nick Stolwijk [EMAIL PROTECTED] wrote: I'm on a Linux machine and simply created a symlink to the parent pom in one of the submodules. Then it showed up in Eclipse. Hth, Nick Stolwijk Yann Albou wrote: Hello; I use a multi module maven project. after generating the eclipse project and importing these project in an eclipse workspace I get all my projects in my worspace. Now I would to have a way to get access to the root pom.xml (parent pom of all my imported projects). Do you guys have any suggestion on how to acheive this in eclipse ? I have created a simple project in which I created a linked resource and it works. The only issue is that linked resources doesn't support relative path and doesn't support variables like ${project_loc}, So that means I need to reference an absolute path. And in my company we don't all use the same directory to store projects... Yann. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Access is denied when running mvn release:prepare (Help!)
or a virus scanner still holding his fingers on it! i disable all virus scanner threads during development. -Original Message- From: Heinrich Nirschl [mailto:[EMAIL PROTECTED] Sent: Monday, November 12, 2007 05:52 PM To: Maven Users List Subject: Re: Access is denied when running mvn release:prepare (Help!) On Nov 12, 2007 3:19 AM, dev dev [EMAIL PROTECTED] wrote: Here is the stack trace. [INFO] Executing goals 'clean verify'... [INFO] Executing: mvn clean verify --no-plugin-updates -P devel Access is denied. If this happened on Windows, there was maybe a file in the target directory opened by another application. In this case, the clean plugin cannot remove the target directory. - Henry - 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 + eclipse server adapter
Two things: 1. M2eclipse supports both versions of maven project dependencies * all in one big project with the modules as subfolders, in this case some of the functionalities of Eclipse do not work. Up to now I did not see any project like your packaging combination in this category. * all modules and the main project as separate Eclipse projects 2. Have a look at http://taylor.sourceforge.net/index.php/Overview as an example for your requirements. It runs with 3.3 Eclipse maybe it gives some additional info regards Holger Sachse Würth Phoenix S.r.l. Holger Sachse Via Kravogl 4 I-39100 Bolzano Direct:+39 0471 56 40 16 Mobile: +39 335 6 19 24 74 Fax: +39 0471 56 41 22 E-Mail: [EMAIL PROTECTED] Website: www.wuerth-phoenix.com -Original Message- From: cailie [mailto:[EMAIL PROTECTED] Sent: Thursday, December 13, 2007 02:16 To: users@maven.apache.org Subject: Re: maven + eclipse server adapter Good point I tried that and received the following: Unsupported WTP version: 2.0. This plugin currently supports only the following versions: 1.0 1.5 R7 none. I am using Eclipse Europa, so that includes WTP 2.0. So I tried to see if specifying 1.5 or R7 would work. It didn't it looked like it might work, but then deployment failed with a weird error: Could not publish to the server. index=0, size=0 There is no problem with my EAR file -- it deploys fine with the Glassfish asadmin tool. Arnaud HERITIER wrote: Did you generated your eclipse settings with the WTP option of the eclipse plugin ? It should activate the support required to deploy your artifacts in the application server Arnaud On Dec 12, 2007 6:37 PM, cailie [EMAIL PROTECTED] wrote: I have a multi-module POM project that packages three modules: EAR, EJB, and WAR. To deploy the EAR module, I use the codehaus exec-maven-plugin. Now, I would like to use the Glassfish V2 Java EE 5 server adapter for Eclipse and manage the deployment through the IDE. Not surprisingly, this is not as simple as it is for Eclipse-generated web projects -- I cannot right-click on the server under the Server view and add my multi-module project, nor any of its modules. They are not presented as choices in the Add and Remove Projects wizard. Ideally, I would like to configure my project using Maven so that it can be automatically run via the Eclipse server adapter. Anyone have ideas on this? * I have searched for related posts in this forum, but did not find anything. If you find something, please let me know. -- View this message in context: http://www.nabble.com/maven-%2B-eclipse-server-adapter-tp14300046s177p14300046.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- .. Arnaud HERITIER .. OCTO Technology - aheritier AT octo DOT com www.octo.com | blog.octo.com .. ASF - aheritier AT apache DOT org www.apache.org | maven.apache.org ... -- View this message in context: http://www.nabble.com/maven-%2B-eclipse-server-adapter-tp14300046s177p14307863.html 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: Scheduler bug, Continuum 1.1 (MySQL)
Ups. :) Thank you. Ingo Emmanuel Venisse schrieb: Yes, your cron expression is invalid :) It must be : 0 0/30 8-18 ? * MON-FRI The doc say this: Pay attention to the effects of '?' and '*' in the day-of-week and day-of-month fields! http://www.opensymphony.com/quartz/api/org/quartz/CronTrigger.html Emmanuel Hi, i ceated my own work time scheduler. 0 0/30 8-18 * * 1-5 But he doesn't accept the 1-5 value. It's the same with MON-FRI. Continuum says invalid cron expression. Is the day of week value working for someone? Ingo -- CRM Products Development - EIM CAS Software AG Well informed. Always and everywhere. www.cas.de CAS Software AG - Wilhelm-Schickard-Straße 10-12 - 76131 Karlsruhe - Telefon +49 721 9638-0 - www.cas.de - Impressum und AGB Vorstand: Martin Hubschneider (Vorsitz) - Ludwig Neer - Frank Widmayer Aufsichtsrat: Dr. Dr. Jörg Maurer (Vorsitz) - Prof. Dr. Peter Lockemann - Dr. habil. Karl Schlagenhauf Amtsgericht Mannheim - Handelsregister-Nr.: HRB 108751 - UID Nr.: DE143593148
[assembly] add all dependency jars to lib folder in a bin assembly
Hi all. I am trying to accomplish this task. My target is to create a compressed archive with the jar of my app and all the jars it depends upon in a subfolder called lib. I am trying to customize the standard bin descriptor so I have configuration descriptors descriptorsrc/assembly/bin.xml/descriptor /descriptors [.] and the bin.xml file is almost the same than the original. I just added a includelib/**/include to include some native libraries I keep in lib folder. But the point is that of course the jars are handled by maven so I expect there is some automatic way to put all them in a custom output folder. I am trying to understand how to do but I am failing. I think the solutions is somewhere here: http://maven.apache.org/plugins/maven-assembly-plugin/assembly.html#class_binaries but I Cannot figure out how... Here is the bin.xml, thanks for any help. assembly idbin/id formats formattar.gz/format /formats moduleSets moduleSet binaries includeDependenciestrue/includeDependencies outputDirectorylib/outputDirectory /binaries /moduleSet /moduleSets fileSets fileSet includes includeREADME*/include includeLICENSE*/include includeNOTICE*/include includelib/**/include /includes /fileSet fileSet directorytarget/directory outputDirectory/outputDirectory includes include*.jar/include /includes /fileSet /fileSets /assembly -- Daniele Dellafiore http://ildella.wordpress.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to deploy corporate-pom?
I just do it this way for the company pom (-DperformRelease=true) because it would be pain if the version number for the company pom has been increased and all other projects defining this one as parent has to be edited. When i edit and doing mvn clean deploy -DperformRelease=true -U -X for the company pom i can see that the local repository has got the change. This is good so far. But what is about the other developers still having the old company pom in their local repository (using the same version number)? brgds Dominique Boeckli -Original Message- From: Siegmann Daniel, NY [mailto:[EMAIL PROTECTED] Sent: Friday, November 09, 2007 10:30 PM To: Maven Users List Subject: RE: How to deploy corporate-pom? How do I package the corporate pom? Do I just upload it to archiva in a directory called corporate-pom with just the pom.xml file in there? No. This is a Maven project like any other. Just have the following in your POM: project packagingpom/packaging ... /project Then use the Maven deploy plugin (mvn deploy). Note that you should follow standard release procedure. i.e. if you are not releasing a snapshot you should set -DperformRelease=true and you should have this tagged in your version control system (or just use the release plugin). -- Daniel Siegmann FJA-US, Inc. 512 Seventh Ave., New York, NY 10018 (212) 840-2618 ext. 139 - 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 corporate-pom?
This is not good. The other developers won't get the change. And if other projects (and especially their tags) rely on this and you change it, you got not reproducible builds. Also not good. Just update the other versions when needed. It's the most clean thing to do. With regards, Nick Stolwijk -Original Message- From: Boeckli, Dominique [mailto:[EMAIL PROTECTED] Sent: Thu 12/13/2007 1:27 PM To: Maven Users List Subject: RE: How to deploy corporate-pom? I just do it this way for the company pom (-DperformRelease=true) because it would be pain if the version number for the company pom has been increased and all other projects defining this one as parent has to be edited. When i edit and doing mvn clean deploy -DperformRelease=true -U -X for the company pom i can see that the local repository has got the change. This is good so far. But what is about the other developers still having the old company pom in their local repository (using the same version number)? brgds Dominique Boeckli -Original Message- From: Siegmann Daniel, NY [mailto:[EMAIL PROTECTED] Sent: Friday, November 09, 2007 10:30 PM To: Maven Users List Subject: RE: How to deploy corporate-pom? How do I package the corporate pom? Do I just upload it to archiva in a directory called corporate-pom with just the pom.xml file in there? No. This is a Maven project like any other. Just have the following in your POM: project packagingpom/packaging ... /project Then use the Maven deploy plugin (mvn deploy). Note that you should follow standard release procedure. i.e. if you are not releasing a snapshot you should set -DperformRelease=true and you should have this tagged in your version control system (or just use the release plugin). -- Daniel Siegmann FJA-US, Inc. 512 Seventh Ave., New York, NY 10018 (212) 840-2618 ext. 139 - 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]
Coverage report of web application integration test with cobertura-maven-plugin
I want to produce a coverage report for the integration test phase of a web application (war packaging). My integration tests are run by the Cargo maven plugin launching JBoss 4.0.5. I've been using the 2.0 version of the cobertura-maven-plugin (and will try the upgrade to 2.2). I have a modular project with core and web modules. I get the expected coverage reports for my core module, but zero coverage for the web module. The instrumented classes are not packaged into the war, for one. According to the Cobertura FAQ, this sort of coverage testing can be done. http://cobertura.sourceforge.net/faq.html Has anyone done this? Any advice would be appreciated! Also, it would be great if integration test coverage could be documented here, too: http://mojo.codehaus.org/cobertura-maven-plugin/usage.html Thanks, Richard Brewster Senior Associate Perrin Quarles Associates [EMAIL PROTECTED] (434) 817-2640 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: distributionManagement - deployment to 3rd party and release repository
On Dec 13, 2007 2:31 AM, Shazia Bashir [EMAIL PROTECTED] wrote: i am setting up our company repositories. I have made 3 repositories (3rd party repo, snapshots repo, releases repo) . I want to make it available to the users to deploy archives to all 3 repositories. To make the repositories available, give the users the 'repository manager' role, and have them add credentials to settings.xml How do i in my company.pom state this in the distributionmanagement, as it doesnt let me set 2 different repositories (3rd party and release): Maven only allows one distributionManagement repository (and snapshotRepository) per project. If you put the default one in your parent pom, child projects are free to override it if they wish to deploy somewhere else. If that's not what you needed to know, please explain more about the problem you're trying to solve. -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Coverage report of web application integration test with cobertura-maven-plugin
Richard, I have the same problem and I think this is not feasible with the current design of the Cobertura Maven2 plugin design as it is today. It does only address the test phase and not the integration-test phase. I plan to work on another Cobertura plugin (inspired from the philosophy of the Clover plugin) that address this issue. Jeff On Dec 13, 2007 3:29 PM, Brewster, Richard [EMAIL PROTECTED] wrote: I want to produce a coverage report for the integration test phase of a web application (war packaging). My integration tests are run by the Cargo maven plugin launching JBoss 4.0.5. I've been using the 2.0 version of the cobertura-maven-plugin (and will try the upgrade to 2.2). I have a modular project with core and web modules. I get the expected coverage reports for my core module, but zero coverage for the web module. The instrumented classes are not packaged into the war, for one. According to the Cobertura FAQ, this sort of coverage testing can be done. http://cobertura.sourceforge.net/faq.html Has anyone done this? Any advice would be appreciated! Also, it would be great if integration test coverage could be documented here, too: http://mojo.codehaus.org/cobertura-maven-plugin/usage.html Thanks, Richard Brewster Senior Associate Perrin Quarles Associates [EMAIL PROTECTED] (434) 817-2640 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- La mélancolie c'est communiste Tout le monde y a droit de temps en temps La mélancolie n'est pas capitaliste C'est même gratuit pour les perdants La mélancolie c'est pacifiste On ne lui rentre jamais dedans La mélancolie oh tu sais ça existe Elle se prend même avec des gants La mélancolie c'est pour les syndicalistes Il faut juste sa carte de permanent Miossec (2006) http://www.jeffmaury.com http://riadiscuss.jeffmaury.com
Re: Coverage report of web application integration test with cobertura-maven-plugin
I would prefer extending the current one. Jeff On Dec 13, 2007 4:26 PM, Arnaud HERITIER [EMAIL PROTECTED] wrote: another cobertura plugin or an extension of the current one ? otherwise you have my +1 to have the possibility to include integration tests in reports Arnaud On Dec 13, 2007 3:58 PM, Jeff MAURY [EMAIL PROTECTED] wrote: Richard, I have the same problem and I think this is not feasible with the current design of the Cobertura Maven2 plugin design as it is today. It does only address the test phase and not the integration-test phase. I plan to work on another Cobertura plugin (inspired from the philosophy of the Clover plugin) that address this issue. Jeff On Dec 13, 2007 3:29 PM, Brewster, Richard [EMAIL PROTECTED] wrote: I want to produce a coverage report for the integration test phase of a web application (war packaging). My integration tests are run by the Cargo maven plugin launching JBoss 4.0.5. I've been using the 2.0 version of the cobertura-maven-plugin (and will try the upgrade to 2.2 ). I have a modular project with core and web modules. I get the expected coverage reports for my core module, but zero coverage for the web module. The instrumented classes are not packaged into the war, for one. According to the Cobertura FAQ, this sort of coverage testing can be done. http://cobertura.sourceforge.net/faq.html Has anyone done this? Any advice would be appreciated! Also, it would be great if integration test coverage could be documented here, too: http://mojo.codehaus.org/cobertura-maven-plugin/usage.html Thanks, Richard Brewster Senior Associate Perrin Quarles Associates [EMAIL PROTECTED] (434) 817-2640 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- La mélancolie c'est communiste Tout le monde y a droit de temps en temps La mélancolie n'est pas capitaliste C'est même gratuit pour les perdants La mélancolie c'est pacifiste On ne lui rentre jamais dedans La mélancolie oh tu sais ça existe Elle se prend même avec des gants La mélancolie c'est pour les syndicalistes Il faut juste sa carte de permanent Miossec (2006) http://www.jeffmaury.com http://riadiscuss.jeffmaury.com -- .. Arnaud HERITIER .. OCTO Technology - aheritier AT octo DOT com www.octo.com | blog.octo.com .. ASF - aheritier AT apache DOT org www.apache.org | maven.apache.org ... -- La mélancolie c'est communiste Tout le monde y a droit de temps en temps La mélancolie n'est pas capitaliste C'est même gratuit pour les perdants La mélancolie c'est pacifiste On ne lui rentre jamais dedans La mélancolie oh tu sais ça existe Elle se prend même avec des gants La mélancolie c'est pour les syndicalistes Il faut juste sa carte de permanent Miossec (2006) http://www.jeffmaury.com http://riadiscuss.jeffmaury.com
Re: Coverage report of web application integration test with cobertura-maven-plugin
another cobertura plugin or an extension of the current one ? otherwise you have my +1 to have the possibility to include integration tests in reports Arnaud On Dec 13, 2007 3:58 PM, Jeff MAURY [EMAIL PROTECTED] wrote: Richard, I have the same problem and I think this is not feasible with the current design of the Cobertura Maven2 plugin design as it is today. It does only address the test phase and not the integration-test phase. I plan to work on another Cobertura plugin (inspired from the philosophy of the Clover plugin) that address this issue. Jeff On Dec 13, 2007 3:29 PM, Brewster, Richard [EMAIL PROTECTED] wrote: I want to produce a coverage report for the integration test phase of a web application (war packaging). My integration tests are run by the Cargo maven plugin launching JBoss 4.0.5. I've been using the 2.0 version of the cobertura-maven-plugin (and will try the upgrade to 2.2). I have a modular project with core and web modules. I get the expected coverage reports for my core module, but zero coverage for the web module. The instrumented classes are not packaged into the war, for one. According to the Cobertura FAQ, this sort of coverage testing can be done. http://cobertura.sourceforge.net/faq.html Has anyone done this? Any advice would be appreciated! Also, it would be great if integration test coverage could be documented here, too: http://mojo.codehaus.org/cobertura-maven-plugin/usage.html Thanks, Richard Brewster Senior Associate Perrin Quarles Associates [EMAIL PROTECTED] (434) 817-2640 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- La mélancolie c'est communiste Tout le monde y a droit de temps en temps La mélancolie n'est pas capitaliste C'est même gratuit pour les perdants La mélancolie c'est pacifiste On ne lui rentre jamais dedans La mélancolie oh tu sais ça existe Elle se prend même avec des gants La mélancolie c'est pour les syndicalistes Il faut juste sa carte de permanent Miossec (2006) http://www.jeffmaury.com http://riadiscuss.jeffmaury.com -- .. Arnaud HERITIER .. OCTO Technology - aheritier AT octo DOT com www.octo.com | blog.octo.com .. ASF - aheritier AT apache DOT org www.apache.org | maven.apache.org ...
Custom lifecycle and pomless plugin issue
Hello, I want to do some complex operations as part of the production build of a system, and I am trying to embed these operations in maven. What I did boils down to the following: - create 3 mojos: mount, umount and launch - mount and umount does some magic before and after build with SCM - launch does the real build using maven-verifier (1.0, I cannot find 1.1) to start a build on a mounted project - the 3 mojos are declared @requiresProject false - create a custom lifecycle that binds the three mojos to validate, generate-sources and deploy phases - create a fourth mojo (also not requiring project) that forks this custom lifecycle. What happens is that the first 2 mojos get executed, the verifier launches correctly the build (which is succesful) and the last goal gets dropped. It seems that the inferior maven stop the jvm. Thanks in advance, Arnaud Bailly -- View this message in context: http://www.nabble.com/Custom-lifecycle-and-pomless-plugin-issue-tp14318097s177p14318097.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
own plugin without need for pom.xml
Hello, I want to write my own deploy-plugin, which takes a directory and deploys all contained jars. In this scenario, I don't need a pom.xml like for mvn deploy:deploy-file But if I use my own plugin, maven shows me the error: [INFO] Cannot execute mojo: bundlesdeploy. It requires a project with an existing pom.xml, but the build is not using one. How can I avoid this error? regards, Peter -- View this message in context: http://www.nabble.com/own-plugin-without-need-for-pom.xml-tp14318109s177p14318109.html 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: Error 500 accessing snapshots in repository
Hello, We use Archiva 1.0. I have to restart it every one or two days; if not, archiva becomes unstable : * main page and admin section are accessible and work fine, * archiva/browse/ function is dead : Proxy Error The proxy server received an invalid response from an upstream server. The proxy server could not handle the request /GET /archiva/browse http://archiva.nuxeo.org/archiva/browse/. Reason: *Error reading from remote server* * artifact resolution is very slow, sometimes down. Restarting archiva immediately solves the problem. I don't see explicit logs about this, all I can find in archiva.log is some warnings (not raised when clicking on browse button) like those : |29910993 [SocketListener0-7] WARN org.apache.maven.archiva.web.tags.DependencyTree:default - Unable to generate graph for [org.nuxeo.ecm.platform:nuxeo-platform-events-core:5.1.3-20071121.011030-30] : Unable to create ArchivaArtifact with empty version [org.nuxeo.common:nuxeo-common:null::pom] org.apache.maven.archiva.dependency.graph.GraphTaskException: Unable to create ArchivaArtifact with empty version [org.nuxeo.common:nuxeo-common:null::pom] at org.apache.maven.archiva.dependency.DependencyGraphFactory.getGraph(DependencyGraphFactory.java:151) at org.apache.maven.archiva.web.tags.DependencyTree.fetchGraph(DependencyTree.java:245) at org.apache.maven.archiva.web.tags.DependencyTree.gatherTreeList(DependencyTree.java:144) at org.apache.maven.archiva.web.tags.DependencyTreeTag.doStartTag(DependencyTreeTag.java:134) at org.apache.jsp.WEB_002dINF.jsp.artifact.dependencyTree_jsp._jspx_meth_archiva_dependency$1tree_0(dependencyTree_jsp.java:93) at org.apache.jsp.WEB_002dINF.jsp.artifact.dependencyTree_jsp._jspService(dependencyTree_jsp.java:64) (...) Caused by: java.lang.IllegalArgumentException: Unable to create ArchivaArtifact with empty version [org.nuxeo.common:nuxeo-common:null::pom] at org.apache.maven.archiva.model.ArchivaArtifact.init(ArchivaArtifact.java:56) at org.apache.maven.archiva.repository.project.resolvers.ManagedRepositoryProjectResolver.resolveProjectModel(ManagedRepositoryProjectResolver.java:54) at org.apache.maven.archiva.repository.project.resolvers.ProjectModelResolverStack.findProject(ProjectModelResolverStack.java:96) at org.apache.maven.archiva.repository.project.dependencies.ProjectModelBasedGraphBuilder.resolveModel(ProjectModelBasedGraphBuilder.java:84) at org.apache.maven.archiva.repository.project.dependencies.ProjectModelBasedGraphBuilder.resolveNode(ProjectModelBasedGraphBuilder.java:71) at org.apache.maven.archiva.dependency.graph.tasks.ResolveGraphTask.executeTask(ResolveGraphTask.java:84) at org.apache.maven.archiva.dependency.graph.tasks.PopulateGraphMasterTask.executeTask(PopulateGraphMasterTask.java:60) at org.apache.maven.archiva.dependency.DependencyGraphFactory.getGraph(DependencyGraphFactory.java:137) ... 88 more | or : |39001320 [SocketListener0-7] WARN org.apache.maven.archiva.repository.project.resolvers.ProjectModelResolutionListener:model-to-db - Unable to check for existing model from database: Error in JDO during get of Database object id [stax:stax-api:1.0] of type org.apache.maven.archiva.model.ArchivaProjectModel using no fetch-group org.apache.maven.archiva.repository.project.ProjectModelException: Unable to check for existing model from database: Error in JDO during get of Database object id [stax:stax-api:1.0] of type org.apache.maven.archiva.model.ArchivaProjectModel using no fetch-group at org.apache.maven.archiva.database.project.ProjectModelToDatabaseListener.existsInDatabase(ProjectModelToDatabaseListener.java:98) (...) Caused by: org.apache.maven.archiva.database.ArchivaDatabaseException: Error in JDO during get of Database object id [stax:stax-api:1.0] of type org.apache.maven.archiva.model.ArchivaProjectModel using no fetch-group at org.apache.maven.archiva.database.jdo.JdoAccess.getObjectById(JdoAccess.java:452) at org.apache.maven.archiva.database.jdo.JdoProjectModelDAO.getProjectModel(JdoProjectModelDAO.java:74) at org.apache.maven.archiva.database.project.ProjectModelToDatabaseListener.existsInDatabase(ProjectModelToDatabaseListener.java:86) ... 96 more Caused by: javax.jdo.JDODataStoreException: Fetch request failed: SELECT THIS.CI_MANAGEMENT_URL_OID,THIS.DESCRIPTION,THIS.ISSUE_MANAGEMENT_URL_OID,THIS.NAME,THIS.ORGANIZATION_NAME_OID,THIS.ORIGIN,THIS.PACKAGING,THIS.PARENT_PROJECT_ARCHIVA_VERSIONED_REFERENCE_ID_OID,THIS.RELOCATION_ARCHIVA_VERSIONED_REFERENCE_ID_OID,THIS.SCM_ARCHIVA_SCM_ID_OID,THIS.URL,THIS.WHEN_INDEXED,THIS.ARTIFACT_ID,THIS.GROUP_ID,THIS.VERSION FROM SA.ARCHIVA_PROJECT THIS WHERE (THIS.ARTIFACT_ID=?) AND (THIS.GROUP_ID=?) AND (THIS.VERSION=?) NestedThrowables: SQL Exception: Java exception: ':
Re: Coverage report of web application integration test with cobertura-maven-plugin
Thus you'll have my help ;-) On Dec 13, 2007 4:29 PM, Jeff MAURY [EMAIL PROTECTED] wrote: I would prefer extending the current one. Jeff On Dec 13, 2007 4:26 PM, Arnaud HERITIER [EMAIL PROTECTED] wrote: another cobertura plugin or an extension of the current one ? otherwise you have my +1 to have the possibility to include integration tests in reports Arnaud On Dec 13, 2007 3:58 PM, Jeff MAURY [EMAIL PROTECTED] wrote: Richard, I have the same problem and I think this is not feasible with the current design of the Cobertura Maven2 plugin design as it is today. It does only address the test phase and not the integration-test phase. I plan to work on another Cobertura plugin (inspired from the philosophy of the Clover plugin) that address this issue. Jeff On Dec 13, 2007 3:29 PM, Brewster, Richard [EMAIL PROTECTED] wrote: I want to produce a coverage report for the integration test phase of a web application (war packaging). My integration tests are run by the Cargo maven plugin launching JBoss 4.0.5. I've been using the 2.0 version of the cobertura-maven-plugin (and will try the upgrade to 2.2 ). I have a modular project with core and web modules. I get the expected coverage reports for my core module, but zero coverage for the web module. The instrumented classes are not packaged into the war, for one. According to the Cobertura FAQ, this sort of coverage testing can be done. http://cobertura.sourceforge.net/faq.html Has anyone done this? Any advice would be appreciated! Also, it would be great if integration test coverage could be documented here, too: http://mojo.codehaus.org/cobertura-maven-plugin/usage.html Thanks, Richard Brewster Senior Associate Perrin Quarles Associates [EMAIL PROTECTED] (434) 817-2640 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- La mélancolie c'est communiste Tout le monde y a droit de temps en temps La mélancolie n'est pas capitaliste C'est même gratuit pour les perdants La mélancolie c'est pacifiste On ne lui rentre jamais dedans La mélancolie oh tu sais ça existe Elle se prend même avec des gants La mélancolie c'est pour les syndicalistes Il faut juste sa carte de permanent Miossec (2006) http://www.jeffmaury.com http://riadiscuss.jeffmaury.com -- .. Arnaud HERITIER .. OCTO Technology - aheritier AT octo DOT com www.octo.com | blog.octo.com .. ASF - aheritier AT apache DOT org www.apache.org | maven.apache.org ... -- La mélancolie c'est communiste Tout le monde y a droit de temps en temps La mélancolie n'est pas capitaliste C'est même gratuit pour les perdants La mélancolie c'est pacifiste On ne lui rentre jamais dedans La mélancolie oh tu sais ça existe Elle se prend même avec des gants La mélancolie c'est pour les syndicalistes Il faut juste sa carte de permanent Miossec (2006) http://www.jeffmaury.com http://riadiscuss.jeffmaury.com -- .. Arnaud HERITIER .. OCTO Technology - aheritier AT octo DOT com www.octo.com | blog.octo.com .. ASF - aheritier AT apache DOT org www.apache.org | maven.apache.org ...
Problem with surefire-reports in Continuum 1.1 final
Hi, I am using Continuum 1.1 final, Maven 2.0.7, Java 1.5.0_06 and WindowsXP I added a M2 project in Continuum, but in result of build I got: + Error stacktraces are turned on. [INFO] Scanning for projects... [INFO] [INFO] Building Sincronismo [INFO]task-segment: [clean, install] [INFO] [INFO] [clean:clean] [INFO] Deleting directory C:\continuum\work\6\target [INFO] [resources:resources] [INFO] Using default encoding to copy filtered resources. [INFO] [compiler:compile] [INFO] Compiling 8 source files to C:\continuum\work\6\target\classes [INFO] [resources:testResources] [INFO] Using default encoding to copy filtered resources. [INFO] [compiler:testCompile] [INFO] Compiling 1 source file to C:\continuum\work\6\target\test-classes [INFO] [surefire:test] [INFO] Surefire report directory: C:\continuum\work\6\target\surefire-reports [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Error creating properties files for forking; nested exception is java.io.IOException: O sistema natilde;o pode encontrar o caminho especificado [INFO] [INFO] Trace org.apache.maven.lifecycle.LifecycleExecutionException: Error creating properties files for forking; nested exception is java.io.IOException: O sistema natilde;o pode encontrar o caminho especificado at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:564) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:459) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125) at org.apache.maven.cli.MavenCli.main(MavenCli.java:280) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) Caused by: org.apache.maven.plugin.MojoExecutionException: Error creating properties files for forking; nested exception is java.io.IOException: O sistema natilde;o pode encontrar o caminho especificado at org.apache.maven.plugin.surefire.SurefirePlugin.execute(SurefirePlugin.java:402) 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.surefire.booter.SurefireBooterForkException: Error creating properties files for forking; nested exception is java.io.IOException: O sistema natilde;o pode encontrar o caminho especificado at org.apache.maven.surefire.booter.SurefireBooter.fork(SurefireBooter.java:519) at org.apache.maven.surefire.booter.SurefireBooter.forkSuites(SurefireBooter.java:412) at org.apache.maven.surefire.booter.SurefireBooter.runSuitesForkOnce(SurefireBooter.java:312) at org.apache.maven.surefire.booter.SurefireBooter.run(SurefireBooter.java:202) at org.apache.maven.plugin.surefire.SurefirePlugin.execute(SurefirePlugin.java:398) ... 18 more Caused by: java.io.IOException: O sistema natilde;o pode encontrar o caminho especificado at java.io.WinNTFileSystem.createFileExclusively(Native Method) at java.io.File.checkAndCreate(File.java:1345) at java.io.File.createTempFile(File.java:1434) at java.io.File.createTempFile(File.java:1471) at org.apache.maven.surefire.booter.SurefireBooter.writePropertiesFile(SurefireBooter.java:450) at org.apache.maven.surefire.booter.SurefireBooter.fork(SurefireBooter.java:511) ... 22 more [INFO] [INFO] Total time: 4 seconds [INFO] Finished at: Thu Dec 13 11:25:58 BRST 2007 [INFO] Final Memory: 6M/14M [INFO] The maven didn´t find the
Re: license-report
While the POM has a place for licenses, not everyone fills it out. So I think the idea of an automated system for this is still a dream, for now at least. You could always file bugs with your various dependencies to ask them to add the license element to their pom file. So the next time they push a new version out, it would contain the license. Rinse and repeat for all dependencies including transitive ones. ;-) Wayne On 12/13/07, Julien Graglia [EMAIL PROTECTED] wrote: If i'm right, maven-remote-resources-plugin just allow to include some bundles in all generated ja : it can be used to include a LICENSE or NOTICE file. But I think that Andreas is looking for a plugin that will generate a License reports listing all licenses used in his project (dependencies) , and by who.. Then, he can use this report to create a LICENSE/NOTICE file and include it in hist generated jars... I 'am currently doing this by hand, but I'd love to find a plugin that will create such a report...! -- Julien Graglia olivier lamy a écrit : Hi, Have a look at the maven-remote-resources-plugin and how it's used for the maven build to License and Notice files. -- Olivier 2007/12/10, Hoehmann, Andreas [EMAIL PROTECTED]: Hello, i need a file (LICENSES.TXT) which contains all dependend modules with there licenses. Exists a plugin to generate such a license-report for my project? I use maven 2. Best regards Andreas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Julien Graglia [EMAIL PROTECTED] 04.92.57.12.12 - 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 non proxy settings
Generally, unless you have a corporate proxy/firewall in between you and the Internet, you won't need to configure anything in settings.xml. The two logins you have on your computer have nothing to do with Maven (one is into Windows, and one is into your ISP, I guess). Just give it a try with no proxy setting and see what happens when you run Maven. If it gives problems, then worry about things. Wayne On 12/12/07, arunkumar_0205 [EMAIL PROTECTED] wrote: Hi, i have a broad band internet connection in my home, i have two login one for my system and one for my internet access. In this case wht is the proxy setting i need to give in my setting.xml file. or not proxy setting required. please clarify -- View this message in context: http://www.nabble.com/maven-non-proxy-settings-tp14310331s177p14310331.html 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: own plugin without need for pom.xml
Peter, I hope you will consider donating this plugin to the Mojo project. A number of people have asked about this exact thing on this list in the last year or so. Wayne On 12/13/07, Mark Struberg [EMAIL PROTECTED] wrote: Simply add @requiresProject false to your mojo. An example of this usage can e.g. be found in the maven-archetype-plugin. LieGrü, strub --- Peter Fischer [EMAIL PROTECTED] schrieb: Hello, I want to write my own deploy-plugin, which takes a directory and deploys all contained jars. In this scenario, I don't need a pom.xml like for mvn deploy:deploy-file But if I use my own plugin, maven shows me the error: [INFO] Cannot execute mojo: bundlesdeploy. It requires a project with an existing pom.xml, but the build is not using one. How can I avoid this error? regards, Peter -- View this message in context: http://www.nabble.com/own-plugin-without-need-for-pom.xml-tp14318109s177p14318109.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Jetzt Mails schnell in einem Vorschaufenster überfliegen. Dies und viel mehr bietet das neue Yahoo! Mail - www.yahoo.de/mail - 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: own plugin without need for pom.xml
Hello, struberg wrote: Simply add @requiresProject false to your mojo. An example of this usage can e.g. be found in the maven-archetype-plugin. LieGrü, strub This works fine. Thank you! regars, Peter -- View this message in context: http://www.nabble.com/own-plugin-without-need-for-pom.xml-tp14318109s177p14318910.html 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: own plugin without need for pom.xml
Simply add @requiresProject false to your mojo. An example of this usage can e.g. be found in the maven-archetype-plugin. LieGrü, strub --- Peter Fischer [EMAIL PROTECTED] schrieb: Hello, I want to write my own deploy-plugin, which takes a directory and deploys all contained jars. In this scenario, I don't need a pom.xml like for mvn deploy:deploy-file But if I use my own plugin, maven shows me the error: [INFO] Cannot execute mojo: bundlesdeploy. It requires a project with an existing pom.xml, but the build is not using one. How can I avoid this error? regards, Peter -- View this message in context: http://www.nabble.com/own-plugin-without-need-for-pom.xml-tp14318109s177p14318109.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Jetzt Mails schnell in einem Vorschaufenster überfliegen. Dies und viel mehr bietet das neue Yahoo! Mail - www.yahoo.de/mail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: own plugin without need for pom.xml
Peter, just out of curiosity: How do you decide which groupId, artifactId and versionId you should take for each jar? txs, strub --- Wayne Fay [EMAIL PROTECTED] schrieb: Peter, I hope you will consider donating this plugin to the Mojo project. A number of people have asked about this exact thing on this list in the last year or so. Wayne On 12/13/07, Mark Struberg [EMAIL PROTECTED] wrote: Simply add @requiresProject false to your mojo. An example of this usage can e.g. be found in the maven-archetype-plugin. LieGrü, strub --- Peter Fischer [EMAIL PROTECTED] schrieb: Hello, I want to write my own deploy-plugin, which takes a directory and deploys all contained jars. In this scenario, I don't need a pom.xml like for mvn deploy:deploy-file But if I use my own plugin, maven shows me the error: [INFO] Cannot execute mojo: bundlesdeploy. It requires a project with an existing pom.xml, but the build is not using one. How can I avoid this error? regards, Peter __ Ihr erstes Baby? Holen Sie sich Tipps von anderen Eltern. www.yahoo.de/clever - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Steps involved in migrating to maven 1.1 from maven 1.0.2
Hi all, We have a requirement to migrate from maven 1.0.2 to maven 1.1 in our application. Can anyone share the knowledge on Steps involved in do so for the smoother and easier migration.? I appreciate your suggestions. tx, ganji -- View this message in context: http://www.nabble.com/Steps-involved-in-migrating-to-maven-1.1-from-maven-1.0.2-tp14319004s177p14319004.html 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: [assembly] add all dependency jars to lib folder in a bin assembly
Hi. I use the following: dependencySets dependencySet outputDirectory/lib/outputDirectory unpackfalse/unpack scoperuntime/scope /dependencySet /dependencySets It puts all the dependencies into lib. Rich -Original Message- From: Daniele Dellafiore [mailto:[EMAIL PROTECTED] Sent: 13 December 2007 12:19 To: Maven Users List Subject: [assembly] add all dependency jars to lib folder in a bin assembly Hi all. I am trying to accomplish this task. My target is to create a compressed archive with the jar of my app and all the jars it depends upon in a subfolder called lib. I am trying to customize the standard bin descriptor so I have configuration descriptors descriptorsrc/assembly/bin.xml/descriptor /descriptors [.] and the bin.xml file is almost the same than the original. I just added a includelib/**/include to include some native libraries I keep in lib folder. But the point is that of course the jars are handled by maven so I expect there is some automatic way to put all them in a custom output folder. I am trying to understand how to do but I am failing. I think the solutions is somewhere here: http://maven.apache.org/plugins/maven-assembly-plugin/assembly.html#clas s_binaries but I Cannot figure out how... Here is the bin.xml, thanks for any help. assembly idbin/id formats formattar.gz/format /formats moduleSets moduleSet binaries includeDependenciestrue/includeDependencies outputDirectorylib/outputDirectory /binaries /moduleSet /moduleSets fileSets fileSet includes includeREADME*/include includeLICENSE*/include includeNOTICE*/include includelib/**/include /includes /fileSet fileSet directorytarget/directory outputDirectory/outputDirectory includes include*.jar/include /includes /fileSet /fileSets /assembly -- Daniele Dellafiore http://ildella.wordpress.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Refresh local repository SNAPSHOTS every morning
humm, I'm not sure, but this sounds like $ mvn dependency:go-offline could do the job for you. LieGrü, strub --- [EMAIL PROTECTED] schrieb: Hi all, Is there a way to refresh the SNAPSHOTS in your local repository? We have nightly builds for all of our projects, and every morning there are new SNAPSHOTS in our internal repository to pull down, whether they contain changes or not. I'd like to be able to update all of my local SNAPSHOTS every morning, instead of when I build a project for the first time of the day. Alternatively, if there's a mojo I can run while inside each project that will pull down their SNAPSHOT dependencies _without_ compiling, packaging, etc, I could run that as well, but I'm at a loss on what to use. I thought I could attach dependency:purge-local-repository to phase 'validate' on a non-default profile, but that will act on all dependencies, not just SNAPSHOTS. Thanks, -Blue Visit our website at http://www.ubs.com This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. This message is provided for informational purposes and should not be construed as a solicitation or offer to buy or sell any securities or related financial instruments. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Machen Sie Yahoo! zu Ihrer Startseite. Los geht's: http://de.yahoo.com/set - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Refresh local repository SNAPSHOTS every morning
You could probably use mvn dependency:go-offline... but as you said, it will act on all dependencies, not just SNAPSHOTs. (Why is this a problem for you?) Wayne On 12/13/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi all, Is there a way to refresh the SNAPSHOTS in your local repository? We have nightly builds for all of our projects, and every morning there are new SNAPSHOTS in our internal repository to pull down, whether they contain changes or not. I'd like to be able to update all of my local SNAPSHOTS every morning, instead of when I build a project for the first time of the day. Alternatively, if there's a mojo I can run while inside each project that will pull down their SNAPSHOT dependencies _without_ compiling, packaging, etc, I could run that as well, but I'm at a loss on what to use. I thought I could attach dependency:purge-local-repository to phase 'validate' on a non-default profile, but that will act on all dependencies, not just SNAPSHOTS. Thanks, -Blue Visit our website at http://www.ubs.com This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. This message is provided for informational purposes and should not be construed as a solicitation or offer to buy or sell any securities or related financial instruments. - 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: Refresh local repository SNAPSHOTS every morning
It's not a problem as much as a curiosity. We just moved from Ant to Maven, and I want to reduce any increase of build times to ease the transition for the team - most of which have yet to migrate from the Ant branches of the projects to the new Maven-ized main line. Building our main ear pulls down every SNAPSHOT war dependency, which takes 10 mins to package on the day's first run. I have our CIS server doing builds on SCM changes + nightly, but I suppose I could remove nightly condition to eliminate this side effect. Regards, -Blue -Original Message- From: Wayne Fay [mailto:[EMAIL PROTECTED] Sent: Thursday, December 13, 2007 11:42 AM To: Maven Users List Subject: Re: Refresh local repository SNAPSHOTS every morning You could probably use mvn dependency:go-offline... but as you said, it will act on all dependencies, not just SNAPSHOTs. (Why is this a problem for you?) Wayne On 12/13/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi all, Is there a way to refresh the SNAPSHOTS in your local repository? We have nightly builds for all of our projects, and every morning there are new SNAPSHOTS in our internal repository to pull down, whether they contain changes or not. I'd like to be able to update all of my local SNAPSHOTS every morning, instead of when I build a project for the first time of the day. Alternatively, if there's a mojo I can run while inside each project that will pull down their SNAPSHOT dependencies _without_ compiling, packaging, etc, I could run that as well, but I'm at a loss on what to use. I thought I could attach dependency:purge-local-repository to phase 'validate' on a non-default profile, but that will act on all dependencies, not just SNAPSHOTS. Thanks, -Blue Visit our website at http://www.ubs.com This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. This message is provided for informational purposes and should not be construed as a solicitation or offer to buy or sell any securities or related financial instruments. - 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] Visit our website at http://www.ubs.com This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. This message is provided for informational purposes and should not be construed as a solicitation or offer to buy or sell any securities or related financial instruments. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Using build number in Maven antlib?
Is there a way to retrieve the Maven build number using the Maven antlib plugin? I'd like to append the build number to the file name for some of our Ant tasks. Thanks Ian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Refresh local repository SNAPSHOTS every morning
Hi all, Is there a way to refresh the SNAPSHOTS in your local repository? We have nightly builds for all of our projects, and every morning there are new SNAPSHOTS in our internal repository to pull down, whether they contain changes or not. I'd like to be able to update all of my local SNAPSHOTS every morning, instead of when I build a project for the first time of the day. Alternatively, if there's a mojo I can run while inside each project that will pull down their SNAPSHOT dependencies _without_ compiling, packaging, etc, I could run that as well, but I'm at a loss on what to use. I thought I could attach dependency:purge-local-repository to phase 'validate' on a non-default profile, but that will act on all dependencies, not just SNAPSHOTS. Thanks, -Blue Visit our website at http://www.ubs.com This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. This message is provided for informational purposes and should not be construed as a solicitation or offer to buy or sell any securities or related financial instruments. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [assembly] add all dependency jars to lib folder in a bin assembly
it works! The only problem is that include the main artifact in lib folder. I just want the dependencies jars. Now I have: dependencySets dependencySet outputDirectory/lib/outputDirectory unpackfalse/unpack scoperuntime/scope excludes excludearte*/exclude /excludes /dependencySet /dependencySets where arte-0.1.jar and arte is the name of the artifact I am assembling is the name of the project artifact. Even with this, arte-0.1.jar is in lib folder... any ideas? On Dec 13, 2007 1:19 PM, Daniele Dellafiore [EMAIL PROTECTED] wrote: Hi all. I am trying to accomplish this task. My target is to create a compressed archive with the jar of my app and all the jars it depends upon in a subfolder called lib. I am trying to customize the standard bin descriptor so I have configuration descriptors descriptorsrc/assembly/bin.xml/descriptor /descriptors [.] and the bin.xml file is almost the same than the original. I just added a includelib/**/include to include some native libraries I keep in lib folder. But the point is that of course the jars are handled by maven so I expect there is some automatic way to put all them in a custom output folder. I am trying to understand how to do but I am failing. I think the solutions is somewhere here: http://maven.apache.org/plugins/maven-assembly-plugin/assembly.html#class_binaries but I Cannot figure out how... Here is the bin.xml, thanks for any help. assembly idbin/id formats formattar.gz/format /formats moduleSets moduleSet binaries includeDependenciestrue/includeDependencies outputDirectorylib/outputDirectory /binaries /moduleSet /moduleSets fileSets fileSet includes includeREADME*/include includeLICENSE*/include includeNOTICE*/include includelib/**/include /includes /fileSet fileSet directorytarget/directory outputDirectory/outputDirectory includes include*.jar/include /includes /fileSet /fileSets /assembly -- Daniele Dellafiore http://ildella.wordpress.com/ -- Daniele Dellafiore http://ildella.wordpress.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven Repository: FTP DOWNLOAD
for those who may have the same problem, the answer is: yes, you need to add jars in the maven/lib directory. These jars are (today): wagon-ftp-1.0-beta-2.jar commons-net-1.4.1.jar: oro-2.0.8.jar However there is still a bug with the beta-2 if the ftp server is on a novell machine. I discuss this in another post: WAGON ERROR: Unknown parser type: NETWARE Type: L8 http://www.nabble.com/WAGON-ERROR-3A-Unknown-parser-type-3A-NETWARE-Type-3A-L8-to14298287s177.html houzecl wrote: Hi, from several previous posts it looks like ftp download from maven repository will only work if the following jars are put in maven/lib directory: wagon-ftp-1.0-alpha-7.jar commons-net-1.4.1.jar: oro-2.0.8.jar is this still true ? and if yes, is it possible to use wagon-ftp-1.0-beta-2.jar ? Thanks Christian-luc -- View this message in context: http://www.nabble.com/Maven-Repository%3A-FTP-DOWNLOAD-tp14278195s177p14320408.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Configuring Archiva to proxy a Proximity instance
All, I'm having trouble configurating Archiva to proxy an instance of Proximity because I'm required to set a property on the proxy connector. Unfortunately Archiva 1.0 bombs when I try to save a proxy connector with a property: HTTP ERROR: 500 [Ljava.lang.String; cannot be cast to java.lang.String RequestURI=/archiva/admin/editProxyConnector!commit.action Powered by Jetty:// http://jetty.mortbay.org ___ Brian Jackson Sr. Software Engineer ESPN.com Fantasy Games (860) 766-2511
Re: Refresh local repository SNAPSHOTS every morning
mvn dependency:resolve should do the trick, add -U to force the update if you want to use it again after maven did it's daily check - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: WAGON ERROR: Unknown parser type: NETWARE Type: L8
we have identified this as a bug (missing feature ?) in the wagon-ftp component (FtpWagon class) . the FTPClient within must be configured as: FTPClientConfig conf = new FTPClientConfig(FTPClientConfig.SYST_UNIX); ftp.configure(conf); plus, the NOVELL FTP server must be configure to be UNIX compliant if all the above is not set, the error ... Unknown parser type: NETWARE Type: L8 will appear. Christian-Luc houzecl wrote: Hi, We are using wagon ftp for Maven DOWNLOAD (not upload) the wagon extension we use is wagon-ftp 1.0-beta-2 in order to use it for download we've followed workaround specified at http://jira.codehaus.org/browse/MNG-2195 unfortunately, whatever the version used we get the following error: org.apache.commons.net.ftp.parser.ParserInitializationException: Unknown parser type: NETWARE Type: L8 any idea what's wrong Christian-Luc -- View this message in context: http://www.nabble.com/WAGON-ERROR%3A-Unknown-parser-type%3A-NETWARE-Type%3A-L8-tp14298287s177p14320871.html 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: [m2] issue activating profiles. NEED HELP PLEASE
So I keep getting: [WARNING] Overriding profile: 'documentation' (source: pom) with new instance from source: profiles.xml [WARNING] Overriding profile: 'dev-' (source: pom) with new instance from source: profiles.xml I have tried with an without: profile iddev-/id properties envdev-/env build.typeno-documentation/build.type /properties /profile in my profiles.xml Basically, I am trying to do the following 2 things: 1. I want to run with the properties I set in my properties section if there is NOT a -P [profilename] specified: properties *envlocal/env build.typeno-documentation/build.type* 2. If a profile is specified such as dev-, I want those settings to override the properties settings: profile id*documentation*/id properties *build.typedocumentation/build.type* /properties /profile profile id*dev-*/id properties * envdev-/env build.typeno-documentation/build.type * Then, I have a module group that has to have an activation switch on build.type like: profile id*documentation*/id modules modulebusiness-services/module modulecommon-c2/module /modules /profile profile id*no-documentation*/id activation property *namebuild.type/name value!documentation/value* /property /activation modules *modulebpel/module* modulebusiness-services/module modulecommon-c2/module /modules /profile The BPEL will fail the entire site:site process due to the nature of the Oracle bpel ant tasks. No way around this so I just don't want to run them if I plan to run site documentation. So here is what is happening: when I run *mvn package* or I run *mvn -P dev- package* I get *dev-7778*used every time. It shows that ALL profiles are active, but only takes the last one which is dev-7778 not local or dev- With this, no matter what, the* build.type* is never *documentation *as it appears that dev-7778 overrides that property. so my site:site fails every time. Even when I do a *mvn -P documentation site:site* On Dec 11, 2007 1:55 PM, Mick Knutson [EMAIL PROTECTED] wrote: I keep getting this: The following profiles are active: - local (source: settings.xml) - local (source: settings.xml) - local (source: settings.xml) - dev- (source: *profiles*.xml) - documentation (source: *profiles*.xml) - dev-7778 (source: *profiles*.xml) Not all of these profiles have been activated. Only local is active by default. The other 3 profiles exist in profiles.xml , but have not been activated. On Dec 11, 2007 1:33 PM, Patrick Schneider [EMAIL PROTECTED] wrote: I haven't seen those warnings before... Have you tried using help:active-profiles? Try: $ mvn -P dev- help:active-profiles This will list (surprise!) the currently active profiles with which Maven is executing. Patrick On Dec 11, 2007 12:43 PM, Mick Knutson [EMAIL PROTECTED] wrote: I am trying to switch profiles for each environment. I have dev-, and dev-7778 Then in my profiles.xml I have: *profile iddev-/id properties envdev-/env build.typeno-documentation/build.type /properties /profile profile iddev-7778/id properties envdev-7778/env build.typeno-documentation/build.type /properties /profile* *When I run:* *mvn -P dev- assembly:assembly -e -X .out.txt* * I keep getting this:* *[WARNING] Overriding profile: 'dev-' (source: pom) with new instance from source: profiles.xml [WARNING] Overriding profile: 'dev-7778' (source: pom) with new instance from source: profiles.xml* so it looks like I get both, but 7778 seems to always override . I only want one of these profiles active at the same time. Can someone please help me out? -- Thanks, Mick Knutson http://www.baselogic.com http://www.blincmagazine.com http://www.djmick.com http://www.myspace.com/mickknutson http://www.myspace.com/BLiNCMagazine http://tahoe.baselogic.com --- -- Thanks, Mick Knutson http://www.baselogic.com http://www.blincmagazine.com http://www.djmick.com http://www.myspace.com/mickknutson http://www.myspace.com/BLiNCMagazine http://tahoe.baselogic.com --- -- Thanks, Mick Knutson http://www.baselogic.com http://www.blincmagazine.com http://www.djmick.com
RE: Configuring Archiva to proxy a Proximity instance
The property is repositoryId=inhouse. What would be the correct xml for the archiva.xml? Where do I file a bug? Here's the full stacktrace from the console: jvm 1| WARNING: /archiva/admin/editProxyConnector!commit.action: jvm 1| java.lang.ClassCastException: [Ljava.lang.String; cannot be cast to j ava.lang.String jvm 1| at org.apache.maven.archiva.configuration.io.registry.Configurat ionRegistryWriter.writeProxyConnectorConfiguration(ConfigurationRegistry Writer.j ava:520) jvm 1| at org.apache.maven.archiva.configuration.io.registry.Configurat ionRegistryWriter.writeConfiguration(ConfigurationRegistryWriter.java:96 ) jvm 1| at org.apache.maven.archiva.configuration.io.registry.Configurat ionRegistryWriter.write(ConfigurationRegistryWriter.java:34) jvm 1| at org.apache.maven.archiva.configuration.DefaultArchivaConfigur ation.save(DefaultArchivaConfiguration.java:445) jvm 1| at org.apache.maven.archiva.web.action.admin.connectors.proxy.Ab stractProxyConnectorAction.saveConfiguration(AbstractProxyConnectorActio n.java:1 21) jvm 1| at org.apache.maven.archiva.web.action.admin.connectors.proxy.Ed itProxyConnectorAction.commit(EditProxyConnectorAction.java:91) jvm 1| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) jvm 1| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces sorImpl.java:39) jvm 1| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet hodAccessorImpl.java:25) jvm 1| at java.lang.reflect.Method.invoke(Method.java:597) jvm 1| at com.opensymphony.xwork.DefaultActionInvocation.invokeAction(D efaultActionInvocation.java:358) jvm 1| at com.opensymphony.xwork.DefaultActionInvocation.invokeActionOn ly(DefaultActionInvocation.java:218) jvm 1| at com.opensymphony.xwork.DefaultActionInvocation.invoke(Default ActionInvocation.java:192) jvm 1| at com.opensymphony.xwork.interceptor.DefaultWorkflowInterceptor .doIntercept(DefaultWorkflowInterceptor.java:175) jvm 1| at com.opensymphony.xwork.interceptor.MethodFilterInterceptor.in tercept(MethodFilterInterceptor.java:86) jvm 1| at com.opensymphony.xwork.DefaultActionInvocation.invoke(Default ActionInvocation.java:190) jvm 1| at com.opensymphony.xwork.validator.ValidationInterceptor.doInte rcept(ValidationInterceptor.java:115) jvm 1| at com.opensymphony.xwork.interceptor.MethodFilterInterceptor.in tercept(MethodFilterInterceptor.java:86) jvm 1| at com.opensymphony.xwork.DefaultActionInvocation.invoke(Default ActionInvocation.java:190) jvm 1| at org.apache.maven.archiva.web.interceptor.ConfigurationInterce ptor.intercept(ConfigurationInterceptor.java:53) jvm 1| at com.opensymphony.xwork.DefaultActionInvocation.invoke(Default ActionInvocation.java:190) jvm 1| at org.codehaus.plexus.redback.xwork.interceptor.PolicyEnforceme ntInterceptor.intercept(PolicyEnforcementInterceptor.java:149) jvm 1| at com.opensymphony.xwork.DefaultActionInvocation.invoke(Default ActionInvocation.java:190) jvm 1| at org.codehaus.plexus.redback.xwork.interceptor.SecureActionInt erceptor.intercept(SecureActionInterceptor.java:159) jvm 1| at com.opensymphony.xwork.DefaultActionInvocation.invoke(Default ActionInvocation.java:190) jvm 1| at com.opensymphony.xwork.interceptor.ParameterFilterInterceptor .intercept(ParameterFilterInterceptor.java:124) jvm 1| at com.opensymphony.xwork.DefaultActionInvocation.invoke(Default ActionInvocation.java:190) jvm 1| at com.opensymphony.xwork.interceptor.DefaultWorkflowInterceptor .doIntercept(DefaultWorkflowInterceptor.java:175) jvm 1| at com.opensymphony.xwork.interceptor.MethodFilterInterceptor.in tercept(MethodFilterInterceptor.java:86) jvm 1| at com.opensymphony.xwork.DefaultActionInvocation.invoke(Default ActionInvocation.java:190) jvm 1| at com.opensymphony.xwork.validator.ValidationInterceptor.doInte rcept(ValidationInterceptor.java:115) jvm 1| at com.opensymphony.xwork.interceptor.MethodFilterInterceptor.in tercept(MethodFilterInterceptor.java:86) jvm 1| at com.opensymphony.xwork.DefaultActionInvocation.invoke(Default ActionInvocation.java:190) jvm 1| at com.opensymphony.xwork.interceptor.AroundInterceptor.intercep t(AroundInterceptor.java:31) jvm 1| at com.opensymphony.xwork.DefaultActionInvocation.invoke(Default ActionInvocation.java:190) jvm 1| at com.opensymphony.xwork.interceptor.AroundInterceptor.intercep t(AroundInterceptor.java:31) jvm 1| at com.opensymphony.xwork.DefaultActionInvocation.invoke(Default ActionInvocation.java:190) jvm 1| at com.opensymphony.xwork.interceptor.AroundInterceptor.intercep t(AroundInterceptor.java:31) jvm 1| at com.opensymphony.xwork.DefaultActionInvocation.invoke(Default ActionInvocation.java:190) jvm 1| at
Re: Configuring Archiva to proxy a Proximity instance
the bug can be filed at: http://jira.codehaus.org/browse/MRM The configuration would be added inside the relevant connector in archiva.xml (the website has details on where to find that): properties repositoryIdinhouse/repositoryId /properties After restarting, you should see it appear in the configuration page. Cheers, Brett On 14/12/2007, Jackson, Brian R [EMAIL PROTECTED] wrote: The property is repositoryId=inhouse. What would be the correct xml for the archiva.xml? Where do I file a bug? Here's the full stacktrace from the console: jvm 1| WARNING: /archiva/admin/editProxyConnector!commit.action: jvm 1| java.lang.ClassCastException: [Ljava.lang.String; cannot be cast to j ava.lang.String jvm 1| at org.apache.maven.archiva.configuration.io.registry.Configurat ionRegistryWriter.writeProxyConnectorConfiguration(ConfigurationRegistry Writer.j ava:520) jvm 1| at org.apache.maven.archiva.configuration.io.registry.Configurat ionRegistryWriter.writeConfiguration(ConfigurationRegistryWriter.java:96 ) jvm 1| at org.apache.maven.archiva.configuration.io.registry.Configurat ionRegistryWriter.write(ConfigurationRegistryWriter.java:34) jvm 1| at org.apache.maven.archiva.configuration.DefaultArchivaConfigur ation.save(DefaultArchivaConfiguration.java:445) jvm 1| at org.apache.maven.archiva.web.action.admin.connectors.proxy.Ab stractProxyConnectorAction.saveConfiguration(AbstractProxyConnectorActio n.java:1 21) jvm 1| at org.apache.maven.archiva.web.action.admin.connectors.proxy.Ed itProxyConnectorAction.commit(EditProxyConnectorAction.java:91) jvm 1| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) jvm 1| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces sorImpl.java:39) jvm 1| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet hodAccessorImpl.java:25) jvm 1| at java.lang.reflect.Method.invoke(Method.java:597) jvm 1| at com.opensymphony.xwork.DefaultActionInvocation.invokeAction(D efaultActionInvocation.java:358) jvm 1| at com.opensymphony.xwork.DefaultActionInvocation.invokeActionOn ly(DefaultActionInvocation.java:218) jvm 1| at com.opensymphony.xwork.DefaultActionInvocation.invoke(Default ActionInvocation.java:192) jvm 1| at com.opensymphony.xwork.interceptor.DefaultWorkflowInterceptor .doIntercept(DefaultWorkflowInterceptor.java:175) jvm 1| at com.opensymphony.xwork.interceptor.MethodFilterInterceptor.in tercept(MethodFilterInterceptor.java:86) jvm 1| at com.opensymphony.xwork.DefaultActionInvocation.invoke(Default ActionInvocation.java:190) jvm 1| at com.opensymphony.xwork.validator.ValidationInterceptor.doInte rcept(ValidationInterceptor.java:115) jvm 1| at com.opensymphony.xwork.interceptor.MethodFilterInterceptor.in tercept(MethodFilterInterceptor.java:86) jvm 1| at com.opensymphony.xwork.DefaultActionInvocation.invoke(Default ActionInvocation.java:190) jvm 1| at org.apache.maven.archiva.web.interceptor.ConfigurationInterce ptor.intercept(ConfigurationInterceptor.java:53) jvm 1| at com.opensymphony.xwork.DefaultActionInvocation.invoke(Default ActionInvocation.java:190) jvm 1| at org.codehaus.plexus.redback.xwork.interceptor.PolicyEnforceme ntInterceptor.intercept(PolicyEnforcementInterceptor.java:149) jvm 1| at com.opensymphony.xwork.DefaultActionInvocation.invoke(Default ActionInvocation.java:190) jvm 1| at org.codehaus.plexus.redback.xwork.interceptor.SecureActionInt erceptor.intercept(SecureActionInterceptor.java:159) jvm 1| at com.opensymphony.xwork.DefaultActionInvocation.invoke(Default ActionInvocation.java:190) jvm 1| at com.opensymphony.xwork.interceptor.ParameterFilterInterceptor .intercept(ParameterFilterInterceptor.java:124) jvm 1| at com.opensymphony.xwork.DefaultActionInvocation.invoke(Default ActionInvocation.java:190) jvm 1| at com.opensymphony.xwork.interceptor.DefaultWorkflowInterceptor .doIntercept(DefaultWorkflowInterceptor.java:175) jvm 1| at com.opensymphony.xwork.interceptor.MethodFilterInterceptor.in tercept(MethodFilterInterceptor.java:86) jvm 1| at com.opensymphony.xwork.DefaultActionInvocation.invoke(Default ActionInvocation.java:190) jvm 1| at com.opensymphony.xwork.validator.ValidationInterceptor.doInte rcept(ValidationInterceptor.java:115) jvm 1| at com.opensymphony.xwork.interceptor.MethodFilterInterceptor.in tercept(MethodFilterInterceptor.java:86) jvm 1| at com.opensymphony.xwork.DefaultActionInvocation.invoke(Default ActionInvocation.java:190) jvm 1| at com.opensymphony.xwork.interceptor.AroundInterceptor.intercep t(AroundInterceptor.java:31) jvm 1| at
[ANN] Maven Remote Resources Plugin 1.0-beta-1 released
The Maven team is proud of announcing the new release of the Maven Remote Resources Plugin 1.0-beta-2 for Maven 2. Release Notes - Maven 2.x Remote Resources Plugin - Version 1.0-beta-2 ** Bug * [MRRESOURCES-26] - NPE in remote-resources:process while sorting orgs * [MRRESOURCES-27] - RemoteResourcesClassLoader isn't isolated from maven jar ** Wish * [MRRESOURCES-28] - Attaching the generated resources to the project should be optional (for webapps) For complete details, see: http://jira.codehaus.org/secure/ReleaseNote.jspa?version=13291styleName=HtmlprojectId=11391Create=Create -- J. Daniel Kulp Principal Engineer IONA P: 781-902-8727C: 508-380-7194 [EMAIL PROTECTED] http://www.dankulp.com/blog - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Refresh local repository SNAPSHOTS every morning
One thing to keep in mind when it comes to the transition from ant to maven is maven works really really well when your codebase is highly modularized and not so well when you try to make maven work just like ant. -Original Message- From: Tomislav Stojcevich [mailto:[EMAIL PROTECTED] Sent: Thursday, December 13, 2007 12:36 PM To: Maven Users List Subject: Re: Refresh local repository SNAPSHOTS every morning mvn dependency:resolve should do the trick, add -U to force the update if you want to use it again after maven did it's daily check - 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: bad JSF rendering when using mvn jetty:run
-- FIXED -- Turned out that a dependency in my Maven POM caused the trouble. I had this... dependency groupIdjsf-impl/groupId artifactIdjsf-impl/artifactId version1.2.04/version scopecompile/scope /dependency and for some reason taking it out fixed my problem. A bizarre side note is that I was the only one on my team that saw the bad behavior. I never figured out what else could have been causing my system to act differently than others'. Oh well. All's well that ends well. ,chris On Dec 13, 2007 10:21 AM, Christofer Jennings [EMAIL PROTECTED] wrote: I'm not sure where to post this question. It might be a JSF thing but the problem I have only happens when I run mvn jetty:run. For some reason when I use mvn jetty:run my JSF pages render wierd. The JSF components render outside the html tag. If I build a war and deploy it to jetty or tomcat the page renders as expected. ... Any ideas would be much appreciated. Here's the JSP. The bad output is below. - JSP --- %@ taglib uri= http://java.sun.com/jsf/html; prefix=h % %@ taglib uri= http://java.sun.com/jsf/core; prefix=f % %@ taglib uri= http://myfaces.apache.org/tomahawk; prefix=t % html head titleUser Registration/title link rel=stylesheet href=styles/keys.css type=text/css media=screen/ /head body f:view h2h:outputText value=User Registration//h2 h:outputText value=Modify/Update the information for users in the text field boxes and click the OK button./ br/ h:form id=userRegistrationForm h:messages/ h:panelGrid columns=4 h:outputText value=*First Name:/ h:inputText value=#{ userRegistrationController.user.firstName} id=firstNameEntry required=true/ h:outputText value=*Last Name:/ h:inputText value=#{userRegistrationController.user.lastName } id=lastNameEntry required=true/ /h:panelGrid h:commandButton action=success actionListener=#{ userRegistrationController.registerUser } value=OK/ h:commandButton value=Reset type=reset/ /h:form /f:view /body /html - resulting html h2User Registration/ h2 Modify/Update the information for users in the text field boxes and click the OK button. br / form id=userRegistrationForm name=userRegistrationForm method=post action= /keys/test.jsf enctype=application/x-www-form-urlencoded input type=hidden name=userRegistrationForm value =userRegistrationForm / table tbody tr td*First Name:/td td input id=userRegistrationForm:firstNameEntry type=text name=userRegistrationForm:firstNameEntry // td td*Last Name:/td td input id=userRegistrationForm:lastNameEntry type=text name=userRegistrationForm:lastNameEntry // td /tr /tbody /table input type=submit name=userRegistrationForm:j_id_id35 value=OK /input type= reset name=userRegistrationForm:j_id_id37 value=Reset /input type=hidden name=javax.faces.ViewState id=javax.faces.ViewState value=mUUiAHpX4mUz1jbTQWsYDgwwdlJk7EbLXyoxRcBOJTyVRjIL0WRyGneQ+kw29gFT43aXwg3YtZj3aAZs/tOIhW+zzgXIS9kt7dDDaTf+/sY= / /form html head titleUser Registration/title link rel=stylesheet href =styles/keys.css type=text/css media= screen/ /head body !-- MYFACES JAVASCRIPT -- /body /html -
bad JSF rendering when using mvn jetty:run
I'm not sure where to post this question. It might be a JSF thing but the problem I have only happens when I run mvn jetty:run. For some reason when I use mvn jetty:run my JSF pages render wierd. The JSF components render outside the html tag. If I build a war and deploy it to jetty or tomcat the page renders as expected. ... Any ideas would be much appreciated. Here's the JSP. The bad output is below. - JSP --- %@ taglib uri=http://java.sun.com/jsf/html; prefix=h % %@ taglib uri=http://java.sun.com/jsf/core; prefix=f % %@ taglib uri=http://myfaces.apache.org/tomahawk; prefix=t % html head titleUser Registration/title link rel=stylesheet href=styles/keys.css type=text/css media=screen/ /head body f:view h2h:outputText value=User Registration//h2 h:outputText value=Modify/Update the information for users in the text field boxes and click the OK button./ br/ h:form id=userRegistrationForm h:messages/ h:panelGrid columns=4 h:outputText value=*First Name:/ h:inputText value=#{userRegistrationController.user.firstName } id=firstNameEntry required=true/ h:outputText value=*Last Name:/ h:inputText value=#{userRegistrationController.user.lastName} id=lastNameEntry required=true/ /h:panelGrid h:commandButton action=success actionListener=#{ userRegistrationController.registerUser} value=OK/ h:commandButton value=Reset type=reset/ /h:form /f:view /body /html - resulting html h2User Registration/h2 Modify/Update the information for users in the text field boxes and click the OK button. br/ form id=userRegistrationForm name=userRegistrationForm method=post action=/keys/test.jsf enctype=application/x-www-form-urlencoded input type=hidden name=userRegistrationForm value=userRegistrationForm / table tbody tr td*First Name:/td tdinput id=userRegistrationForm:firstNameEntry type=text name=userRegistrationForm:firstNameEntry //td td*Last Name:/td tdinput id=userRegistrationForm:lastNameEntry type=text name=userRegistrationForm:lastNameEntry //td /tr /tbody /table input type=submit name=userRegistrationForm:j_id_id35 value=OK /input type=reset name=userRegistrationForm:j_id_id37 value=Reset /input type=hidden name=javax.faces.ViewState id=javax.faces.ViewState value=mUUiAHpX4mUz1jbTQWsYDgwwdlJk7EbLXyoxRcBOJTyVRjIL0WRyGneQ+kw29gFT43aXwg3YtZj3aAZs/tOIhW+zzgXIS9kt7dDDaTf+/sY= / /form html head titleUser Registration/title link rel=stylesheet href=styles/keys.css type=text/css media=screen/ /head body !-- MYFACES JAVASCRIPT -- /body /html -
Re: [assembly] add all dependency jars to lib folder in a bin assembly
On Dec 13, 2007 10:11 AM, Daniele Dellafiore [EMAIL PROTECTED] wrote: it works! The only problem is that include the main artifact in lib folder. I just want the dependencies jars. Now I have: dependencySets dependencySet outputDirectory/lib/outputDirectory unpackfalse/unpack scoperuntime/scope excludes excludearte*/exclude /excludes /dependencySet /dependencySets where arte-0.1.jar and arte is the name of the artifact I am assembling is the name of the project artifact. Even with this, arte-0.1.jar is in lib folder... any ideas? I think this has to be not a file name, but a groupId:artifactId format. For example if arte-1.2.3.jar must be excluded I assume its artifactId=arte. And lets pretend its groupId=com.foo.bar to have this: excludecom.foo.bar:arte/exclude On Dec 13, 2007 1:19 PM, Daniele Dellafiore [EMAIL PROTECTED] wrote: Hi all. I am trying to accomplish this task. My target is to create a compressed archive with the jar of my app and all the jars it depends upon in a subfolder called lib. I am trying to customize the standard bin descriptor so I have configuration descriptors descriptorsrc/assembly/bin.xml/descriptor /descriptors [.] and the bin.xml file is almost the same than the original. I just added a includelib/**/include to include some native libraries I keep in lib folder. But the point is that of course the jars are handled by maven so I expect there is some automatic way to put all them in a custom output folder. I am trying to understand how to do but I am failing. I think the solutions is somewhere here: http://maven.apache.org/plugins/maven-assembly-plugin/assembly.html#class_binaries but I Cannot figure out how... Here is the bin.xml, thanks for any help. assembly idbin/id formats formattar.gz/format /formats moduleSets moduleSet binaries includeDependenciestrue/includeDependencies outputDirectorylib/outputDirectory /binaries /moduleSet /moduleSets fileSets fileSet includes includeREADME*/include includeLICENSE*/include includeNOTICE*/include includelib/**/include /includes /fileSet fileSet directorytarget/directory outputDirectory/outputDirectory includes include*.jar/include /includes /fileSet /fileSets /assembly -- Daniele Dellafiore http://ildella.wordpress.com/ -- Daniele Dellafiore http://ildella.wordpress.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- ASCII ribbon campaign: () against HTML email /\ against Microsoft attachments Information: http://www.expita.com/nomime.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Ant tasks to deploy a jar
No problem here, it works as explained in http://maven.apache.org/ant-tasks.html. Can you send the Ant build fragment you're using? Hervé Le mercredi 12 décembre 2007, Paul Gier a écrit : Has anyone successfully deployed a jar file to a maven repository using the artifact:deploy ant task? I tried using this task with both maven 2.0.6 and maven 2.0.8, and it would only deploy the pom files and not the jar. I ended up using ant exec/ and just calling mvn deploy:deploy-file. I'm wondering if I'm just missing something? Or if this is broken I will create a jira issue. Also if anyone has other suggestions about the easiest way to deploy ant built jars into a maven repo I would appreciate your ideas. Thanks! - 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: Using build number in Maven antlib?
Le jeudi 13 décembre 2007, Dees, Ian (GE Healthcare) a écrit : Is there a way to retrieve the Maven build number using the Maven antlib plugin? I'd like to append the build number to the file name for some of our Ant tasks. Thanks Ian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] can you elaborate? I don't understand what you are trying to do: are you trying to get SNAPSHOT unique version when resolving a dependency, or trying to get the unique version when installing or deploying an artifact? Hervé - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
using resources from a jar file
Hi everyone, I'd like to know if there is some way to extract a resource from a jar file ... For example: I have a jar file with some XMLs files inside it. When my app is packaged i wanna to extract the XMLs files from the dependency (jar file) to target/classes I wrote a plugin to do it for me, but if there is a native way to do it will be better. Regards, Márcio Moraes.
Re: Pre-release Testing Best Practices?
In your situation, whenever you think you are ready for a release, I'd just run release:prepare to create the tag, but not run release:perform immediately. Then check out the tag, and run your manual regression etc. testing suites against it. If minor things - like configuration or versions are wrong, fix directly in the tag, otherwise just abandon the tag and never release that version, fix the build and and release:prepare a new one - you got unlimited number of versions at your disposal. Once you are confident the tag's good, only then release:perform or just deploy from the tag. Basically you always consider a tag a normally versioned release candidate until you publish it into your distribution repository. This is what we do in one projects and generally works well. After all, this is why the release is a two-step process. Kalle On 12/13/07, Eric Minick [EMAIL PROTECTED] wrote: Thanks Marco, I also tend to agree here as well and I think this would be a no-brainier if I was going to production quarterly. This particular project has minor updates going into production every week or three. That's border-line insane, but that matches the business needs. I've been at a number of organizations that work the same way. My concern is that branch explosion could be difficult to manage from a CI perspective as well as for developers. I again find myself asking for best practices without giving all the details. My apologies. Best practices always change a bit as you face different problems. -- Eric On 12/13/07, Beelen, M. - SPLXL [EMAIL PROTECTED] wrote: Eric, When I read your email I think it's more an issue for source code management and versioning, then that it should be for maven. If you start the process of releasing a module, you could create a branch for that version and then release some beta or milestones (M1, M2, M3, ., M10) from that branch and send it to QA. If QA approves a certain milestone, you could check it out and adjusted the version-number to remove the milestone identifier and release the actual version. Changes to mainline code should be performed on the trunk so they won't get in the way of you release and QA proces. Upon your release, you should merge the changes from the branch to the trunk and continue to work on the next release. With kind regards, Marco -Original Message- From: Eric Minick [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 12, 2007 11:25 PM To: users@maven.apache.org Subject: Pre-release Testing Best Practices? I'm looking at doing some releases using the maven release plugin. Our environment is a set of pretty typical in house development projects for some web-apps. So we have things like dev, qa and production environments for deployment and frequent releases. We don't want to cut a release before doing QA on it. So an ideal scenario is to put a snapshot build into QA, and get it approved. Once approved, we would want to release that code, verify that dependency changes didn't break things with regression tests, then move on to staging and production. A natural concern here is that there are likely more changes to the mainline code base that come in during testing and we would not want to release those. Getting the code that went into the tested build out of source control at release time is not a problem though. I have two questions: 1) Are there common \ recommended strategies for dealing with this type of scenerio? 2) If I just pull the old code out and run a release, is the SVN label (copy) command a local copy (which would only include the files in my release space) or a remote copy (which would include my newly checked in pom as well as any changes committed since we went to QA)? Thanks, Eric - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ** For information, services and offers, please visit our web site: http://www.klm.com. This e-mail and any attachment may contain confidential and privileged material intended for the addressee only. If you are not the addressee, you are notified that no part of the e-mail or any attachment may be disclosed, copied or distributed, and that any other action related to this e-mail or attachment is strictly prohibited, and may be unlawful. If you have received this e-mail by error, please notify the sender immediately by return e-mail, and delete this message. Koninklijke Luchtvaart Maatschappij NV (KLM), its subsidiaries and/or its employees shall not be liable for the incorrect or incomplete transmission of this e-mail or any attachments, nor responsible for any delay in receipt. Koninklijke Luchtvaart Maatschappij N.V. (also known as KLM Royal
Re: using resources from a jar file
Check dependency:unpack. Wayne On 12/13/07, Márcio Moraes [EMAIL PROTECTED] wrote: Hi everyone, I'd like to know if there is some way to extract a resource from a jar file ... For example: I have a jar file with some XMLs files inside it. When my app is packaged i wanna to extract the XMLs files from the dependency (jar file) to target/classes I wrote a plugin to do it for me, but if there is a native way to do it will be better. Regards, Márcio Moraes. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: using resources from a jar file
Hello, If you extract your XML files into target/classes, this may mean that you want to load them through your classpath loading mechanism. You could use the jars as is in your final assembly/application,adding them to your loaded classpath. That could simplify your pom. But there may be other reasons I am not aware of :) My 50 cts -- Arnaud Bailly, PhD OQube - Software Engineering http://www.oqube.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[c-1.1] Need to understand hot to set MyProject_HOME for continuum
In my normal Manen build, I have a variable called MyProject_HOME set to * C:\opt\MyProject* and I use that throughout my build. Now I want to understand where to set that in order to still run Continuum? Am I going to set a another system variable to * /opt/contiuum/workingDirectory/* -- Thanks, Mick Knutson http://www.baselogic.com http://www.blincmagazine.com http://www.djmick.com http://www.myspace.com/mickknutson http://www.myspace.com/BLiNCMagazine http://tahoe.baselogic.com ---
Re: [assembly] add all dependency jars to lib folder in a bin assembly
Richard Chamberlain wrote: Hi. I use the following: dependencySets dependencySet outputDirectory/lib/outputDirectory unpackfalse/unpack scoperuntime/scope /dependencySet /dependencySets It puts all the dependencies into lib. Any idea how to add the contents of lib to classpath? (I have an executable jar file and when I add the dependencies to the lib folder the main class cannot be found.) -- Regards Erik Drolshammer - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Errror while running the target mvn:archetype
I'm getting the following error please help me to solve this D:\Annhuntsmvn archetype:create -DgroupId=com.mycompany.app -DartifactId=my-app [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'archetype'. [INFO] org.apache.maven.plugins: checking for updates from central [INFO] org.codehaus.mojo: checking for updates from central [INFO] artifact org.apache.maven.plugins:maven-archetype-plugin: checking for up dates from central Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-archet ype-plugin/1.0-alpha-7/maven-archetype-plugin-1.0-alpha-7.pom 4K downloaded Downloading: http://repo1.maven.org/maven2/org/apache/maven/archetype/maven-arch etype/1.0-alpha-7/maven-archetype-1.0-alpha-7.pom 3K downloaded Downloading: http://repo1.maven.org/maven2/org/apache/maven/archetype/maven-arch etype-parent/2/maven-archetype-parent-2.pom 2K downloaded Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven-parent/5/maven -parent-5.pom 14K downloaded Downloading: http://repo1.maven.org/maven2/org/apache/apache/3/apache-3.pom 3K downloaded Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-archet ype-plugin/1.0-alpha-7/maven-archetype-plugin-1.0-alpha-7.jar 2K downloaded [WARNING] *** CHECKSUM FAILED - Checksum failed on download: local = '9eaf6ba99d 12f776fb14d486ab2942887dfcc55a'; remote = 'b0280b2e376542c692104f38b14a4892e509a 379' - RETRYING Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-archet ype-plugin/1.0-alpha-7/maven-archetype-plugin-1.0-alpha-7.jar 2K downloaded [WARNING] *** CHECKSUM FAILED - Checksum failed on download: local = '009aa04756 a4faf583ae3f70bac15f780ba10a11'; remote = 'b0280b2e376542c692104f38b14a4892e509a 379' - IGNORING [INFO] [ERROR] FATAL ERROR [INFO] [INFO] The PluginDescriptor for the plugin Plugin [org.apache.maven.plugins:mave n-archetype-plugin] was not found. [INFO] [INFO] Trace java.lang.IllegalStateException: The PluginDescriptor for the plugin Plugin [org .apache.maven.plugins:maven-archetype-plugin] was not found. at org.apache.maven.plugin.DefaultPluginManager.addPlugin(DefaultPluginM anager.java:321) at org.apache.maven.plugin.DefaultPluginManager.verifyVersionedPlugin(De faultPluginManager.java:208) at org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPlug inManager.java:172) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(Defa ultLifecycleExecutor.java:1257) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor (DefaultLifecycleExecutor.java:1522) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListBy AggregationNeeds(DefaultLifecycleExecutor.java:386) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi fecycleExecutor.java:138) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:333) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:126) at org.apache.maven.cli.MavenCli.main(MavenCli.java:282) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) 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: 15 seconds [INFO] Finished at: Thu Dec 13 20:06:36 IST 2007 [INFO] Final Memory: 1M/3M [INFO] -- View this message in context: http://www.nabble.com/Errror-while-running-the-target-mvn%3Aarchetype-tp14331395s177p14331395.html 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: Profiles and filtering - global files
Thanks a lot, Mick. That ought to do the trick. One question though, is there any way to avoid having a hardcoded path as projectRoot? What I'm looking for is some way of defining the top-level pom directory (e.g. ${toplevel.project.dir} that points to the directory where I started my mvn command). I'm sorry I'm not able to return the favor by helping you out in turn... Mick Knutson-4 wrote: I have solved that issue by setting a projectRoot variable: profile idlocal/id activation activeByDefault/ /activation projectRootC:/viewstore/esp_lynx_dap/esp/dap/projectRoot Then my filter is: profile idlocal/id build filters filter${projectRoot}/src/main/filters/filter- local.properties/filter /filters /build /profile profile iddev-/id build filters filter${projectRoot}/src/main/filters/filter- dev-.properties/filter /filters /build /profile Then they all use the same filter. But I have an issue where only the local filter is picked up. Any idea how to override each filter as a profile? On Dec 4, 2007 12:05 PM, CasMeiron [EMAIL PROTECTED] wrote: Yes, i got this problem too this week. On Dec 4, 2007 7:40 AM, heimlich [EMAIL PROTECTED] wrote: Hi all, I'm in a bit of a pickle, and I'm hoping someone can help me out. I have an extensive Maven project with the following layout: project A, packaging: pom project A.A, packaging: pom project A.A.A, packaging: jar project A.A.B, packaging: jar project A.A.C, packaging: war ... project A.B, packaging: pom project A.B.A, packaging: jar project A.B.B, packaging: war project A.B.C, packaging: war ... And I have a global properties file used as a configuration file that I want filtered depending on which profile I run: # conf.properties URL_TO_SERVER1=${env.server1.address} URL_TO_SERVER2=${env.server1.address} ... And I have three filter files: #dev.properties env.server1.address=server1.dev.example.com env.server2.address=server2.dev.example.com #test.properties env.server1.address=server1.test.example.com env.server2.address=server2.test.example.com #prod.properties env.server1.address=server1.prod.example.com env.server2.address=server2.prod.example.com Now, How do I configure the top POM (project A above) to filter conf.properties using (say) filter dev.properties. I had a go at it with the following top POM: project modelVersion4.0.0/modelVersion groupIdcom.example/groupId artifactIdprojA/artifactId packagingpom/packaging version1.0-SNAPSHOT/version nameProject A/name build /build modules moduleA/module moduleB/module /modules dependencyManagement ... /dependencyManagement dependencies dependency groupIdjunit/groupId artifactIdjunit/artifactId scopetest/scope /dependency /dependencies profiles profile iddev/id activation activeByDefaulttrue/activeByDefault /activation build filters filter${basedir}/filters/dev.properties/filter /filters resources resource directorysrc/main/resources/directory filteringtrue/filtering /resource /resources /build /profile profile idtest/id build filters filter${basedir}/filters/test.properties/filter /filters resources resource directorysrc/main/resources/directory filteringtrue/filtering /resource /resources /build /profile profile idprod/id build filters filter${basedir}/filters/prod.properties/filter /filters resources resource directorysrc/main/resources/directory filteringtrue/filtering /resource /resources /build /profile /profiles /project The problem is that each subproject tries to refer to the 'filters' directory IN ITS OWN directory structure, not the one at the top. The reason for this structure is that I want: ONE conf.properties ONE filter file per profile and I want the filtered conf.properties copied into src/main/resources of each subproject (I'm, willing to consider having copies of an unfiltered conf.propertiesin each project's resources directory). Can it be done (how?) or should try a different approach (any suggestions)? Or should I have no filtering, and just three different properties files (dev, test and prod) at the