I am very confused ehy you want to checkout source to src/main?
Isn't it already there? btw, you have not explained about your usecase why you want to use scm:checkout rather than direct svn checkout. With this, I would like to perfer you back to maven docs. http://maven.apache.org/articles.html -D On 3/11/07, Phill Moran <[EMAIL PROTECTED]> wrote:
Okay I'll recheck my structure but how does the source code get from target/checkout to src/main ? -----Original Message----- From: Dan Tran [mailto:[EMAIL PROTECTED] Sent: March 11, 2007 1:51 AM To: Maven Users List Subject: Re: MAVEN 2.0 and SCM-SVN if you configure maven correctly then: 1. use svn to check out the source tree 2. use eplipse:add-maven-repo adn eclipse:eclipse to setup your eclipse workspace and projects 3. Use jboss-maven-plugin or maven cargo to deploy -D On 3/10/07, Phill Moran <[EMAIL PROTECTED]> wrote: > > I think you are right. Here is the UC > I develop on an windows box and use eclipse/spring and JUnit to test > locally. > Source stored in SVN on remote Linux box I want to use maven to > compile and test on a remote Linux box. To do this I want maven to > check out code on remote Linux box If tests all work then deploy to a > jBoss on same box > > All works except this checkout or in general the getting source code > into correct directory > > I am now looking at continuum as it looks like that is its role in > this process. > Of course not sure yet as I am still setting it up (conflicts on port > 8080 for the jBoss - nothing is easy - lol) > > Let me know your thoughts and thanks for this help > > Sincerely, > Phill > > > > > -----Original Message----- > From: Dan Tran [mailto:[EMAIL PROTECTED] > Sent: March 11, 2007 1:01 AM > To: Maven Users List > Subject: Re: MAVEN 2.0 and SCM-SVN > > there are JIRA filed against odd response. But they seem not blocking > issues > > I think you are trying to use maven scm in a odd way :-) > > What is your use case? why do you want to scm:update after scm:checkout?: > > -D > > > > > On 3/10/07, Phill Moran <[EMAIL PROTECTED]> wrote: > > > > I removed the following section from the POM listed below > > > > <executions> > > <execution> > > <phase>validate</phase> > > <configuration> > > <goals> > > <goal>scm:checkout</goal> > > </goals> > > <username>user</username> > > <password>password</password> > > </configuration> > > </execution> > > </executions> > > > > The SCM section now simply looks like this: > > <groupId>org.apache.maven.plugins</groupId> > > <artifactId>maven-scm-plugin</artifactId> > > <version>1.0-beta-4</version> > > > > Keeping in mind this project is in a standard maven layout. > > > > When I issue a mvn scm:checkout > > > > [INFO] Scanning for projects... > > [INFO] Searching repository for plugin with prefix: 'scm'. > > [INFO] > > > > -------------------------------------------------------------------- > > -- > > ------ [INFO] Building Maven BidSpec Server Archetype > > [INFO] task-segment: [scm:checkout] (aggregator-style) > > [INFO] > > > > -------------------------------------------------------------------- > > -- > > ------ > > [INFO] [scm:checkout] > > [INFO] Removing /BidSpec/applications/emall/target/checkout > > [INFO] Executing: svn --username user --non-interactive checkout > > https://ubiquitous001:1180/svn/branches/1.2/bidspec checkout [INFO] > > Working directory: /BidSpec/applications/emall/target > > [INFO] Unknown file status: ' '. > > [INFO] > > -------------------------------------------------------------------- > > -- > > -- > > [INFO] BUILD SUCCESSFUL > > [INFO] > > -------------------------------------------------------------------- > > -- > > -- > > [INFO] Total time: 19 seconds > > [INFO] Finished at: Sat Mar 10 23:12:57 EST 2007 [INFO] Final Memory: > > 4M/9M [INFO] > > -------------------------------------------------------------------- > > -- > > -- I get that odd "Unknown file status: ' '." line not sure if this > > is significant > > > > Issueing a mvn scm:update esults in > > [INFO] Scanning for projects... > > [INFO] Searching repository for plugin with prefix: 'scm'. > > [INFO] > > > > -------------------------------------------------------------------- > > -- > > ------ [INFO] Building Maven BidSpec Server Archetype > > [INFO] task-segment: [scm:update] (aggregator-style) > > [INFO] > > > > -------------------------------------------------------------------- > > -- > > ------ > > [INFO] [scm:update] > > [INFO] Executing: svn --username user --non-interactive update > > [INFO] Working directory: /BidSpec/applications/emall [INFO] Unknown > > file > > status: 'S' in line Skipped '.'. > > [INFO] Storing revision in 'scm.revision' project property. > > [INFO] > > -------------------------------------------------------------------- > > -- > > -- > > [INFO] BUILD SUCCESSFUL > > [INFO] > > -------------------------------------------------------------------- > > -- > > -- > > [INFO] Total time: 14 seconds > > [INFO] Finished at: Sat Mar 10 23:14:33 EST 2007 [INFO] Final Memory: > > 4M/9M [INFO] > > -------------------------------------------------------------------- > > -- > > -- > > > > Another odd file status response > > > > The code is checked out but issuing a mvn install after reports no > > sources to compile. So my guess is I have not configured or told mvn > > to move the source to the src dir > > > > I am still preplexed. > > > > -----Original Message----- > > From: Dan Tran [mailto:[EMAIL PROTECTED] > > Sent: March 10, 2007 12:45 PM > > To: Maven Users List > > Subject: Re: MAVEN 2.0 and SCM-SVN > > > > why do you need to do scm:checkout at validate phase? is n't source > > checkedout by scm:bootstrap already validated? > > > > > > > > take it out and try again > > > > -D > > > > > > On 3/9/07, Phill Moran <[EMAIL PROTECTED]> wrote: > > > > > > 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: 'users@maven.apache.org' > > > 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 > > > > > > > > > > > > > > > -------------------------------------------------------------------- > > - 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] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]