I am writing an Xtext-based code generator that can be called:
main(String[])
Now I need to solve some problems related to Maven. To do this, I need to know if my code works in Maven or not.
My first idea was to check the system property maven.homeas follows:
maven.home
if (System.getProperty("maven.home") != null) { // In Maven }
Is there a better way to do this?
Maven Maven, , pom.xml build/plugins/plugin, , Maven .
, " maven", , maven . , " maven", maven , ( , , , maven).
99% , , maven . , - , IDE. , - , Maven; , , .
maven (pom.xml), , java, IDE. , IDE, (, java 1.8), maven pom.xml (, Java 1.7).
Source: https://habr.com/ru/post/1613513/More articles:How to combine PayPal SDK and Braintree SDK in android studio - androidConditional nearest neighbor in python - pythonCSS print multiple pages of a table with a record - htmlLaravel FatalErrorException in Model.php line 827: class not found - phpR: Combining nested list items by name - rXcode использует неправильный PATH при выполнении прогона script - ioshttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1613515/tvos-topshelf-not-launching-application&usg=ALkJrhjA0QFRPp2CtkWLn7yy6RIYoKubZAdebug yoman with studio visual code "can't run program ..." - debuggingStrange closing behavior - closuresWhy is my onclick not deleting any of my classes? - javascriptAll Articles