linux - Maven equivalent of eclipse "clean project" -


i have multi-level maven project, includes major module references other (also maven) projects:

<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/xsd/maven-4.0.0.xsd"> <modelversion>4.0.0</modelversion> <groupid>com.evercompliant</groupid> <artifactid>pipelinemultimodule</artifactid> <version>0.0.1-snapshot</version> <packaging>pom</packaging> <name>pipeline multi module</name> <description>maven multi module project</description> <url>http://maven.apache.org</url>   <properties>      <maven.compiler.source>1.8</maven.compiler.source>     <maven.compiler.target>1.8</maven.compiler.target> </properties> <build>     <plugins>         <plugin>             <artifactid>maven-compiler-plugin</artifactid>             <version>3.2</version>             <configuration>                 <source>1.8</source>                 <target>1.8</target>             </configuration>         </plugin>     </plugins> </build> <modules>     <module>../aggregationhandler</module>     <module>../crawlerutils</module>     <module>../crawlmanager</module>     <module>../crawlerdevlibrary</module>     <module>../digestmanager</module>     <module>../gcrawler/googlecrawler</module>     <module>../urlservice</module>     <module>../webpagecapture</module>     <module>../whoisparser</module>     <module>../textclassifier</module>     <module>../scanpipelineservice</module> </modules>  <dependencies>     <dependency>         <groupid>mysql</groupid>         <artifactid>mysql-connector-java</artifactid>         <version>5.1.34</version>     </dependency> </dependencies> 

in order full build on windows, need execute maven clean , maven install eclipse. reason, if don't execute eclipse's "clean projects" between mvn clean , mvn install, artifact doesn't include binaries of project. example, jar created aggregationhandler project, include of dependencies (crawlerutils, example), not code of aggregationhandler itself. said, fixed executing "clean projects".

here's pom.xml file of aggregationhandler project:

<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/xsd/maven-4.0.0.xsd"> <modelversion>4.0.0</modelversion>  <artifactid>aggregationhandler</artifactid>  <name>aggregation handler</name> <dependencies>     <dependency>         <groupid>com.evercompliant</groupid>         <artifactid>crawlerutils</artifactid>         <version>0.0.1-snapshot</version>         <scope>compile</scope>     </dependency> </dependencies> <build>     <sourcedirectory>src/main/java</sourcedirectory>     <plugins>         <plugin>             <artifactid>maven-jar-plugin</artifactid>             <version>2.6</version>             <executions>                 <execution>                     <id>default-jar</id>                     <phase>package</phase>                     <goals>                         <goal>jar</goal>                     </goals>                 </execution>             </executions>             <configuration>                 <archive>                     <manifest>                         <mainclass>com.evercompliant.aggregationhandler.service.doaction</mainclass>                     </manifest>                 </archive>                 <descriptorrefs>                     <descriptorref>jar-with-dependencies</descriptorref>                 </descriptorrefs>             </configuration>         </plugin>         <plugin>             <artifactid>maven-assembly-plugin</artifactid>             <executions>                 <execution>                     <phase>package</phase>                     <goals>                         <goal>single</goal>                     </goals>                 </execution>             </executions>             <configuration>                 <archive>                     <manifest>                         <mainclass>com.evercompliant.aggregationhandler.service.doaction</mainclass>                     </manifest>                 </archive>                 <descriptorrefs>                     <descriptorref>jar-with-dependencies</descriptorref>                 </descriptorrefs>             </configuration>         </plugin>     </plugins> </build>  <parent>     <groupid>com.evercompliant</groupid>     <artifactid>pipelinemultimodule</artifactid>     <version>0.0.1-snapshot</version>     <relativepath>../pipelinemultimodule</relativepath> </parent> 

problem is, need build project on linux environment, without eclipse. there change can pom.xml file(s) in order fix problem?


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -