|
View:
New views
7 Messages
—
Rating Filter:
Alert me
|
|
|
How do I get multiproject:install to run jar:install in sub-directories?Hi,
I'm using Maven 1.1. I have model and service directories within my project. How do I configure maven so that when I run "maven multiproject:install" from the top level, it will run jar:install from within each of those two directories? Here is what I have in my top level project folder for project.properties maven.test.skip=true maven.scm.bootstrap.goals=multiproject:deploy Thanks for any advice, - Dave |
|
|
Re: How do I get multiproject:install to run jar:install in sub-directories?by default maven2 runs in reactor mode ( equivalent of maven 1 multi project )
so what you are looking for is mvn deploy -DskipTests=true which will traverse to all projects and exececute maven 2 lifecycle upto deploy phase you may want to fetch a maven 2 projects ( apache, codehaus, etc ) and play with for example ( http://svn.apache.org/repos/asf/maven/surefire/trunk ) good luck -Dan On Fri, Nov 6, 2009 at 2:41 PM, laredotornado <laredotornado@...> wrote: > > Hi, > > I'm using Maven 1.1. I have model and service directories within my > project. How do I configure maven so that when I run "maven > multiproject:install" from the top level, it will run jar:install from > within each of those two directories? Here is what I have in my top level > project folder for project.properties > > maven.test.skip=true > maven.scm.bootstrap.goals=multiproject:deploy > > Thanks for any advice, - Dave > -- > View this message in context: http://old.nabble.com/How-do-I-get-multiproject%3Ainstall-to-run-jar%3Ainstall-in-sub-directories--tp26230913p26230913.html > Sent from the Maven - Users mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@... > For additional commands, e-mail: users-help@... > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
Re: How do I get multiproject:install to run jar:install in sub-directories?Thanks but I have sadly not yet joined the real world of Maven 2. I'm using maven 1.1. Given this, any ideas about my questions?
- Dave
|
|
|
Re: How do I get multiproject:install to run jar:install in sub-directories?If your sub-projects are of type jar then multiproject:install will run jar:install automatically on all configured sub-projects. See http://maven.apache.org/maven-1.x/plugins/multiproject/goals.html HTH, -Lukas laredotornado wrote: > Hi, > > I'm using Maven 1.1. I have model and service directories within my > project. How do I configure maven so that when I run "maven > multiproject:install" from the top level, it will run jar:install from > within each of those two directories? Here is what I have in my top level > project folder for project.properties > > maven.test.skip=true > maven.scm.bootstrap.goals=multiproject:deploy > > Thanks for any advice, - Dave --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
Re: How do I get multiproject:install to run jar:install in sub-directories?Below are the contents of my service/project.properties file ...
maven.multiproject.type=javaapp maven.javaapp.jar.name=${pom.artifactId}-${pom.currentVersion}.jar maven.javaapp.mainclass=myco.dor.dmv.driver.youthful.AddressFileProcessor maven.javaapp.type=jar maven.compile.target=1.5 What is weird is that I intentionally introduced a compile error into one of the .java files within the service directory, but when I ran "multiproject:install" from the top level, it did not fail due to a compile error -- I verified the file was saved correctly. The compile error was picked up when I switched to the "service" directory and ran "maven clean" followed by "maven jar:install". So my problem is still that multiproject:install does not seem to be rebuilding my sub-projects . Below is the output. Thanks, - Dave ocho:youthful dalvarado$ maven multiproject:install __ __ | \/ |__ _Apache__ ___ | |\/| / _` \ V / -_) ' \ ~ intelligent projects ~ |_| |_\__,_|\_/\___|_||_| v. 1.1 build:start: multiproject:install: multiproject:projects-init: [echo] Gathering project list Starting the reactor... Our processing order: myco-dor-dmv-driver-youthful-model Youthful Driver Monitoring Youthful Driver Monitoring myco-dor-dmv-driver-youthful-test +---------------------------------------- | Gathering project list myco-dor-dmv-driver-youthful-model | Memory: 4M/6M +---------------------------------------- +---------------------------------------- | Gathering project list Youthful Driver Monitoring | Memory: 4M/6M +---------------------------------------- +---------------------------------------- | Gathering project list Youthful Driver Monitoring | Memory: 4M/6M +---------------------------------------- +---------------------------------------- | Gathering project list myco-dor-dmv-driver-youthful-test | Memory: 4M/6M +---------------------------------------- multiproject:goal: Starting the reactor... Our processing order: myco-dor-dmv-driver-youthful-model Youthful Driver Monitoring Youthful Driver Monitoring myco-dor-dmv-driver-youthful-test +---------------------------------------- | Executing multiproject:install-callback myco-dor-dmv-driver-youthful-model | Memory: 4M/6M +---------------------------------------- build:start: multiproject:install-callback: [echo] Running jar:install for myco-dor-dmv-driver-youthful-model java:prepare-filesystem: java:init: java:compile: [echo] Compiling to /Users/dalvarado/source/youthful/model/target/classes [echo] ========================================================== WARNING: maven.compile.target is not set: using the default value which depends on your JVM ========================================================== java:jar-resources: test:test: [echo] No tests to run. jar:jar: jar:install: [echo] Installing... Uploading to myco.dor.dmv.driver.youthful/jars/myco-dor-dmv-driver-youthful-model-1.4.1.jar: .................... (6K) Uploading to myco.dor.dmv.driver.youthful/poms/myco-dor-dmv-driver-youthful-model-1.4.1.pom: .................... (4K) +---------------------------------------- | Executing multiproject:install-callback Youthful Driver Monitoring | Memory: 7M/9M +---------------------------------------- build:end: build:start: multiproject:install-callback: [echo] Running javaapp:install for Youthful Driver Monitoring javaapp:prereq: test:test: [echo] No tests to run. javaapp:prepare-filesystem: javaapp:support-uberjar-bundle: javaapp:copy-deps: [echo] Copy dependent JARs into /Users/dalvarado/source/youthful/service/target/javaapp/lib [copy] Copying 1 file to /Users/dalvarado/source/youthful/service/target/javaapp/lib javaapp:jar-resources: Copying 5 files to /Users/dalvarado/source/youthful/service/target/javaapp javaapp:jar: [unzip] Expanding: /Users/dalvarado/source/youthful/service/target/javaapp/lib/activation-1.1.jar into /Users/dalvarado/source/youthful/service/target/javaapp [move] Moving 1 file to /Users/dalvarado/source/youthful/service/target/javaapp/META-INF [unzip] Expanding: /Users/dalvarado/source/youthful/service/target/javaapp/lib/antlr-2.7.6.jar into /Users/dalvarado/source/youthful/service/target/javaapp [unzip] Expanding: /Users/dalvarado/source/youthful/service/target/javaapp/lib/cglib-nodep-2.2.jar into /Users/dalvarado/source/youthful/service/target/javaapp [unzip] Expanding: /Users/dalvarado/source/youthful/service/target/javaapp/lib/client-1.4.0SP1.jar into /Users/dalvarado/source/youthful/service/target/javaapp [unzip] Expanding: /Users/dalvarado/source/youthful/service/target/javaapp/lib/myco-dor-dmv-driver-matching-model-1.1.jar into /Users/dalvarado/source/youthful/service/target/javaapp [unzip] Expanding: /Users/dalvarado/source/youthful/service/target/javaapp/lib/myco-dor-dmv-driver-youthful-model-1.4.1.jar into /Users/dalvarado/source/youthful/service/target/javaapp [unzip] Expanding: /Users/dalvarado/source/youthful/service/target/javaapp/lib/commons-collections-3.2.jar into /Users/dalvarado/source/youthful/service/target/javaapp [move] Moving 1 file to /Users/dalvarado/source/youthful/service/target/javaapp/META-INF [unzip] Expanding: /Users/dalvarado/source/youthful/service/target/javaapp/lib/commons-io-1.4.jar into /Users/dalvarado/source/youthful/service/target/javaapp [move] Moving 1 file to /Users/dalvarado/source/youthful/service/target/javaapp/META-INF [unzip] Expanding: /Users/dalvarado/source/youthful/service/target/javaapp/lib/commons-lang-2.4.jar into /Users/dalvarado/source/youthful/service/target/javaapp [move] Moving 1 file to /Users/dalvarado/source/youthful/service/target/javaapp/META-INF [unzip] Expanding: /Users/dalvarado/source/youthful/service/target/javaapp/lib/commons-logging-1.1.1.jar into /Users/dalvarado/source/youthful/service/target/javaapp [unzip] Expanding: /Users/dalvarado/source/youthful/service/target/javaapp/lib/dom4j-1.6.1.jar into /Users/dalvarado/source/youthful/service/target/javaapp [move] Moving 1 file to /Users/dalvarado/source/youthful/service/target/javaapp/META-INF [unzip] Expanding: /Users/dalvarado/source/youthful/service/target/javaapp/lib/ejb3-persistence-3.4.0.GA.jar into /Users/dalvarado/source/youthful/service/target/javaapp [move] Moving 1 file to /Users/dalvarado/source/youthful/service/target/javaapp/META-INF [unzip] Expanding: /Users/dalvarado/source/youthful/service/target/javaapp/lib/hibernate-annotations-3.4.0.GA.jar into /Users/dalvarado/source/youthful/service/target/javaapp [unzip] Expanding: /Users/dalvarado/source/youthful/service/target/javaapp/lib/hibernate-commons-annotations-3.4.0.GA.jar into /Users/dalvarado/source/youthful/service/target/javaapp [unzip] Expanding: /Users/dalvarado/source/youthful/service/target/javaapp/lib/hibernate-core-3.3.1.GA.jar into /Users/dalvarado/source/youthful/service/target/javaapp [unzip] Expanding: /Users/dalvarado/source/youthful/service/target/javaapp/lib/javassist-3.8.0.GA.jar into /Users/dalvarado/source/youthful/service/target/javaapp [unzip] Expanding: /Users/dalvarado/source/youthful/service/target/javaapp/lib/jsch-0.1.42.jar into /Users/dalvarado/source/youthful/service/target/javaapp [unzip] Expanding: /Users/dalvarado/source/youthful/service/target/javaapp/lib/jta-1.1.jar into /Users/dalvarado/source/youthful/service/target/javaapp [move] Moving 1 file to /Users/dalvarado/source/youthful/service/target/javaapp/META-INF [unzip] Expanding: /Users/dalvarado/source/youthful/service/target/javaapp/lib/junit-4.3.1.jar into /Users/dalvarado/source/youthful/service/target/javaapp [unzip] Expanding: /Users/dalvarado/source/youthful/service/target/javaapp/lib/log4j-1.2.15.jar into /Users/dalvarado/source/youthful/service/target/javaapp [unzip] Expanding: /Users/dalvarado/source/youthful/service/target/javaapp/lib/mail-1.4.jar into /Users/dalvarado/source/youthful/service/target/javaapp [move] Moving 1 file to /Users/dalvarado/source/youthful/service/target/javaapp/META-INF [unzip] Expanding: /Users/dalvarado/source/youthful/service/target/javaapp/lib/ojdbc14-sparc-10.2.0.3.jar into /Users/dalvarado/source/youthful/service/target/javaapp [unzip] Expanding: /Users/dalvarado/source/youthful/service/target/javaapp/lib/slf4j-api-1.5.6.jar into /Users/dalvarado/source/youthful/service/target/javaapp [unzip] Expanding: /Users/dalvarado/source/youthful/service/target/javaapp/lib/slf4j-log4j12-1.5.6.jar into /Users/dalvarado/source/youthful/service/target/javaapp [unzip] Expanding: /Users/dalvarado/source/youthful/service/target/javaapp/lib/xercesImpl-2.9.1.jar into /Users/dalvarado/source/youthful/service/target/javaapp [delete] Deleting 1 files from /Users/dalvarado/source/youthful/service/target/javaapp/META-INF [echo] Copying class files to /Users/dalvarado/source/youthful/service/target/javaapp/classes [copy] Copying 30 files to /Users/dalvarado/source/youthful/service/target/javaapp [delete] Deleting directory /Users/dalvarado/source/youthful/service/target/javaapp/lib [jar] Building jar: /Users/dalvarado/source/youthful/service/target/myco-dor-dmv-driver-youthful-service-javaapp-1.4.1.jar javaapp:install: [echo] Installing... Uploading to myco.dor.dmv.driver.youthful/jars/myco-dor-dmv-driver-youthful-service-javaapp-1.4.1.jar: .................... (9254K) Uploading to myco.dor.dmv.driver.youthful/poms/myco-dor-dmv-driver-youthful-service-javaapp-1.4.1.pom: .................... (7K) +---------------------------------------- | Executing multiproject:install-callback Youthful Driver Monitoring | Memory: 11M/14M +---------------------------------------- build:end: build:start: multiproject:install-callback: [echo] Running tar:install for Youthful Driver Monitoring tar:prepare-bin-filesystem: [delete] Deleting directory /Users/dalvarado/source/youthful/tar/target/tar [mkdir] Created dir: /Users/dalvarado/source/youthful/tar/target/tar/myco-dor-dmv-driver-youthful-tar-1.4.1 Copying 1 file to /Users/dalvarado/source/youthful/tar/target/tar/myco-dor-dmv-driver-youthful-tar-1.4.1 Copying 3 files to /Users/dalvarado/source/youthful/tar/target/tar/myco-dor-dmv-driver-youthful-tar-1.4.1 [copy] Copying 1 file to /Users/dalvarado/source/youthful/tar/target/tar/myco-dor-dmv-driver-youthful-tar-1.4.1 Running post goal: tar:prepare-bin-filesystem tar: [exec] ./ [exec] ./myco-dor-dmv-driver-youthful-tar-1.4.1/ [exec] ./myco-dor-dmv-driver-youthful-tar-1.4.1/myco-dor-dmv-driver-youthful-service-javaapp-1.4.1.jar [exec] ./myco-dor-dmv-driver-youthful-tar-1.4.1/log4j.properties [exec] ./myco-dor-dmv-driver-youthful-tar-1.4.1/process-vendor-files-prod.sh [exec] ./myco-dor-dmv-driver-youthful-tar-1.4.1/process-vendor-files-test.sh [exec] ./myco-dor-dmv-driver-youthful-tar-1.4.1/process-vendor-files.sh tar:install: [echo] Installing... Uploading to myco.dor.dmv.driver.youthful/tar.gzs/myco-dor-dmv-driver-youthful-tar-1.4.1.tar.gz: .................... (8516K) Uploading to myco.dor.dmv.driver.youthful/poms/myco-dor-dmv-driver-youthful-tar-1.4.1.pom: .................... (3K) +---------------------------------------- | Executing multiproject:install-callback myco-dor-dmv-driver-youthful-test | Memory: 11M/14M +---------------------------------------- build:end: build:start: multiproject:install-callback: [echo] Running tar:install for myco-dor-dmv-driver-youthful-test tar:prepare-bin-filesystem: [delete] Deleting directory /Users/dalvarado/source/youthful/test/target/tar [mkdir] Created dir: /Users/dalvarado/source/youthful/test/target/tar/myco-dor-dmv-driver-youthful-test-1.4.1 Copying 1 file to /Users/dalvarado/source/youthful/test/target/tar/myco-dor-dmv-driver-youthful-test-1.4.1 Copying 1 file to /Users/dalvarado/source/youthful/test/target/tar/myco-dor-dmv-driver-youthful-test-1.4.1 Copying 2 files to /Users/dalvarado/source/youthful/test/target/tar/myco-dor-dmv-driver-youthful-test-1.4.1 [copy] Copying 1 file to /Users/dalvarado/source/youthful/test/target/tar/myco-dor-dmv-driver-youthful-test-1.4.1 [copy] Copying 1 file to /Users/dalvarado/source/youthful/test/target/tar/myco-dor-dmv-driver-youthful-test-1.4.1 [copy] Copying 1 file to /Users/dalvarado/source/youthful/test/target/tar/myco-dor-dmv-driver-youthful-test-1.4.1 Running post goal: tar:prepare-bin-filesystem [chmod] Skipping fileset for directory /Users/dalvarado/source/youthful/test/target/tar/myco-dor-dmv-driver-youthful-test-1.4.1. It is empty. tar: [exec] ./ [exec] ./myco-dor-dmv-driver-youthful-test-1.4.1/ [exec] ./myco-dor-dmv-driver-youthful-test-1.4.1/myco-dor-dmv-driver-youthful-model-1.4.1.jar [exec] ./myco-dor-dmv-driver-youthful-test-1.4.1/myco-dor-dmv-driver-youthful-service-javaapp-1.4.1.jar [exec] ./myco-dor-dmv-driver-youthful-test-1.4.1/ftp_known_hosts.pub [exec] ./myco-dor-dmv-driver-youthful-test-1.4.1/hibernate.cfg.xml [exec] ./myco-dor-dmv-driver-youthful-test-1.4.1/junit.test.properties [exec] ./myco-dor-dmv-driver-youthful-test-1.4.1/log4j.properties [exec] ./myco-dor-dmv-driver-youthful-test-1.4.1/persistence-api-1.0.2.jar tar:install: [echo] Installing... Uploading to myco.dor.dmv.driver.youthful/tar.gzs/myco-dor-dmv-driver-youthful-test-1.4.1.tar.gz: .................... (8564K) Uploading to myco.dor.dmv.driver.youthful/poms/myco-dor-dmv-driver-youthful-test-1.4.1.pom: .................... (4K) build:end: ------------------------------------------------------------------------------- BUILD SUCCESSFUL ------------------------------------------------------------------------------- Total time : 22 seconds Finished at : Monday, November 9, 2009 11:12:24 AM MST Final Memory : 7M/14M -------------------------------------------------------------------------------
|
|
|
Re: How do I get multiproject:install to run jar:install in sub-directories?> Thanks but I have sadly not yet joined the real world of Maven 2. I'm using
> maven 1.1. Given this, any ideas about my questions? You really should/must move to Maven2 asap. There is almost no good reason to remain on M1, and the pain of migrating to M2 is pretty minor vs the immediate benefits you will gain. Wayne --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
Re: How do I get multiproject:install to run jar:install in sub-directories?Sadly, the decision to move to maven 2 is beyond my control. I know the company has plans for it, but for now this is the hand I was dealt.
If you have any insights into the question posed, I am grateful. - Daev
|
| Free embeddable forum powered by Nabble | Forum Help |