Note that there are some explanatory texts on larger screens.

plurals
  1. POWhere does maven call make?
    primarykey
    data
    text
    <p>I am a newbie working with maven. I have compiled an application using a maven plug-in for compile goal. When I execute: <code>mvn compile</code> I see this.</p> <pre><code>[user@pc111 userAPP]$ mvn compile make -C ./configure install make[1]:Entering directory `directory path' perl /filepath/file.pl O.linux-x86_64 ../.. mkdir O.Common make -C O.linux-x86_64 -f ../Makefile TOP=../.. T_A=linux-x86_64 install make[2]: Entering directory `directory path´ perl /filepath2/file2.pl ... </code></pre> <p>And my question is:</p> <p><strong>Where does maven call make?</strong> </p> <p>Because having a look at the mvn binary it calls java and the compiled mojo creates an object that extends to AbstractMojo. But where is make called? My project has many makefiles. As I said I am newbie so if some info is confusing or other info is needed please just tell me. Thanks for your help. And sorry for my English but it is not my native language.</p> <p>Edit: This is my pom.xml. </p> <pre><code>&lt;!-- Project : My Project Description : Project description file for App Authors : This file was generated by --&gt; &lt;project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"&gt; &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt; &lt;groupId&gt;mygroupid&lt;/groupId&gt; &lt;artifactId&gt;TEST&lt;/artifactId&gt; &lt;packaging&gt;java&lt;/packaging&gt; &lt;version&gt;2.0.0&lt;/version&gt; &lt;name&gt;TEST module&lt;/name&gt; &lt;description&gt;TEST module&lt;/description&gt; &lt;!-- project properties --&gt; &lt;properties&gt; &lt;unit.type&gt;module&lt;/unit.type&gt; &lt;/properties&gt; &lt;!-- parent pom.xml --&gt; &lt;parent&gt; &lt;groupId&gt;org.mycompany&lt;/groupId&gt; &lt;artifactId&gt;maven-mycompany-settings&lt;/artifactId&gt; &lt;version&gt;2.2.0&lt;/version&gt; &lt;/parent&gt; &lt;!-- unit owner and developers --&gt; &lt;developers&gt; &lt;developer&gt; &lt;id&gt;developer&lt;/id&gt; &lt;roles&gt; &lt;role&gt;unit owner&lt;/role&gt; &lt;/roles&gt; &lt;/developer&gt; &lt;/developers&gt; &lt;!-- configuration of how the project is built --&gt; &lt;build&gt; &lt;!-- default phase is compile --&gt; &lt;defaultGoal&gt;compile&lt;/defaultGoal&gt; &lt;!-- this command is executed if you just write 'mvn' --&gt; &lt;plugins&gt; &lt;plugin&gt; &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt; &lt;artifactId&gt;maven-mycompany-plugin&lt;/artifactId&gt; &lt;extensions&gt;true&lt;/extensions&gt; &lt;configuration&gt; &lt;packaging&gt; &lt;!--"some packaging config"--&gt; &lt;/packaging&gt; &lt;/configuration&gt; &lt;/plugin&gt; &lt;/plugins&gt; &lt;/build&gt; </code></pre> <p></p> <p>looking in pom.xml the mojo responsible of executing make should be the compileMojo. But where can I find the code where make is called. Because in ../mojos/build/CompileMojo.java nothing calls make. could executeMojo() method be the responsible to call make?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload