Похожие чаты

As far as I have understood, in Maven, there are

some predefined project build and packaging templates. A user can modify them to reach the required template. I wanna know whether a user can create a build template from scratch?

Assume this project:
mavenProject1 (parent)
package1
class1.java
class2.java
resources
pic1.png
mavenProject2
package1
class1.java

I wanna my package creation be like:
/mavenProject1/package1/class1.java -> /class1.class
/mavenProject1/resources/pic1.png -> /pic1.png

So the desired build template would be:
mavenOutput
class1.class
pic1.png

Can I use maven to turn the source code into such an object package? If yes, what keyword should I google for?

3 ответов

49 просмотров

Even though I don't fully understand what exactly you're trying to achieve... I recommend to not diverge from standard layout used virtually everywhere. Find any popular java project in github that uses maven - 99.99% it will follow standard layout instead of trying to do something custom. Are you trying to filter out "class2" from your output? And why project2 is demonstrated here at all?

required-optional Автор вопроса

Yes I am exactly doing this dirty job XD (And yes, I should refactor my structures instead of such a solutions. But it is not an easy option at the current time. Furthermore, I wanna do it with maven to learn it. Just for fun.)

required optional
Yes I am exactly doing this dirty job XD (And yes,...

For filtering out things from your target archive use this https://maven.apache.org/plugins/maven-jar-plugin/examples/include-exclude.html

Похожие вопросы

Обсуждают сегодня

Господа, а что сейчас вообще с рынком труда на делфи происходит? Какова ситуация?
Rꙮman Yankꙮvsky
29
А вообще, что может смущать в самой Julia - бы сказал, что нет единого стандартного подхода по многим моментам, поэтому многое выглядит как "хаки" и произвол. Короче говоря, с...
Viktor G.
2
@Benzenoid can you tell me the easiest, and safest way to bu.y HEX now?
Živa Žena
20
This is a question from my wife who make a fortune with memes 😂😂 About the Migration and Tokens: 1. How will the old tokens be migrated to the new $LGCYX network? What is th...
🍿 °anton°
2
30500 за редактор? )
Владимир
47
а через ESC-код ?
Alexey Kulakov
29
What is the Dex situation? Agora team started with the Pnetwork for their dex which helped them both with integration. It’s completed but as you can see from the Pnetwork ann...
Ben
1
Гайс, вопрос для разносторонее развитых: читаю стрим с юарта, нада выделять с него фреймы с определенной структурой, если ли чо готовое, или долбаться с ринг буффером? нада у...
Vitaly
9
Anyone knows where there are some instructions or discort about failed bridge transactions ?
Jochem
21
@lozuk how do I get my phex copies of my ehex from a atomic wallet, to move to my rabby?
Justfrontin 👀
11
Карта сайта