I am clearly missing something. I get an error on mvn scm:bootstrap (although the code is there) [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'scm'. [INFO] ---------------------------------------------------------------------------- [INFO] Building Maven BidSpec Server Archetype [INFO] task-segment: [scm:bootstrap] (aggregator-style) [INFO] ---------------------------------------------------------------------------- [INFO] [scm:bootstrap] [INFO] Removing /BidSpec/applications/emall/target/checkout [INFO] Executing: svn --username pmoran --non-interactive checkout https://ubiquitous001:1180/svn/branches/1.2/bidspec checkout [INFO] Working directory: /BidSpec/applications/emall/target [INFO] Unknown file status: ' '. [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Can't run goal null Embedded error: Error while executing process. java.io.IOException: mvn: not found [INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [INFO] Total time: 19 seconds [INFO] Finished at: Sat Mar 10 01:17:17 EST 2007 [INFO] Final Memory: 4M/9M [INFO] ------------------------------------------------------------------------
I execute the following commands on a POM representing a project with standard directory structure (IOW no <*directory> entries) mvn clean - [INFO] Scanning for projects... [INFO] ---------------------------------------------------------------------------- [INFO] Building Maven BidSpec Server Archetype [INFO] task-segment: [clean] [INFO] ---------------------------------------------------------------------------- [INFO] [clean:clean] [INFO] Deleting directory /BidSpec/applications/emall/target [INFO] Deleting directory /BidSpec/applications/emall/target/classes [INFO] Deleting directory /BidSpec/applications/emall/target/test-classes [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESSFUL [INFO] ------------------------------------------------------------------------ [INFO] Total time: 9 seconds [INFO] Finished at: Sat Mar 10 01:16:24 EST 2007 [INFO] Final Memory: 3M/6M When I execute mvn install I get [INFO] Scanning for projects... [INFO] ---------------------------------------------------------------------------- [INFO] Building Maven BidSpec Server Archetype [INFO] task-segment: [install] [INFO] ---------------------------------------------------------------------------- [INFO] [resources:resources] [INFO] Using default encoding to copy filtered resources. [INFO] [compiler:compile] [INFO] Nothing to compile - all classes are up to date [INFO] [resources:testResources] [INFO] Using default encoding to copy filtered resources. [INFO] [compiler:testCompile] Compiling 8 source files to /BidSpec/applications/emall/target/test-classes [INFO] ------------------------------------------------------------------------ [ERROR] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Compilation failure but as mentioned the source and test code is in the target/checkout directory Here is my POM <?xml version="1.0" encoding="UTF-8"?> <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>ca.BidSpec</groupId> <artifactId>emall</artifactId> <name>Maven BidSpec Server Archetype</name> <version>1.2.0</version> <description>Blah blah blah</description> <url>http://www.my-company.ca</url> <inceptionYear>2001</inceptionYear> <packaging>jar</packaging> <scm> <connection> scm:svn:https://[EMAIL PROTECTED]/svn/branches/1.2/my-company </connection> <developerConnection> scm:svn:https://[EMAIL PROTECTED]/svn/branches/1.2/my-company </developerConnection> <url>https://ubiquitous001:/svn/branches/1.2/my-company</url> <tag>HEAD</tag> </scm> <issueManagement> <system>Eventum</system> <url>https://ubiquitous001/index.php</url> </issueManagement> <build> <finalName>${artifactId}-${version}</finalName> <defaultGoal>install</defaultGoal> <testResources> <testResource> <directory>$(baseDir)/src/test/resources</directory> <includes> <include>log4j.xml</include> </includes> </testResource> </testResources> <plugins> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>openjpa-maven-plugin</artifactId> <executions> <execution> <phase>process-classes</phase> <configuration> <goals> <goal>enhance</goal> </goals> </configuration> </execution> </executions> <configuration> <!-- Pass properties to the Plugin here --> <toolProperties> <property> <name>addDefaultConstructor</name> <value>false</value> </property> <property> <name>enforcePropertyRestrictions</name> <value>true</value> </property> </toolProperties> </configuration> </plugin> <!-- Force compliance to Java 1.5 --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>2.0</version> <configuration> <source>1.5</source> <target>1.5</target> </configuration> </plugin> <!-- Get Maven SCM plugin and run during and install --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-scm-plugin</artifactId> <version>1.0-beta-4</version> <executions> <execution> <phase>validate</phase> <configuration> <goals> <goal>scm:checkout</goal> </goals> <username>user</username> <password>password</password> </configuration> </execution> </executions> </plugin> </plugins> </build> <reporting> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-javadoc-plugin</artifactId> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId> maven-project-info-reports-plugin </artifactId> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-jxr-plugin</artifactId> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-report-plugin</artifactId> </plugin> </plugins> </reporting> <distributionManagement> <site> <id>website</id> <url>file:///my-company/applications/emall/www/</url> </site> </distributionManagement> ... </project> Any help/suggestions would be much appreciated Message to Dan Tran - Not useless that was a late night tired comment no offense intended ;) Phill _____ FromMax Bowsher <[EMAIL PROTECTED]> Subject Re: MAVEN 2.0 and SCM-SVN Date Fri, 09 Mar 2007 09:59:37 GMT The thing you're missing is that the SCM code is usually used to do a checkout in order to create a *temporary* working copy in order to build a release from an SCM tag. It's not at all clear what you are using it for, that you would find it helpful to have it checking out under src. Max. _____ From: Phill Moran [mailto:[EMAIL PROTECTED] Sent: March 8, 2007 9:21 PM To: '[email protected]' Subject: MAVEN 2.0 and SCM-SVN This could be a dumb questions but why does maven SCM default to checkout to /target/checkout? I would expect it to go to a dir under src/java. It also seems that the SCM plug-in does not allow this to be overridden. I have tried setting <sourceDirectory> and the others to no avail. I am using the standard MAVEN dir structure. Unless I am missing something fundamental this issue makes the plug-in a little useless
