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

Documentation of pom entry microservice.resourceClasses #541

Open
MHaverbier opened this issue Jun 11, 2018 · 4 comments
Open

Documentation of pom entry microservice.resourceClasses #541

MHaverbier opened this issue Jun 11, 2018 · 4 comments

Comments

@MHaverbier
Copy link

Description:
I want to split my microservices in two files in one project. So that I have the microservices for a project in one project but separated in more than one files according to the functionality of the services.
At the moment I am using a pom file with this lines:

<project>
[...]
<properties>
<microservice.resourceClasses>com.companyname.projectname.microservices-part1</microservice.resourceClasses>
</properties>
</project>

So atm all my microservices are in "microservices-part1.java" but I want to add a second class "microservices-part2.java".

Is this even posssible to do and if yes, how? I did not fine any documentation about the pom property microservice-resourceClasses and how to add mulitple classes.

Suggested Labels:

Suggested Assignees:

Affected Product Version:
2.5.2

OS, DB, other environment details and versions:
As this is mostly a request for documentation I think OS, DB and other information is not needed.

Steps to reproduce:
Just create two microservices in two classes (with one file each) and try to get both running.

Related Issues:

@thusithathilina
Copy link
Contributor

You can put comma separated values here if all those classes are available on the same jar file.
e.g.
<microservice.resourceClasses>com.companyname.projectname.microservices-part1,com.companyname.projectname.microservices-part2</microservice.resourceClasses>

@MHaverbier
Copy link
Author

MHaverbier commented Jun 12, 2018

Thanks,
seems to work. I don't know why, because I got something like this before.

But where did you get the info, that this should work?

@thusithathilina
Copy link
Contributor

@MSchwarzer-Haverbier No worries. I was one of the core developers in the MSF4J project ;-)

@MHaverbier
Copy link
Author

Is there documentation on this topic somewhere?

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