To add to my last response... even if I place the jar inside my local repo and run offline, it still tries to download the .pom from the remote repo. Is there anyway around this?

Downloading: http://repo1.maven.org/maven2/eclipse-plugins/org.eclipse.core.resources/3.1.0/org.eclipse.core.resources-3.1.0.pom [WARNING] Unable to get resource from repository http://repo1.maven.org/maven2 [INFO] ----------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ----------------------------------------------------------------------------
[INFO] Main Error:
 Unable to read the metadata file
 eclipse-plugins:org.eclipse.core.resources:3.1.0:jar

from the specified remote repositories:
 http://repo1.maven.org/maven2
Path to dependency:
       1) org.apache.geronimo:org.apache.geronimo.test2:jar:1.0-SNAPSHOT

Sachin Patel wrote:
Well as long as you prepended the file based override with a property like ${eclipse-home}/plugins/org.eclipse.core.resource_3.1.0. That would prevent that. No?

I'm working on copying all the eclipse plugins to the repo, but its not as easy as I thought. Let me know if I'm wrong but I can't just drop in all the jars. I'm going to have to create the full folder structure for each jar

like...

${repo}/eclipse-plugins/org.eclipse.core.resources/3.1.0/

Then do I have to include a .pom for each of those jars in that folder? If I know my projects are only dependent on eclipse plugins which can't be downloaded remotely, can I specify (1) that the given project be built offline, (2) don't look for a .pom in the local repo?

Thanks.

Brett Porter wrote:
Yes, at the moment. This is necessary to avoid making a build
dependent on a particular user's environment (you may not install
eclipse in the same place as others trying to build the plugin).

I am actually investigating Eclipse's plugin build mechanism in
relation to OSGi and hope to make it easier to work with m2 in that
environment. I don't expect rapid progress, but I'm interested to hear
your thoughts.

- Brett

On 8/29/05, Sachin Patel <[EMAIL PROTECTED]> wrote:
So basically for M2 you are saying there is no way to specify a
dependency on a jar outside of the repo? In which case, all the eclipse plugins I depend on must be copied from an eclipse installation into the
repo.  Then the jars would need to be renamed to replace the underscore
with a "-".  Are there any other alternatives?

Thanks again for all your help.

Brett Porter wrote:
No, m2 does not allow jar overrides. Version based overrides can be
achived by plugin <dependencyManagement>, and file based overrides
should be put into the repository.

- Brett

On 8/29/05, Sachin Patel <[EMAIL PROTECTED]> wrote:

Is the property maven.jar.override applicable for M2? If so how is it
specified? Through <properties> ? If so, it wasn't clear to me in the
documentation, nor could I find examples of <properties> being defined
in M2 POMs.

Is this the correct way to define them?

<properties>
    <myprop>value</myprop>
</properties>

Thanks.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to