Hi Roberto, If you define a dependency (or it gets pulled in transitively), your build will fail if it is not available. It is needed to correctly build your project. Tricking maven into thinking that it is not needed will usually result in a corrupt build. If you really don't need the dependency, then why did you add it in the first place, right?
If you want to build the project in an isolated environment, than you must install the needed libraries manually into its local maven repository. You might find this quite cumbersome to do, so why not just build the project in a dev environment that has access to your company's internal repo, or the internet? Or.. copy a filled local repository to the machine on which you want to build the project. Cheers Jo On 6/5/07, Roberto UserList <[EMAIL PROTECTED]> wrote:
Hi all! I've been facing a problem when I run maven in the production environment, and it tries to load "drools-core-3.0.2.pom" pom file from local repository. My production environment is isolated from Internet, so It cannot access Ibiblio or any other remote repository and, in my local repository I do not have the pom file it looks is looking for ("drools-core-3.0.2.pom") What can I do to order Maven not to take care about the existance of this certain pom file? Thanks in advance for the help! Regards, Roberto. Check it out the log file: [INFO] Preparing javadoc:javadoc [INFO] No goals needed for project - skipping Downloading: http://snapshots.repository.codehaus.org//drools/drools-core/3.0.2/drools-core-3.0.2.pom [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Error building POM (may not be this project's POM). Project ID: drools:drools-core Reason: Error getting POM for 'drools:drools-core' from the repository: Error transferring file drools:drools-core:pom:3.0.2 from the specified remote repositories: central (http://repo1.maven.org/maven2), Codehaus Snapshots (http://snapshots.repository.codehaus.org/) [INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [INFO] Total time: 4 minutes 18 seconds