Hi Jo! I think I was not clear enough.
I configured in the pom.xml of my project all necessary dependencies, but,
there is no correpondent ".pom" file for every ".jar" file in the local
repository.
Maven was able to ignore the absence of this ".pom" files when I executed it
some monthes ago.
But, something in the environment has changed so that, now, Maven is not
ignoring the absence of this files.
Maven is running in a production computer isolated from Internet, and, some
libraries, for example "drools-core-3.0.2.jar", I cannot find the
corresponding ".pom" file on Internet.
Up to now, the workaround I've been using is to install libraries again
using "mvn install", with the option: -DgeneratePom=true, in orther to
generate the correpondent ".pom" file.
I'd like to know if there is an option, or something like that, to tell
Maven to ignore the absence of ".pom" of a dependencies library of my
project?
Thanks a lot for the help.
Regards,
Roberto.


On 6/6/07, Jo Vandermeeren <[EMAIL PROTECTED]> wrote:

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
>

Reply via email to