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

Make TM4E core lib accessible via Maven #83

Open
mickaelistria opened this issue Mar 31, 2017 · 9 comments
Open

Make TM4E core lib accessible via Maven #83

mickaelistria opened this issue Mar 31, 2017 · 9 comments

Comments

@mickaelistria
Copy link
Contributor

Since org.eclipse.tm4e.core is Eclipse-independent and can be used in plain Java context, it would be great to publish it to Nexus: https://bugs.eclipse.org/bugs/show_bug.cgi?id=514346

@exoego
Copy link

exoego commented Oct 14, 2019

Hello, is publishing to Maven still planned or abandoned?
If abandoned, I will fork and publish for my usage.

@mickaelistria
Copy link
Contributor Author

If you can contribute to make it happen, it would be very welcome!

@mickaelistria
Copy link
Contributor Author

If you mvn install from source code locally, can you then consume the org.eclipse.tm4e.core artifact as expected?

@exoego
Copy link

exoego commented Oct 14, 2019

I am happy to contribute !!

Well, I could import it as

<dependency>
  <groupId>org.eclipse</groupId>
  <artifactId>org.eclipse.tm4e.core</artifactId>
  <vesion>0.3.4-SNAPSHOT</version>
</dependency>

(actually I used sbt instead of mvn, so "org.eclipse" % "org.eclipse.tm4e.core" % "0.3.4-SNAPSHOT" is an actual identifier I used)

and then Java code

import org.eclipse.tm4e.core.registry.Registry;

is compilable.
The groupId and artifactId is a bit weird for me, but it works !!

So... how can I contribute to make this issue forward ?

@exoego
Copy link

exoego commented Oct 14, 2019

Ah, it seems that TM4E does not support JDK 11... ???
I got this error when running a code using org.eclipse.tm4e.core.registry.Registry.

[error] java.nio.file.NoSuchFileException: /usr/lib/jvm/lib/tools.jar
[error]         at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:92)
[error]         at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111)
[error]         at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:116)
[error]         at java.base/sun.nio.fs.UnixFileAttributeViews$Basic.readAttributes(UnixFileAttributeViews.java:55)
[error]         at java.base/sun.nio.fs.UnixFileSystemProvider.readAttributes(UnixFileSystemProvider.java:145)
[error]         at java.base/sun.nio.fs.LinuxFileSystemProvider.readAttributes(LinuxFileSystemProvider.java:99)
[error]         at java.base/java.nio.file.Files.readAttributes(Files.java:1763)
[error]         at java.base/java.nio.file.FileTreeWalker.getAttributes(FileTreeWalker.java:219)
[error]         at java.base/java.nio.file.FileTreeWalker.visit(FileTreeWalker.java:276)
[error]         at java.base/java.nio.file.FileTreeWalker.walk(FileTreeWalker.java:322)
[error]         at java.base/java.nio.file.Files.walkFileTree(Files.java:2716)
[error]         at java.base/java.nio.file.Files.walkFileTree(Files.java:2796)

@mickaelistria
Copy link
Contributor Author

So... how can I contribute to make this issue forward ?

Here is a suggestion:
You work on having it published on a local instance of Nexus of yours, you submit PRs for necessary change, if any. Once it's working for you, you share your configuration and we work on adapting it to Eclipse Nexus instance (at repository.eclipse.org).

Ah, it seems that TM4E does not support JDK 11... ???

It does work with JDK 11, at least as an Eclipse IDE plugin.

I got this error when running a code using org.eclipse.tm4e.core.registry.Registry.

I don't see anywhere in the stack anything related to TM4E. Can you please share a full stack highlighting what operation of tm4e triggers that?

@exoego
Copy link

exoego commented Oct 14, 2019

Ah, sorry, it was my mistake on build configuration.
Actually it worked on JDK 11.
I will try to publish to my private Nexus.

@ainslec
Copy link

ainslec commented Jan 17, 2020

Hello,

I'm also looking for this on Maven central.

I found this, but it's quite old, and I'd rather work from "org.eclipse" group id.

	<dependency>
	  <groupId>org.netbeans.external</groupId>
	  <artifactId>org.eclipse.tm4e.core_0.2.0.201809031154</artifactId>
	  <version>RELEASE110</version>
	</dependency>

@mickaelistria
Copy link
Contributor Author

To be honest, I don't think publishing to plain Maven is a functionality I'm going to work on soon as it's not a priority to me. However, we'll totally welcome contributions that go into that direction.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants