Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

jte-maven-plugin's precompile goal leaves .java files next to compiled .class files

See original GitHub issue

I don’t want .java files next to .class files generated during jte-maven-plugin’s precompile goal. I want only .class and .bin files. Delete those generated .java files once compilation succeeds. Alternatively, provide a flag that can be specified in <configuration> section of the plugin.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

izogfifcommented, Jul 2, 2021

@casid it works, thanks.

izogfifcommented, Jun 30, 2021


would it help to be able to configure a directory where .java files should be placed?

Right now I deal with those .java files by invoking maven-clean-plugin that finds and removes all .java files from the target folder. Adding a “folder for intermediate .java files” option would require me to clear that folder instead. I don’t want to deal with those files at all. I suggest to add a keepGeneratedJavaFiles option with default value false. If it’s true, then keep those .java files.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Renaming imports on pre-compiled class files (Java)
Get a list of all jar files in X_Folder; for each jar file, get all classes encased. for each class file, search for...
Read more >
Managing Source and Class Files (The Java™ Tutorials ...
This beginner Java tutorial describes fundamentals of programming in the Java programming language.
Read more >
Java Class File - GeeksforGeeks
A Java class file is created by a Java compiler from .java files as a result of successful compilation. As we know that...
Read more >
How to scan Java precompiled classes - HCL support
Question. In AppScan Source Edition, how do you configure a Java project to scan the precompiled class files instead of compiling and scanning...
Read more >
Java - SonarQube Documentation
Your project contains .java files, please provide compiled classes with property, or exclude them from the analysis with sonar.exclusions ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found