java - maven settings.xml configuration for looking up workspace artifacts -


i'm using maven , i'm stumped following issue:

project setup:

- master (parent project) - module1 (parent master) - module2 (parent master , needs module1 "provided") 

as shown in following settings.xml, i'm making artifactory mirror artifact requests. in way needed because there few proprietary jars build needs (and artifactory responsible it).

settings.xml:

    <settings xmlns="http://maven.apache.org/settings/1.0.0"   xmlns:xsi="http://www.w3.org/2001/xmlschema-instance"   xsi:schemalocation="http://maven.apache.org/settings/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">   <localrepository>${user.home}/.m2/repository</localrepository>   <interactivemode>true</interactivemode>   <usepluginregistry>false</usepluginregistry>   <offline>false</offline>   <mirrors>     <mirror>       <id>artifactory-virtual-repo</id>       <name>myartifactory</name>       <url>http://<artifactory-ip>:8081/artifactory/simple/<repo-name>/</url>       <mirrorof>*</mirrorof>     </mirror>   </mirrors>   <proxies/>   <profiles/>    <activeprofiles/> </settings> 

module1 builds fine. however, when try build master or module2 checking module1 in artifactory (mentioned above in settings.xml) these projects still missing. how can force eclipse (m2e) @ workspace projects well?

in otherwords, how configure maven make sure artifacts in current workspace looked if fails find in repository ?

maven considers dependencies "inner" (and looks classes in project instead of going after jars) once declared modules in reactor. if parent pom has following modules declaration, maven shouldn't reach out artifactory, should use compiled classes:

<modules>     <module>module1</module>     <module>module2</module> </modules> 

Comments

Popular posts from this blog

java - Jmockit String final length method mocking Issue -

asp.net - Razor Page Hosted on IIS 6 Fails Every Morning -

c++ - wxwidget compiling on windows command prompt -