Hi All

I am building an offline build, I want to verify the hold project is
building in 
Maven on a disconnected machine.

I copied my developer machine M2 repository to the isolated server. I
think that
I set up a repository for as an `internal' one. 

What is wrong with this ``~/.m2/setting.xml'' file? 

<settings 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/settings-1.0.0.xsd";>
  <interactiveMode/>
  <usePluginRegistry/>
  <offline/>
  <pluginGroups/>
  <servers/>
  <mirrors>
  </mirrors>
  <proxies/>

  <profiles>
        <profile>
            <id>private-repository</id>
            <repositories>

                <repository>
                        <id>blah</id>
        
<url>file:/home/pilgripe/internal/maven-repository</url>
                        <layout>default</layout>
                        <snapshots>
                                <enabled>true</enabled>
                        </snapshots>
                </repository>

             </repositories>
        </profile>
    </profiles>
    <activeProfiles>
       <activeProfile>private-repository</activeProfile>
    </activeProfiles>
</settings>

Because the message I get is

[EMAIL PROTECTED] [415] > mvn compile
[INFO] Scanning for projects...
[INFO]
------------------------------------------------------------------------
----
[INFO] Building PTSP Valuations Schema (XML Beans)
[INFO]    task-segment: [compile]
[INFO]
------------------------------------------------------------------------
----

Downloading:
file:/home/pilgripe/internal/maven-repository/xmlbeans/xbean/2.2.0/xbean
-2.2.0.pom
[WARNING] Unable to get resource from repository blah
(file:/home/pilgripe/internal/maven-repository)
Downloading:
http://repo1.maven.org/maven2/xmlbeans/xbean/2.2.0/xbean-2.2.0.pom
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Error building POM (may not be this project's POM).


Project ID: xmlbeans:xbean

Reason: Error getting POM for 'xmlbeans:xbean' from the repository:
Error transferring file
  xmlbeans:xbean:pom:2.2.0

from the specified remote repositories:
  central (http://repo1.maven.org/maven2),
  blah (file:/home/pilgripe/internal/maven-repository)


Clearly the priority order of the repositories is incorrect, 
but how do you reorder them?

--
Peter Pilgrim
UBS Investment Bank, 
PTS Portal / IT FIRC OPS LDN,
100 Liverpool Street, London EC2M 2RH, United Kingdom
+44 (0) 20 75 75692
:: Java EE / E-Commerce / Enterprise Integration / Development ::

Visit our website at http://www.ubs.com

This message contains confidential information and is intended only
for the individual named.  If you are not the named addressee you
should not disseminate, distribute or copy this e-mail.  Please
notify the sender immediately by e-mail if you have received this
e-mail by mistake and delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free
as information could be intercepted, corrupted, lost, destroyed,
arrive late or incomplete, or contain viruses.  The sender therefore
does not accept liability for any errors or omissions in the contents
of this message which arise as a result of e-mail transmission.  If
verification is required please request a hard-copy version.  This
message is provided for informational purposes and should not be
construed as a solicitation or offer to buy or sell any securities or
related financial instruments.


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

Reply via email to