dev@glassfish.java.net

Re: Maven Expert?

From: Craig L Russell <Craig.Russell_at_Sun.COM>
Date: Wed, 23 Apr 2008 11:26:23 -0700

Hi Byron,

On Apr 23, 2008, at 10:48 AM, Byron Nevins wrote:

> I did the svn copy

So svn has two instances: a/x.java and a/b/x.java and your local file
system is in sync.

> and then did a normal OS delete of the original file.

Now svn still has two instances but your local file system is out of
sync. Next time you update your local workspace svn will restore the
deleted file.

> Then I ran maven w/o running svn again.
>
> So the java file was not on disk -- but the class file keeps getting
> pulled in from somewhere.
> It just seems too mysterious...

This is a bit of mystery. But getting svn to have the right files is
the first step to recovery.

Craig
>
>
>
> Craig L Russell wrote:
>
>> Hi Byron,
>>
>> I thought I saw the answer to your previous post on the subject.
>>
>> If you want to move x from package a to package a/b, instead of
>> svn copy, use svn move.
>>
>> Now that you've copied it, though, you need to svn rm a/x.java.
>>
>> Craig
>>
>> On Apr 21, 2008, at 12:55 PM, Byron Nevins wrote:
>>
>>> I don't get it. Let's say I have a class, a.x
>>> I did a 'svn copy x.java b/x.java'
>>>
>>> It worked. Now there is an "x.java" in /a/b, but not in /a
>>>
>>> I rebuild the module.
>>> Inside the brand new module jar are both: a.x and a.b.x
>>> !!!
>>>
>>> So now I delete the module from the maven repository.
>>> I delete the target directory
>>> I run mvn -o
>>>
>>> Inside the jar is, again, a.x and a.b.x
>>>
>>> How can I make a.x go away?!?
>>> Where is it getting a.x from?!?
>>>
>>> --
>>> Byron Nevins Work 408-276-4089, Home 650-359-1290, Cell
>>> 650-784-4123 - Sun Microsystems, Inc.
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>>
>>
>> Craig Russell
>> Architect, Sun Java Enterprise System http://java.sun.com/products/
>> jdo
>> 408 276-5638 mailto:Craig.Russell_at_sun.com
>> P.S. A good JDO? O, Gasp!
>>
>
> --
> Byron Nevins Work 408-276-4089, Home 650-359-1290, Cell 650-784-4123
> - Sun Microsystems, Inc.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>

Craig Russell
Architect, Sun Java Enterprise System http://java.sun.com/products/jdo
408 276-5638 mailto:Craig.Russell_at_sun.com
P.S. A good JDO? O, Gasp!