RE: [m2] Xdoclet trial
Hi Kenney, Ok now it downloads. Then I get the following exception Caused by: org.apache.maven.project.ProjectBuildingException: Failed to parse model from file '/home/kevin/.m2/repository/org/apache/maven/plugins/maven-xdoclet-plugin/1. 0-20050813.152803-4/maven-xdoclet-plugin-1.0-20050813.152803-4.pom'. Error: 'TEXT must be immediately followed by END_TAG and not START_TAG (position: START_TAG seen ...snapshotRepository\n id... @311:11) ' Looking at the project descriptor http://maven.apache.org/maven2/maven-model/maven.html There is no snapshotRepository tag defined there or in the XSD. I commented out that tag block and things proceeded smoothly until: [INFO] Retrieving snapshot information for maven-plugin-parent 2.0-beta-1-SNAPSHOT Downloading: http://repo1.maven.org/maven2/maven/plugins/maven-plugin-parent/2.0-beta-1-S NAPSHOT/maven-plugin-parent-2.0-beta-1-SNAPSHOT.pom [WARNING] Unable to get resource from repository http://repo1.maven.org/maven2 Downloading: http://www.neonics.com/maven2//maven/plugins/maven-plugin-parent/2.0-beta-1- SNAPSHOT/maven-plugin-parent-2.0-beta-1-SNAPSHOT.pom [WARNING] Unable to get resource from repository http://www.neonics.com/maven2/ Looking at the repository in by browser, it does not look as expected. I am tempted to recreate the maven-plugin-parent repository locally. Have you a better idea? Much appreciated, Kevin -Original Message- From: Kenney Westerhof [mailto:[EMAIL PROTECTED] Sent: 17 August 2005 19:22 To: Maven Users List Subject: Re: [m2] Xdoclet trial On Wed, 17 Aug 2005, Adam Hardy wrote: Hi, Permissions are fixed now. Seems the 'm2 deploy' doesn't set the proper file permissions. Sorry! Btw: the latest version (-4) needs m2 trunk (because of maven-antrun-plugin). The previous versions don't but need plexus-override-component-configurator. I'm thinking about dropping support for alpha-3 and require beta-1(-SNAPSHOT). -- Kenney Kevin McNamee on 17/08/05 14:22, wrote: Hi, I am trying to get Xdoclet working with m2. Has anyone encountered a 403 Forbidden when downloading the latest xdoclet plugin from http://www.neonics.com/maven2/org/apache/maven/plugins/maven-xdoclet-plugin/ 1.0-SNAPSHOT/ I see that too. A couple of weeks ago I managed to download it fine - are you sure it's the right directory or perhaps there's a message on the website? If you're desperate I can email you the jar. Adam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Kenney Westerhof http://www.neonics.com GPG public key: http://www.gods.nl/~forge/kenneyw.key - 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]
how to setup an ibiblio-upload-request for native code ?
Hello, I'd like to set an upload request for javadesktop JDIC : https://jdic.dev.java.net/ This toolkit allow me to setup a windows system-tray icon for my java application It requires 4 artifacts : - a common (portable) jar - a native stub jar - a native DLL - a tray specialized DLL On linux or sunos, it requires multiple .so How to setup an upload request for such native artifacts ? What artifact type to set ? Is they're some rules for naming such artifacts ? Thanks for help. This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[M2] How to specify a diferent resource directory in resource:resources plugin
Hi Is there a way in pom.xml to pass a list instead of a string as a property value? I want to use a resources:resources plugin before war packaging, so it would filter a webapp directory. Problem is that resources expects a list, not a String. This is a section of pom.xml file. plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-resources-plugin/artifactId executions execution phasetest/phase configuration resources${basedir}/src/main/webapp/WEB-INF/conf/resources Thanks, Andrius Karpavicius - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [m2] Xdoclet trial
On Thu, 18 Aug 2005, Kevin McNamee wrote: Hi Kenney, Ok now it downloads. Then I get the following exception Caused by: org.apache.maven.project.ProjectBuildingException: Failed to parse model from file '/home/kevin/.m2/repository/org/apache/maven/plugins/maven-xdoclet-plugin/1. 0-20050813.152803-4/maven-xdoclet-plugin-1.0-20050813.152803-4.pom'. Error: 'TEXT must be immediately followed by END_TAG and not START_TAG (position: START_TAG seen ...snapshotRepository\n id... @311:11) ' That version is meant to work with the latest m2 from trunk. You'll need to bootstrap. If you want it to work with alpha-3, you need to specify version 1.0-20050615.091250-3 for the plugin. Looking at the project descriptor http://maven.apache.org/maven2/maven-model/maven.html There is no snapshotRepository tag defined there or in the XSD. Correct, those are alpha-3 docs. I commented out that tag block and things proceeded smoothly until: [INFO] Retrieving snapshot information for maven-plugin-parent 2.0-beta-1-SNAPSHOT Downloading: http://repo1.maven.org/maven2/maven/plugins/maven-plugin-parent/2.0-beta-1-S NAPSHOT/maven-plugin-parent-2.0-beta-1-SNAPSHOT.pom [WARNING] Unable to get resource from repository http://repo1.maven.org/maven2 Downloading: http://www.neonics.com/maven2//maven/plugins/maven-plugin-parent/2.0-beta-1- SNAPSHOT/maven-plugin-parent-2.0-beta-1-SNAPSHOT.pom [WARNING] Unable to get resource from repository http://www.neonics.com/maven2/ Looking at the repository in by browser, it does not look as expected. I am tempted to recreate the maven-plugin-parent repository locally. Have you a better idea? Yes, fix the version in your pom to 1.0-20050615.091250-3, or bootstrap m2 from the svn repository.. Sorry this isn't documented on the site! Much appreciated, Kevin No problem, thanks! Kenney -Original Message- From: Kenney Westerhof [mailto:[EMAIL PROTECTED] Sent: 17 August 2005 19:22 To: Maven Users List Subject: Re: [m2] Xdoclet trial On Wed, 17 Aug 2005, Adam Hardy wrote: Hi, Permissions are fixed now. Seems the 'm2 deploy' doesn't set the proper file permissions. Sorry! Btw: the latest version (-4) needs m2 trunk (because of maven-antrun-plugin). The previous versions don't but need plexus-override-component-configurator. I'm thinking about dropping support for alpha-3 and require beta-1(-SNAPSHOT). -- Kenney Kevin McNamee on 17/08/05 14:22, wrote: Hi, I am trying to get Xdoclet working with m2. Has anyone encountered a 403 Forbidden when downloading the latest xdoclet plugin from http://www.neonics.com/maven2/org/apache/maven/plugins/maven-xdoclet-plugin/ 1.0-SNAPSHOT/ I see that too. A couple of weeks ago I managed to download it fine - are you sure it's the right directory or perhaps there's a message on the website? If you're desperate I can email you the jar. Adam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Kenney Westerhof http://www.neonics.com GPG public key: http://www.gods.nl/~forge/kenneyw.key - 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] -- Kenney Westerhof http://www.neonics.com GPG public key: http://www.gods.nl/~forge/kenneyw.key - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [M2] How to specify a diferent resource directory in resource:resources plugin
For lists, you should separate into elements like so: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-resources-plugin/artifactId executions execution phasetest/phase configuration resources resource${basedir}/src/main/webapp/WEB-INF/conf/resource /resources Andrius Karpavicius wrote: Hi Is there a way in pom.xml to pass a list instead of a string as a property value? I want to use a resources:resources plugin before war packaging, so it would filter a webapp directory. Problem is that resources expects a list, not a String. This is a section of pom.xml file. plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-resources-plugin/artifactId executions execution phasetest/phase configuration resources${basedir}/src/main/webapp/WEB-INF/conf/resources Thanks, Andrius Karpavicius - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [M2] How to specify a diferent resource directory in resource:resources plugin
Hi, Thanks, it doesn't complain anymore that it is not a list, however does not pay any attention to the resources parameter I specify. I added a printout in ResourcesMojo and the only directory it picks up is a default one - src/main/resources The rest of parameters - outputDirectory, filterPropertiesFile and filtering work fine. --- T E S T S --- There are no test to run. Results : [surefire] Tests run: 0, Failures: 0, Errors: 0 [INFO] [resources:resources {execution: default}] --Resource directory: C:\projektai\stotissi_v4\projects\sintagma-authentication\src\main\resources [INFO] [INFO] BUILD SUCCESSFUL [INFO] Here is a section of pom.xml file. plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-resources-plugin/artifactId executions execution phasetest/phase goals goalresources/goal /goals configuration resources resource${basedir}/src/main/webapp/resource /resources outputDirectory ${project.build.directory}/${project.build.finalName} /copiedwithresources/outputDirectory filterPropertiesFile${basedir}/src/filters/filter.properties/ filterPropertiesFile filteringtrue/filtering /configuration /execution /executions /plugin /plugins /build Thank you, Andrius Karpavicius Edwin Punzalan [EMAIL PROTECTED] 2005.08.18 12:07 Please respond to Maven Users List users@maven.apache.org To Maven Users List users@maven.apache.org cc Subject Re: [M2] How to specify a diferent resource directory in resource:resources plugin For lists, you should separate into elements like so: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-resources-plugin/artifactId executions execution phasetest/phase configuration resources resource${basedir}/src/main/webapp/WEB-INF/conf/resource /resources Andrius Karpavicius wrote: Hi Is there a way in pom.xml to pass a list instead of a string as a property value? I want to use a resources:resources plugin before war packaging, so it would filter a webapp directory. Problem is that resources expects a list, not a String. This is a section of pom.xml file. plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-resources-plugin/artifactId executions execution phasetest/phase configuration resources${basedir}/src/main/webapp/WEB-INF/conf/resources Thanks, Andrius Karpavicius - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [m2] Transitive Dependency Question
Is it a bug in the javadoc (not using the compile path) or the compiler (using a dependency it shouldn't)? The portal server we use already puts log4j into the app server's classpath, so we aren't actually adding that. I have not seen any docs regarding not putting log4j into a container. Looking at the link Jason sent, it would appear that what I am doing fits. I am completely hiding the use of log4j behind the API of the logging project; no other components of our code should have any interest in exactly how the logging is performed. Is Monitor a standard pattern I can find somewhere or is that an IoC artifact? -Original Message- From: Brett Porter [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 17, 2005 22:18 To: Maven Users List Subject: Re: [m2] Transitive Dependency Question On 8/18/05, Allison, Bob [EMAIL PROTECTED] wrote: What is the correct scope to make this work (or do I need to explicitly state the dependency on log4j in the logging project)? Sounds more like a bug in the javadoc plugin. Redeclaring will work as a workaround, but please file a JIRA issue. Is this configured properly so that the log4j and log4jext jars won't get packaged into the war file? You'd need to redeclare the ext jar in the WAR's POM with scope provided. But also, you should read the docs on the log4j site about why putting log4j into the container is a bad idea (and even better, read the info Jason sent here). Cheers, Brett - 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 1.0.2, uberjar and properties problem
It tried modifying the required maven version to 1.0.2, and now the plugin executes, but it did not generate a working bundled jar [MyPoints -test should just echo properties read from the application's config file] screen shot--- javaapp:jar: [unzip] Expanding: C:\src\MyPoints\target\javaapp\lib\classes12.jar into C:\src\MyPoints\target\javaapp [unzip] Expanding: C:\src\MyPoints\target\javaapp\lib\commons-configuration-1.1.jar into C:\src\MyPoints\target\java app [move] Moving 1 files to C:\src\MyPoints\target\javaapp\META-INF [unzip] Expanding: C:\src\MyPoints\target\javaapp\lib\commons-httpclient-3.0-rc3.jar into C:\src\MyPoints\target\jav aapp [move] Moving 1 files to C:\src\MyPoints\target\javaapp\META-INF [unzip] Expanding: C:\src\MyPoints\target\javaapp\lib\commons-lang-2.0.jar into C:\src\MyPoints\target\javaapp [move] Moving 1 files to C:\src\MyPoints\target\javaapp\META-INF [unzip] Expanding: C:\src\MyPoints\target\javaapp\lib\jcert.jar into C:\src\MyPoints\target\javaapp [unzip] Expanding: C:\src\MyPoints\target\javaapp\lib\jnet.jar into C:\src\MyPoints\target\javaapp [unzip] Expanding: C:\src\MyPoints\target\javaapp\lib\jsse.jar into C:\src\MyPoints\target\javaapp [unzip] Expanding: C:\src\MyPoints\target\javaapp\lib\log4j-1.2.11.jar into C:\src\MyPoints\target\javaapp [delete] Deleting 1 files from C:\src\MyPoints\target\javaapp\META-INF [delete] Deleting 1 files from C:\src\MyPoints\target\javaapp\META-INF [delete] Deleting 1 files from C:\src\MyPoints\target\javaapp\META-INF [echo] Copying class files to C:\src\MyPoints/target/javaapp/classes [copy] Copying 3 files to C:\src\MyPoints\target\javaapp [delete] Deleting directory C:\src\MyPoints\target\javaapp\lib [jar] Building jar: C:\src\MyPoints\target\MavenPoints-1.0-app.jar BUILD SUCCESSFUL Total time: 22 seconds Finished at: Thu Aug 18 08:49:52 EDT 2005 C:\src\MyPointsjava -jar target\MavenPoints-1.0-app.jar -test target\MavenPoints-1.0-app.jar INFO (MyPoints.java:73) - starting Exception in thread main java.lang.NoClassDefFoundError: org/apache/commons/collections/Predicate at com.bookspan.referral.MyPoints.readConfig(MyPoints.java:587) at com.bookspan.referral.MyPoints.init(MyPoints.java:619) at com.bookspan.referral.MyPoints.main(MyPoints.java:75) -Original Message- From: Jörg Schaible [mailto:[EMAIL PROTECTED] Sent: Thursday, August 18, 2005 2:52 AM To: Maven Users List Subject: RE: Maven 1.0.2, uberjar and properties problem Hi David + Jamie, Jamie Bisotti wrote on Wednesday, August 17, 2005 11:07 PM: On 8/17/05, Levitt, David, Bookspan [EMAIL PROTECTED] wrote: [snip] Attempting to download maven-1.0.1.jar. Error retrieving artifact from [http://maven-plugins.sf.net/maven/maven/jars/maven-1.0.1.jar]: java.io.IOException: Unkn own error downloading; status code was: 302 WARNING: Failed to download maven-1.0.1.jar. The build cannot continue because of the following unsatisfied dependency: maven-1.0.1.jar Total time: 3 seconds Finished at: Wed Aug 17 13:26:38 EDT 2005 Yeah, I'm actually seeing the same problem when I actually try to execute it. Strange. Assuming you are using Windows, try going to %HOMEDRIVE%%HOMEPATH%\.maven\cache\maven-javaapp-plugin-1.3. Edit the project.xml and change it's Maven dependency from 1.0.1 to 1.0.2. See if that gets you any further. That's pretty old stuff. Does no one use this plugin? well, maven-1.0.1.jar is available as artifact from ibiblio and, yes, I use this plugin with Maven 1.0.2 without problems for several months now on daily work. - Jörg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[Maven_1.1-beta-1]
Hello! Is it possible to change the local repository of Maven? It's C:\Documents anb settings\login\.maven and I would llike to change it. Aurélie - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven and Big Projects. Help and ideas.
Hi Dan, Thank you very much for the reply. I still have some doubts and think that maybe you can help me. 1) web parent common war What would be contained inside the common and parent?? It would generate different wars?? 2) The whole big project (ear) would take some time to deploy. How would each developer deploy small parts to tests their development separatelly?? My developers will be doing junit tests on their session ejbs...but at some points they will have to do something more integrated. Thanks in advance! Marcelo On 8/17/05, dan tran [EMAIL PROTECTED] wrote: Marcelo, Maven promotes cohesive build, one artifact per project. this works out very well for us here with very big proeject. In your case, Your bussiness project will have many smaller projects under underneath. Then you will have on project on project to aggregate related sub project together. bussiness jar1 jar2 jar3 parent - not artifact build but has common setting common shared jar used by other ear? web parent common war etc... Hope it helps... But if you have specific question on deployment .. feel free to ping more -D On 8/17/05, Jesse McConnell [EMAIL PROTECTED] wrote: sorry, not a clue :/ sure someone else on here has dealt with it though :) best of luck, jesse On 8/17/05, Marcelo Alcantara [EMAIL PROTECTED] wrote: Hi Jesse, I am right now working with Maven 1. As I don´t feel safe in using Maven 2 yet (should I??). Any ideas for it based on Maven 1?? Regards, Marcelo On 8/17/05, Jesse McConnell [EMAIL PROTECTED] wrote: you thinking maven 1 or 2? I can't speak to maven1, but this project design would be pretty easy to implement and manage in m2. I think John is planning on making a sample large project archetype to bootstrap the design layout of a project like this.. but is really is pretty easy in m2, imo at least Jesse On 8/17/05, Marcelo Alcantara [EMAIL PROTECTED] wrote: Hi, I am working on a very big billing project with 40 developers, and I am intending to use maven on it. Some questions that are still in my mind. How do you usually devide the project into small units to ease development and local deployment/testing?? Actually I did a multiproject in the initial framework based on the following structure: project +--base (base configuration for other projects) +--common (common classes to be used between web and business modules) +--business (ejbs) +--web (web...) As I can see, it is not going to be a good idea to have a lot of ejbs into de business jar. Nor will be having all the web resources inside the web war. How do you usually do in your big projects?? Thanks for any help. -- Marcelo Alcantara Senior Developer/Architect [EMAIL PROTECTED] +55 11 81968823 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -- jesse mcconnell - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Marcelo Alcantara Senior Developer/Architect [EMAIL PROTECTED] +55 11 81968823 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -- jesse mcconnell - 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] -- Marcelo Alcantara Senior Developer/Architect [EMAIL PROTECTED] +55 11 81968823 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Goal gridSphereDeployAll does not exist in this project.
I am trying (for the first time) to deploy gridsphere 2.0.2 on ogce2. I have ant, maven, tomcat (and compat patch), j2sdk *seemingly running well. This is what I get when I build ant and deploy gridsphere: ## install: [echo] GridSphere successfully installed. [echo] Please start up Tomcat and go to http://127.0.0.1/gridsphere/gridsphere [echo] Login as root with empty password http://140.192.37.11:8080/gridsphere/gridsphere [EMAIL PROTECTED]:~/gridsphere-2.0.2/src$ ./ant install Buildfile: build.xml install: BUILD SUCCESSFUL Total time: 10 seconds ## According to the site: http://www.collab-ogce.org/nmi/ogce2-docs/gridsphere_info.html I have done everything correctly. However, when I try to fire it up with maven, here's what I get: ### [EMAIL PROTECTED]:~/maven-1.0.2/bin$ ./maven gridSphereDeployAll __ __ | \/ |__ _Apache__ ___ | |\/| / _` \ V / -_) ' \ ~ intelligent projects ~ |_| |_\__,_|\_/\___|_||_| v. 1.0.2 BUILD FAILED Goal gridSphereDeployAll does not exist in this project. Total time: 9 seconds Finished at: Thu Aug 18 08:26:42 CDT 2005 ### Re the last error, Goal gridSphereDeployAll does not exist in this project., I have been unlucky finding help online. If anyone can help me resolve this, I'll appreciate the help. If this is the wrong mailing list, please let me know. Regards, Bradley Andersen Client Services Analyst I UITS Support Center Indiana University - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Maven_1.1-beta-1]
At 08:57 AM 8/18/2005, you wrote: Hello! Is it possible to change the local repository of Maven? It's C:\Documents anb settings\login\.maven and I would llike to change it. Aurélie - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Aurelie, The location of the repository is tied to the value of the system property user.dir. You ought to be able to set that via MAVEN_OPTS. The syntax is -Duser.dir=desired location. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: how to setup an ibiblio-upload-request for native code ?
I don't know if there is a standard for this type of artifact. Everything I've seen in Ibiblio is a jar. For our company's projects, we do have needs for DLL artifacts as well as DLLs that require additional configuration and data files. In our internal repository, we've standardized on a 'dll' type for DLL artifacts that work by themselves, and a 'zip' type for those that need additional materials (the artifact is a .zip file that contains the necessary DLLs and/or configuration and data files). This seems to work well. The biggest problem you'll face when using DLL dependencies is that you have to collect the DLLs into a single location in order to run (typically for running the tests). With jar artifacts Maven sets up the classpath to point to the individual jars in the repository, but there isn't really a similar concept for DLLs. The projects we have that use DLLs will use a preGoal element for the test goal that copies the DLLs to the target (or test-classes) directory before running the tests. In your situation, you should decide whether the 4 artifacts for JDIC should be 4 separate artifacts or a single .zip artifact. Once you've figured that out, it's just a matter of collecting those dependencies before running whatever it is you're doing. On a similar note, I hear that preGoal and postGoal aren't in Maven 2. How would one do something like this (have a project collect the necessary dependency binaries and/or prepare custom configuration files before running tests or some other goal) in Maven 2? (I admit I haven't started learning M2, so this might be covered in the docs. I'll be starting to move things to M2 next week.) ..David.. -Original Message- From: Nicolas De Loof [mailto:[EMAIL PROTECTED] Sent: Thursday, August 18, 2005 2:27 AM To: Maven Users List Subject: how to setup an ibiblio-upload-request for native code ? Hello, I'd like to set an upload request for javadesktop JDIC : https://jdic.dev.java.net/ This toolkit allow me to setup a windows system-tray icon for my java application It requires 4 artifacts : - a common (portable) jar - a native stub jar - a native DLL - a tray specialized DLL On linux or sunos, it requires multiple .so How to setup an upload request for such native artifacts ? What artifact type to set ? Is they're some rules for naming such artifacts ? Thanks for help. This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. - 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: Goal gridSphereDeployAll does not exist in this project.
Andersen, Bradley David wrote: [EMAIL PROTECTED]:~/maven-1.0.2/bin$ ./maven gridSphereDeployAll Bradley, I'm a member of the OGCE project. The above line suggests to me that you ran this command from the maven/bin directory. Instead you want to add the maven/bin directory to your path and then run this command from the ogce2 directory. Something like this: export MAVEN_HOME=~/maven-1.0.2 export PATH=$MAVEN_HOME/bin:$PATH cd OGCE directory maven gridSphereDeployAll In the OGCE directory you'll find a maven.xml file which defines the gridSphereDeployAll goal. I would also suggest that you subscribe to the OGCE mailing list for future inquiries. Send an email to [EMAIL PROTECTED] with subscribe discuss in the message body. Thanks, Marc -- Marcus Christie | [EMAIL PROTECTED] Office: 812-855-4081 | Cell: 812-391-2196 Yahoo IM: m_christie | AOL: marcuschristie | MSN: [EMAIL PROTECTED] Calendar: http://www.cs.indiana.edu/~machrist/Schedule.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m1] war-resources filtering
I have a need for filtering from ${maven.war.src}. Searching JIRA for war filter comes up with a few unresolved issues that I think are related: http://jira.codehaus.org/browse/MPWAR-46 http://jira.codehaus.org/browse/MPWAR-39 http://jira.codehaus.org/browse/MPWAR-37 The Maven documentation at http://maven.apache.org/using/resources.html and the thread ending at http://mail-archives.apache.org/mod_mbox/maven-users/200504.mbox/[EMAIL PROTECTED] suggests writing a pre-goal for java:jar-resources , but I need this applied to war:war-resources. I think the solution in http://jira.codehaus.org/browse/MPWAR-46 is what I need to do, but I don't understand how I would write this as a goal/pre-goal in m1, and specify a filtersfile. Furthermore, I would like to invoke maven specifying different filterfiles, e.g. for dev, qa, production environments. I know this goes against the best practice recommendation for reproducible builds http://maven.apache.org/using/bestpractices.html#Reproduciblity , but I can't refactor to write external configuration yet. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
project.xml, maven-v3_0_0.xsd and xml aware editors
Is there a standard way [a 'best practice'] for declaring a project for an XML aware editor? [using JEdit 4.2 with the XML plugin] I'm starting with: project xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:noNamespaceSchemaLocation=http://maven.apache.org/maven-v3_0_0.xsd; and the editor flags the noNamespaceSchemaLocation declaration as incorrect. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Maven_1.1-beta-1]
what you want is to override maven.repo.local to somewhere else. Where to put this property? http://maven.apache.org/reference/properties.html -D On 8/18/05, Andy Glick [EMAIL PROTECTED] wrote: At 08:57 AM 8/18/2005, you wrote: Hello! Is it possible to change the local repository of Maven? It's C:\Documents anb settings\login\.maven and I would llike to change it. Aurélie - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Aurelie, The location of the repository is tied to the value of the system property user.dir. You ought to be able to set that via MAVEN_OPTS. The syntax is -Duser.dir=desired location. - 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]
[M1.1b1] xdoc plugin problems
Here's a log of the problems I have been getting. I am building the site for a multiproject, and about a third of the lines printed are the log4j error. What is xdoc doing that is causing this error to display? It seems harmless, but I'd like to get it to go away so my log files would be smaller and my builds faster. Thanks for any help you all can offer Jim - [java] [echo] Generating the Simian Report... [java] Tag library requested that is not present: 'simian' in plugin: 'maven-simian-plugin-1.5' [java] Tag library requested that is not present: 'simian' in plugin: 'maven-simian-plugin-1.5' [java] maven-simian-plugin:report: [java] maven-simian-plugin:analyze: [java] [echo] Generating the Simian raw report ... [java] [echo] Converting the Simian report to xdoc ... [java] [echo] Generating the Task List... [java] xdoc:init-i18n: [java] xdoc:init: [java] [echo] Generates the directory structure required for xdocs [java] maven-tasklist-plugin:report: [java] [echo] Generating tasklist ... [java] xdoc:init-i18n: [java] xdoc:init: [java] [echo] Generates the directory structure required for xdocs [java] xdoc:i18n-validation: [java] [echo] Validation of the locale entries [java] xdoc:register-reports: [java] maven-changelog-plugin:register: [java] maven-changes-plugin:register: [java] maven-checkstyle-plugin:register: [java] maven-developer-activity-plugin:register: [java] maven-file-activity-plugin:register: [java] xdoc:init-i18n: [java] xdoc:init: [java] [echo] Generates the directory structure required for xdocs [java] maven-javadoc-plugin:register: [java] maven-jdepend-plugin:register: [java] maven-junit-report-plugin:register: [java] maven-jxr-plugin:register: [java] maven-license-plugin:register: [java] maven-pmd-plugin:register: [java] maven-javancss-plugin:register: [java] Tag library requested that is not present: 'simian' in plugin: 'maven-simian-plugin-1.5' [java] maven-simian-plugin:register: [java] maven-tasklist-plugin:register: [java] xdoc:generate-from-pom: [java] [echo] Generating xdocs from POM ... [java] [java] [java] [java] log4j:ERROR Attempted to append to closed appender named [null]. [java] log4j:ERROR Attempted to append to closed appender named [null]. [java] log4j:ERROR Attempted to append to closed appender named [null]. [java] log4j:ERROR Attempted to append to closed appender named [null]. repeats many more times - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m2] /repository/releases tag
Hi, What is the meaning of releases tag inside reposity in the pom? repository idsnapshots/id nameMaven Central Development Repository/name urlhttp://snapshots.maven.codehaus.org/maven2/url releases enabledfalse/enabled /releases /repository Tnx. -- Nobody knows who i really am I never felt this empty before And if I never need someone to come along Who's gonna comfort me and keep me strong? -- Marcell Manfrin Barbacena [EMAIL PROTECTED] MSN Messenger: [EMAIL PROTECTED] ICQ UIN: 63671762 Skype: callto://marcell84bruk +55 (83) 8808-8555 (Oi) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE : [M1.1b1] xdoc plugin problems
Jim, We also run Maven 1.1beta1. We have the same problem. Every time I run a multiproject:site, we get the same error log4j:ERROR Attempted to append to closed appender named [null]. We use Cruisecontrol and our log files grew from 1 MB to 9 MB!!! I'm not sure if it is an xdoc plugin bug. There are 2 interesting issues in Velocity Bugzilla that can cause this problem: http://issues.apache.org/bugzilla/show_bug.cgi?id=33695 http://issues.apache.org/bugzilla/show_bug.cgi?id=9039 Pascal -Message d'origine- De : Jim Dickinson [mailto:[EMAIL PROTECTED] Envoyé : August 18, 2005 12:13 À : Maven Users List Objet : [M1.1b1] xdoc plugin problems Here's a log of the problems I have been getting. I am building the site for a multiproject, and about a third of the lines printed are the log4j error. What is xdoc doing that is causing this error to display? It seems harmless, but I'd like to get it to go away so my log files would be smaller and my builds faster. Thanks for any help you all can offer Jim - [java] [echo] Generating the Simian Report... [java] Tag library requested that is not present: 'simian' in plugin: 'maven-simian-plugin-1.5' [java] Tag library requested that is not present: 'simian' in plugin: 'maven-simian-plugin-1.5' [java] maven-simian-plugin:report: [java] maven-simian-plugin:analyze: [java] [echo] Generating the Simian raw report ... [java] [echo] Converting the Simian report to xdoc ... [java] [echo] Generating the Task List... [java] xdoc:init-i18n: [java] xdoc:init: [java] [echo] Generates the directory structure required for xdocs [java] maven-tasklist-plugin:report: [java] [echo] Generating tasklist ... [java] xdoc:init-i18n: [java] xdoc:init: [java] [echo] Generates the directory structure required for xdocs [java] xdoc:i18n-validation: [java] [echo] Validation of the locale entries [java] xdoc:register-reports: [java] maven-changelog-plugin:register: [java] maven-changes-plugin:register: [java] maven-checkstyle-plugin:register: [java] maven-developer-activity-plugin:register: [java] maven-file-activity-plugin:register: [java] xdoc:init-i18n: [java] xdoc:init: [java] [echo] Generates the directory structure required for xdocs [java] maven-javadoc-plugin:register: [java] maven-jdepend-plugin:register: [java] maven-junit-report-plugin:register: [java] maven-jxr-plugin:register: [java] maven-license-plugin:register: [java] maven-pmd-plugin:register: [java] maven-javancss-plugin:register: [java] Tag library requested that is not present: 'simian' in plugin: 'maven-simian-plugin-1.5' [java] maven-simian-plugin:register: [java] maven-tasklist-plugin:register: [java] xdoc:generate-from-pom: [java] [echo] Generating xdocs from POM ... [java] [java] [java] [java] log4j:ERROR Attempted to append to closed appender named [null]. [java] log4j:ERROR Attempted to append to closed appender named [null]. [java] log4j:ERROR Attempted to append to closed appender named [null]. [java] log4j:ERROR Attempted to append to closed appender named [null]. repeats many more times - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] /repository/releases tag
This repository doesn't accept released artifacts, so, only snapshot. For a repository that accept only released artifacts, you use repository ... snapshot enabledfalse/enabled /snapshot /repository Emmanuel Marcell Manfrin Barbacena wrote: Hi, What is the meaning of releases tag inside reposity in the pom? repository idsnapshots/id nameMaven Central Development Repository/name urlhttp://snapshots.maven.codehaus.org/maven2/url releases enabledfalse/enabled /releases /repository Tnx. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] /repository/releases tag
On Thu, Aug 18, 2005 at 01:25:03PM -0300, Marcell Manfrin Barbacena wrote: Hi, What is the meaning of releases tag inside reposity in the pom? It is a hint to maven to say if the repository can contain releases or not. There is an equal snapshots tag indicating the same thing about snapshots. -- Trygve signature.asc Description: Digital signature
Re: Maven and Big Projects. Help and ideas.
On 8/18/05, Marcelo Alcantara [EMAIL PROTECTED] wrote: Hi Dan, Thank you very much for the reply. I still have some doubts and think that maybe you can help me. 1) web parent common war What would be contained inside the common and parent?? It would generate different wars?? sorry i was following the best practice found in maven. Common only used if you have multiple project sharing jar If you want to see a good usage of parent, take a look http://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk 2) The whole big project (ear) would take some time to deploy. How would each developer deploy small parts to tests their development separatelly?? My developers will be doing junit tests on their session ejbs...but at some points they will have to do something more integrated. In your env, developer should be able test as much they can in term of session ejb. You can setup some continuous integration like continuum , cruisecontrol luntbuild, etc to build, deploy the ear and run integration from there. Thanks in advance! Marcelo On 8/17/05, dan tran [EMAIL PROTECTED] wrote: Marcelo, Maven promotes cohesive build, one artifact per project. this works out very well for us here with very big proeject. In your case, Your bussiness project will have many smaller projects under underneath. Then you will have on project on project to aggregate related sub project together. bussiness jar1 jar2 jar3 parent - not artifact build but has common setting common shared jar used by other ear? web parent common war etc... Hope it helps... But if you have specific question on deployment .. feel free to ping more -D On 8/17/05, Jesse McConnell [EMAIL PROTECTED] wrote: sorry, not a clue :/ sure someone else on here has dealt with it though :) best of luck, jesse On 8/17/05, Marcelo Alcantara [EMAIL PROTECTED] wrote: Hi Jesse, I am right now working with Maven 1. As I don´t feel safe in using Maven 2 yet (should I??). Any ideas for it based on Maven 1?? Regards, Marcelo On 8/17/05, Jesse McConnell [EMAIL PROTECTED] wrote: you thinking maven 1 or 2? I can't speak to maven1, but this project design would be pretty easy to implement and manage in m2. I think John is planning on making a sample large project archetype to bootstrap the design layout of a project like this.. but is really is pretty easy in m2, imo at least Jesse On 8/17/05, Marcelo Alcantara [EMAIL PROTECTED] wrote: Hi, I am working on a very big billing project with 40 developers, and I am intending to use maven on it. Some questions that are still in my mind. How do you usually devide the project into small units to ease development and local deployment/testing?? Actually I did a multiproject in the initial framework based on the following structure: project +--base (base configuration for other projects) +--common (common classes to be used between web and business modules) +--business (ejbs) +--web (web...) As I can see, it is not going to be a good idea to have a lot of ejbs into de business jar. Nor will be having all the web resources inside the web war. How do you usually do in your big projects?? Thanks for any help. -- Marcelo Alcantara Senior Developer/Architect [EMAIL PROTECTED] +55 11 81968823 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -- jesse mcconnell - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Marcelo Alcantara Senior Developer/Architect [EMAIL PROTECTED] +55 11 81968823 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -- jesse mcconnell - 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: [m1] war-resources filtering
Hello, I proposed the modification of the war-war-resources for filtering (MPWAR-46) because we use a database for each developer and therefore we need not to have each one modify the configuration files using the ant filtering defining the filters using a pre-goal. The build system has default values set in the project.properties files and each developer in its build.properties. The modifications are the address to the database, the user and its password. Raphaël Simon McClenahan a écrit : I have a need for filtering from ${maven.war.src}. Searching JIRA for war filter comes up with a few unresolved issues that I think are related: http://jira.codehaus.org/browse/MPWAR-46 http://jira.codehaus.org/browse/MPWAR-39 http://jira.codehaus.org/browse/MPWAR-37 The Maven documentation at http://maven.apache.org/using/resources.html and the thread ending at http://mail-archives.apache.org/mod_mbox/maven-users/200504.mbox/[EMAIL PROTECTED] suggests writing a pre-goal for java:jar-resources , but I need this applied to war:war-resources. I think the solution in http://jira.codehaus.org/browse/MPWAR-46 is what I need to do, but I don't understand how I would write this as a goal/pre-goal in m1, and specify a filtersfile. Furthermore, I would like to invoke maven specifying different filterfiles, e.g. for dev, qa, production environments. I know this goes against the best practice recommendation for reproducible builds http://maven.apache.org/using/bestpractices.html#Reproduciblity , but I can't refactor to write external configuration yet. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Create M1 sites in Continuum
I have not been able to find information about how to add the maven site command when creating a new maven project through continuum. Do you know of any link that I can navigate to get more info? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Maven unattended build process ---?
We currently use Maven 1.0.2 only for building a J2EE application. *Developers aren't using it as yet.* :-( Our current process is described below. We run this process everynight to create EAR and deploy them in Sandbox. I will appreciate everyone's suggestions and comments to improve the process. 1. Bootstrap all projects from CVS. Get latest from head or branch. (We have maven.xml in the our bootstrap project that does check outs for all the projects from CVS). 2. Perform release - We use multiproject:goal with -Dgoal=performrelease. In this task we tag our code in CVS and update project.xml's with the new version. 3. Use maven and build EAR. 4. Deploy EAR in sandbox - This is done using Jackal scripts. we have a unix shell script that runs(from cron job) the above mentioned process. Value of CVS tag and version numbers are determined using perl and passed to maven. Issues with this process. == For some reason, if step 3 fails to build the EAR file. (For reasons like compilation errors etc) Getting build process back in line is lot of work. For example, if my last successfull build was 1.0.1 and now I am trying to build 1.0.2. 1. Bootstrap works ok 2. Prepare release will tag the cvs and update the project.xml for current version to be 1.0.2 3. BUILD FAILS. Developer fixes the bug and now when we will try to do release 1. Bootstrap new code. 2. Attempt Prepare Release - it fails when it tries to find the depencies for version 1.0.2. Since this is a J2EE application, there are dependencies of EJB's , WAR project on Java projects.Also some Java projects are dependent on other java projects. I am not sure if we are following the right process to build. Our goal is to tag code in CVS and build everynight ( and may be multiple times in a day in future). Also if build fails, email out the notifications. I will appreciate any comments, suggestions and any experience. Thanks, Sanjay
Re: Create M1 sites in Continuum
On 18.08.2005, at 23:58, Mayorgaadame, Alex [IT] wrote: I have not been able to find information about how to add the maven site command when creating a new maven project through continuum. Do you know of any link that I can navigate to get more info? Huh? under edit you can specify what goals to build ...or what are you after? cheers -- Torsten PGP.sig Description: This is a digitally signed message part
Re: Maven unattended build process ---?
Sanjay, You might want to look at continuous integration engines like CruiseControl, Anthill or Luntbuild, which take care of the tagging and are ideal for nightly builds. Maven would then just be used for build and packaging. CVS operations are handled by the build server. However, for application releases (meaning a software release to production), I would use Maven to tag and assign a version number. These type of releases are not part of a continuous build and are often refered to as push-button operations. Maven could go a bit further with the automation of releases. Right now a lot of it still manual (e.g. assigning a version number, etc.). I've written a plugin that automates all of that by automatically incrementing the last digit of an application's version upon release. Cheers, Thomas On 8/18/05, Sanjay Choudhary [EMAIL PROTECTED] wrote: We currently use Maven 1.0.2 only for building a J2EE application. *Developers aren't using it as yet.* :-( Our current process is described below. We run this process everynight to create EAR and deploy them in Sandbox. I will appreciate everyone's suggestions and comments to improve the process. 1. Bootstrap all projects from CVS. Get latest from head or branch. (We have maven.xml in the our bootstrap project that does check outs for all the projects from CVS). 2. Perform release - We use multiproject:goal with -Dgoal=performrelease. In this task we tag our code in CVS and update project.xml's with the new version. 3. Use maven and build EAR. 4. Deploy EAR in sandbox - This is done using Jackal scripts. we have a unix shell script that runs(from cron job) the above mentioned process. Value of CVS tag and version numbers are determined using perl and passed to maven. Issues with this process. == For some reason, if step 3 fails to build the EAR file. (For reasons like compilation errors etc) Getting build process back in line is lot of work. For example, if my last successfull build was 1.0.1 and now I am trying to build 1.0.2. 1. Bootstrap works ok 2. Prepare release will tag the cvs and update the project.xml for current version to be 1.0.2 3. BUILD FAILS. Developer fixes the bug and now when we will try to do release 1. Bootstrap new code. 2. Attempt Prepare Release - it fails when it tries to find the depencies for version 1.0.2. Since this is a J2EE application, there are dependencies of EJB's , WAR project on Java projects.Also some Java projects are dependent on other java projects. I am not sure if we are following the right process to build. Our goal is to tag code in CVS and build everynight ( and may be multiple times in a day in future). Also if build fails, email out the notifications. I will appreciate any comments, suggestions and any experience. Thanks, Sanjay
Using ESS-Model with Maven?
How can I generate UML documentation of my soruce in Maven? htmlDIV PIMG height=2 src=http://graphics.hotmail.com/greypixel.gif; width=100% vspace=9Thank YouBRSTRONGMick Knutson /STRONGBRBREMSr. Java/J2EE Consultant BR/EMSTRONGEMBASE logic, inc. BR/EM/STRONG(415) 648-1804 (S.F., CA) BRA href=http://www.baselogic.com/;http://www.BASELogic.com /ABRBRHP Consulting Services (Walnut Creek, CA) BRIMG height=2 src=http://graphics.hotmail.com/greypixel.gif; width=100% vspace=9/P Pnbsp;/P/DIV/html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: project.xml, maven-v3_0_0.xsd and xml aware editors
At 11:36 AM 8/18/2005, you wrote: Is there a standard way [a 'best practice'] for declaring a project for an XML aware editor? ... snip ... project xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:noNamespaceSchemaLocation=http://maven.apache.org/maven-v3_0_0.xsd; and the editor flags the noNamespaceSchemaLocation declaration as incorrect. I've been using this, and validating parsers have accepted it. I believe that I found this on either the users list or the Maven Jira at CodeHaus project xmlns=http://maven.apache.org/POM/3.0.0; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://maven.apache.org/POM/3.0.0 http://maven.apache.org/maven-v3_0_0.xsd; - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven unattended build process ---?
Hi Tom, Is your plug-in public or private? If its public, whats the name of your plug-in? On 8/18/05, Thomas Van de Velde [EMAIL PROTECTED] wrote: Sanjay, You might want to look at continuous integration engines like CruiseControl, Anthill or Luntbuild, which take care of the tagging and are ideal for nightly builds. Maven would then just be used for build and packaging. CVS operations are handled by the build server. However, for application releases (meaning a software release to production), I would use Maven to tag and assign a version number. These type of releases are not part of a continuous build and are often refered to as push-button operations. Maven could go a bit further with the automation of releases. Right now a lot of it still manual (e.g. assigning a version number, etc.). I've written a plugin that automates all of that by automatically incrementing the last digit of an application's version upon release. Cheers, Thomas On 8/18/05, Sanjay Choudhary [EMAIL PROTECTED] wrote: We currently use Maven 1.0.2 only for building a J2EE application. *Developers aren't using it as yet.* :-( Our current process is described below. We run this process everynight to create EAR and deploy them in Sandbox. I will appreciate everyone's suggestions and comments to improve the process. 1. Bootstrap all projects from CVS. Get latest from head or branch. (We have maven.xml in the our bootstrap project that does check outs for all the projects from CVS). 2. Perform release - We use multiproject:goal with -Dgoal=performrelease. In this task we tag our code in CVS and update project.xml's with the new version. 3. Use maven and build EAR. 4. Deploy EAR in sandbox - This is done using Jackal scripts. we have a unix shell script that runs(from cron job) the above mentioned process. Value of CVS tag and version numbers are determined using perl and passed to maven. Issues with this process. == For some reason, if step 3 fails to build the EAR file. (For reasons like compilation errors etc) Getting build process back in line is lot of work. For example, if my last successfull build was 1.0.1 and now I am trying to build 1.0.2. 1. Bootstrap works ok 2. Prepare release will tag the cvs and update the project.xml for current version to be 1.0.2 3. BUILD FAILS. Developer fixes the bug and now when we will try to do release 1. Bootstrap new code. 2. Attempt Prepare Release - it fails when it tries to find the depencies for version 1.0.2. Since this is a J2EE application, there are dependencies of EJB's , WAR project on Java projects.Also some Java projects are dependent on other java projects. I am not sure if we are following the right process to build. Our goal is to tag code in CVS and build everynight ( and may be multiple times in a day in future). Also if build fails, email out the notifications. I will appreciate any comments, suggestions and any experience. Thanks, Sanjay
Re: Maven unattended build process ---?
Sanjay, beside from CI as Thomas suggested. If your have a night build fail. You should increment the build number and tag it again for the next build. However even with simple cron job to do scm:update and build every hour would reduce your chance of failed nightly build big time. It works great for me. -Dan On 8/18/05, Thomas Van de Velde [EMAIL PROTECTED] wrote: Sanjay, You might want to look at continuous integration engines like CruiseControl, Anthill or Luntbuild, which take care of the tagging and are ideal for nightly builds. Maven would then just be used for build and packaging. CVS operations are handled by the build server. However, for application releases (meaning a software release to production), I would use Maven to tag and assign a version number. These type of releases are not part of a continuous build and are often refered to as push-button operations. Maven could go a bit further with the automation of releases. Right now a lot of it still manual (e.g. assigning a version number, etc.). I've written a plugin that automates all of that by automatically incrementing the last digit of an application's version upon release. Cheers, Thomas On 8/18/05, Sanjay Choudhary [EMAIL PROTECTED] wrote: We currently use Maven 1.0.2 only for building a J2EE application. *Developers aren't using it as yet.* :-( Our current process is described below. We run this process everynight to create EAR and deploy them in Sandbox. I will appreciate everyone's suggestions and comments to improve the process. 1. Bootstrap all projects from CVS. Get latest from head or branch. (We have maven.xml in the our bootstrap project that does check outs for all the projects from CVS). 2. Perform release - We use multiproject:goal with -Dgoal=performrelease. In this task we tag our code in CVS and update project.xml's with the new version. 3. Use maven and build EAR. 4. Deploy EAR in sandbox - This is done using Jackal scripts. we have a unix shell script that runs(from cron job) the above mentioned process. Value of CVS tag and version numbers are determined using perl and passed to maven. Issues with this process. == For some reason, if step 3 fails to build the EAR file. (For reasons like compilation errors etc) Getting build process back in line is lot of work. For example, if my last successfull build was 1.0.1 and now I am trying to build 1.0.2. 1. Bootstrap works ok 2. Prepare release will tag the cvs and update the project.xml for current version to be 1.0.2 3. BUILD FAILS. Developer fixes the bug and now when we will try to do release 1. Bootstrap new code. 2. Attempt Prepare Release - it fails when it tries to find the depencies for version 1.0.2. Since this is a J2EE application, there are dependencies of EJB's , WAR project on Java projects.Also some Java projects are dependent on other java projects. I am not sure if we are following the right process to build. Our goal is to tag code in CVS and build everynight ( and may be multiple times in a day in future). Also if build fails, email out the notifications. I will appreciate any comments, suggestions and any experience. Thanks, Sanjay - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Maven/Spring Testing
Friends, I am using spring in a J2EE project that is being build with maven. Somebody here have a good picture on how organizing different spring applicationContext.xml s for main and test?? To be more clear, in a production environment, my ejb will need to get one applicationcontext.xml. In test environment it would need to obtain another applicationcontext. I am sure I am not the first one to have this doubt. Thanks in advance. -- Marcelo Alcantara Senior Developer/Architect [EMAIL PROTECTED] +55 11 81968823 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [M2] How to specify a diferent resource directory in resource:resources plugin
Andrius, I'm not sure why your configuration is not working... but I have a work around to your problem. Try this. build resources resource directorysrc/main/webapp/directory /resource resource directorysrc/main/resources/directory /resource /resources plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-resources-plugin/artifactId configuration outputDirectory${project.build.directory}/${project.build.finalName}/copiedwithresources/outputDirectory filterPropertiesFile${basedir}/src/filters/filter.properties/filterPropertiesFile filteringtrue/filtering /configuration /plugin /plugins /build Good Luck! Andrius Karpavicius wrote: Hi, Thanks, it doesn't complain anymore that it is not a list, however does not pay any attention to the resources parameter I specify. I added a printout in ResourcesMojo and the only directory it picks up is a default one - src/main/resources The rest of parameters - outputDirectory, filterPropertiesFile and filtering work fine. --- T E S T S --- There are no test to run. Results : [surefire] Tests run: 0, Failures: 0, Errors: 0 [INFO] [resources:resources {execution: default}] --Resource directory: C:\projektai\stotissi_v4\projects\sintagma-authentication\src\main\resources [INFO] [INFO] BUILD SUCCESSFUL [INFO] Here is a section of pom.xml file. plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-resources-plugin/artifactId executions execution phasetest/phase goals goalresources/goal /goals configuration resources resource${basedir}/src/main/webapp/resource /resources outputDirectory ${project.build.directory}/${project.build.finalName} /copiedwithresources/outputDirectory filterPropertiesFile${basedir}/src/filters/filter.properties/ filterPropertiesFile filteringtrue/filtering /configuration /execution /executions /plugin /plugins /build Thank you, Andrius Karpavicius Edwin Punzalan [EMAIL PROTECTED] 2005.08.18 12:07 Please respond to Maven Users List users@maven.apache.org To Maven Users List users@maven.apache.org cc Subject Re: [M2] How to specify a diferent resource directory in resource:resources plugin For lists, you should separate into elements like so: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-resources-plugin/artifactId executions execution phasetest/phase configuration resources resource${basedir}/src/main/webapp/WEB-INF/conf/resource /resources Andrius Karpavicius wrote: Hi Is there a way in pom.xml to pass a list instead of a string as a property value? I want to use a resources:resources plugin before war packaging, so it would filter a webapp directory. Problem is that resources expects a list, not a String. This is a section of pom.xml file. plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-resources-plugin/artifactId executions execution phasetest/phase configuration resources${basedir}/src/main/webapp/WEB-INF/conf/resources Thanks, Andrius Karpavicius - 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: Maven/Spring Testing
Hi, My approach is using classpath application contexts so the ones in src/test/resources override the ones in src/main/resources. You can check it out at http://oness.sourceforge.net On 8/18/05, Marcelo Alcantara [EMAIL PROTECTED] wrote: Friends, I am using spring in a J2EE project that is being build with maven. Somebody here have a good picture on how organizing different spring applicationContext.xml s for main and test?? To be more clear, in a production environment, my ejb will need to get one applicationcontext.xml. In test environment it would need to obtain another applicationcontext. I am sure I am not the first one to have this doubt. Thanks in advance. -- Marcelo Alcantara Senior Developer/Architect [EMAIL PROTECTED] +55 11 81968823 - 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/Spring Testing
Hi Carlos, But how do the test ones override the main ones?? Having the same names?? Can you give me more hints about it?? This is just what I need. I will download the oness from home as I cannot go out with maven from the company proxy. Thanks a lot man. Marcelo On 8/18/05, Carlos Sanchez [EMAIL PROTECTED] wrote: Hi, My approach is using classpath application contexts so the ones in src/test/resources override the ones in src/main/resources. You can check it out at http://oness.sourceforge.net On 8/18/05, Marcelo Alcantara [EMAIL PROTECTED] wrote: Friends, I am using spring in a J2EE project that is being build with maven. Somebody here have a good picture on how organizing different spring applicationContext.xml s for main and test?? To be more clear, in a production environment, my ejb will need to get one applicationcontext.xml. In test environment it would need to obtain another applicationcontext. I am sure I am not the first one to have this doubt. Thanks in advance. -- Marcelo Alcantara Senior Developer/Architect [EMAIL PROTECTED] +55 11 81968823 - 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] -- Marcelo Alcantara Senior Developer/Architect [EMAIL PROTECTED] +55 11 81968823 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven unattended build process ---?
Hi Dan, thanks for your comments and I tried it but it fails First Build 1. Bootstrap code for release 1.0.1 2. multiproject:prepare-release will Tag in CVS and project.xml gets updated with version 1.0.1 3. maven goal-name Second build 1. Bootstrap code. 2. mulitproject:prepare-release will Tag in CVS and project.xml gets updated with version 1.0.2 3. maven goal-name --- Build fails Third build 1. Bootstrap code 2. multiproject:prepare-release - at time of tagging and updating POM's maven will check for the dependecies. My local repository and remote repository doesn't have dependencies for version 1.0.2. Hence, this fails. 3. Even build fails for the same reason. You said If your have a night build fail. You should increment the build number and tag it again for the next build. But how is this possible? Please help me understand with details. Appreciate your time. -sanjay On 8/18/05, dan tran [EMAIL PROTECTED] wrote: Sanjay, beside from CI as Thomas suggested. If your have a night build fail. You should increment the build number and tag it again for the next build. However even with simple cron job to do scm:update and build every hour would reduce your chance of failed nightly build big time. It works great for me. -Dan On 8/18/05, Thomas Van de Velde [EMAIL PROTECTED] wrote: Sanjay, You might want to look at continuous integration engines like CruiseControl, Anthill or Luntbuild, which take care of the tagging and are ideal for nightly builds. Maven would then just be used for build and packaging. CVS operations are handled by the build server. However, for application releases (meaning a software release to production), I would use Maven to tag and assign a version number. These type of releases are not part of a continuous build and are often refered to as push-button operations. Maven could go a bit further with the automation of releases. Right now a lot of it still manual (e.g. assigning a version number, etc.). I've written a plugin that automates all of that by automatically incrementing the last digit of an application's version upon release. Cheers, Thomas On 8/18/05, Sanjay Choudhary [EMAIL PROTECTED] wrote: We currently use Maven 1.0.2 only for building a J2EE application. *Developers aren't using it as yet.* :-( Our current process is described below. We run this process everynight to create EAR and deploy them in Sandbox. I will appreciate everyone's suggestions and comments to improve the process. 1. Bootstrap all projects from CVS. Get latest from head or branch. (We have maven.xml in the our bootstrap project that does check outs for all the projects from CVS). 2. Perform release - We use multiproject:goal with -Dgoal=performrelease. In this task we tag our code in CVS and update project.xml's with the new version. 3. Use maven and build EAR. 4. Deploy EAR in sandbox - This is done using Jackal scripts. we have a unix shell script that runs(from cron job) the above mentioned process. Value of CVS tag and version numbers are determined using perl and passed to maven. Issues with this process. == For some reason, if step 3 fails to build the EAR file. (For reasons like compilation errors etc) Getting build process back in line is lot of work. For example, if my last successfull build was 1.0.1 and now I am trying to build 1.0.2. 1. Bootstrap works ok 2. Prepare release will tag the cvs and update the project.xml for current version to be 1.0.2 3. BUILD FAILS. Developer fixes the bug and now when we will try to do release 1. Bootstrap new code. 2. Attempt Prepare Release - it fails when it tries to find the depencies for version 1.0.2. Since this is a J2EE application, there are dependencies of EJB's , WAR project on Java projects.Also some Java projects are dependent on other java projects. I am not sure if we are following the right process to build. Our goal is to tag code in CVS and build everynight ( and may be multiple times in a day in future). Also if build fails, email out the notifications. I will appreciate any comments, suggestions and any experience. Thanks, Sanjay - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven/Spring Testing
The test ones need to be in the classpath before the main ones. IIRC that's by default or maybe in the project.xml build section On 8/18/05, Marcelo Alcantara [EMAIL PROTECTED] wrote: Hi Carlos, But how do the test ones override the main ones?? Having the same names?? Can you give me more hints about it?? This is just what I need. I will download the oness from home as I cannot go out with maven from the company proxy. Thanks a lot man. Marcelo On 8/18/05, Carlos Sanchez [EMAIL PROTECTED] wrote: Hi, My approach is using classpath application contexts so the ones in src/test/resources override the ones in src/main/resources. You can check it out at http://oness.sourceforge.net On 8/18/05, Marcelo Alcantara [EMAIL PROTECTED] wrote: Friends, I am using spring in a J2EE project that is being build with maven. Somebody here have a good picture on how organizing different spring applicationContext.xml s for main and test?? To be more clear, in a production environment, my ejb will need to get one applicationcontext.xml. In test environment it would need to obtain another applicationcontext. I am sure I am not the first one to have this doubt. Thanks in advance. -- Marcelo Alcantara Senior Developer/Architect [EMAIL PROTECTED] +55 11 81968823 - 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] -- Marcelo Alcantara Senior Developer/Architect [EMAIL PROTECTED] +55 11 81968823 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven unattended build process ---?
Sanjay, you and I have the same build requirements ( tag daily build) but I dont use multiproejct:prepare-release. This is the different. In my case, I have a single version property defined at the root pom, and all subproject's version and dependency's version, except the thirdpary ones, reuse that property. For each build, i do: - fetch the root property file - increment the build - check it in - tag the entire source tree - fetch the entire source tree using the tag - build and deploy all built artifacts All those steps can be done by a bootstrap project that is not part of your source tree. In your CI, like a watch dog build, your can keep scm:update or scm:checkout the source and build WITHOUT deploy so that when it fails you can notify developer. hope it helps!!! -D On 8/18/05, Sanjay Choudhary [EMAIL PROTECTED] wrote: Hi Dan, thanks for your comments and I tried it but it fails First Build 1. Bootstrap code for release 1.0.1 2. multiproject:prepare-release will Tag in CVS and project.xml gets updated with version 1.0.1 3. maven goal-name Second build 1. Bootstrap code. 2. mulitproject:prepare-release will Tag in CVS and project.xml gets updated with version 1.0.2 3. maven goal-name --- Build fails Third build 1. Bootstrap code 2. multiproject:prepare-release - at time of tagging and updating POM's maven will check for the dependecies. My local repository and remote repository doesn't have dependencies for version 1.0.2. Hence, this fails. 3. Even build fails for the same reason. You said If your have a night build fail. You should increment the build number and tag it again for the next build. But how is this possible? Please help me understand with details. Appreciate your time. -sanjay On 8/18/05, dan tran [EMAIL PROTECTED] wrote: Sanjay, beside from CI as Thomas suggested. If your have a night build fail. You should increment the build number and tag it again for the next build. However even with simple cron job to do scm:update and build every hour would reduce your chance of failed nightly build big time. It works great for me. -Dan On 8/18/05, Thomas Van de Velde [EMAIL PROTECTED] wrote: Sanjay, You might want to look at continuous integration engines like CruiseControl, Anthill or Luntbuild, which take care of the tagging and are ideal for nightly builds. Maven would then just be used for build and packaging. CVS operations are handled by the build server. However, for application releases (meaning a software release to production), I would use Maven to tag and assign a version number. These type of releases are not part of a continuous build and are often refered to as push-button operations. Maven could go a bit further with the automation of releases. Right now a lot of it still manual (e.g. assigning a version number, etc.). I've written a plugin that automates all of that by automatically incrementing the last digit of an application's version upon release. Cheers, Thomas On 8/18/05, Sanjay Choudhary [EMAIL PROTECTED] wrote: We currently use Maven 1.0.2 only for building a J2EE application. *Developers aren't using it as yet.* :-( Our current process is described below. We run this process everynight to create EAR and deploy them in Sandbox. I will appreciate everyone's suggestions and comments to improve the process. 1. Bootstrap all projects from CVS. Get latest from head or branch. (We have maven.xml in the our bootstrap project that does check outs for all the projects from CVS). 2. Perform release - We use multiproject:goal with -Dgoal=performrelease. In this task we tag our code in CVS and update project.xml's with the new version. 3. Use maven and build EAR. 4. Deploy EAR in sandbox - This is done using Jackal scripts. we have a unix shell script that runs(from cron job) the above mentioned process. Value of CVS tag and version numbers are determined using perl and passed to maven. Issues with this process. == For some reason, if step 3 fails to build the EAR file. (For reasons like compilation errors etc) Getting build process back in line is lot of work. For example, if my last successfull build was 1.0.1 and now I am trying to build 1.0.2. 1. Bootstrap works ok 2. Prepare release will tag the cvs and update the project.xml for current version to be 1.0.2 3. BUILD FAILS. Developer fixes the bug and now when we will try to do release 1. Bootstrap new code. 2. Attempt Prepare Release - it fails when it tries to find the depencies for version 1.0.2. Since this is a J2EE application, there are dependencies of EJB's , WAR project on Java projects.Also some Java projects are dependent on other java projects. I am not sure
Re: Maven/Spring Testing
I give them a seperate name. In fact, in a unit test, you do not want to load your full production context as this may have a big performance impact (especially when using Hibernate). The best thing to do is 1) avoid loading application contexts where possible by using mock implementations for your dependencies 2) When you want to run integration tests, load a subset of your production context that configures the piece of logic that you want to test top-down 3) Have maybe one integration test that loads your production context as a whole to make sure that there are no errors in your configuration. Key message: avoid the use of application context for unit testing and default to mock objects. Cheers, Thomas On 8/18/05, Carlos Sanchez [EMAIL PROTECTED] wrote: The test ones need to be in the classpath before the main ones. IIRC that's by default or maybe in the project.xml build section On 8/18/05, Marcelo Alcantara [EMAIL PROTECTED] wrote: Hi Carlos, But how do the test ones override the main ones?? Having the same names?? Can you give me more hints about it?? This is just what I need. I will download the oness from home as I cannot go out with maven from the company proxy. Thanks a lot man. Marcelo On 8/18/05, Carlos Sanchez [EMAIL PROTECTED] wrote: Hi, My approach is using classpath application contexts so the ones in src/test/resources override the ones in src/main/resources. You can check it out at http://oness.sourceforge.net On 8/18/05, Marcelo Alcantara [EMAIL PROTECTED] wrote: Friends, I am using spring in a J2EE project that is being build with maven. Somebody here have a good picture on how organizing different spring applicationContext.xml s for main and test?? To be more clear, in a production environment, my ejb will need to get one applicationcontext.xml. In test environment it would need to obtain another applicationcontext. I am sure I am not the first one to have this doubt. Thanks in advance. -- Marcelo Alcantara Senior Developer/Architect [EMAIL PROTECTED] +55 11 81968823 - 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] -- Marcelo Alcantara Senior Developer/Architect [EMAIL PROTECTED] +55 11 81968823 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven unattended build process ---?
Hi Dan, This makes perfect sense. Thanks for your help. In one of your steps you said tag the entire source source. How do you tag it? Do you use ant rtag or someother mechanism? Thanks, Sanjay On 8/18/05, dan tran [EMAIL PROTECTED] wrote: Sanjay, you and I have the same build requirements ( tag daily build) but I dont use multiproejct:prepare-release. This is the different. In my case, I have a single version property defined at the root pom, and all subproject's version and dependency's version, except the thirdpary ones, reuse that property. For each build, i do: - fetch the root property file - increment the build - check it in - tag the entire source tree - fetch the entire source tree using the tag - build and deploy all built artifacts All those steps can be done by a bootstrap project that is not part of your source tree. In your CI, like a watch dog build, your can keep scm:update or scm:checkout the source and build WITHOUT deploy so that when it fails you can notify developer. hope it helps!!! -D On 8/18/05, Sanjay Choudhary [EMAIL PROTECTED] wrote: Hi Dan, thanks for your comments and I tried it but it fails First Build 1. Bootstrap code for release 1.0.1 2. multiproject:prepare-release will Tag in CVS and project.xml gets updated with version 1.0.1 3. maven goal-name Second build 1. Bootstrap code. 2. mulitproject:prepare-release will Tag in CVS and project.xml gets updated with version 1.0.2 3. maven goal-name --- Build fails Third build 1. Bootstrap code 2. multiproject:prepare-release - at time of tagging and updating POM's maven will check for the dependecies. My local repository and remote repository doesn't have dependencies for version 1.0.2. Hence, this fails. 3. Even build fails for the same reason. You said If your have a night build fail. You should increment the build number and tag it again for the next build. But how is this possible? Please help me understand with details. Appreciate your time. -sanjay On 8/18/05, dan tran [EMAIL PROTECTED] wrote: Sanjay, beside from CI as Thomas suggested. If your have a night build fail. You should increment the build number and tag it again for the next build. However even with simple cron job to do scm:update and build every hour would reduce your chance of failed nightly build big time. It works great for me. -Dan On 8/18/05, Thomas Van de Velde [EMAIL PROTECTED] wrote: Sanjay, You might want to look at continuous integration engines like CruiseControl, Anthill or Luntbuild, which take care of the tagging and are ideal for nightly builds. Maven would then just be used for build and packaging. CVS operations are handled by the build server. However, for application releases (meaning a software release to production), I would use Maven to tag and assign a version number. These type of releases are not part of a continuous build and are often refered to as push-button operations. Maven could go a bit further with the automation of releases. Right now a lot of it still manual (e.g. assigning a version number, etc.). I've written a plugin that automates all of that by automatically incrementing the last digit of an application's version upon release. Cheers, Thomas On 8/18/05, Sanjay Choudhary [EMAIL PROTECTED] wrote: We currently use Maven 1.0.2 only for building a J2EE application. *Developers aren't using it as yet.* :-( Our current process is described below. We run this process everynight to create EAR and deploy them in Sandbox. I will appreciate everyone's suggestions and comments to improve the process. 1. Bootstrap all projects from CVS. Get latest from head or branch. (We have maven.xml in the our bootstrap project that does check outs for all the projects from CVS). 2. Perform release - We use multiproject:goal with -Dgoal=performrelease. In this task we tag our code in CVS and update project.xml's with the new version. 3. Use maven and build EAR. 4. Deploy EAR in sandbox - This is done using Jackal scripts. we have a unix shell script that runs(from cron job) the above mentioned process. Value of CVS tag and version numbers are determined using perl and passed to maven. Issues with this process. == For some reason, if step 3 fails to build the EAR file. (For reasons like compilation errors etc) Getting build process back in line is lot of work. For example, if my last successfull build was 1.0.1 and now I am trying to build 1.0.2. 1. Bootstrap works ok 2. Prepare release will tag the cvs and update the project.xml for current version to be 1.0.2 3.
scm:checkout:
I am having a problem using scm:checkout: /c/michaels_projects/master_build maven scm:checkout -Dmaven.scm.cvs.module=project1 __ __ | \/ |__ _Apache__ ___ | |\/| / _` \ V / -_) ' \ ~ intelligent projects ~ |_| |_\__,_|\_/\___|_||_| v. 1.1-beta-1 build:start: scm:find-connection: [echo] Using connection: scm:cvs:extssh:[EMAIL PROTECTED]:/path/to/cvs/repository scm:checkout: [echo] Checking out scm:cvs:extssh:[EMAIL PROTECTED]:/path/to/cvs/repository BUILD FAILED File.. C:\Documents and Settings\mmccrann\.maven\cache\maven-scm-plugin-1.5\plugin.jelly Element... scm:checkout Line.. 110 Column -1 The scm url is invalid. Total time : 3 seconds Finished at : Friday, 19 August 2005 15:35:23 My properties file is: maven.scm.url=scm:cvs:ext:[EMAIL PROTECTED]:/path/to/cvs/repository maven.scm.username=x maven.scm.password=y NOTICE This e-mail and any attachments are confidential and may contain copyright material of Macquarie Bank or third parties. If you are not the intended recipient of this email you should not read, print, re-transmit, store or act in reliance on this e-mail or any attachments, and should destroy all copies of them. Macquarie Bank does not guarantee the integrity of any emails or any attached files. The views or opinions expressed are the author's own and may not reflect the views or opinions of Macquarie Bank.
Source code tar
Is it possible to get the Maven source code release beta1.1 in a tar file? It's not available in the Apache download area. NOTICE This e-mail and any attachments are confidential and may contain copyright material of Macquarie Bank or third parties. If you are not the intended recipient of this email you should not read, print, re-transmit, store or act in reliance on this e-mail or any attachments, and should destroy all copies of them. Macquarie Bank does not guarantee the integrity of any emails or any attached files. The views or opinions expressed are the author's own and may not reflect the views or opinions of Macquarie Bank.
Re: scm:checkout:
the CVS module is not being used unless you also specify the root (but this is deprecated in 1.5). You can: a) include the module at the end of connection/ and developerConnection/ ie .../repository:project1 b) pass in the whole URL from the command line with -Dmaven.scm.url=scm:cvs:.../repository:project1 Cheers, Brett On 8/19/05, Michael McCrann [EMAIL PROTECTED] wrote: I am having a problem using scm:checkout: /c/michaels_projects/master_build maven scm:checkout -Dmaven.scm.cvs.module=project1 __ __ | \/ |__ _Apache__ ___ | |\/| / _` \ V / -_) ' \ ~ intelligent projects ~ |_| |_\__,_|\_/\___|_||_| v. 1.1-beta-1 build:start: scm:find-connection: [echo] Using connection: scm:cvs:extssh:[EMAIL PROTECTED]:/path/to/cvs/repository scm:checkout: [echo] Checking out scm:cvs:extssh:[EMAIL PROTECTED]:/path/to/cvs/repository BUILD FAILED File.. C:\Documents and Settings\mmccrann\.maven\cache\maven-scm-plugin-1.5\plugin.jelly Element... scm:checkout Line.. 110 Column -1 The scm url is invalid. Total time : 3 seconds Finished at : Friday, 19 August 2005 15:35:23 My properties file is: maven.scm.url=scm:cvs:ext:[EMAIL PROTECTED]:/path/to/cvs/repository maven.scm.username=x maven.scm.password=y NOTICE This e-mail and any attachments are confidential and may contain copyright material of Macquarie Bank or third parties. If you are not the intended recipient of this email you should not read, print, re-transmit, store or act in reliance on this e-mail or any attachments, and should destroy all copies of them. Macquarie Bank does not guarantee the integrity of any emails or any attached files. The views or opinions expressed are the author's own and may not reflect the views or opinions of Macquarie Bank. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Source code tar
We haven't provided source code tarballs because the current build of Maven requires the plugins to be present, and tarring that up is a bit awkward given it releases with versions from different revisions. This is something we hope to rectify in the future. You should be able to obtain the code over https under subversion - please let us know if that isn't the case. Cheers, Brett On 8/19/05, Michael McCrann [EMAIL PROTECTED] wrote: Is it possible to get the Maven source code release beta1.1 in a tar file? It's not available in the Apache download area. NOTICE This e-mail and any attachments are confidential and may contain copyright material of Macquarie Bank or third parties. If you are not the intended recipient of this email you should not read, print, re-transmit, store or act in reliance on this e-mail or any attachments, and should destroy all copies of them. Macquarie Bank does not guarantee the integrity of any emails or any attached files. The views or opinions expressed are the author's own and may not reflect the views or opinions of Macquarie Bank. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]