[maven-salve-plugin] Error "The chosen operation is not currently available"

1,731 views
Skip to first unread message

hbf

unread,
Aug 26, 2009, 8:27:36 AM8/26/09
to Salve
Hi,

I have installed the salve plugin for Eclipse and after right-click on
my project, I choose "Add Salve Nature". I get the error

"The chosen operation is not currently available"

My project is a Maven project with a pom.xml set up as discussed on
the wiki (http://code.google.com/p/salve/wiki/
ConfiguringInstrumentation).

I am using http://code.google.com/p/q4e/ to integrate Maven into
Eclipse.

Any ideas why I get this error?

Thanks,
Kaspar

Igor Vaynberg

unread,
Aug 26, 2009, 10:52:58 AM8/26/09
to salve...@googlegroups.com
in your workspace/.metadata there should be a log file with a
stacktrace, can you look there and post it please?

-igor

hbf

unread,
Sep 13, 2009, 12:10:56 PM9/13/09
to Salve
I did a

tail -f Documents/workspace/.metadata/.log

while a choose "Add Salve Nature". Nothing gets logged to this file.
Is this the right one?

Thanks,
Kaspar

On Aug 26, 4:52 pm, Igor Vaynberg <igor.vaynb...@gmail.com> wrote:
> in your workspace/.metadata there should be a log file with a
> stacktrace, can you look there and post it please?
>
> -igor
>
>
>
> On Wed, Aug 26, 2009 at 5:27 AM, hbf<kaspar.fisc...@gmail.com> wrote:
>
> > Hi,
>
> > I have installed the salve plugin for Eclipse and after right-click on
> > my project, I choose "Add Salve Nature". I get the error
>
> >  "The chosen operation is not currently available"
>
> > My project is a Maven project with a pom.xml set up as discussed on
> > the wiki (http://code.google.com/p/salve/wiki/
> > ConfiguringInstrumentation).
>
> > I am usinghttp://code.google.com/p/q4e/to integrate Maven into

Igor Vaynberg

unread,
Sep 13, 2009, 1:53:45 PM9/13/09
to salve...@googlegroups.com
hm, im not really sure. does your project get properly instrumented
with salve's maven2 plugin?

-igor

hbf

unread,
Sep 14, 2009, 11:41:17 AM9/14/09
to Salve
Yes:

hbf-laptop-3 hbf$ mvn -o test
[INFO]
NOTE: Maven is executing in offline mode. Any artifacts not already in
your local
repository will be inaccessible.

[INFO] Scanning for projects...
[INFO]
------------------------------------------------------------------------
[INFO] Building Airs Server
[INFO] task-segment: [test]
[INFO]
------------------------------------------------------------------------
[INFO] [resources:resources {execution: default-resources}]
[WARNING] Using platform encoding (MacRoman actually) to copy filtered
resources, i.e. build is platform dependent!
[INFO] Copying 2 resources
[INFO] Copying 4 resources
[INFO] [compiler:compile {execution: default-compile}]
[INFO] Nothing to compile - all classes are up to date
[INFO] [salve:instrument {execution: default}]
[INFO] Salve: classes scanned: 62, instrumented: 0
[INFO] [resources:testResources {execution: default-testResources}]
[WARNING] Using platform encoding (MacRoman actually) to copy filtered
resources, i.e. build is platform dependent!
[INFO] Copying 2 resources
[INFO] Copying 0 resource
[INFO] [compiler:testCompile {execution: default-testCompile}]
[INFO] Nothing to compile - all classes are up to date
[INFO] [salve:instrument-test {execution: default}]
[INFO] Salve: classes scanned: 3, instrumented: 0
[INFO] [surefire:test {execution: default-test}]
[INFO] Surefire report directory: /Users/hbf/Documents/workspace/airs/
target/surefire-reports

and the test completes successfully.

You were refering to workspace/.metadata and not to a project-specific
directory in your previous mail, right?

Kaspar
> >> > I am usinghttp://code.google.com/p/q4e/tointegrate Maven into

Igor Vaynberg

unread,
Sep 14, 2009, 11:44:23 AM9/14/09
to salve...@googlegroups.com
not realy sure why eclipse wouldnt work. have you tried disabling the
maven plugin and trying the salve plugin?

-igor

hbf

unread,
Sep 16, 2009, 12:08:43 PM9/16/09
to Salve
I removed the relevant part from pom.xml, restarted Eclipse, cleaned
all projects and it's still the same error.

Kaspar
> >> >> > I am usinghttp://code.google.com/p/q4e/tointegrateMaven into

Igor Vaynberg

unread,
Sep 16, 2009, 1:15:31 PM9/16/09
to salve...@googlegroups.com
i meant you should try it with the maven plugin disabled. that error
is coming from eclipse, not from the plugin.

-igor
Reply all
Reply to author
Forward
0 new messages