Login | Register
My pages Projects Community openCollabNet

Discussions > issues > [Issue 1622] New - Subclipse silently disconnects Maven projects checked out via parent directory

subclipse
Discussion topic

Back to topic list

[Issue 1622] New - Subclipse silently disconnects Maven projects checked out via parent directory

Author psychonaut
Full name Tristan Miller
Date 2015-02-20 02:39:05 PST
Message http://subclipse.tig​ris.org/issues/show_​bug.cgi?id=1622
                 Issue #|1622
                 Summary|Subclipse silently disconnects Maven projects checked
                        |out via parent directory
               Component|subclipse
                 Version|1.10.x
                Platform|All
              OS/Version|All
                     URL|https://uby.googlecode.com/svn/
                  Status|NEW
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|DEFECT
                Priority|P3
            Subcomponent|core
             Assigned to|issues@subclipse
             Reported by|psychonaut






------- Additional comments from psychonaut at tigris dot org Fri Feb 20 02:39:04 -0800 2015 -------
I'm not sure if this is a problem with Subclipse itself, with the m2eclipse
connector hosted at <http://subclipse.tig​ris.org/m2eclipse/1.​0/>, or with some
other component. If this is the wrong tracker for this issue, please let me
know where to post it instead.

The problem occurs when using the SVN Repository Exploring perspective and
checking out certain Maven projects by running "Check out as Maven Project…" not
on the folder containing the POM itself but on a parent directory (such as
"trunk"). In this case Subclipse checks out the project without any complaints,
putting it in a workspace directory with a placeholder name such as
maven.1424425443350. Inside this directory it creates a subdirectory with the
name of the Maven artifact. This confuses Subclipse: it immediately forgets that
the project is under version control, so the "Team" context menu in the Java
perspective shows only "Share Project…" and "Apply Patch…". Command-line
Subversion is similarly confused; if you invoke svn status from the command line
in the maven.1424425443350 directory, it will tell you that the directory is
under version control but that all the version-controlled files are missing.

The only workaround is to delete the project and check it out again, this time
making sure that the checkout is performed on a directory containing a POM
rather than some higher-level directory. A better overall solution would be for
Subclipse to refuse to run "Check out as Maven Project…" on directories which
don't contain a POM, or else to better handle cases where it tries to do so
anyway by searching subdirectories for Maven projects.


Reproducibility: Always

Steps to reproduce:

1. Open the SVN Repository Exploring perspective.
2. Add the repository https://uby.googlecode.com/svn/
3. Right-click on the "trunk" folder in the "ubyVisWebInterface" directory and
select "Check out as Maven Project…". Accept the default options in the dialogs
that result.
4. Go to the Java perspective. Right-click on the ubyvis-webapp project or on
any file it contains.

Observed behaviour:

5. The "Team" context menu contains only "Share Project…" and "Apply Patch…", as
if the project you just checked out is not under version control.

Expected behaviour:

5. The "Team" context menu should contain all the usual SVN commands for
updating, committing, etc.

« Previous message in topic | 1 of 3 | Next message in topic »

Messages

Show all messages in topic

[Issue 1622] New - Subclipse silently disconnects Maven projects checked out via parent directory psychonaut Tristan Miller 2015-02-20 02:39:05 PST
     [Issue 1622] Subclipse silently disconnects Maven projects checked out via parent directory markphip Mark Phippard 2015-02-20 07:36:22 PST
     [Issue 1622] Subclipse silently disconnects Maven projects checked out via parent directory psychonaut Tristan Miller 2015-03-02 08:11:26 PST
Messages per page: