Re: Can I create folder Dependency?
I use this, make-maven-files.sh to build a runtime-library.pom file, which is a consolidation pom of all jars within the folder from which it is run. #!/bin/bash # All you need to do is: # 1. Edit the values below. # 2. Copy this script into the dir with the jars in it (no nested dirs) # 3. Run make-maven-files.sh. # 4. Execute either maven-install.sh and/or maven-deploy.sh that were generated by make-maven-files.sh # # Chris Graham - chrisgw...@gmail.com # groupId=com.ibm.ram version=7.5.1.2 repositoryId=project.repo.id repositoryURL=http://maven.repo.server/url #example # repositoryId=warpspeed.non.freeware # repositoryURL= http://archiva.warpspeed.com.au/archiva/repository/warpspeed.non.freeware echo ?xml version=\1.0\ encoding=\UTF-8\? runtime-library.pom echo project xmlns=\http://maven.apache.org/POM/4.0.0\; xmlns:xsi=\ http://www.w3.org/2001/XMLSchema-instance\; xsi:schemaLocation=\ http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd\; runtime-library.pom echo modelVersion4.0.0/modelVersion runtime-library.pom echo groupId$groupId/groupId runtime-library.pom echo artifactIdruntime-library/artifactId runtime-library.pom echo version$version/version runtime-library.pom echo packagingpom/packaging runtime-library.pom echo descriptionLibrary POM for the $groupId v$version runtime./description runtime-library.pom echo dependencies runtime-library.pom echo #!/bin/bash maven-install.sh echo mvn install:install-file -Dfile=runtime-library.pom -DpomFile=runtime-library.pom maven-install.sh echo #!/bin/bash maven-deploy.sh echo mvn deploy:deploy-file -Dfile=runtime-library.pom -DpomFile=runtime-library.pom -DrepositoryId=$repositoryId -Durl=$repositoryURL maven-deploy.sh find . -name *.jar | sort -u | sed s/^.*\/// | while read jar do artifactId=`echo $jar | sed 's/.jar//'` echo mvn install:install-file -Dfile=$jar -DgroupId=$groupId -DartifactId=$artifactId -Dversion=$version -DgeneratePom=true -Dpackaging=jar -DcreateChecksum=true maven-install.sh echo mvn deploy:deploy-file -Dfile=$jar -DgroupId=$groupId -DartifactId=$artifactId -Dversion=$version -DgeneratePom=true -Dpackaging=jar -DcreateChecksum=true -DrepositoryId=$repositoryId -Durl=$repositoryURL maven-deploy.sh echo dependency runtime-library.pom echo groupId$groupId/groupId runtime-library.pom echo artifactId$artifactId/artifactId runtime-library.pom echo version$version/version runtime-library.pom echo /dependency runtime-library.pom done echo /dependencies runtime-library.pom echo /project runtime-library.pom echo Done. On Wed, Sep 4, 2013 at 1:32 PM, Wayne Fay wayne...@gmail.com wrote: I am new for Maven; I have a question: Questions like this should go to the Maven Users list. This list is reserved for discussion of the development of Maven itself. Can I create folder Dependency in Maven? without installing the jar (dependency)? No. You will waste a lot of time going down this road. You only need to install all those jars one time (assuming you have a Repo Manager, you'll use mvn deploy:deploy-file otherwise you'll need to mvn install:install-file them on each developer's machine) and write the dependency stanzas once. Then you can reuse that work in your various projects. Bite the bullet and do it now. 100 jars is not too bad. If you do it the right way, I bet you'll find a lot of them are open source and already hosted in Central. Wayne - To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org For additional commands, e-mail: dev-h...@maven.apache.org
maven 3.x and parent pom dependencies
Hello, I am wanting to determine how maven determines where parent poms are if the relativePath tag is not in the parent section of a pom. Can someone please point me to where in the source code I should set a breakpoint and start look for this? Thanks! John Caolan Dix Programming Sr. SME, Digital Commerce Amdocs Digital Services Division o: 206-288-0334 m: 425.351.7340 AMDOCS | EMBRACE CHALLENGE EXPERIENCE SUCCESS Did you know...? Amdocs Mobile Payments enables operators to manage any number of app stores, merchants and aggregators and generate revenues from digital content and mobile commerce Follow Amdocs on Facebookhttp://www.facebook.com/amdocsinc/, Twitterhttp://twitter.com/AmdocsInc, LinkedInhttp://www.linkedin.com/company/amdocs, YouTubehttp://www.youtube.com/amdocsinc and Google+https://plus.google.com/105657940751678445194 - and read the latest on the Amdocs blog networkhttp://blogs.amdocs.com/. This message and the information contained herein is proprietary and confidential and subject to the Amdocs policy statement, you may review at http://www.amdocs.com/email_disclaimer.asp
Re: maven 3.x and parent pom dependencies
John Dix wrote: Hello, I am wanting to determine how maven determines where parent poms are if the relativePath tag is not in the parent section of a pom. Can someone please point me to where in the source code I should set a breakpoint and start look for this? A missing relativePath element and the following expression are equally handled: relativePath../relativePath - Jörg - To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org For additional commands, e-mail: dev-h...@maven.apache.org
maven shade patch
Hi all - if anyone is interested, I opened a jira ticket MSHADE-154 to submit a patch to the shade plugin to be able to use an attached artifact as input, similar to that of the assembly plugin. The patch adds a configuration parameter alternativeInputClassifier, which tells the plugin to look for an artifact with the specified classifier in the project attachments, and to use that as the primary artifact. While at it, I also submitted a patch for ticket 139 which adds a parameter called replaceOriginalArtifact, which defaults to true, but when explicitly set to false tells shade not to overwrite the original project artifact. I hope these patches are useful! Best regards, Richard - To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org For additional commands, e-mail: dev-h...@maven.apache.org
maven-surefire pull request: [SUREFIRE-1030] Remove nested exception wrappe...
GitHub user andrewgaul opened a pull request: https://github.com/apache/maven-surefire/pull/27 [SUREFIRE-1030] Remove nested exception wrappers Java 1.5 dependency is sufficient to get Throwable.getCause. You can merge this pull request into a Git repository by running: $ git pull https://github.com/maginatics/maven-surefire remove-nested-exception-wrappers Alternatively you can review and apply these changes as the patch at: https://github.com/apache/maven-surefire/pull/27.patch - To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org For additional commands, e-mail: dev-h...@maven.apache.org