I'm totally confused and could use some help...

I have an internal company repo setup fine. Currently, following the
artifcatory docs, I defined this repo in my mavenhome/conf/settings.xml file
such as:

    <profile>
        <id>acme-company</id>
        <repositories>
            <repository>
                <id>central</id>
                <url>http://urlip:8081/artifactory/repo</url>
                <snapshots>
                    <enabled>false</enabled>
                </snapshots>
            </repository>
    ....

I can then set this profile to be active in the settings.xml file as well
and all works fine.

The problem is when I'm at home using this laptop I don't want to use this
profile! I just want plain jane vanilla iblio repo.

I'm confused how to set up things to get what I want - projects using our
company parent pom using the repositories as defined above, and any other
projects to not use the profile as above.

What I was 'thinking' I could so is just set up the repository definition in
my parent proejct pom.. but that didn't seem to work at all. To me this
makes the most sense as users wouldn't even have to define anything in their
settings.xml file. I see no examples of this however and can't seem to get
ti to work. Assuming I keep this profile definition in my (and unfortunately
the whole team's local settings.xml file) how do I set up parent company
profile to use it? If I keep it "alawys active" then it's always active even
when I'm not at work which seems to be a pain.

Even if this kind of info shouldn't be in a parent pom, and should be in the
settings.xml file, how do I then easily set things up so that I can do "mvn
install" when I'm not at work and have it NOT try to connect to the
acme-company profile? I'd prefer not to have a pass in a profile argument on
the command line, but I suppose if I have to, I'll do it.

I'm thinking this is a common situation so I must be totally doing something
wrong,

-- 
Rick

Reply via email to