Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [m2e-users] Adding New Modules to a Multi-Module Project with Subclipse

See my commends inline

On 11-02-09 09:15 AM, Ron wrote:
Hello,
First, some technical information:

[skiped]


When I do that, I get the following error:
org.tigris.subversion.javahl.ClientException: Obstructed update
svn: Failed to add directory '/home/ronr/workspaces/SP3/parent/test': a
versioned directory of the same name already exists

Obviously, it exists. I created it. I inserted it into the SVN. What am
I doing wrong here?


This is subclipse problem. It gets confused by maven project layout,
when modules are nested inside parent on filesystem.


Also, in an attempt to make things right, I've taken the following steps:
1. Deleted the new project from my workspace (only the new module),
including the files from the disk.
2. Switched back to the SVN Repository perspective. Did the 'Checkout as
Maven project' on the parent again. This time it lets me pick only the
project that's not in the workspace already (i.e. the new project). I
pick it, click Finish. Import is done.
3. Switch back to the Java perspective. When I look at the project's
properties, I see that its location is at
/home/ronr/workspaces/SP3/maven.1295366556109/test.

As you can see from the previous error, the newly created project was
originally created at the correct place and now it's not. Just to clear,
all other projects imported the same way from the parent are gladly
resting in the workspace main directory.

Again, what am I doing wrong? How should I solve these issues?


You told m2e to create new local checkout of the project. You need to
import existing maven project instead. If you invoke this wizards from
right-click on the parent, the wizard will be pre-populated with the new
module(s).

--
Regards,
Igor


Back to the top