Java:不希望仅在项目团队成员之间共享Java代码,而是分享功能 [英] Java: do not want to share java code but functionality only among project team members

查看:127
本文介绍了Java:不希望仅在项目团队成员之间共享Java代码,而是分享功能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在java项目团队中。我的团队成员需要访问我的java代码功能,但我不希望他们访问我的java代码。那么如何在不共享我的java代码的情况下共享代码功能呢?



我尝试过:



我已经尝试了包但是使用整个包可以访问

I am in java project team. My team members need to access my java code functionality but I don't want them to access my java code. So how can I share the code functionality without sharing my java code?

What I have tried:

I have tried packages but using packages whole will be accessible

推荐答案

请看这里: Java等价的C ++ .dll? - 堆栈溢出 [ ^ ]


使用 JAR(文件格式) - 维基百科 [ ^ ]您可以分享功能,但请记住代码通常仍然可访问,可以反编译。看看 java - 如何反编译.jar文件? - 堆栈溢出 [ ^ ]



使反编译变得更难的一种方法是使用混淆(软件) - 维基百科 [ ^ ],但只要代码可以执行,就可以读取。
Using JAR (file format) - Wikipedia[^] you can share the functionality but keep in mind that the code is typically still accessible and can be decompiled. Have a look at java - How do I decompile a .jar file? - Stack Overflow[^]

One way to make decompiling harder is to use Obfuscation (software) - Wikipedia[^], but as long as the code can be executed, it can be read.


Java jar是你的解决方案。看看maven。您可以构建自己的maven服务器并与其他团队共享存储库
Java jar is your solution. Take a look at maven. You can build your own maven server and share repository with other team


这篇关于Java:不希望仅在项目团队成员之间共享Java代码,而是分享功能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆