You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Chris Graham (JIRA)" <ji...@codehaus.org> on 2008/07/28 02:09:27 UTC

[jira] Created: (SCM-392) SCM SVN plugin does not cope with a flat structure

SCM SVN plugin does not cope with a flat structure
--------------------------------------------------

                 Key: SCM-392
                 URL: http://jira.codehaus.org/browse/SCM-392
             Project: Maven SCM
          Issue Type: Bug
          Components: maven-scm-provider-svn
         Environment: XP SP2, IBM Java 5, Sun SDJ 6.
            Reporter: Chris Graham


All of this is when using a flat (eclipse based) directory structure.

When performing a release, the release plugin correctly modifies the pom.xml files (so it finds them), however, when attempting to check in the changes, SVN complains that the workspace directory (the one immediately above all of the flat projects) is not under SVN control - which it isn't and should not be.

I've created a public svn repo that you can get to and test against:

http://svn.warpspeed.com.au/test-repos/

everything that you need is in there.

The final output is:

        [INFO]
        [INFO]
        [INFO] ------------------------------------------------------------------------
        [INFO] Reactor Summary:
        [INFO] ------------------------------------------------------------------------
        [INFO] FireDragon - J2EE Multi Module Project ................ SUCCESS [9.687s]
        [INFO] FireDragon - Resources Project ........................ SUCCESS [3.094s]
        [INFO] FireDragon - WAR Project .............................. SUCCESS [5.500s]
        [INFO] FireDragon - EAR Project .............................. SUCCESS [2.891s]
        [INFO] ------------------------------------------------------------------------
        [INFO] ------------------------------------------------------------------------
        [INFO] BUILD SUCCESSFUL
        [INFO] ------------------------------------------------------------------------
        [INFO] Total time: 31 seconds
        [INFO] Finished at: Wed Jul 16 02:12:04 GMT 2008
        [INFO] Final Memory: 21M/38M
[INFO]  Checking in modified POMs...
       [INFO] ------------------------------------------------------------------------
        [INFO] Executing: svn --non-interactive commit --file C:\Temp\maven-scm-1721327855.commit --targets C:\Temp\maven-scm-21219-targets
[INFO] Working directory: C:\WorkSpaces\SCMTest\FireDragon
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Unable to commit files
Provider message:
The svn command failed.
Command output:
svn: 'C:\WorkSpaces\SCMTest' is not a working copy
svn: Can't open file 'C:\WorkSpaces\SCMTest\.svn\entries': The system cannot find the path specified.

[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2 minutes 33 seconds
[INFO] Finished at: Wed Jul 16 02:13:48 GMT 2008
[INFO] Final Memory: 6M/12M
[INFO] ------------------------------------------------------------------------

where DIR C:\WorkSpaces\SCMTest is:

 Volume in drive C has no label.
 Volume Serial Number is 201B-748A

 Directory of C:\WorkSpaces\SCMTest

16/07/2008  12:03 PM    <DIR>          .
16/07/2008  12:03 PM    <DIR>          ..
16/07/2008  11:41 AM    <DIR>          .metadata
16/07/2008  12:00 PM    <DIR>          FireDragon
16/07/2008  12:00 PM    <DIR>          FireDragonEAR
16/07/2008  12:00 PM    <DIR>          FireDragonResources
16/07/2008  12:00 PM    <DIR>          FireDragonWeb
16/07/2008  11:03 AM    <DIR>          warpspeed-build-tools
16/07/2008  10:53 AM    <DIR>          warpspeed-dynamic-parent
16/07/2008  10:50 AM    <DIR>          warpspeed-parent
               0 File(s)              0 bytes
              10 Dir(s)   1,889,746,944 bytes free

The file maven-scm-1721327855.commit, contains:

[maven-release-plugin] prepare release FireDragon-1.0.5

The file maven-scm-21219-targets, contains:

C:/WorkSpaces/SCMTest/FireDragon/pom.xml
C:/WorkSpaces/SCMTest/FireDragonResources/pom.xml
C:/WorkSpaces/SCMTest/FireDragonWeb/pom.xml
C:/WorkSpaces/SCMTest/FireDragonEAR/pom.xml

(which appears to be all correct)



-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (SCM-392) SCM SVN plugin does not cope with a flat structure

Posted by "Olivier Lamy (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/SCM-392?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=145859#action_145859 ] 

Olivier Lamy commented on SCM-392:
----------------------------------

Don't use flat structure and everything will work like a charm !!!

> SCM SVN plugin does not cope with a flat structure
> --------------------------------------------------
>
>                 Key: SCM-392
>                 URL: http://jira.codehaus.org/browse/SCM-392
>             Project: Maven SCM
>          Issue Type: Bug
>          Components: maven-scm-provider-svn
>         Environment: XP SP2, IBM Java 5, Sun SDJ 6.
>            Reporter: Chris Graham
>
> All of this is when using a flat (eclipse based) directory structure.
> When performing a release, the release plugin correctly modifies the pom.xml files (so it finds them), however, when attempting to check in the changes, SVN complains that the workspace directory (the one immediately above all of the flat projects) is not under SVN control - which it isn't and should not be.
> I've created a public svn repo that you can get to and test against:
> http://svn.warpspeed.com.au/test-repos/
> everything that you need is in there.
> The final output is:
>         [INFO]
>         [INFO]
>         [INFO] ------------------------------------------------------------------------
>         [INFO] Reactor Summary:
>         [INFO] ------------------------------------------------------------------------
>         [INFO] FireDragon - J2EE Multi Module Project ................ SUCCESS [9.687s]
>         [INFO] FireDragon - Resources Project ........................ SUCCESS [3.094s]
>         [INFO] FireDragon - WAR Project .............................. SUCCESS [5.500s]
>         [INFO] FireDragon - EAR Project .............................. SUCCESS [2.891s]
>         [INFO] ------------------------------------------------------------------------
>         [INFO] ------------------------------------------------------------------------
>         [INFO] BUILD SUCCESSFUL
>         [INFO] ------------------------------------------------------------------------
>         [INFO] Total time: 31 seconds
>         [INFO] Finished at: Wed Jul 16 02:12:04 GMT 2008
>         [INFO] Final Memory: 21M/38M
> [INFO]  Checking in modified POMs...
>        [INFO] ------------------------------------------------------------------------
>         [INFO] Executing: svn --non-interactive commit --file C:\Temp\maven-scm-1721327855.commit --targets C:\Temp\maven-scm-21219-targets
> [INFO] Working directory: C:\WorkSpaces\SCMTest\FireDragon
> [INFO] ------------------------------------------------------------------------
> [ERROR] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] Unable to commit files
> Provider message:
> The svn command failed.
> Command output:
> svn: 'C:\WorkSpaces\SCMTest' is not a working copy
> svn: Can't open file 'C:\WorkSpaces\SCMTest\.svn\entries': The system cannot find the path specified.
> [INFO] ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 2 minutes 33 seconds
> [INFO] Finished at: Wed Jul 16 02:13:48 GMT 2008
> [INFO] Final Memory: 6M/12M
> [INFO] ------------------------------------------------------------------------
> where DIR C:\WorkSpaces\SCMTest is:
>  Volume in drive C has no label.
>  Volume Serial Number is 201B-748A
>  Directory of C:\WorkSpaces\SCMTest
> 16/07/2008  12:03 PM    <DIR>          .
> 16/07/2008  12:03 PM    <DIR>          ..
> 16/07/2008  11:41 AM    <DIR>          .metadata
> 16/07/2008  12:00 PM    <DIR>          FireDragon
> 16/07/2008  12:00 PM    <DIR>          FireDragonEAR
> 16/07/2008  12:00 PM    <DIR>          FireDragonResources
> 16/07/2008  12:00 PM    <DIR>          FireDragonWeb
> 16/07/2008  11:03 AM    <DIR>          warpspeed-build-tools
> 16/07/2008  10:53 AM    <DIR>          warpspeed-dynamic-parent
> 16/07/2008  10:50 AM    <DIR>          warpspeed-parent
>                0 File(s)              0 bytes
>               10 Dir(s)   1,889,746,944 bytes free
> The file maven-scm-1721327855.commit, contains:
> [maven-release-plugin] prepare release FireDragon-1.0.5
> The file maven-scm-21219-targets, contains:
> C:/WorkSpaces/SCMTest/FireDragon/pom.xml
> C:/WorkSpaces/SCMTest/FireDragonResources/pom.xml
> C:/WorkSpaces/SCMTest/FireDragonWeb/pom.xml
> C:/WorkSpaces/SCMTest/FireDragonEAR/pom.xml
> (which appears to be all correct)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (SCM-392) SCM SVN plugin does not cope with a flat structure

Posted by "Joseph Chan (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/SCM-392?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=169889#action_169889 ] 

Joseph Chan commented on SCM-392:
---------------------------------

Another workaround is to create another directory in SVN and add SVN externals to your 'flat' modules.   Then add a pom inside the directory referring to them in a hierarchical format.

> SCM SVN plugin does not cope with a flat structure
> --------------------------------------------------
>
>                 Key: SCM-392
>                 URL: http://jira.codehaus.org/browse/SCM-392
>             Project: Maven SCM
>          Issue Type: Bug
>          Components: maven-scm-provider-svn
>         Environment: XP SP2, IBM Java 5, Sun SDJ 6.
>            Reporter: Chris Graham
>
> All of this is when using a flat (eclipse based) directory structure.
> When performing a release, the release plugin correctly modifies the pom.xml files (so it finds them), however, when attempting to check in the changes, SVN complains that the workspace directory (the one immediately above all of the flat projects) is not under SVN control - which it isn't and should not be.
> I've created a public svn repo that you can get to and test against:
> http://svn.warpspeed.com.au/test-repos/
> everything that you need is in there.
> The final output is:
>         [INFO]
>         [INFO]
>         [INFO] ------------------------------------------------------------------------
>         [INFO] Reactor Summary:
>         [INFO] ------------------------------------------------------------------------
>         [INFO] FireDragon - J2EE Multi Module Project ................ SUCCESS [9.687s]
>         [INFO] FireDragon - Resources Project ........................ SUCCESS [3.094s]
>         [INFO] FireDragon - WAR Project .............................. SUCCESS [5.500s]
>         [INFO] FireDragon - EAR Project .............................. SUCCESS [2.891s]
>         [INFO] ------------------------------------------------------------------------
>         [INFO] ------------------------------------------------------------------------
>         [INFO] BUILD SUCCESSFUL
>         [INFO] ------------------------------------------------------------------------
>         [INFO] Total time: 31 seconds
>         [INFO] Finished at: Wed Jul 16 02:12:04 GMT 2008
>         [INFO] Final Memory: 21M/38M
> [INFO]  Checking in modified POMs...
>        [INFO] ------------------------------------------------------------------------
>         [INFO] Executing: svn --non-interactive commit --file C:\Temp\maven-scm-1721327855.commit --targets C:\Temp\maven-scm-21219-targets
> [INFO] Working directory: C:\WorkSpaces\SCMTest\FireDragon
> [INFO] ------------------------------------------------------------------------
> [ERROR] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] Unable to commit files
> Provider message:
> The svn command failed.
> Command output:
> svn: 'C:\WorkSpaces\SCMTest' is not a working copy
> svn: Can't open file 'C:\WorkSpaces\SCMTest\.svn\entries': The system cannot find the path specified.
> [INFO] ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 2 minutes 33 seconds
> [INFO] Finished at: Wed Jul 16 02:13:48 GMT 2008
> [INFO] Final Memory: 6M/12M
> [INFO] ------------------------------------------------------------------------
> where DIR C:\WorkSpaces\SCMTest is:
>  Volume in drive C has no label.
>  Volume Serial Number is 201B-748A
>  Directory of C:\WorkSpaces\SCMTest
> 16/07/2008  12:03 PM    <DIR>          .
> 16/07/2008  12:03 PM    <DIR>          ..
> 16/07/2008  11:41 AM    <DIR>          .metadata
> 16/07/2008  12:00 PM    <DIR>          FireDragon
> 16/07/2008  12:00 PM    <DIR>          FireDragonEAR
> 16/07/2008  12:00 PM    <DIR>          FireDragonResources
> 16/07/2008  12:00 PM    <DIR>          FireDragonWeb
> 16/07/2008  11:03 AM    <DIR>          warpspeed-build-tools
> 16/07/2008  10:53 AM    <DIR>          warpspeed-dynamic-parent
> 16/07/2008  10:50 AM    <DIR>          warpspeed-parent
>                0 File(s)              0 bytes
>               10 Dir(s)   1,889,746,944 bytes free
> The file maven-scm-1721327855.commit, contains:
> [maven-release-plugin] prepare release FireDragon-1.0.5
> The file maven-scm-21219-targets, contains:
> C:/WorkSpaces/SCMTest/FireDragon/pom.xml
> C:/WorkSpaces/SCMTest/FireDragonResources/pom.xml
> C:/WorkSpaces/SCMTest/FireDragonWeb/pom.xml
> C:/WorkSpaces/SCMTest/FireDragonEAR/pom.xml
> (which appears to be all correct)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (SCM-392) SCM SVN plugin does not cope with a flat structure

Posted by "Chris Graham (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/SCM-392?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=145850#action_145850 ] 

Chris Graham commented on SCM-392:
----------------------------------

This is an issue with the subversion command line client. It requires a common anchor point so that it can commit all four (more than two really) projects as a single atomic commit.

This issue is covered in subversion via:

http://subversion.tigris.org/issues/show_bug.cgi?id=2381

For the scenario above, Subclipse does each individual project as a single commit (so we loose the atomic commit).

>From comments from the link above, Maven needs to cater for this situation in a similar way (ie individual commits).



> SCM SVN plugin does not cope with a flat structure
> --------------------------------------------------
>
>                 Key: SCM-392
>                 URL: http://jira.codehaus.org/browse/SCM-392
>             Project: Maven SCM
>          Issue Type: Bug
>          Components: maven-scm-provider-svn
>         Environment: XP SP2, IBM Java 5, Sun SDJ 6.
>            Reporter: Chris Graham
>
> All of this is when using a flat (eclipse based) directory structure.
> When performing a release, the release plugin correctly modifies the pom.xml files (so it finds them), however, when attempting to check in the changes, SVN complains that the workspace directory (the one immediately above all of the flat projects) is not under SVN control - which it isn't and should not be.
> I've created a public svn repo that you can get to and test against:
> http://svn.warpspeed.com.au/test-repos/
> everything that you need is in there.
> The final output is:
>         [INFO]
>         [INFO]
>         [INFO] ------------------------------------------------------------------------
>         [INFO] Reactor Summary:
>         [INFO] ------------------------------------------------------------------------
>         [INFO] FireDragon - J2EE Multi Module Project ................ SUCCESS [9.687s]
>         [INFO] FireDragon - Resources Project ........................ SUCCESS [3.094s]
>         [INFO] FireDragon - WAR Project .............................. SUCCESS [5.500s]
>         [INFO] FireDragon - EAR Project .............................. SUCCESS [2.891s]
>         [INFO] ------------------------------------------------------------------------
>         [INFO] ------------------------------------------------------------------------
>         [INFO] BUILD SUCCESSFUL
>         [INFO] ------------------------------------------------------------------------
>         [INFO] Total time: 31 seconds
>         [INFO] Finished at: Wed Jul 16 02:12:04 GMT 2008
>         [INFO] Final Memory: 21M/38M
> [INFO]  Checking in modified POMs...
>        [INFO] ------------------------------------------------------------------------
>         [INFO] Executing: svn --non-interactive commit --file C:\Temp\maven-scm-1721327855.commit --targets C:\Temp\maven-scm-21219-targets
> [INFO] Working directory: C:\WorkSpaces\SCMTest\FireDragon
> [INFO] ------------------------------------------------------------------------
> [ERROR] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] Unable to commit files
> Provider message:
> The svn command failed.
> Command output:
> svn: 'C:\WorkSpaces\SCMTest' is not a working copy
> svn: Can't open file 'C:\WorkSpaces\SCMTest\.svn\entries': The system cannot find the path specified.
> [INFO] ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 2 minutes 33 seconds
> [INFO] Finished at: Wed Jul 16 02:13:48 GMT 2008
> [INFO] Final Memory: 6M/12M
> [INFO] ------------------------------------------------------------------------
> where DIR C:\WorkSpaces\SCMTest is:
>  Volume in drive C has no label.
>  Volume Serial Number is 201B-748A
>  Directory of C:\WorkSpaces\SCMTest
> 16/07/2008  12:03 PM    <DIR>          .
> 16/07/2008  12:03 PM    <DIR>          ..
> 16/07/2008  11:41 AM    <DIR>          .metadata
> 16/07/2008  12:00 PM    <DIR>          FireDragon
> 16/07/2008  12:00 PM    <DIR>          FireDragonEAR
> 16/07/2008  12:00 PM    <DIR>          FireDragonResources
> 16/07/2008  12:00 PM    <DIR>          FireDragonWeb
> 16/07/2008  11:03 AM    <DIR>          warpspeed-build-tools
> 16/07/2008  10:53 AM    <DIR>          warpspeed-dynamic-parent
> 16/07/2008  10:50 AM    <DIR>          warpspeed-parent
>                0 File(s)              0 bytes
>               10 Dir(s)   1,889,746,944 bytes free
> The file maven-scm-1721327855.commit, contains:
> [maven-release-plugin] prepare release FireDragon-1.0.5
> The file maven-scm-21219-targets, contains:
> C:/WorkSpaces/SCMTest/FireDragon/pom.xml
> C:/WorkSpaces/SCMTest/FireDragonResources/pom.xml
> C:/WorkSpaces/SCMTest/FireDragonWeb/pom.xml
> C:/WorkSpaces/SCMTest/FireDragonEAR/pom.xml
> (which appears to be all correct)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (SCM-392) SCM SVN plugin does not cope with a flat structure

Posted by "Jerome Bridge (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/SCM-392?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=154445#action_154445 ] 

Jerome Bridge commented on SCM-392:
-----------------------------------

What is the problem with coming up with a work-around for this.  I cannot release my project because of this.

> SCM SVN plugin does not cope with a flat structure
> --------------------------------------------------
>
>                 Key: SCM-392
>                 URL: http://jira.codehaus.org/browse/SCM-392
>             Project: Maven SCM
>          Issue Type: Bug
>          Components: maven-scm-provider-svn
>         Environment: XP SP2, IBM Java 5, Sun SDJ 6.
>            Reporter: Chris Graham
>
> All of this is when using a flat (eclipse based) directory structure.
> When performing a release, the release plugin correctly modifies the pom.xml files (so it finds them), however, when attempting to check in the changes, SVN complains that the workspace directory (the one immediately above all of the flat projects) is not under SVN control - which it isn't and should not be.
> I've created a public svn repo that you can get to and test against:
> http://svn.warpspeed.com.au/test-repos/
> everything that you need is in there.
> The final output is:
>         [INFO]
>         [INFO]
>         [INFO] ------------------------------------------------------------------------
>         [INFO] Reactor Summary:
>         [INFO] ------------------------------------------------------------------------
>         [INFO] FireDragon - J2EE Multi Module Project ................ SUCCESS [9.687s]
>         [INFO] FireDragon - Resources Project ........................ SUCCESS [3.094s]
>         [INFO] FireDragon - WAR Project .............................. SUCCESS [5.500s]
>         [INFO] FireDragon - EAR Project .............................. SUCCESS [2.891s]
>         [INFO] ------------------------------------------------------------------------
>         [INFO] ------------------------------------------------------------------------
>         [INFO] BUILD SUCCESSFUL
>         [INFO] ------------------------------------------------------------------------
>         [INFO] Total time: 31 seconds
>         [INFO] Finished at: Wed Jul 16 02:12:04 GMT 2008
>         [INFO] Final Memory: 21M/38M
> [INFO]  Checking in modified POMs...
>        [INFO] ------------------------------------------------------------------------
>         [INFO] Executing: svn --non-interactive commit --file C:\Temp\maven-scm-1721327855.commit --targets C:\Temp\maven-scm-21219-targets
> [INFO] Working directory: C:\WorkSpaces\SCMTest\FireDragon
> [INFO] ------------------------------------------------------------------------
> [ERROR] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] Unable to commit files
> Provider message:
> The svn command failed.
> Command output:
> svn: 'C:\WorkSpaces\SCMTest' is not a working copy
> svn: Can't open file 'C:\WorkSpaces\SCMTest\.svn\entries': The system cannot find the path specified.
> [INFO] ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 2 minutes 33 seconds
> [INFO] Finished at: Wed Jul 16 02:13:48 GMT 2008
> [INFO] Final Memory: 6M/12M
> [INFO] ------------------------------------------------------------------------
> where DIR C:\WorkSpaces\SCMTest is:
>  Volume in drive C has no label.
>  Volume Serial Number is 201B-748A
>  Directory of C:\WorkSpaces\SCMTest
> 16/07/2008  12:03 PM    <DIR>          .
> 16/07/2008  12:03 PM    <DIR>          ..
> 16/07/2008  11:41 AM    <DIR>          .metadata
> 16/07/2008  12:00 PM    <DIR>          FireDragon
> 16/07/2008  12:00 PM    <DIR>          FireDragonEAR
> 16/07/2008  12:00 PM    <DIR>          FireDragonResources
> 16/07/2008  12:00 PM    <DIR>          FireDragonWeb
> 16/07/2008  11:03 AM    <DIR>          warpspeed-build-tools
> 16/07/2008  10:53 AM    <DIR>          warpspeed-dynamic-parent
> 16/07/2008  10:50 AM    <DIR>          warpspeed-parent
>                0 File(s)              0 bytes
>               10 Dir(s)   1,889,746,944 bytes free
> The file maven-scm-1721327855.commit, contains:
> [maven-release-plugin] prepare release FireDragon-1.0.5
> The file maven-scm-21219-targets, contains:
> C:/WorkSpaces/SCMTest/FireDragon/pom.xml
> C:/WorkSpaces/SCMTest/FireDragonResources/pom.xml
> C:/WorkSpaces/SCMTest/FireDragonWeb/pom.xml
> C:/WorkSpaces/SCMTest/FireDragonEAR/pom.xml
> (which appears to be all correct)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] (SCM-392) SCM SVN plugin does not cope with a flat structure

Posted by "Matt Langmead (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/SCM-392?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=293479#comment-293479 ] 

Matt Langmead commented on SCM-392:
-----------------------------------

I hit this problem recently. Upgrading my SVN client to 1.7 fixed the issue (http://subversion.tigris.org/issues/show_bug.cgi?id=2381). 
                
> SCM SVN plugin does not cope with a flat structure
> --------------------------------------------------
>
>                 Key: SCM-392
>                 URL: https://jira.codehaus.org/browse/SCM-392
>             Project: Maven SCM
>          Issue Type: Bug
>          Components: maven-scm-provider-svn
>         Environment: XP SP2, IBM Java 5, Sun SDJ 6.
>            Reporter: Chris Graham
>
> All of this is when using a flat (eclipse based) directory structure.
> When performing a release, the release plugin correctly modifies the pom.xml files (so it finds them), however, when attempting to check in the changes, SVN complains that the workspace directory (the one immediately above all of the flat projects) is not under SVN control - which it isn't and should not be.
> I've created a public svn repo that you can get to and test against:
> http://svn.warpspeed.com.au/test-repos/
> everything that you need is in there.
> The final output is:
>         [INFO]
>         [INFO]
>         [INFO] ------------------------------------------------------------------------
>         [INFO] Reactor Summary:
>         [INFO] ------------------------------------------------------------------------
>         [INFO] FireDragon - J2EE Multi Module Project ................ SUCCESS [9.687s]
>         [INFO] FireDragon - Resources Project ........................ SUCCESS [3.094s]
>         [INFO] FireDragon - WAR Project .............................. SUCCESS [5.500s]
>         [INFO] FireDragon - EAR Project .............................. SUCCESS [2.891s]
>         [INFO] ------------------------------------------------------------------------
>         [INFO] ------------------------------------------------------------------------
>         [INFO] BUILD SUCCESSFUL
>         [INFO] ------------------------------------------------------------------------
>         [INFO] Total time: 31 seconds
>         [INFO] Finished at: Wed Jul 16 02:12:04 GMT 2008
>         [INFO] Final Memory: 21M/38M
> [INFO]  Checking in modified POMs...
>        [INFO] ------------------------------------------------------------------------
>         [INFO] Executing: svn --non-interactive commit --file C:\Temp\maven-scm-1721327855.commit --targets C:\Temp\maven-scm-21219-targets
> [INFO] Working directory: C:\WorkSpaces\SCMTest\FireDragon
> [INFO] ------------------------------------------------------------------------
> [ERROR] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] Unable to commit files
> Provider message:
> The svn command failed.
> Command output:
> svn: 'C:\WorkSpaces\SCMTest' is not a working copy
> svn: Can't open file 'C:\WorkSpaces\SCMTest\.svn\entries': The system cannot find the path specified.
> [INFO] ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 2 minutes 33 seconds
> [INFO] Finished at: Wed Jul 16 02:13:48 GMT 2008
> [INFO] Final Memory: 6M/12M
> [INFO] ------------------------------------------------------------------------
> where DIR C:\WorkSpaces\SCMTest is:
>  Volume in drive C has no label.
>  Volume Serial Number is 201B-748A
>  Directory of C:\WorkSpaces\SCMTest
> 16/07/2008  12:03 PM    <DIR>          .
> 16/07/2008  12:03 PM    <DIR>          ..
> 16/07/2008  11:41 AM    <DIR>          .metadata
> 16/07/2008  12:00 PM    <DIR>          FireDragon
> 16/07/2008  12:00 PM    <DIR>          FireDragonEAR
> 16/07/2008  12:00 PM    <DIR>          FireDragonResources
> 16/07/2008  12:00 PM    <DIR>          FireDragonWeb
> 16/07/2008  11:03 AM    <DIR>          warpspeed-build-tools
> 16/07/2008  10:53 AM    <DIR>          warpspeed-dynamic-parent
> 16/07/2008  10:50 AM    <DIR>          warpspeed-parent
>                0 File(s)              0 bytes
>               10 Dir(s)   1,889,746,944 bytes free
> The file maven-scm-1721327855.commit, contains:
> [maven-release-plugin] prepare release FireDragon-1.0.5
> The file maven-scm-21219-targets, contains:
> C:/WorkSpaces/SCMTest/FireDragon/pom.xml
> C:/WorkSpaces/SCMTest/FireDragonResources/pom.xml
> C:/WorkSpaces/SCMTest/FireDragonWeb/pom.xml
> C:/WorkSpaces/SCMTest/FireDragonEAR/pom.xml
> (which appears to be all correct)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (SCM-392) SCM SVN plugin does not cope with a flat structure

Posted by "Chris Graham (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/SCM-392?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=145870#action_145870 ] 

Chris Graham commented on SCM-392:
----------------------------------

Ie, make it a nested, non flat structure.

That will not work, as it presumes a few things.

1. That the existing structure can indeed be changed. In some cases it may be able to be changed, in others it certainly will not.
2. Subclipse will not cope with this structure (having projects overlap)
3. It does not fix the issue (which is a real one), it simply ignores it.

Looking at the dates from the Subversion issue (2007) it has been around for a while.Their point of view is that it is a maven bug in that it is maven that fails to deal with a known issue. I can see their point.

The fact of the matter is that Maven supports non nested directory structures, and so should the plugins.

The SCM/subversion modules must be able to cater for this situation, it is not an uncommon one.Whilst it may be a hack to commit each project separately, it (to me at least, and from what I can read others as well) it would be an acceptable workaround.

Perhaps there should be an option to use SVNKit, as that does handle this situation.

-Chris 

> SCM SVN plugin does not cope with a flat structure
> --------------------------------------------------
>
>                 Key: SCM-392
>                 URL: http://jira.codehaus.org/browse/SCM-392
>             Project: Maven SCM
>          Issue Type: Bug
>          Components: maven-scm-provider-svn
>         Environment: XP SP2, IBM Java 5, Sun SDJ 6.
>            Reporter: Chris Graham
>
> All of this is when using a flat (eclipse based) directory structure.
> When performing a release, the release plugin correctly modifies the pom.xml files (so it finds them), however, when attempting to check in the changes, SVN complains that the workspace directory (the one immediately above all of the flat projects) is not under SVN control - which it isn't and should not be.
> I've created a public svn repo that you can get to and test against:
> http://svn.warpspeed.com.au/test-repos/
> everything that you need is in there.
> The final output is:
>         [INFO]
>         [INFO]
>         [INFO] ------------------------------------------------------------------------
>         [INFO] Reactor Summary:
>         [INFO] ------------------------------------------------------------------------
>         [INFO] FireDragon - J2EE Multi Module Project ................ SUCCESS [9.687s]
>         [INFO] FireDragon - Resources Project ........................ SUCCESS [3.094s]
>         [INFO] FireDragon - WAR Project .............................. SUCCESS [5.500s]
>         [INFO] FireDragon - EAR Project .............................. SUCCESS [2.891s]
>         [INFO] ------------------------------------------------------------------------
>         [INFO] ------------------------------------------------------------------------
>         [INFO] BUILD SUCCESSFUL
>         [INFO] ------------------------------------------------------------------------
>         [INFO] Total time: 31 seconds
>         [INFO] Finished at: Wed Jul 16 02:12:04 GMT 2008
>         [INFO] Final Memory: 21M/38M
> [INFO]  Checking in modified POMs...
>        [INFO] ------------------------------------------------------------------------
>         [INFO] Executing: svn --non-interactive commit --file C:\Temp\maven-scm-1721327855.commit --targets C:\Temp\maven-scm-21219-targets
> [INFO] Working directory: C:\WorkSpaces\SCMTest\FireDragon
> [INFO] ------------------------------------------------------------------------
> [ERROR] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] Unable to commit files
> Provider message:
> The svn command failed.
> Command output:
> svn: 'C:\WorkSpaces\SCMTest' is not a working copy
> svn: Can't open file 'C:\WorkSpaces\SCMTest\.svn\entries': The system cannot find the path specified.
> [INFO] ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 2 minutes 33 seconds
> [INFO] Finished at: Wed Jul 16 02:13:48 GMT 2008
> [INFO] Final Memory: 6M/12M
> [INFO] ------------------------------------------------------------------------
> where DIR C:\WorkSpaces\SCMTest is:
>  Volume in drive C has no label.
>  Volume Serial Number is 201B-748A
>  Directory of C:\WorkSpaces\SCMTest
> 16/07/2008  12:03 PM    <DIR>          .
> 16/07/2008  12:03 PM    <DIR>          ..
> 16/07/2008  11:41 AM    <DIR>          .metadata
> 16/07/2008  12:00 PM    <DIR>          FireDragon
> 16/07/2008  12:00 PM    <DIR>          FireDragonEAR
> 16/07/2008  12:00 PM    <DIR>          FireDragonResources
> 16/07/2008  12:00 PM    <DIR>          FireDragonWeb
> 16/07/2008  11:03 AM    <DIR>          warpspeed-build-tools
> 16/07/2008  10:53 AM    <DIR>          warpspeed-dynamic-parent
> 16/07/2008  10:50 AM    <DIR>          warpspeed-parent
>                0 File(s)              0 bytes
>               10 Dir(s)   1,889,746,944 bytes free
> The file maven-scm-1721327855.commit, contains:
> [maven-release-plugin] prepare release FireDragon-1.0.5
> The file maven-scm-21219-targets, contains:
> C:/WorkSpaces/SCMTest/FireDragon/pom.xml
> C:/WorkSpaces/SCMTest/FireDragonResources/pom.xml
> C:/WorkSpaces/SCMTest/FireDragonWeb/pom.xml
> C:/WorkSpaces/SCMTest/FireDragonEAR/pom.xml
> (which appears to be all correct)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (SCM-392) SCM SVN plugin does not cope with a flat structure

Posted by "Olivier Lamy (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/SCM-392?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=154447#action_154447 ] 

Olivier Lamy commented on SCM-392:
----------------------------------

The easy workaround is : don't use flat structure.

> SCM SVN plugin does not cope with a flat structure
> --------------------------------------------------
>
>                 Key: SCM-392
>                 URL: http://jira.codehaus.org/browse/SCM-392
>             Project: Maven SCM
>          Issue Type: Bug
>          Components: maven-scm-provider-svn
>         Environment: XP SP2, IBM Java 5, Sun SDJ 6.
>            Reporter: Chris Graham
>
> All of this is when using a flat (eclipse based) directory structure.
> When performing a release, the release plugin correctly modifies the pom.xml files (so it finds them), however, when attempting to check in the changes, SVN complains that the workspace directory (the one immediately above all of the flat projects) is not under SVN control - which it isn't and should not be.
> I've created a public svn repo that you can get to and test against:
> http://svn.warpspeed.com.au/test-repos/
> everything that you need is in there.
> The final output is:
>         [INFO]
>         [INFO]
>         [INFO] ------------------------------------------------------------------------
>         [INFO] Reactor Summary:
>         [INFO] ------------------------------------------------------------------------
>         [INFO] FireDragon - J2EE Multi Module Project ................ SUCCESS [9.687s]
>         [INFO] FireDragon - Resources Project ........................ SUCCESS [3.094s]
>         [INFO] FireDragon - WAR Project .............................. SUCCESS [5.500s]
>         [INFO] FireDragon - EAR Project .............................. SUCCESS [2.891s]
>         [INFO] ------------------------------------------------------------------------
>         [INFO] ------------------------------------------------------------------------
>         [INFO] BUILD SUCCESSFUL
>         [INFO] ------------------------------------------------------------------------
>         [INFO] Total time: 31 seconds
>         [INFO] Finished at: Wed Jul 16 02:12:04 GMT 2008
>         [INFO] Final Memory: 21M/38M
> [INFO]  Checking in modified POMs...
>        [INFO] ------------------------------------------------------------------------
>         [INFO] Executing: svn --non-interactive commit --file C:\Temp\maven-scm-1721327855.commit --targets C:\Temp\maven-scm-21219-targets
> [INFO] Working directory: C:\WorkSpaces\SCMTest\FireDragon
> [INFO] ------------------------------------------------------------------------
> [ERROR] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] Unable to commit files
> Provider message:
> The svn command failed.
> Command output:
> svn: 'C:\WorkSpaces\SCMTest' is not a working copy
> svn: Can't open file 'C:\WorkSpaces\SCMTest\.svn\entries': The system cannot find the path specified.
> [INFO] ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 2 minutes 33 seconds
> [INFO] Finished at: Wed Jul 16 02:13:48 GMT 2008
> [INFO] Final Memory: 6M/12M
> [INFO] ------------------------------------------------------------------------
> where DIR C:\WorkSpaces\SCMTest is:
>  Volume in drive C has no label.
>  Volume Serial Number is 201B-748A
>  Directory of C:\WorkSpaces\SCMTest
> 16/07/2008  12:03 PM    <DIR>          .
> 16/07/2008  12:03 PM    <DIR>          ..
> 16/07/2008  11:41 AM    <DIR>          .metadata
> 16/07/2008  12:00 PM    <DIR>          FireDragon
> 16/07/2008  12:00 PM    <DIR>          FireDragonEAR
> 16/07/2008  12:00 PM    <DIR>          FireDragonResources
> 16/07/2008  12:00 PM    <DIR>          FireDragonWeb
> 16/07/2008  11:03 AM    <DIR>          warpspeed-build-tools
> 16/07/2008  10:53 AM    <DIR>          warpspeed-dynamic-parent
> 16/07/2008  10:50 AM    <DIR>          warpspeed-parent
>                0 File(s)              0 bytes
>               10 Dir(s)   1,889,746,944 bytes free
> The file maven-scm-1721327855.commit, contains:
> [maven-release-plugin] prepare release FireDragon-1.0.5
> The file maven-scm-21219-targets, contains:
> C:/WorkSpaces/SCMTest/FireDragon/pom.xml
> C:/WorkSpaces/SCMTest/FireDragonResources/pom.xml
> C:/WorkSpaces/SCMTest/FireDragonWeb/pom.xml
> C:/WorkSpaces/SCMTest/FireDragonEAR/pom.xml
> (which appears to be all correct)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira