Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not notify CliPluginRealmCache #49

Closed
orpiske opened this issue Aug 1, 2020 · 5 comments
Closed

Could not notify CliPluginRealmCache #49

orpiske opened this issue Aug 1, 2020 · 5 comments
Milestone

Comments

@orpiske
Copy link

orpiske commented Aug 1, 2020

Sorry for opening a vague report like this, but I couldn't really figure out what went wrong.

One of my builds succeeded, but nonetheless printed a message like this:

[WARN] Could not notify CliPluginRealmCache
java.nio.file.NoSuchFileException: /Users/otavio/Projects/java/camel-kafka-connector/buildingtools/target/test-classes
	at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:92)
	at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111)
	at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:116)
	at java.base/sun.nio.fs.UnixPath.toRealPath(UnixPath.java:860)
	at org.jboss.fuse.mvnd.plugin.CliPluginRealmCache$1.onEvent(CliPluginRealmCache.java:455)
	at org.apache.maven.eventspy.internal.EventSpyDispatcher.onEvent(EventSpyDispatcher.java:104)
	at org.apache.maven.cli.DaemonMavenCli.execute(DaemonMavenCli.java:490)
	at org.apache.maven.cli.DaemonMavenCli.doMain(DaemonMavenCli.java:175)
	at org.jboss.fuse.mvnd.daemon.Server.handle(Server.java:420)
	at org.jboss.fuse.mvnd.daemon.Server.client(Server.java:194)
	at org.jboss.fuse.mvnd.daemon.Server.lambda$accept$1(Server.java:175)
	at java.base/java.lang.Thread.run(Thread.java:834)

I built the project it using mvnd -DskipIntegrationTests=true clean install on a Mac.

If there's something I could do to try to collect more information, I would be happy to try it.

@ppalaga
Copy link
Contributor

ppalaga commented Aug 1, 2020

Thanks for the report, I think it is quite clear what is going on.

@ppalaga ppalaga closed this as completed in 7b18916 Aug 1, 2020
ppalaga added a commit that referenced this issue Aug 1, 2020
Fix #49 Could not notify CliPluginRealmCache
@ppalaga
Copy link
Contributor

ppalaga commented Aug 1, 2020

There is no test for the fix. Would you mind testing with master? If it works for you @gnodet might consider a release (I am leaving for PTO now).

@orpiske
Copy link
Author

orpiske commented Aug 1, 2020

There is no test for the fix. Would you mind testing with master? If it works for you @gnodet might consider a release (I am leaving for PTO now).

Thanks for the fix @ppalaga. I tried running with master but I couldn't make it running. I tried a few different things, like manually installing the client on $HOME/.m2/mvnd/0.0.1/lib/ext/mvnd-client-0.1.0-SNAPSHOT.jar.

I'll definitely try w/ the next version once it's out, though.

@ppalaga
Copy link
Contributor

ppalaga commented Aug 8, 2020

To test the master, please do the following:

  • Build as documented in the readme: https://github.com/mvndaemon/mvnd#build-mvnd-from-source
  • Remove any existing mvnd binaries from your PATH (eg. by renaming them)
  • Add <MVND_SOURCE_ROOT>/client/target/mvnd to PATH
  • Change mvn.home in ~/.m2/mvnd.properties to <MVND_SOURCE_ROOT>/daemon/target/maven-distro
  • Chech that mvnd -v shows a -SNAPSHOT version
  • Perform your scenario to verify the fix for the current issue.

ppalaga added a commit to ppalaga/mvnd that referenced this issue Aug 12, 2020
Let's better not compare on realPaths. That would give unexpected
results in situations when something is symlinked into the source tree.
@orpiske
Copy link
Author

orpiske commented Aug 13, 2020

@ppalaga sorry for the late reply, it's been a busy week. I just wanted to share a feedback that the the code fix worked and I don't have that issue anymore. Thanks!

@ppalaga ppalaga added this to the 0.0.3 milestone Aug 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants