• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

Why is a "classes" dir not created as part of maven build process?

 
Ranch Hand
Posts: 436
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I'm using Maven 1.1 (I know, I can't upgrade at this time). Within my project level directory, I have a service directory and a project.properties file within that service dir ...



When I run "maven multiproject:clean multiproject:install" from the top level directory, I get this error ...

...
[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
-------------------------------------------------------------------------------
>> Unable to obtain goal [multiproject:install]
>> Unable to obtain goal [multiproject:install-callback]
>> /Users/dalvarado/source/youthful/service/target/classes not found.
-------------------------------------------------------------------------------
BUILD FAILED
-------------------------------------------------------------------------------

Anyone know why the directory "/Users/dalvarado/source/youthful/service/target/javaapp/classes" is not getting created as part of the install process? I have included the complete trace of what happens below. Thanks, - Dave







ocho:youthful dalvarado$ maven multiproject:clean multiproject:install
__ __
| \/ |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \ ~ intelligent projects ~
|_| |_\__,_|\_/\___|_||_| v. 1.1

build:start:

clean:clean:
xdoc:clean:


multiproject:clean:
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 clean:clean myco-dor-dmv-driver-youthful-model
| Memory: 4M/6M
+----------------------------------------
build:start:

clean:clean:
xdoc:clean:

[delete] Deleting directory /Users/dalvarado/source/youthful/model/target
+----------------------------------------
| Executing clean:clean Youthful Driver Monitoring
| Memory: 4M/6M
+----------------------------------------

build:end:

build:start:

clean:clean:
xdoc:clean:

[delete] Deleting directory /Users/dalvarado/source/youthful/service/target
+----------------------------------------
| Executing clean:clean Youthful Driver Monitoring
| Memory: 5M/6M
+----------------------------------------

build:end:

build:start:

clean:clean:
xdoc:clean:

+----------------------------------------
| Executing clean:clean myco-dor-dmv-driver-youthful-test
| Memory: 5M/6M
+----------------------------------------

build:end:

build:start:

clean:clean:
xdoc:clean:


build:end:



multiproject:install:
multiproject:projects-init:

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: 5M/6M
+----------------------------------------
build:start:

multiproject:install-callback:
[echo] Running jar:install for myco-dor-dmv-driver-youthful-model
java:prepare-filesystem:
[mkdir] Created dir: /Users/dalvarado/source/youthful/model/target/classes

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

==========================================================

[javac] Compiling 3 source files to /Users/dalvarado/source/youthful/model/target/classes

java:jar-resources:

test:test:
[echo] No tests to run.

jar:jar:
[jar] Building jar: /Users/dalvarado/source/youthful/model/target/myco-dor-dmv-driver-youthful-model-1.4.1.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: 8M/12M
+----------------------------------------

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:
[mkdir] Created dir: /Users/dalvarado/source/youthful/service/target/javaapp/lib

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
[copy] Copying 1 file to /Users/dalvarado/source/youthful/service/target/javaapp/lib
[copy] Copying 1 file to /Users/dalvarado/source/youthful/service/target/javaapp/lib
[copy] Copying 1 file to /Users/dalvarado/source/youthful/service/target/javaapp/lib
[copy] Copying 1 file to /Users/dalvarado/source/youthful/service/target/javaapp/lib
[copy] Copying 1 file to /Users/dalvarado/source/youthful/service/target/javaapp/lib
[copy] Copying 1 file to /Users/dalvarado/source/youthful/service/target/javaapp/lib
[copy] Copying 1 file to /Users/dalvarado/source/youthful/service/target/javaapp/lib
[copy] Copying 1 file to /Users/dalvarado/source/youthful/service/target/javaapp/lib
[copy] Copying 1 file to /Users/dalvarado/source/youthful/service/target/javaapp/lib
[copy] Copying 1 file to /Users/dalvarado/source/youthful/service/target/javaapp/lib
[copy] Copying 1 file to /Users/dalvarado/source/youthful/service/target/javaapp/lib
[copy] Copying 1 file to /Users/dalvarado/source/youthful/service/target/javaapp/lib
[copy] Copying 1 file to /Users/dalvarado/source/youthful/service/target/javaapp/lib
[copy] Copying 1 file to /Users/dalvarado/source/youthful/service/target/javaapp/lib
[copy] Copying 1 file to /Users/dalvarado/source/youthful/service/target/javaapp/lib
[copy] Copying 1 file to /Users/dalvarado/source/youthful/service/target/javaapp/lib
[copy] Copying 1 file to /Users/dalvarado/source/youthful/service/target/javaapp/lib
[copy] Copying 1 file to /Users/dalvarado/source/youthful/service/target/javaapp/lib
[copy] Copying 1 file to /Users/dalvarado/source/youthful/service/target/javaapp/lib
[copy] Copying 1 file to /Users/dalvarado/source/youthful/service/target/javaapp/lib
[copy] Copying 1 file to /Users/dalvarado/source/youthful/service/target/javaapp/lib
[copy] Copying 1 file to /Users/dalvarado/source/youthful/service/target/javaapp/lib
[copy] Copying 1 file to /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
-------------------------------------------------------------------------------
>> Unable to obtain goal [multiproject:install]
>> Unable to obtain goal [multiproject:install-callback]
>> /Users/dalvarado/source/youthful/service/target/classes not found.
-------------------------------------------------------------------------------
BUILD FAILED
-------------------------------------------------------------------------------
Total time : 12 seconds
Finished at : Tuesday, November 10, 2009 10:18:23 AM MST
Final Memory : 6M/14M
-------------------------------------------------------------------------------
 
Saloon Keeper
Posts: 28319
210
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I don't know, but Maven 1 has been dead a long time now.

I don't remember Maven 1 anymore, but in Maven 2, the output would normally go to target/classes, not target/javaapp/classes. Alyhough YMMV depending on the goal selected.
 
I promise I will be the best, most loyal friend ever! All for this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic