Re: Very newbie question
Ok, it´s what i wanted: to create my own archetype (now i know that it is not recommended). Then, i have a new question. If i want to make a project with a structure like: root src java test testDB testUnit doc build what i have to do? Wayne Fay wrote: > > The question was really directed to the original poster, ichasco. > > I have seen other people new to Maven who seem to believe that they > must create archetypes themselves manually rather than simply reusing > the existing archetypes. > > I want to make sure that ichasco is not heading down the wrong path. > People who are new to Maven generally should not be creating > archetypes. > > Wayne > > On 10/15/07, Harlan Iverson <[EMAIL PROTECTED]> wrote: >> One application of it for me was a multi-project layout for an EAR with a >> myfaces web application, EJB3, a persistence archive, a custom login >> module, >> skeleton config files, etc. It's helpful if you create several projects >> using the same pattern. >> >> On 10/15/07, Wayne Fay <[EMAIL PROTECTED]> wrote: >> > >> > Just curious, why do you think you need to CREATE an archetype? Most >> > people will simply USE an archetype that has been previously created. >> > >> > "mvn archetype:create ..." is simply the command to create a new >> > project using an archetype. I'd be very surprised that a new user >> > would want to create an archetype. >> > >> > What exactly are you hoping to do with Maven2? >> > >> > Wayne >> > >> > On 10/15/07, Harlan Iverson <[EMAIL PROTECTED]> wrote: >> > > An archetype is installed the same way as a normal artifact; so >> running >> > 'mvn >> > > install' in the directory will do it. >> > > >> > > In case you haven't seen it, this guide to creating archetypes helped >> me >> > > along: >> > http://maven.apache.org/guides/mini/guide-creating-archetypes.html >> > > >> > > Harlan >> > > >> > > On 10/15/07, ichasco <[EMAIL PROTECTED]> wrote: >> > > > >> > > > >> > > > Hi all, >> > > > >> > > > I have just started with maven and i have some questions. I have >> read >> > the >> > > > guide to creating archetype and i do not understand very well it. >> > > > >> > > > I know that i have to create an archetype.xml, pom.xml, ... but >> where >> > i >> > > > have >> > > > to saved all these files? in .m2? where are stored archetypes? >> > > > >> > > > Thanks >> > > > >> > > > >> > > > -- >> > > > View this message in context: >> > > > >> > http://www.nabble.com/Very-newbie-question-tf4628024s177.html#a13214344 >> > > > Sent from the Maven - Users mailing list archive at Nabble.com. >> > > > >> > > > >> > > > >> - >> > > > To unsubscribe, e-mail: [EMAIL PROTECTED] >> > > > For additional commands, e-mail: [EMAIL PROTECTED] >> > > > >> > > > >> > > >> > > >> > > -- >> > > Harlan Iverson >> > > http://blog.devspan.com >> > > >> > >> > - >> > To unsubscribe, e-mail: [EMAIL PROTECTED] >> > For additional commands, e-mail: [EMAIL PROTECTED] >> > >> > >> >> >> -- >> Harlan Iverson >> http://blog.devspan.com >> > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Very-newbie-question-tf4628024s177.html#a13227493 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: Maven Proxy
Woops, just reread my post. The finally bit should have read: My preference is Proximity for the simple config, file base storage. :-) that makes more sense. William -Original Message- From: William Ferguson [mailto:[EMAIL PROTECTED] Sent: Monday, 15 October 2007 6:04 PM To: Maven Users List Subject: Re: Maven Proxy Hi Denis, I have had some experience of 3 of them in the last week. All of them deployed as WebApps inside Tomcat. Promixity - simple config, file based storage, developers seem absent (at least at present). We are using this as our main Maven repository and also as a mirror of that repository at an interstate office. Artifactory - simple config (perhaps simpler than Proximity), DB storage. Archiva (beta2) - couldn't get it to work by following the installation instructions. Doesn't install as a clean webapp (in Tomcat in any case). My preference is Tomcat for the simple config, file base storage. Its just a shame that the developers appear awol and I couldn't find a way to raise issues against it. Hope this helps. William -Original Message- From: Denis Bessmertniy [mailto:[EMAIL PROTECTED] Sent: Friday, 12 October 2007 7:04 PM To: 'Maven Users List' Subject: [***POSSIBLE SPAM***] - Maven Proxy - Email has different SMTP TO: and MIME TO: fields in the email addresses Hi, May you advise to me a good maven proxy? I know only http://proximity.abstracthorizon.org. Is it good? Maybe you know something better? - Denis - 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 offline
Wayne Fay wrote: > > Try "mvn -h" and then read the help text which is output. One of the > printed options is what you're looking for. > > Wayne > If I select -o ,need I to set local Repositories ?how to set ? > Best Regards ! > > On 10/15/07, MavenMan <[EMAIL PROTECTED]> wrote: >> >> I am a beginer of maven .but I think it is a great artifact. but now I >> can >> not connect to Internet. >> I need a detail step to deel with this problem .By the way ,I use >> m2eclipse >> pulgin to control maven . who can help me . >> thank you in advance! >> -- >> View this message in context: >> http://www.nabble.com/maven-offline-tf4631310s177.html#a13224819 >> Sent from the Maven - Users mailing list archive at Nabble.com. >> >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/maven-offline-tf4631310s177.html#a13225985 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: maven offline
Try "mvn -h" and then read the help text which is output. One of the printed options is what you're looking for. Wayne On 10/15/07, MavenMan <[EMAIL PROTECTED]> wrote: > > I am a beginer of maven .but I think it is a great artifact. but now I can > not connect to Internet. > I need a detail step to deel with this problem .By the way ,I use m2eclipse > pulgin to control maven . who can help me . > thank you in advance! > -- > View this message in context: > http://www.nabble.com/maven-offline-tf4631310s177.html#a13224819 > 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: profiles qustion
Sonar, Nishant wrote: > Hi > > > > We work with profiles in maven as > > > > Mvn -Pprofile1,profile2 > > > > On pom > > > > > > > > profile1 > > > > > > ... > > > > > > > > > > profile2 > > > > > > ... > > > > > > > > > > > > In this case both the builds are different .Consider a case where we have a > comman build tasks in > > Both tasks but some ½ different build tasks (plugins) to be different , Is > there a way to specify one common build which > > Will always execute and one which will execute plugins on basis of profile > > > > > > Thanks > > nishant > > > > Factor out the common parts of the profiles and put that in the POM's build section. Then just use the profiles to override or add to that. For instance, by default my project builds with standard debug settings and no optimization. This is specified in the build section of the POM. However, I created a release profile that overrides some of the compiler plugin settings. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to release if using testng
Wim Deblauwe wrote: > I finally gave up on using the surefire plugin with TestNG. Now I just >> use antrun to run the testng ant task and generate a report. >> > > I did not know that was possible. How do you remove surefire from the > lifecycle? > > regards, > > Wim > You can't actually remove surefire from the lifecycle. At least not as far as I've been able to determine with my limited knowledge of Maven. You can however tell it to skip running any tests by adding the following to your pom.xml: ... org.apache.maven.plugins maven-surefire-plugin 2.3 true ... If you still want to run unit tests, then you run the testng ant task via the Antrun plugin. If you're curious, I can post mine. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to release if using testng
Michael McCallum wrote: > i'm using surefire 2.3 and testng without any problems... well occasionally i > get a null pointer instead of an error report... but other than that > releasing no problems > On Saturday 13 October 2007 15:48, Victor Cardona wrote: >> Wim Deblauwe wrote: >>> Hi, >>> >>> how do other people release their maven project if they use TestNG? The >>> only surefire that works ok with TestNG is 2.4-collab-SNAPSHOT, but since >>> it is a snapshot, I cannot release. I could try to give the snapshot jars >>> a real release number, but I'd rather not do that because a) it feels >>> like cheating and b) it is a lot of work with all the different modules >>> that surefire has. >>> >>> regards, >>> >>> Wim >> I finally gave up on using the surefire plugin with TestNG. Now I just >> use antrun to run the testng ant task and generate a report. >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] > I tried using surefire-2.3, 2.4-SNAPSHOT, and 2.4-collab-SNAPSHOT with both TestNG 5.5 and 5.6. The collab snapshot resolved the problems with TestNG encountered during the test phase, but then I received an error from the surefire-report plugin. I'm sorry I don't remember what the error was, but I think it may have been a NPE. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven Proxy
Thanks - much appreciated! On 16/10/2007, William Ferguson <[EMAIL PROTECTED]> wrote: > Sorry Brett, I was already 2 days overdue thanks to infrastructure > issues. > I'll try to put together a JIRA this afternoon. > > -Original Message- > From: Brett Porter [mailto:[EMAIL PROTECTED] > Sent: Monday, 15 October 2007 6:25 PM > > were you able to report these problems? Would be happy to hear bugs or > thoughts on ways to make it easier to deploy into Tomcat. > > - Brett > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Brett Porter Blog: http://www.devzuz.org/blogs/bporter/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
maven offline
I am a beginer of maven .but I think it is a great artifact. but now I can not connect to Internet. I need a detail step to deel with this problem .I have trying to deel it a long time . who can help me . thank you in advance! -- View this message in context: http://www.nabble.com/maven-offline-tf4631310s177.html#a13224819 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: Maven Proxy
Sorry Brett, I was already 2 days overdue thanks to infrastructure issues. I'll try to put together a JIRA this afternoon. -Original Message- From: Brett Porter [mailto:[EMAIL PROTECTED] Sent: Monday, 15 October 2007 6:25 PM were you able to report these problems? Would be happy to hear bugs or thoughts on ways to make it easier to deploy into Tomcat. - Brett - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE : Re: ear files and maven-eclipse-plugin
Thanks very much Jim. I've successfully created my ear pom.xml for RAD 7 (event if it's really ugly with all those custom files !). I attach my current pom.xml if it can help someone. I've only used : - eclipse plugin to generate .classpath and .project and custom files. - antrun (or cleaning purposes) plugins. - ear plugin to generate application.xml. --- Jim Sellers <[EMAIL PROTECTED]> a écrit : > Make sure you have your pom type as "ear" (no > quotes). > > If you need your .project file to have certain > natures so that eclipse will > "see" it as a certain type. > http://maven.apache.org/plugins/maven-eclipse-plugin/examples/provide-project-natures-and-build-commands.html > > If you're using WTP, this might be helpful: > http://maven.apache.org/plugins/maven-eclipse-plugin/wtp.html > > HTH > > Jim > > On 10/11/07, Adrian Gonzalez <[EMAIL PROTECTED]> > wrote: > > > > Hello, > > > > A really noob question... (sorry !) > > > > I'm currently using maven-eclipse-plugin to build > a > > web project with third party dependencies and a > java > > project. > > > > I want now to use this plugin to add a ear project > > including the previous web project and java > project > > (as utility jar). maven-eclipse-plugin generated > > .project file for my ear project fine as if it was > a > > java project, but nothing more... > > > > Is there a way to do this ? I'm really sorry but > > didn't found any documentation about it. > > > > Thanks very much > > > > > > > > > > > _ > > Ne gardez plus qu'une seule adresse mail ! Copiez > vos mails vers Yahoo! > > Mail > > > > > - > > To unsubscribe, e-mail: > [EMAIL PROTECTED] > > For additional commands, e-mail: > [EMAIL PROTECTED] > > > > > _ Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail 4.0.0 tmp.pag.test test-ear ear aws ear assembly tmp.pag.test test-project 0.22-SNAPSHOT ../test-project/pom.xml ${pom.groupId} test-web war commons-logging commons-logging-api ${pom.groupId} test-service maven-antrun-plugin generate-resources run maven-ear-plugin generate-resources ${basedir}/META-INF 1.4 ${pom.groupId} test-web test test-web.war generate-application-xml org.apache.maven.plugins maven-dependency-plugin copy-dependencies generate-resources copy-dependencies jar war ${pom.groupId} ${basedir} runtime org.apache.maven.plugins maven-eclipse-plugin com.ibm.etools.common.migration.MigrationBuilder org.eclipse.wst.common.project.facet.core.builder org.eclipse.wst.validation.validationbuilder org.eclipse.wst.common.project.facet.core.nature org.eclipse.wst.common.modulecore.ModuleCoreNature META-INF/ibmconfig/cells/defaultCell/security.xml META-INF/ibmconfig/cells/defaultCell/applications/defaultApp/deployments/defaultApp/deployment.xml META-INF/ibmconfig/cells/defaultCell/applications/defaultApp/deployments/defaultApp/resources.xml META-INF/ibmconfig/cells/defaultCell/applications/defaultApp/deployments/defaultApp/variables.xml META-INF/ibmconfig/cells/defaultCell/nodes/defaultNode/servers/defaultServer/libraries.xml .settings/org.eclipse.wst.common.component .settings/org.eclipse.wst.common.project.facet.core.xml maven-ear-plugin
Re: FW: How to specify repository on the command line?
Sounds like you've run into this bug: http://jira.codehaus.org/browse/ARCHETYPE-81 Wayne On 10/15/07, siegfried <[EMAIL PROTECTED]> wrote: > I'm sorry if this appears twice. I have waited over twelve hours and I still > have not seen it appear on the list so I am posting it again. > Siegfried > > > From: siegfried [mailto:[EMAIL PROTECTED] > Sent: Sunday, October 14, 2007 9:25 PM > To: 'Maven Users List' > Subject: How to specify repository on the command line? > > I'm trying to use the appfuse-basic-string described at > http://docs.codehaus.org/display/MAVENUSER/Archetypes+List and it is not > working. I think I need to specify the URL of the repository on the command > line. I did maven –help but was surprised to find such a small number of > switches and no switch for the repository. I did a google search for maven > repositories thinking surely someone else already asked this question but I > could not find my answer. > > (1) How do I specify the URL of the repository if there is no pom.xml yet? > (2) Do I need to specify http://static.appfuse.org/releases as the > repository for the appfuse archetypes? I tried "mvn archetype:create > -DgroupId=www.signitek -DartifactId=demo-basic-spring > -DarchetypeArtifactId=org.appfuse.archetypes > -DarchetypeGroupId=appfuse-basic-spring > -DremoteRepositories=http://static.appfuse.org/releases"; but this did not > help. > (3) If not, what am I doing wrong? > > > Thanks, > Siegfried > > > > mvn archetype:create -DgroupId=www.signitek -DartifactId=demo-basic-spring > -DarchetypeArtifactId=org.appfuse.archetypes > -DarchetypeGroupId=appfuse-basic-spring > [INFO] Scanning for projects... > > [INFO] Sea > rching repository for plugin with prefix: 'archetype'. > > [INFO] > > > [INFO] Building Maven Default Project > > [INFO] task-segment: [archetype:create] (aggregator-style) > > [INFO] > > > [INFO] Setting property: classpath.resource.loader.class => > 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'. > > [INFO] Setting property: velocimacro.messages.on => 'false'. > > [INFO] Setting property: resource.loader => 'classpath'. > > [INFO] Setting property: resource.manager.logwhenfound => 'false'. > > [INFO] ** > > [INFO] Starting Jakarta Velocity v1.4 > > [INFO] RuntimeInstance initializing. > > [INFO] Default Properties File: > org\apache\velocity\runtime\defaults\velocity.properties > > [INFO] Default ResourceManager initializing. (class > org.apache.velocity.runtime.resource.ResourceManagerImpl) > > [INFO] Resource Loader Instantiated: > org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader > > [INFO] ClasspathResourceLoader : initialization starting. > > [INFO] ClasspathResourceLoader : initialization complete. > > [INFO] ResourceCache : initialized. (class > org.apache.velocity.runtime.resource.ResourceCacheImpl) > > [INFO] Default ResourceManager initialization complete. > > [INFO] Loaded System Directive: > org.apache.velocity.runtime.directive.Literal > > [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Macro > > [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Parse > > [INFO] Loaded System Directive: > org.apache.velocity.runtime.directive.Include > > [INFO] Loaded System Directive: > org.apache.velocity.runtime.directive.Foreach > > [INFO] Created: 20 parsers. > > [INFO] Velocimacro : initialization starting. > > [INFO] Velocimacro : adding VMs from VM library template : > VM_global_library.vm > > [ERROR] ResourceManager : unable to find resource 'VM_global_library.vm' in > any resource loader. > > [INFO] Velocimacro : error using VM library template VM_global_library.vm : > org.apache.velocity.exception.ResourceNotFoundException: Unable to find > resource 'VM_global_library.vm' > > [INFO] Velocimacro : VM library template macro registration complete. > > [INFO] Velocimacro : allowInline = true : VMs can be defined inline in > templates > > [INFO] Velocimacro : allowInlineToOverride = false : VMs defined inline may > NOT replace previous VM definitions > > [INFO] Velocimacro : allowInlineLocal = false : VMs defined inline will be > global in scope if allowed. > > [INFO] Velocimacro : initialization complete. > > [INFO] Velocity successfully started. > > [INFO] [archetype:create] > > [INFO] Defaulting package to group ID: www.signitek > > [INFO] artifact appfuse-basic-spring:org.appfuse.archetypes: checking for > updates from central > > [WARNING] repository metadata for: 'artifact > appfuse-basic-spring:org.appfuse.archetypes' could not be retrieved from > repository: central due to an error: Error transferring file > > [INFO] Repository 'central' will be blacklisted > > [INFO] > ---
FW: How to specify repository on the command line?
I'm sorry if this appears twice. I have waited over twelve hours and I still have not seen it appear on the list so I am posting it again. Siegfried From: siegfried [mailto:[EMAIL PROTECTED] Sent: Sunday, October 14, 2007 9:25 PM To: 'Maven Users List' Subject: How to specify repository on the command line? Im trying to use the appfuse-basic-string described at http://docs.codehaus.org/display/MAVENUSER/Archetypes+List and it is not working. I think I need to specify the URL of the repository on the command line. I did maven help but was surprised to find such a small number of switches and no switch for the repository. I did a google search for maven repositories thinking surely someone else already asked this question but I could not find my answer. (1) How do I specify the URL of the repository if there is no pom.xml yet? (2) Do I need to specify http://static.appfuse.org/releases as the repository for the appfuse archetypes? I tried mvn archetype:create -DgroupId=www.signitek -DartifactId=demo-basic-spring -DarchetypeArtifactId=org.appfuse.archetypes -DarchetypeGroupId=appfuse-basic-spring -DremoteRepositories=http://static.appfuse.org/releases but this did not help. (3) If not, what am I doing wrong? Thanks, Siegfried mvn archetype:create -DgroupId=www.signitek -DartifactId=demo-basic-spring -DarchetypeArtifactId=org.appfuse.archetypes -DarchetypeGroupId=appfuse-basic-spring [INFO] Scanning for projects... [INFO] Sea rching repository for plugin with prefix: 'archetype'. [INFO] [INFO] Building Maven Default Project [INFO] task-segment: [archetype:create] (aggregator-style) [INFO] [INFO] Setting property: classpath.resource.loader.class => 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'. [INFO] Setting property: velocimacro.messages.on => 'false'. [INFO] Setting property: resource.loader => 'classpath'. [INFO] Setting property: resource.manager.logwhenfound => 'false'. [INFO] ** [INFO] Starting Jakarta Velocity v1.4 [INFO] RuntimeInstance initializing. [INFO] Default Properties File: org\apache\velocity\runtime\defaults\velocity.properties [INFO] Default ResourceManager initializing. (class org.apache.velocity.runtime.resource.ResourceManagerImpl) [INFO] Resource Loader Instantiated: org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader [INFO] ClasspathResourceLoader : initialization starting. [INFO] ClasspathResourceLoader : initialization complete. [INFO] ResourceCache : initialized. (class org.apache.velocity.runtime.resource.ResourceCacheImpl) [INFO] Default ResourceManager initialization complete. [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Literal [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Macro [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Parse [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Include [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Foreach [INFO] Created: 20 parsers. [INFO] Velocimacro : initialization starting. [INFO] Velocimacro : adding VMs from VM library template : VM_global_library.vm [ERROR] ResourceManager : unable to find resource 'VM_global_library.vm' in any resource loader. [INFO] Velocimacro : error using VM library template VM_global_library.vm : org.apache.velocity.exception.ResourceNotFoundException: Unable to find resource 'VM_global_library.vm' [INFO] Velocimacro : VM library template macro registration complete. [INFO] Velocimacro : allowInline = true : VMs can be defined inline in templates [INFO] Velocimacro : allowInlineToOverride = false : VMs defined inline may NOT replace previous VM definitions [INFO] Velocimacro : allowInlineLocal = false : VMs defined inline will be global in scope if allowed. [INFO] Velocimacro : initialization complete. [INFO] Velocity successfully started. [INFO] [archetype:create] [INFO] Defaulting package to group ID: www.signitek [INFO] artifact appfuse-basic-spring:org.appfuse.archetypes: checking for updates from central [WARNING] repository metadata for: 'artifact appfuse-basic-spring:org.appfuse.archetypes' could not be retrieved from repository: central due to an error: Error transferring file [INFO] Repository 'central' will be blacklisted [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Error creating from archetype Embedded error: Archetype does not exist. Unable to determine the release version Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -Dgr
Re: ear files and maven-eclipse-plugin
Make sure you have your pom type as "ear" (no quotes). If you need your .project file to have certain natures so that eclipse will "see" it as a certain type. http://maven.apache.org/plugins/maven-eclipse-plugin/examples/provide-project-natures-and-build-commands.html If you're using WTP, this might be helpful: http://maven.apache.org/plugins/maven-eclipse-plugin/wtp.html HTH Jim On 10/11/07, Adrian Gonzalez <[EMAIL PROTECTED]> wrote: > > Hello, > > A really noob question... (sorry !) > > I'm currently using maven-eclipse-plugin to build a > web project with third party dependencies and a java > project. > > I want now to use this plugin to add a ear project > including the previous web project and java project > (as utility jar). maven-eclipse-plugin generated > .project file for my ear project fine as if it was a > java project, but nothing more... > > Is there a way to do this ? I'm really sorry but > didn't found any documentation about it. > > Thanks very much > > > > > > _ > Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! > Mail > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
Re: Maven good Design
To build on this and give a concrete upgrade path that I've used: When a company I was with first tried Maven2, we had several projects with a common dependency. Each project and the dependency were built with Ant. * First, we wrote a pom for the common project that included all of its dependencies, and pulled them into a local lib directory using Maven Antlib. * Next we made it install the jar to the local repo using install:install-file. * Then we did the same for the dependent projects, write a POM and make it pull dependencies local with Antlib. * Then the shared library went fully Maven, * Followed by the dependent projects several months later. Antlib was really the key to a successful, gradual migration. Harlan On 10/12/07, Graham Leggett <[EMAIL PROTECTED]> wrote: > > On Fri, October 12, 2007 3:31 am, Wayne Fay wrote: > > > If you are truly "converting" from Ant to Maven, the correct approach > > would be to "convert" the application structure into the suggested > > Maven layout. > > > > You should be able to do this in a branch in your SCM so as to not > > disturb the rest of your team until you are ready to finalize your > > changes. > > Having done this conversion on a large project in the past year, in > practise the full conversion to maven took a very long time, so this > strategy may not work. > > If you are not experienced in maven already, the best thing to do is to > take baby steps. > > Get the most simplest part of your project (the jars) building cleanly > with maven, and use this as a testing ground to get you familiar with the > maven build process. Do this on the existing sources if you can, by > dropping in pom.xml into the root of each jar as necessary. It will > probably become apparent as you go on that some of your code needs to be > restructured. Do this as necessary, updating your ant build as you go > along to keep everything working. > > Sometimes, you may find that an ant build produces more than one artifact, > such as an EJB, and then an EAR file. What we did was to create new > projects alongside the EJB project, which only built the EAR file (This > project contained a pom.xml file and nothing else). > > Eventually we were ready to wean people off the ant build and get things > going with maven only, and the conversion has worked very well. > > The prize at the end of all this work is worth it: All our code is built > and tested using continuous integration, with no platform or machine > specific build setups (we had hard coded paths *everywhere*). > > A release is tested, tagged, and built from the pristine tag (no more > releases from working copies) start to finish within 30 minutes ("Help! We > need to get this bugfix into UAT as soon as possible!", "No problem".), > and we now have the *exact* source code used to create a production > release ("Help! We need to replicate this production problem in a > development environment!", "No problem"). > > The docs are all auto-built and auto-deployed ("Help! We need to cook up a > plan to make javadocs available, which will be very difficult!", "Already > done, here is the URL"). > > Regards, > Graham > -- > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Harlan Iverson http://blog.devspan.com
Re: Putting an XSD into the Maven Repo
or just manually upload and use xsd in the dependency section On 10/15/07, Wayne Fay <[EMAIL PROTECTED]> wrote: > Package them into a Jar and deploy as usual. > > Then use m-remote-resources-p or dependency:unpack to put them in the > proper place in your project. > > Wayne > > On 10/15/07, Chris Huston <[EMAIL PROTECTED]> wrote: > > We have many projects that share a set of common XSDs. Is there a way > > to check these into a maven repo and use them as dependencies? > > > > Note that the schema's are inter-related, e.g. a type in one file > > extends a type in a second file and uses an enumeration type defined > > in a third. > > > > An example of the projects: > > > > Project A parses XML files that come in off an FTP directory. (XSDs > > used by only by xml parser) > > Project B gets XML JMS messages where one section of the payload uses > > the shared XSD types. (XSDs used by XMLBeans to generate java objects) > > Project C defines a Web Service that uses the types in a SOAP > > message. (XSDs used by JAXB to generate java objects and by SOAP > > processor to validate messages.) > > > > We only want one copy (of a particular) version to be the > > authoritative copy and to avoid manually copying in the resources to > > each project. Is there already some way to do this in maven, perhaps > > by 'installing' the XSD into the repo as an artifact? Is there a > > better non-maven way (that doesn't include using putting XSDs on a > > web server)? > > > > Thanks, > > -- Chris > > > > - > > 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] > > -- I could give you my word as a Spaniard. No good. I've known too many Spaniards. -- The Princess Bride - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven good Design
This is just an example (many projects) Here, ejb is embed in sar and jar a separated artifact Graham Leggett wrote: > > Saloucious wrote: > >> |--jar >> ||--pom.xml >> | >> |--ejb >> ||--pom.xml >> | >> |--sar >> |--pom.xml > > Can you explain what is in the jar and the ejb? Is the jar the client > side interface for the ejb, or is it something else? > > Is the code in the sar also in the jar, or is it on its own? > > Regards, > Graham > -- > > > -- View this message in context: http://www.nabble.com/Maven-good-Design-tf4610394s177.html#a13221027 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 : Re: RE : war plugin: using optional=true
Thanks Wayne, created as MWAR-125 (http://jira.codehaus.org/browse/MWAR-125). I'll attach asap a test case and will try to find a fix tomorrow (I hope !). In the meantime can someone who's generating ear application with war and utility jar (used by war but deployed at the root ear), tell me how it does it. Are you creating manually MANIFEST.MF file and populating WEB-INF/lib dependencies manually ? If not how do you distinguish jars in ear from those in WEB-INF/lib ? (I've also tries putting scope=provided in wab module for jar going to ear and scope=compile for WEB-INF/lib, but doesn't work since provided scope is not transitive - see http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html). Thanks very much for your help ! --- Wayne Fay <[EMAIL PROTECTED]> a écrit : > Sounds reasonable. Please file a bug in JIRA, > ideally with a test and fix. ;-) > > Wayne > > On 10/15/07, Adrian Gonzalez <[EMAIL PROTECTED]> > wrote: > > Hello, > > > > I'm currently looking at maven source code. > > > > In org.apache.maven.plugin.war.AbstractWarMojo > > (v2.0.2), line 582, the .jar is copied in > WEB-INF/lib > > if !artifact.isOptional().. [1] > > > > I think that optionality is not inherited by > > transitivity and that's the cause of my problem : > > i.e. if artA declares > > > > artB > > true > > > > and artB declares : > > > > artC > > false > > > > then artC is transitively included in artA > > dependencies but with optional=false. IMHO it > should > > be included with optional=true since artB is > optional. > > > > Could someone please confirm me ? > > > > [1] ScopeArtifactFilter filter = new > > ScopeArtifactFilter( Artifact.SCOPE_RUNTIME ); > > if ( !artifact.isOptional() && filter.include( > > artifact ) ) { > > ... > > //copy action... > > > > > > --- Adrian Gonzalez <[EMAIL PROTECTED]> a > écrit : > > > > > I'm trying to build a ear structure containing > war > > > and > > > jar files. > > > > > > I'm using maven-war-plugin instructions from > > > > > > http://maven.apache.org/plugins/maven-war-plugin/examples/war-manifest-guide.html > > > (last part of this page) to create MANIFEST.MF. > > > > > > Using : > > > > > > org.foo > > > bar-jar1 > > > ${pom.version} > > > true > > > > > > > > > > > > works fine for bar-jar1, but if bar-jar1 has > > > dependencies, those dependencies are copied to > > > WEB-INF/lib. > > > I would expect those dependencies to be > registered > > > in > > > the MANIFEST.MF (they are !), but not to be > included > > > in Web-Inf/lib. > > > > > > Is it a bug ? Thanks for the help, I'm really > > > struggling with this ear building thing... > > > > > > > > > > > > > > > > > > > > > Découvrez le blog Yahoo! Mail : dernières > > > nouveautés, astuces, conseils.. et vos réactions > ! > > > http://blog.mail.yahoo.fr > > > > > > > > > - > > > To unsubscribe, e-mail: > > > [EMAIL PROTECTED] > > > For additional commands, e-mail: > > > [EMAIL PROTECTED] > > > > > > > > > > > > > > > > > Découvrez le blog Yahoo! Mail : dernières > nouveautés, astuces, conseils.. et vos réactions ! > > http://blog.mail.yahoo.fr > > > > > - > > 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] > > _ Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Artifact Relocation in inhouse repository
Have any of you tried to use the "relocation" feature of maven when needing to change the group id of an already published artifact? See http://maven.apache.org/guides/mini/guide-relocation.html When I follow the directions from that link Maven starts complaining that it can no longer find the artifact when still trying to reference it using the old group and artifact name. I see other artifacts out there that have done it like Wutka dtdparser. Old ref: wutka:dtdparser:1.21 New ref: com.wutka:dtdparser:1.21 Using the old one redirects you to the new one like it is suppose but when I try it with my local stuff maven claims it can't find the old one anymore. I thought maybe it had to do with me using Proximity but even with that it handles wutka just fine? Any ideas? --Rudy
Re: Maven good Design
Saloucious wrote: |--jar ||--pom.xml | |--ejb ||--pom.xml | |--sar |--pom.xml Can you explain what is in the jar and the ejb? Is the jar the client side interface for the ejb, or is it something else? Is the code in the sar also in the jar, or is it on its own? Regards, Graham -- smime.p7s Description: S/MIME Cryptographic Signature
How to specify repository on the command line?
I'm trying to use the appfuse-basic-string described at http://docs.codehaus.org/display/MAVENUSER/Archetypes+List and it is not working. I think I need to specify the URL of the repository on the command line. I did maven -help but was surprised to find such a small number of switches and no switch for the repository. I did a google search for maven repositories thinking surely someone else already asked this question but I could not find my answer. (1) How do I specify the URL of the repository if there is no pom.xml yet? (2) Do I need to specify http://static.appfuse.org/releases as the repository for the appfuse archetypes? I tried "mvn archetype:create -DgroupId=www.signitek -DartifactId=demo-basic-spring -DarchetypeArtifactId=org.appfuse.archetypes -DarchetypeGroupId=appfuse-basic-spring -DremoteRepositories=http://static.appfuse.org/releases"; but this did not help. (3) If not, what am I doing wrong? Thanks, Siegfried mvn archetype:create -DgroupId=www.signitek -DartifactId=demo-basic-spring -DarchetypeArtifactId=org.appfuse.archetypes -DarchetypeGroupId=appfuse-basic-spring [INFO] Scanning for projects... [INFO] Sea rching repository for plugin with prefix: 'archetype'. [INFO] [INFO] Building Maven Default Project [INFO]task-segment: [archetype:create] (aggregator-style) [INFO] [INFO] Setting property: classpath.resource.loader.class => 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'. [INFO] Setting property: velocimacro.messages.on => 'false'. [INFO] Setting property: resource.loader => 'classpath'. [INFO] Setting property: resource.manager.logwhenfound => 'false'. [INFO] ** [INFO] Starting Jakarta Velocity v1.4 [INFO] RuntimeInstance initializing. [INFO] Default Properties File: org\apache\velocity\runtime\defaults\velocity.properties [INFO] Default ResourceManager initializing. (class org.apache.velocity.runtime.resource.ResourceManagerImpl) [INFO] Resource Loader Instantiated: org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader [INFO] ClasspathResourceLoader : initialization starting. [INFO] ClasspathResourceLoader : initialization complete. [INFO] ResourceCache : initialized. (class org.apache.velocity.runtime.resource.ResourceCacheImpl) [INFO] Default ResourceManager initialization complete. [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Literal [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Macro [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Parse [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Include [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Foreach [INFO] Created: 20 parsers. [INFO] Velocimacro : initialization starting. [INFO] Velocimacro : adding VMs from VM library template : VM_global_library.vm [ERROR] ResourceManager : unable to find resource 'VM_global_library.vm' in any resource loader. [INFO] Velocimacro : error using VM library template VM_global_library.vm : org.apache.velocity.exception.ResourceNotFoundException: Unable to find resource 'VM_global_library.vm' [INFO] Velocimacro : VM library template macro registration complete. [INFO] Velocimacro : allowInline = true : VMs can be defined inline in templates [INFO] Velocimacro : allowInlineToOverride = false : VMs defined inline may NOT replace previous VM definitions [INFO] Velocimacro : allowInlineLocal = false : VMs defined inline will be global in scope if allowed. [INFO] Velocimacro : initialization complete. [INFO] Velocity successfully started. [INFO] [archetype:create] [INFO] Defaulting package to group ID: www.signitek [INFO] artifact appfuse-basic-spring:org.appfuse.archetypes: checking for updates from central [WARNING] repository metadata for: 'artifact appfuse-basic-spring:org.appfuse.archetypes' could not be retrieved from repository: central due to an error: Error transferring file [INFO] Repository 'central' will be blacklisted [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Error creating from archetype Embedded error: Archetype does not exist. Unable to determine the release version Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=appfuse-basic-spring -DartifactId=org.appfuse.archetypes \ -Dversion=RELEASE -Dpackaging=jar -Dfile=/path/to/file Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=appfuse-basic-spring -DartifactId=org.appfuse.archetypes \
Re: Jar Version Best Practice
Hello Wayne, Thanks for the information. I will take a look at that plugin. Regards, Mark Wayne Fay wrote: > > The release plugin solves most people's version issues. > > Wayne > > On 10/15/07, Mark_E <[EMAIL PROTECTED]> wrote: >> >> Hello, >> I have been using Maven for about a month now and I really like it >> however, I am having an issue with setting jar versions and I was looking >> for suggestions on how other people do it. >> >> I basically have a pom for each project I build. In the pom.xml I have >> the >> dependencies. We typically version jars here with a 4 digit number so >> they >> change each build, unlike say 1.1-SNAPSHOT. >> >> So that I do not have to set the dependency versions in each POM, I >> listed >> all the versions of the jars in the settings.xml. This has been working >> good >> such that I only have to set the version in 1 spot when I do a build >> >> Where I run into problems is when I try to build a jar that depends on >> one I >> just build and installed in maven. What happens is it gets the pom.xml >> for >> that jar I just built and because the pom.xml has variables assigned to >> the >> version (which are defined in the settings.xml) I gets confused and says >> it >> cannot find the jar version. It does not resolve the variable. >> >> If after I build a jar, I go and delete the pom that it adds to the >> repository then I try to build another jar that depends on that jar I >> just >> built, it build fine. >> >> Log story short, I probably have the jar versions in the wrong place. I >> figure they should go in a parent pom but with the parent pom, I have to >> add >> it to maven after each update. I suppose I could do that with a simple >> script but I was just looking for input on how others do this. >> >> Besides that issue, I have been using Maven 2.0 and testing Continuum >> with >> it and it seems to work well. >> >> Thanks in advance! >> >> Regards, >> Mark >> -- >> View this message in context: >> http://www.nabble.com/Jar-Version-Best-Practice-tf4629682s177.html#a13219663 >> Sent from the Maven - Users mailing list archive at Nabble.com. >> >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Jar-Version-Best-Practice-tf4629682s177.html#a13220093 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: Jar Version Best Practice
The release plugin solves most people's version issues. Wayne On 10/15/07, Mark_E <[EMAIL PROTECTED]> wrote: > > Hello, > I have been using Maven for about a month now and I really like it > however, I am having an issue with setting jar versions and I was looking > for suggestions on how other people do it. > > I basically have a pom for each project I build. In the pom.xml I have the > dependencies. We typically version jars here with a 4 digit number so they > change each build, unlike say 1.1-SNAPSHOT. > > So that I do not have to set the dependency versions in each POM, I listed > all the versions of the jars in the settings.xml. This has been working good > such that I only have to set the version in 1 spot when I do a build > > Where I run into problems is when I try to build a jar that depends on one I > just build and installed in maven. What happens is it gets the pom.xml for > that jar I just built and because the pom.xml has variables assigned to the > version (which are defined in the settings.xml) I gets confused and says it > cannot find the jar version. It does not resolve the variable. > > If after I build a jar, I go and delete the pom that it adds to the > repository then I try to build another jar that depends on that jar I just > built, it build fine. > > Log story short, I probably have the jar versions in the wrong place. I > figure they should go in a parent pom but with the parent pom, I have to add > it to maven after each update. I suppose I could do that with a simple > script but I was just looking for input on how others do this. > > Besides that issue, I have been using Maven 2.0 and testing Continuum with > it and it seems to work well. > > Thanks in advance! > > Regards, > Mark > -- > View this message in context: > http://www.nabble.com/Jar-Version-Best-Practice-tf4629682s177.html#a13219663 > 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: Putting an XSD into the Maven Repo
Package them into a Jar and deploy as usual. Then use m-remote-resources-p or dependency:unpack to put them in the proper place in your project. Wayne On 10/15/07, Chris Huston <[EMAIL PROTECTED]> wrote: > We have many projects that share a set of common XSDs. Is there a way > to check these into a maven repo and use them as dependencies? > > Note that the schema's are inter-related, e.g. a type in one file > extends a type in a second file and uses an enumeration type defined > in a third. > > An example of the projects: > > Project A parses XML files that come in off an FTP directory. (XSDs > used by only by xml parser) > Project B gets XML JMS messages where one section of the payload uses > the shared XSD types. (XSDs used by XMLBeans to generate java objects) > Project C defines a Web Service that uses the types in a SOAP > message. (XSDs used by JAXB to generate java objects and by SOAP > processor to validate messages.) > > We only want one copy (of a particular) version to be the > authoritative copy and to avoid manually copying in the resources to > each project. Is there already some way to do this in maven, perhaps > by 'installing' the XSD into the repo as an artifact? Is there a > better non-maven way (that doesn't include using putting XSDs on a > web server)? > > Thanks, > -- Chris > > - > 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 good Design
I'm not aware of any published "best practices for people who want to use Maven but can't follow the conventions". Perhaps someone else will reply with something more useful. My general response is "do what works best for you". Wayne On 10/15/07, Saloucious <[EMAIL PROTECTED]> wrote: > > Sure this is painful. > > The only solution I have found is : > > my-app > |-- pom.xml > |-- build.xml > |-- src > ||- App.java > | > |--m2 > |--jar > ||--pom.xml > | > |--ejb > ||--pom.xml > | > |--sar > |--pom.xml > > > Is better to put everything in one pom.xml, with many classifier attached > artifacts ? > > > > Wendy Smoak-3 wrote: > > > > On 10/12/07, Graham Leggett <[EMAIL PROTECTED]> wrote: > > > >> Get the most simplest part of your project (the jars) building cleanly > >> with maven, and use this as a testing ground to get you familiar with the > >> maven build process. Do this on the existing sources if you can, by > >> dropping in pom.xml into the root of each jar as necessary. It will > >> probably become apparent as you go on that some of your code needs to be > >> restructured. Do this as necessary, updating your ant build as you go > >> along to keep everything working. > > > > I agree, but the original message specifically said "without changes". > > That's a huge red flag to me that things are about to get very > > painful for everyone involved. > > > > -- > > Wendy > > > >> > >> Sometimes, you may find that an ant build produces more than one > >> artifact, > >> such as an EJB, and then an EAR file. What we did was to create new > >> projects alongside the EJB project, which only built the EAR file (This > >> project contained a pom.xml file and nothing else). > >> > >> Eventually we were ready to wean people off the ant build and get things > >> going with maven only, and the conversion has worked very well. > >> > >> The prize at the end of all this work is worth it: All our code is built > >> and tested using continuous integration, with no platform or machine > >> specific build setups (we had hard coded paths *everywhere*). > >> > >> A release is tested, tagged, and built from the pristine tag (no more > >> releases from working copies) start to finish within 30 minutes ("Help! > >> We > >> need to get this bugfix into UAT as soon as possible!", "No problem".), > >> and we now have the *exact* source code used to create a production > >> release ("Help! We need to replicate this production problem in a > >> development environment!", "No problem"). > >> > >> The docs are all auto-built and auto-deployed ("Help! We need to cook up > >> a > >> plan to make javadocs available, which will be very difficult!", "Already > >> done, here is the URL"). > >> > >> Regards, > >> Graham > >> -- > >> > >> > >> > >> - > >> To unsubscribe, e-mail: [EMAIL PROTECTED] > >> For additional commands, e-mail: [EMAIL PROTECTED] > >> > >> > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > -- > View this message in context: > http://www.nabble.com/Maven-good-Design-tf4610394s177.html#a13219789 > 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]
[ANN] rpm-maven-plugin version 2.0-beta-1 released
Hi The mojo team are happy to announce that version 2.0-beta-1 of the rpm-maven plugin has been released. Changes since last release is : * Added support for %clean and %install scripts * Added support for %define arguments Best regards Kaare Nilsen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven good Design
Sure this is painful. The only solution I have found is : my-app |-- pom.xml |-- build.xml |-- src ||- App.java | |--m2 |--jar ||--pom.xml | |--ejb ||--pom.xml | |--sar |--pom.xml Is better to put everything in one pom.xml, with many classifier attached artifacts ? Wendy Smoak-3 wrote: > > On 10/12/07, Graham Leggett <[EMAIL PROTECTED]> wrote: > >> Get the most simplest part of your project (the jars) building cleanly >> with maven, and use this as a testing ground to get you familiar with the >> maven build process. Do this on the existing sources if you can, by >> dropping in pom.xml into the root of each jar as necessary. It will >> probably become apparent as you go on that some of your code needs to be >> restructured. Do this as necessary, updating your ant build as you go >> along to keep everything working. > > I agree, but the original message specifically said "without changes". > That's a huge red flag to me that things are about to get very > painful for everyone involved. > > -- > Wendy > >> >> Sometimes, you may find that an ant build produces more than one >> artifact, >> such as an EJB, and then an EAR file. What we did was to create new >> projects alongside the EJB project, which only built the EAR file (This >> project contained a pom.xml file and nothing else). >> >> Eventually we were ready to wean people off the ant build and get things >> going with maven only, and the conversion has worked very well. >> >> The prize at the end of all this work is worth it: All our code is built >> and tested using continuous integration, with no platform or machine >> specific build setups (we had hard coded paths *everywhere*). >> >> A release is tested, tagged, and built from the pristine tag (no more >> releases from working copies) start to finish within 30 minutes ("Help! >> We >> need to get this bugfix into UAT as soon as possible!", "No problem".), >> and we now have the *exact* source code used to create a production >> release ("Help! We need to replicate this production problem in a >> development environment!", "No problem"). >> >> The docs are all auto-built and auto-deployed ("Help! We need to cook up >> a >> plan to make javadocs available, which will be very difficult!", "Already >> done, here is the URL"). >> >> Regards, >> Graham >> -- >> >> >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Maven-good-Design-tf4610394s177.html#a13219789 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Putting an XSD into the Maven Repo
We have many projects that share a set of common XSDs. Is there a way to check these into a maven repo and use them as dependencies? Note that the schema's are inter-related, e.g. a type in one file extends a type in a second file and uses an enumeration type defined in a third. An example of the projects: Project A parses XML files that come in off an FTP directory. (XSDs used by only by xml parser) Project B gets XML JMS messages where one section of the payload uses the shared XSD types. (XSDs used by XMLBeans to generate java objects) Project C defines a Web Service that uses the types in a SOAP message. (XSDs used by JAXB to generate java objects and by SOAP processor to validate messages.) We only want one copy (of a particular) version to be the authoritative copy and to avoid manually copying in the resources to each project. Is there already some way to do this in maven, perhaps by 'installing' the XSD into the repo as an artifact? Is there a better non-maven way (that doesn't include using putting XSDs on a web server)? Thanks, -- Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Jar Version Best Practice
Hello, I have been using Maven for about a month now and I really like it however, I am having an issue with setting jar versions and I was looking for suggestions on how other people do it. I basically have a pom for each project I build. In the pom.xml I have the dependencies. We typically version jars here with a 4 digit number so they change each build, unlike say 1.1-SNAPSHOT. So that I do not have to set the dependency versions in each POM, I listed all the versions of the jars in the settings.xml. This has been working good such that I only have to set the version in 1 spot when I do a build Where I run into problems is when I try to build a jar that depends on one I just build and installed in maven. What happens is it gets the pom.xml for that jar I just built and because the pom.xml has variables assigned to the version (which are defined in the settings.xml) I gets confused and says it cannot find the jar version. It does not resolve the variable. If after I build a jar, I go and delete the pom that it adds to the repository then I try to build another jar that depends on that jar I just built, it build fine. Log story short, I probably have the jar versions in the wrong place. I figure they should go in a parent pom but with the parent pom, I have to add it to maven after each update. I suppose I could do that with a simple script but I was just looking for input on how others do this. Besides that issue, I have been using Maven 2.0 and testing Continuum with it and it seems to work well. Thanks in advance! Regards, Mark -- View this message in context: http://www.nabble.com/Jar-Version-Best-Practice-tf4629682s177.html#a13219663 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: Maven good Design
On 10/12/07, Graham Leggett <[EMAIL PROTECTED]> wrote: > Get the most simplest part of your project (the jars) building cleanly > with maven, and use this as a testing ground to get you familiar with the > maven build process. Do this on the existing sources if you can, by > dropping in pom.xml into the root of each jar as necessary. It will > probably become apparent as you go on that some of your code needs to be > restructured. Do this as necessary, updating your ant build as you go > along to keep everything working. I agree, but the original message specifically said "without changes". That's a huge red flag to me that things are about to get very painful for everyone involved. -- Wendy > > Sometimes, you may find that an ant build produces more than one artifact, > such as an EJB, and then an EAR file. What we did was to create new > projects alongside the EJB project, which only built the EAR file (This > project contained a pom.xml file and nothing else). > > Eventually we were ready to wean people off the ant build and get things > going with maven only, and the conversion has worked very well. > > The prize at the end of all this work is worth it: All our code is built > and tested using continuous integration, with no platform or machine > specific build setups (we had hard coded paths *everywhere*). > > A release is tested, tagged, and built from the pristine tag (no more > releases from working copies) start to finish within 30 minutes ("Help! We > need to get this bugfix into UAT as soon as possible!", "No problem".), > and we now have the *exact* source code used to create a production > release ("Help! We need to replicate this production problem in a > development environment!", "No problem"). > > The docs are all auto-built and auto-deployed ("Help! We need to cook up a > plan to make javadocs available, which will be very difficult!", "Already > done, here is the URL"). > > Regards, > Graham > -- > > > > - > 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 good Design
Sure, a new branch (with Maven convention) should be the better solution. Unfortunately, this is not planned ... So is this stucture is fine : my-app |-- pom.xml |-- build.xml |-- src ||- App.java | |--m2 |--jar ||--pom.xml | |--ejb ||--pom.xml | |--sar |--pom.xml Or is better to put everything in one pom.xml, with many classifier attached artifacts ? Thanks Dan Tran wrote: > > Wendy puts it right on the spot. "hazard pay" > > I also want to add: pay premium for extra health insurance b/c you > will go insane. > > :-) > > like Wayne has suggested, do it on the branch and show your boss prototype > before your proposal shows up on his desk. > > -D > > > > On 10/11/07, Wendy Smoak <[EMAIL PROTECTED]> wrote: >> On 10/11/07, Saloucious <[EMAIL PROTECTED]> wrote: >> >> > Each Ant scripts creates one or more artifacts : jar , ejb, aar, sar >> (with >> > embeded artifacts) ... >> > As i can see in Maven : one pom.xml = one artifact (recommanded). >> > >> > I search a good design solution to convert these Ant's processes to >> Maven >> > (without changes). >> > >> > What i've proposed to my manager is to create in each root project dir >> a m2 >> > dir >> >> Been there, done that. I will *never* do it again without hazard pay. >> >> It can work *briefly* as a way to get your (or Maven's) foot in the >> door and maybe generate the project website, but it is not a solution. >> It's not a fair test for Maven, and no one will be happy, least of >> all the person working on the m2 build. >> >> Much better is Wayne's suggestion to branch, do a proper conversion, >> and then show them. >> >> -- >> Wendy >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Maven-good-Design-tf4610394s177.html#a13219501 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to release if using testng
i'm using surefire 2.3 and testng without any problems... well occasionally i get a null pointer instead of an error report... but other than that releasing no problems On Saturday 13 October 2007 15:48, Victor Cardona wrote: > Wim Deblauwe wrote: > > Hi, > > > > how do other people release their maven project if they use TestNG? The > > only surefire that works ok with TestNG is 2.4-collab-SNAPSHOT, but since > > it is a snapshot, I cannot release. I could try to give the snapshot jars > > a real release number, but I'd rather not do that because a) it feels > > like cheating and b) it is a lot of work with all the different modules > > that surefire has. > > > > regards, > > > > Wim > > I finally gave up on using the surefire plugin with TestNG. Now I just > use antrun to run the testng ant task and generate a report. > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] -- Michael McCallum Enterprise Engineer mailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: RE : war plugin: using optional=true
Sounds reasonable. Please file a bug in JIRA, ideally with a test and fix. ;-) Wayne On 10/15/07, Adrian Gonzalez <[EMAIL PROTECTED]> wrote: > Hello, > > I'm currently looking at maven source code. > > In org.apache.maven.plugin.war.AbstractWarMojo > (v2.0.2), line 582, the .jar is copied in WEB-INF/lib > if !artifact.isOptional().. [1] > > I think that optionality is not inherited by > transitivity and that's the cause of my problem : > i.e. if artA declares > > artB > true > > and artB declares : > > artC > false > > then artC is transitively included in artA > dependencies but with optional=false. IMHO it should > be included with optional=true since artB is optional. > > Could someone please confirm me ? > > [1] ScopeArtifactFilter filter = new > ScopeArtifactFilter( Artifact.SCOPE_RUNTIME ); > if ( !artifact.isOptional() && filter.include( > artifact ) ) { > ... > //copy action... > > > --- Adrian Gonzalez <[EMAIL PROTECTED]> a écrit : > > > I'm trying to build a ear structure containing war > > and > > jar files. > > > > I'm using maven-war-plugin instructions from > > > http://maven.apache.org/plugins/maven-war-plugin/examples/war-manifest-guide.html > > (last part of this page) to create MANIFEST.MF. > > > > Using : > > > > org.foo > > bar-jar1 > > ${pom.version} > > true > > > > > > > > works fine for bar-jar1, but if bar-jar1 has > > dependencies, those dependencies are copied to > > WEB-INF/lib. > > I would expect those dependencies to be registered > > in > > the MANIFEST.MF (they are !), but not to be included > > in Web-Inf/lib. > > > > Is it a bug ? Thanks for the help, I'm really > > struggling with this ear building thing... > > > > > > > > > > > > > Découvrez le blog Yahoo! Mail : dernières > > nouveautés, astuces, conseils.. et vos réactions ! > > http://blog.mail.yahoo.fr > > > > > - > > To unsubscribe, e-mail: > > [EMAIL PROTECTED] > > For additional commands, e-mail: > > [EMAIL PROTECTED] > > > > > > > > > > Découvrez le blog Yahoo! Mail : dernières nouveautés, astuces, conseils.. et > vos réactions ! > http://blog.mail.yahoo.fr > > - > 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: Very newbie question
The question was really directed to the original poster, ichasco. I have seen other people new to Maven who seem to believe that they must create archetypes themselves manually rather than simply reusing the existing archetypes. I want to make sure that ichasco is not heading down the wrong path. People who are new to Maven generally should not be creating archetypes. Wayne On 10/15/07, Harlan Iverson <[EMAIL PROTECTED]> wrote: > One application of it for me was a multi-project layout for an EAR with a > myfaces web application, EJB3, a persistence archive, a custom login module, > skeleton config files, etc. It's helpful if you create several projects > using the same pattern. > > On 10/15/07, Wayne Fay <[EMAIL PROTECTED]> wrote: > > > > Just curious, why do you think you need to CREATE an archetype? Most > > people will simply USE an archetype that has been previously created. > > > > "mvn archetype:create ..." is simply the command to create a new > > project using an archetype. I'd be very surprised that a new user > > would want to create an archetype. > > > > What exactly are you hoping to do with Maven2? > > > > Wayne > > > > On 10/15/07, Harlan Iverson <[EMAIL PROTECTED]> wrote: > > > An archetype is installed the same way as a normal artifact; so running > > 'mvn > > > install' in the directory will do it. > > > > > > In case you haven't seen it, this guide to creating archetypes helped me > > > along: > > http://maven.apache.org/guides/mini/guide-creating-archetypes.html > > > > > > Harlan > > > > > > On 10/15/07, ichasco <[EMAIL PROTECTED]> wrote: > > > > > > > > > > > > Hi all, > > > > > > > > I have just started with maven and i have some questions. I have read > > the > > > > guide to creating archetype and i do not understand very well it. > > > > > > > > I know that i have to create an archetype.xml, pom.xml, ... but where > > i > > > > have > > > > to saved all these files? in .m2? where are stored archetypes? > > > > > > > > Thanks > > > > > > > > > > > > -- > > > > View this message in context: > > > > > > http://www.nabble.com/Very-newbie-question-tf4628024s177.html#a13214344 > > > > Sent from the Maven - Users mailing list archive at Nabble.com. > > > > > > > > > > > > - > > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > > > > > > -- > > > Harlan Iverson > > > http://blog.devspan.com > > > > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > -- > Harlan Iverson > http://blog.devspan.com > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to release if using testng
You know if you try really real hard you can get past the 'snapshot' aspect of 2.4-collab That is the version we use... but it is also the version tapestry.apache.org uses to release the tapestry project as well. Don't know why the main 2.4-SNAPSHOT can't get fixed to use the latest version of testng On 10/14/07, Wim Deblauwe <[EMAIL PROTECTED]> wrote: > > I finally gave up on using the surefire plugin with TestNG. Now I just > > use antrun to run the testng ant task and generate a report. > > > > I did not know that was possible. How do you remove surefire from the > lifecycle? > > regards, > > Wim > > -- > Vigilog - an open source log file viewer: http://vigilog.sourceforge.net > Blog: http://www.jroller.com/page/Fester >
Re: Very newbie question
One application of it for me was a multi-project layout for an EAR with a myfaces web application, EJB3, a persistence archive, a custom login module, skeleton config files, etc. It's helpful if you create several projects using the same pattern. On 10/15/07, Wayne Fay <[EMAIL PROTECTED]> wrote: > > Just curious, why do you think you need to CREATE an archetype? Most > people will simply USE an archetype that has been previously created. > > "mvn archetype:create ..." is simply the command to create a new > project using an archetype. I'd be very surprised that a new user > would want to create an archetype. > > What exactly are you hoping to do with Maven2? > > Wayne > > On 10/15/07, Harlan Iverson <[EMAIL PROTECTED]> wrote: > > An archetype is installed the same way as a normal artifact; so running > 'mvn > > install' in the directory will do it. > > > > In case you haven't seen it, this guide to creating archetypes helped me > > along: > http://maven.apache.org/guides/mini/guide-creating-archetypes.html > > > > Harlan > > > > On 10/15/07, ichasco <[EMAIL PROTECTED]> wrote: > > > > > > > > > Hi all, > > > > > > I have just started with maven and i have some questions. I have read > the > > > guide to creating archetype and i do not understand very well it. > > > > > > I know that i have to create an archetype.xml, pom.xml, ... but where > i > > > have > > > to saved all these files? in .m2? where are stored archetypes? > > > > > > Thanks > > > > > > > > > -- > > > View this message in context: > > > > http://www.nabble.com/Very-newbie-question-tf4628024s177.html#a13214344 > > > Sent from the Maven - Users mailing list archive at Nabble.com. > > > > > > > > > - > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > -- > > Harlan Iverson > > http://blog.devspan.com > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Harlan Iverson http://blog.devspan.com
Re: Search with maven
This is not available out of the box, and I haven't seen any plugins that integrate Lucene etc. Wayne On 10/15/07, Sinduria,Anuradha <[EMAIL PROTECTED]> wrote: > Hi All, > > > > Can we do search on maven generated website of our project, > > like we can do it on WIKI and user can enter search criteria and selected > pages are shown. > > > > > > > > Thanks and Regards, > > Anuradha Sinduria > > > > > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE : war plugin: using optional=true
Hello, I'm currently looking at maven source code. In org.apache.maven.plugin.war.AbstractWarMojo (v2.0.2), line 582, the .jar is copied in WEB-INF/lib if !artifact.isOptional().. [1] I think that optionality is not inherited by transitivity and that's the cause of my problem : i.e. if artA declares artB true and artB declares : artC false then artC is transitively included in artA dependencies but with optional=false. IMHO it should be included with optional=true since artB is optional. Could someone please confirm me ? [1] ScopeArtifactFilter filter = new ScopeArtifactFilter( Artifact.SCOPE_RUNTIME ); if ( !artifact.isOptional() && filter.include( artifact ) ) { ... //copy action... --- Adrian Gonzalez <[EMAIL PROTECTED]> a écrit : > I'm trying to build a ear structure containing war > and > jar files. > > I'm using maven-war-plugin instructions from > http://maven.apache.org/plugins/maven-war-plugin/examples/war-manifest-guide.html > (last part of this page) to create MANIFEST.MF. > > Using : > > org.foo > bar-jar1 > ${pom.version} > true > > > > works fine for bar-jar1, but if bar-jar1 has > dependencies, those dependencies are copied to > WEB-INF/lib. > I would expect those dependencies to be registered > in > the MANIFEST.MF (they are !), but not to be included > in Web-Inf/lib. > > Is it a bug ? Thanks for the help, I'm really > struggling with this ear building thing... > > > > > > Découvrez le blog Yahoo! Mail : dernières > nouveautés, astuces, conseils.. et vos réactions ! > http://blog.mail.yahoo.fr > > - > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > Découvrez le blog Yahoo! Mail : dernières nouveautés, astuces, conseils.. et vos réactions ! http://blog.mail.yahoo.fr - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Very newbie question
Just curious, why do you think you need to CREATE an archetype? Most people will simply USE an archetype that has been previously created. "mvn archetype:create ..." is simply the command to create a new project using an archetype. I'd be very surprised that a new user would want to create an archetype. What exactly are you hoping to do with Maven2? Wayne On 10/15/07, Harlan Iverson <[EMAIL PROTECTED]> wrote: > An archetype is installed the same way as a normal artifact; so running 'mvn > install' in the directory will do it. > > In case you haven't seen it, this guide to creating archetypes helped me > along: http://maven.apache.org/guides/mini/guide-creating-archetypes.html > > Harlan > > On 10/15/07, ichasco <[EMAIL PROTECTED]> wrote: > > > > > > Hi all, > > > > I have just started with maven and i have some questions. I have read the > > guide to creating archetype and i do not understand very well it. > > > > I know that i have to create an archetype.xml, pom.xml, ... but where i > > have > > to saved all these files? in .m2? where are stored archetypes? > > > > Thanks > > > > > > -- > > View this message in context: > > http://www.nabble.com/Very-newbie-question-tf4628024s177.html#a13214344 > > Sent from the Maven - Users mailing list archive at Nabble.com. > > > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > -- > Harlan Iverson > http://blog.devspan.com > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Very newbie question
An archetype is installed the same way as a normal artifact; so running 'mvn install' in the directory will do it. In case you haven't seen it, this guide to creating archetypes helped me along: http://maven.apache.org/guides/mini/guide-creating-archetypes.html Harlan On 10/15/07, ichasco <[EMAIL PROTECTED]> wrote: > > > Hi all, > > I have just started with maven and i have some questions. I have read the > guide to creating archetype and i do not understand very well it. > > I know that i have to create an archetype.xml, pom.xml, ... but where i > have > to saved all these files? in .m2? where are stored archetypes? > > Thanks > > > -- > View this message in context: > http://www.nabble.com/Very-newbie-question-tf4628024s177.html#a13214344 > Sent from the Maven - Users mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Harlan Iverson http://blog.devspan.com
Very newbie question
Hi all, I have just started with maven and i have some questions. I have read the guide to creating archetype and i do not understand very well it. I know that i have to create an archetype.xml, pom.xml, ... but where i have to saved all these files? in .m2? where are stored archetypes? Thanks -- View this message in context: http://www.nabble.com/Very-newbie-question-tf4628024s177.html#a13214344 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: EJB Manifest file creation/update
EJ Ciramella wrote on Monday, October 15, 2007 4:22 PM: > Do you have an example of this? http://maven.apache.org/guides/mini/guide-manifest.html I thought this pointer was not necessary, since you already configured your manifest ... - Jörg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
war plugin: using optional=true
I'm trying to build a ear structure containing war and jar files. I'm using maven-war-plugin instructions from http://maven.apache.org/plugins/maven-war-plugin/examples/war-manifest-guide.html (last part of this page) to create MANIFEST.MF. Using : org.foo bar-jar1 ${pom.version} true works fine for bar-jar1, but if bar-jar1 has dependencies, those dependencies are copied to WEB-INF/lib. I would expect those dependencies to be registered in the MANIFEST.MF (they are !), but not to be included in Web-Inf/lib. Is it a bug ? Thanks for the help, I'm really struggling with this ear building thing... Découvrez le blog Yahoo! Mail : dernières nouveautés, astuces, conseils.. et vos réactions ! http://blog.mail.yahoo.fr - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: EJB Manifest file creation/update
Do you have an example of this? addClassPath ;-) - 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: Repository Uploads
If you read carefully http://maven.apache.org/guides/mini/guide-central-repository-upload.html Sync'ing your own repository to the central repository automatically This is the preferred process. so if you want your stuff uploaded faster set up a synced repo On 10/15/07, Rupert Smith <[EMAIL PROTECTED]> wrote: > Hi, > > Is anybody currently looking after repository upload requests? I appreciate > that this is done by volunteers, but I have waited patiently for 2 weeks for > my stuff to be uploaded... > > Rupert > -- I could give you my word as a Spaniard. No good. I've known too many Spaniards. -- The Princess Bride - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: server certificate verification failed (sorry, offtopic)
On Mon, October 15, 2007 3:54 pm, Ashley Williams wrote: > I wonder if we are talking at cross purposes. Our subversion repository is > actually hosted with > a thirdparty (collabnet) and I believe they have changed their certificate > and to one that isn't trusted > by a root certificate. Therefore unless I am missing yet another point, I > don't believe we can > have any influence over this. I would seriously doubt that a company that offers commercial svn hosting would expect customers to accept a self signed certificate. It would pay to query them and check, they may only supply you with the root certificate if you ask for it. Regards, Graham --
Re: server certificate verification failed (sorry, offtopic)
I wonder if we are talking at cross purposes. Our subversion repository is actually hosted with a thirdparty (collabnet) and I believe they have changed their certificate and to one that isn't trusted by a root certificate. Therefore unless I am missing yet another point, I don't believe we can have any influence over this. If our repository was inhouse, then what you are are saying would make sense to me. "Graham Leggett" <[EMAIL PROTECTED]> wrote on 15/10/2007 14:26:02: > On Mon, October 15, 2007 3:08 pm, Ashley Williams wrote: > > > Although I would have thought the issue of whether or not > > I trust a particular site is different from whether my continuum > > installation is connecting > > me to the site I think it should be. > > SSL performs two functions - one to obscure the data in transit to protect > from eavesdropping, the second to ensure that you are talking to the right > party so that you don't end up giving away secrets to imposters. > > > So can you give guidance as to what my action should be? Each developer > > has > > just been hitting the 'accept permanently' button in subclipse in their > > own > > workspaces. > > Ideally you need to deploy a certificate onto your server that is trusted > by a root certificate. The root certificate gets installed on all your > clients in some kind of trusted fashion. When the svn client connects to > the svn server, it says "Oh, you gave me a cert, is this cert signed by > one of the root certs I have locally trusted? Yes? Come on right in". > > When your developers are trained to just hit "p", what they are > effectively doing is saying "trust anybody, even disgruntled employee's > fake server three cubicles down". > > The quickest way to get a certificate that's trusted by a root certificate > is to buy one from a certificate authority. You don't need to buy a > certificate with onerous identity checking, because you trust yourself > already. > > A cheaper alternative is to create a root certificate yourself using a > toolkit like openssl. Don't create a self signed cert, as it doesn't offer > you the same protection. > > > So should we be thoroughly investigating the proposed > > certificate before doing > > this, since a glance at the certificate hostname field looks fine to me ( > > *.ibitdev.com). > > Continuum is in a dmz and has not been reconfigured since > > the last build, so I am fairly certain it is connecting to the correct > > url. > > The only way continuum can be sure the correct URL is being used is if the > certificate presented is trusted by a CA certificate on svn (via > continuum)'s list of trusted CA certificates. > > If continuum breaks expecting a "p", it means something weird or dogy is > going on on your network, which warrants investigation. > > Regards, > Graham > -- > > --- This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and delete this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. Please refer to http://www.db.com/en/content/eu_disclosures.htm for additional EU corporate and regulatory disclosures.
Re: fatal error setDefaultRepositoryPermissions no such method
Fixed - a 2.0.4 jar was present in my lib dir. Jan Pittner wrote: This happened again, but now I can't get rid of it. I deleted the maven dir, copied the install over again (which previously fixed the problem), and it still happens. I tried it on a fresh user account, same thing. At this point, I'm completely stuck with a nonworking maven. Any hints/suggestions greatly appreciated! J - 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: server certificate verification failed
On Mon, October 15, 2007 3:08 pm, Ashley Williams wrote: > Although I would have thought the issue of whether or not > I trust a particular site is different from whether my continuum > installation is connecting > me to the site I think it should be. SSL performs two functions - one to obscure the data in transit to protect from eavesdropping, the second to ensure that you are talking to the right party so that you don't end up giving away secrets to imposters. > So can you give guidance as to what my action should be? Each developer > has > just been hitting the 'accept permanently' button in subclipse in their > own > workspaces. Ideally you need to deploy a certificate onto your server that is trusted by a root certificate. The root certificate gets installed on all your clients in some kind of trusted fashion. When the svn client connects to the svn server, it says "Oh, you gave me a cert, is this cert signed by one of the root certs I have locally trusted? Yes? Come on right in". When your developers are trained to just hit "p", what they are effectively doing is saying "trust anybody, even disgruntled employee's fake server three cubicles down". The quickest way to get a certificate that's trusted by a root certificate is to buy one from a certificate authority. You don't need to buy a certificate with onerous identity checking, because you trust yourself already. A cheaper alternative is to create a root certificate yourself using a toolkit like openssl. Don't create a self signed cert, as it doesn't offer you the same protection. > So should we be thoroughly investigating the proposed > certificate before doing > this, since a glance at the certificate hostname field looks fine to me ( > *.ibitdev.com). > Continuum is in a dmz and has not been reconfigured since > the last build, so I am fairly certain it is connecting to the correct > url. The only way continuum can be sure the correct URL is being used is if the certificate presented is trusted by a CA certificate on svn (via continuum)'s list of trusted CA certificates. If continuum breaks expecting a "p", it means something weird or dogy is going on on your network, which warrants investigation. Regards, Graham --
problem with dependencies
Hi, I have a project with modules. My first module depends on poi, and my second depends on my first. When I run eclipse:eclipse from my root project I have poi in both classpath of my projects, so everything works. But when I run it from my second project poi isn't in the classpath. So I try it with the compile plugin and I have the same error. But maven must use transitive dependencies so why it does not work ? -- CletteBou clettebou.miniville.fr
Ant tasks 2.0.7 with snapshot dependencies
Hi there, I'm upgrading to the latest maven-ant-tasks 2.0.7 from 2.0.4 and am having problems downloading snapshot dependencies. My build.xml is something like: http://xxx/";> http://yyy/";> But it's failing downloading the snapshot artifact since it's trying to download a URL ending with "-SNAPSHOT", and not the "-mmdd-hhmmss-n" version. So it appears to be assuming a remote repo with uniqueVersion=true when this is not the case. I've had a quick browse of the code and it appears uniqueVersion=false for build.xml declared repos, so not sure what's happening here? Is this a known issue? Cheers, Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Repository Uploads
Hi, Is anybody currently looking after repository upload requests? I appreciate that this is done by volunteers, but I have waited patiently for 2 weeks for my stuff to be uploaded... Rupert
Mojo: Best way to get all artifact versions from local repository
Hello, I am developing plugin (mojo) and I need to determine latest version in local repository for group of plugins. I tried org.apache.maven.artifact.resolver.ArtifactResolve.resolve but it needs org.apache.maven.artifact.Artifact with filled version. I also tried org.apache.maven.artifact.repository.metadata.RepositoryMetadataManager but it also didn't help because there is only class for whole group (GroupRepositoryMetadata) and then for concrete artifact version (ArtifactRepositoryMetadata) but there in no way to obtain all (or latest) artifact version(s). What is the best way to obtain latest plugin version? Should I manually traverse artifact directory in local repository and then sort found versions? Disadvantage is that one cannot be sure if this method handles all cases. Thanks Vojta - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Maven plugin for JPA processing
Dear users and developers, I have come across an article on here http://weblogs.java.net/blog/ss141213/archive/2005/12/how_to_automati.html Which use apt to inspect all JPA beans (check @Entity) and update the persistence.xml. Is there any corresponding plugin in Maven? I intended to make one, but just want to make sure that, no one else are already working on it (or made one already). Best regards, Zarick - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven Proxy
On 15/10/2007, William Ferguson <[EMAIL PROTECTED]> wrote: > Archiva (beta2) - couldn't get it to work by following the installation > instructions. Doesn't install as a clean webapp (in Tomcat in any case). were you able to report these problems? Would be happy to hear bugs or thoughts on ways to make it easier to deploy into Tomcat. - Brett -- Brett Porter Blog: http://www.devzuz.org/blogs/bporter/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven Proxy
Hi Denis, I have had some experience of 3 of them in the last week. All of them deployed as WebApps inside Tomcat. Promixity - simple config, file based storage, developers seem absent (at least at present). We are using this as our main Maven repository and also as a mirror of that repository at an interstate office. Artifactory - simple config (perhaps simpler than Proximity), DB storage. Archiva (beta2) - couldn't get it to work by following the installation instructions. Doesn't install as a clean webapp (in Tomcat in any case). My preference is Tomcat for the simple config, file base storage. Its just a shame that the developers appear awol and I couldn't find a way to raise issues against it. Hope this helps. William -Original Message- From: Denis Bessmertniy [mailto:[EMAIL PROTECTED] Sent: Friday, 12 October 2007 7:04 PM To: 'Maven Users List' Subject: [***POSSIBLE SPAM***] - Maven Proxy - Email has different SMTP TO: and MIME TO: fields in the email addresses Hi, May you advise to me a good maven proxy? I know only http://proximity.abstracthorizon.org. Is it good? Maybe you know something better? - Denis - 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 Proxy
We are using Proximity as a war deployment on a JBoss Server. A little bit scary is that the abstracthorizon home page is down since a while: http://www.abstracthorizon.org/index.html. Since nearly half a hear the version number (RC8) didn't changed neither. -Original Message- From: Guillaume Lederrey [mailto:[EMAIL PROTECTED] Sent: Friday, October 12, 2007 07:08 PM To: Maven Users List Subject: Re: Maven Proxy We are using Artifactory on Tomcat 5.5. It works mostly well for us. The only problem is that memory consumption grow very high. I finally had to reboot Tomcat every night to keep it sane ... But I havent been looking into the problem all that hard. The problem might be on my side ... Other than that, I'm very happy with Artifactory. Easy to set up, easy to add new jars to the repository for developers who are not comfortable with Maven ... On 12/10/2007, Vanja Petreski <[EMAIL PROTECTED]> wrote: > Artifactory definitely! > > On 10/12/07, Michal Hlavac <[EMAIL PROTECTED]> wrote: > > > > Dňa Friday 12 October 2007 11:37:35 Wilfred Springer ste napísal: > > > I would definitely recommend Artifactory. > > > > I am using artifactory deployed on glassfish and works very good... > > > > m. > > > > > -- Jabber : [EMAIL PROTECTED] Skype : Guillaume.Lederrey Projects : * http://rwanda.wordpress.com/ * http://rwandatech.wordpress.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: help: can't exclude files from EAR file
Well, the dependencies should be declared only in your war project. If you declare them in the parent pom, it's a dependency of the EAR project as well (hence it packages it). invoke mvn dependency:resolve on both projects to see the result. You can use dependencyManagement to share the way you handle your dependencies. HTH, Stéphane On 10/13/07, Victor Okunev <[EMAIL PROTECTED]> wrote: > I need to bundle the libs in the WAR only. There is just one web > module in my app. > > Victor > > On 10/12/07, Wayne Fay <[EMAIL PROTECTED]> wrote: > > Are your libs being bundled in the WAR, as well as the EAR? Or are you > > making the libs available in your j2ee container's lib directory such > > that they are shared among several apps? > > > > If you don't want the libs bundled in your WAR nor EAR, you should > > just change the scope to provided. > > > > Wayne > > > > On 10/12/07, Victor Okunev <[EMAIL PROTECTED]> wrote: > > > Folks, > > > > > > I need to build an EAR file composed of just one WAR file using > > > Maven2. However, in addition to the WAR file, the resulting EAR file > > > contains all the JARs that the web module has dependencies on, as well > > > as the pom.xml. How do I exclude everything but WAR file and > > > application.xml from the EAR file? > > > > > > I tried **/*.jar,pom.xml, but > > > it seems Maven just ignores it. > > > > > > Here is my pom file: > > > > > > http://maven.apache.org/POM/4.0.0"; > > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; > > > xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 > > > http://maven.apache.org/maven-v4_0_0.xsd";> > > > 4.0.0 > > > > > > mygroupid > > > abc > > > 1.0-SNAPSHOT > > > > > > xyz > > > ear > > > ear_assembly > > > > > > > > > > > > mygroupid > > > web > > > ${project.version} > > > war > > > > > > > > > > > > > > > > > >maven-ear-plugin > > > > > >**/*.jar,pom.xml > > > > > > > > > > > > true > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Thanks, > > > > > > Victor > > > > > > - > > > 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] > > -- Large Systems Suck: This rule is 100% transitive. If you build one, you suck" -- S.Yegge - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]