Do you have <parent> <groupId>Main</groupId> <artifactId>Main</artifactId> <packaging>pom</packaging> <version>1.0</version> </parent> for all modules? Tom.
2006/4/27, RobJac <[EMAIL PROTECTED]>: > > I have a maven project folder structure as shown below > > Main > pom.xml > > Project A > pom.xml > > Project B > pom.xml > > Project C > pom.xml > > Project D > pom.xml > > I am trying to build and install multiple projects. So in the Main folder if > i run mvn clean install. Its trying to delete the folder Project A and then > trying to install Project A and fails saying that the Project A pom xml is > not found. I dont really understand what is the point in doing mvn clean > install instead mvn install works fine for me. > > Pls see below the exception i get > [INFO] Scanning for projects... > [INFO] Reactor build order: > [INFO] Unnamed - Main:Main:pom:1.0 > [INFO] Maven Quick Start Archetype > [INFO] Maven Quick Start Archetype > [INFO] Maven Quick Start Archetype > [INFO] Maven Quick Start Archetype > [INFO] > ------------------------------------------------------------------------- > --- > [INFO] Building Unnamed - Main:Main:pom:1.0 > [INFO] task-segment: [clean, install] > [INFO] > ------------------------------------------------------------------------- > --- > [INFO] [clean:clean] > [INFO] Deleting directory C:\Main\target > [INFO] Deleting directory C:\Main\target\classes > [INFO] Deleting directory C:\Main\target\test-classes > [INFO] [install:install] > [INFO] Installing C:\Main\pom.xml to C:\Maven\remote\repository\Main\Main > \1.0\Main-1.0.pom > [INFO] > ------------------------------------------------------------------------- > --- > [INFO] Building Maven Quick Start Archetype > [INFO] task-segment: [clean, install] > [INFO] > ------------------------------------------------------------------------- > --- > [INFO] [clean:clean] > [INFO] Deleting directory C:\Main\Project A > [INFO] Deleting directory C:\Main\Project A\classes > [INFO] Deleting directory C:\Main\Project A\test-classes > [INFO] [resources:resources] > [INFO] Using default encoding to copy filtered resources. > [INFO] [compiler:compile] > [INFO] No sources to compile > [INFO] [resources:testResources] > [INFO] Using default encoding to copy filtered resources. > [INFO] [compiler:testCompile] > [INFO] No sources to compile > [INFO] [surefire:test] > [INFO] No tests to run. > [INFO] [jar:jar] > [WARNING] JAR will be empty - no content was marked for inclusion! > [INFO] Building jar: C:\Main\Project A\Project A.jar > [INFO] [install:install] > [INFO] Installing C:\Main\Project A\Project A.jar to C:\Maven\r > emote\repository\Project A\Project A\1.0\Project A-1.0.jar > [INFO] > ------------------------------------------------------------------------- > --- > [ERROR] BUILD ERROR > [INFO] > ------------------------------------------------------------------------- > --- > [INFO] Error installing artifact's metadata: Error installing metadata: > Error re > writing POM > > C:\Main\Project A\pom.xml (The system cannot find the file specified) > [INFO] > ------------------------------------------------------------------------- > --- > [INFO] For more information, run Maven with the -e switch > [INFO] > ------------------------------------------------------------------------- > --- > [INFO] Total time: 4 seconds > [INFO] Finished at: Thu Apr 27 08:53:39 BST 2006 > [INFO] Final Memory: 4M/8M > [INFO] > ------------------------------------------------------------------------- > --- > > This is how the pom xml of the Main folder looks like > > <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"> > <modelVersion>4.0.0</modelVersion> > <groupId>Main</groupId> > <artifactId>Main</artifactId> > <packaging>pom</packaging> > <version>1.0</version> > <modules> > <module>Project A</module> > <module>Project B<</module> > <module>Project C<</module> > <module>Project D<</module> > </modules> > </project> > > Am I missing something here? > -- > View this message in context: > http://www.nabble.com/issue-with-mvn-clean-install-t1516559.html#a4116302 > Sent from the Maven - Users forum 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]
