You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Vanja Petreski <vp...@gmail.com> on 2007/10/01 11:42:12 UTC

Is this a bug (Maven needs pom to read global settings.xml)?

Hello,

I have Maven 2.0.7 installation on the SVN with configured settings.xml, so
every developer can update changes (for example, about repo, etc..).

I am using Artifactory for repository management and everything work
perfectly until now.

If I use, for example, mvn archetype:create
-DgroupId=com.blah-DartifactId=modulX in a folder that doesn't contain
pom.xml, Maven stucks at "update blah blah from central", where central is
my Artifactory cache repo. I thought that there is a problem with
Artifactory, but after an hour of experimenting I realized when I use the
same command in a directory that contains pom.xml, it works.

So, in the first case, Maven doesn't recognize global settings.xml!?

Can somebody explain this strange behaviour or this is a bug?

V

Re: Is this a bug (Maven needs pom to read global settings.xml)?

Posted by knaas <kn...@biglots.com>.
This is old, and you may have figured out your issue, but this is what worked
for us.

We had our artifactory configured to use both apache's official maven
release and snaphot repositories.  We also had our settings.xml set to be a
mirrorOf "*" so that everything would go to our artifactory repo.  

I couldn't figure out why it kept complaining about
maven-archetype-plugin:pom:1.0-SNAPSHOT.  Well, its because the snapshot in
the apache repository is probably busted!  I added the
maven-archetype-plugin to the excludes pattern for the apache snapshot repo
and voila, it works.

<remoteRepository>
	    <key>apache-m2-snapshots</key>
	    <description>maven.org snapshot repository</description>
	    <handleReleases>false</handleReleases>
	    <handleSnapshots>true</handleSnapshots>
	    <!-- the maven-archetype-plugin is completely screwed up in the m2
snapshots -->
	   
<excludesPattern>org/artifactory/**,org/jfrog/**,org/apache/maven/plugins/maven-archetype-plugin/**</excludesPattern>
	    <url>http://people.apache.org/repo/m2-snapshot-repository</url>
        </remoteRepository>


Vanja Petreski wrote:
> 
> Hello,
> 
> I have Maven 2.0.7 installation on the SVN with configured settings.xml,
> so
> every developer can update changes (for example, about repo, etc..).
> 
> I am using Artifactory for repository management and everything work
> perfectly until now.
> 
> If I use, for example, mvn archetype:create
> -DgroupId=com.blah-DartifactId=modulX in a folder that doesn't contain
> pom.xml, Maven stucks at "update blah blah from central", where central is
> my Artifactory cache repo. I thought that there is a problem with
> Artifactory, but after an hour of experimenting I realized when I use the
> same command in a directory that contains pom.xml, it works.
> 
> So, in the first case, Maven doesn't recognize global settings.xml!?
> 
> Can somebody explain this strange behaviour or this is a bug?
> 
> V
> 
> 

-- 
View this message in context: http://www.nabble.com/Is-this-a-bug-%28Maven-needs-pom-to-read-global-settings.xml%29--tp12976070s177p14419447.html
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Is this a bug (Maven needs pom to read global settings.xml)?

Posted by Vanja Petreski <vp...@gmail.com>.
done..

On 10/1/07, Gisbert Amm <gi...@webde.de> wrote:
>
> Vote for it ...
>
> -Gisbert
>
> Vanja Petreski wrote:
> > Yes!
> >
> > V
> >
> > On 10/1/07, Gisbert Amm <gi...@webde.de> wrote:
> >
> >>This one?
> >>
> >>http://jira.codehaus.org/browse/ARCHETYPE-81
> >>
> >>-Gisbert
> >>
> >>Vanja Petreski wrote:
> >>
> >>>Hello,
> >>>
> >>>I have Maven 2.0.7 installation on the SVN with configured settings.xml
> ,
> >>
> >>so
> >>
> >>>every developer can update changes (for example, about repo, etc..).
> >>>
> >>>I am using Artifactory for repository management and everything work
> >>>perfectly until now.
> >>>
> >>>If I use, for example, mvn archetype:create
> >>>-DgroupId=com.blah-DartifactId=modulX in a folder that doesn't contain
> >>>pom.xml, Maven stucks at "update blah blah from central", where central
> >>
> >>is
> >>
> >>>my Artifactory cache repo. I thought that there is a problem with
> >>>Artifactory, but after an hour of experimenting I realized when I use
> >>
> >>the
> >>
> >>>same command in a directory that contains pom.xml, it works.
> >>>
> >>>So, in the first case, Maven doesn't recognize global settings.xml!?
> >>>
> >>>Can somebody explain this strange behaviour or this is a bug?
> >>>
> >>>V
> >>>
> >>
> >>
> >
>
> --
> Gisbert Amm
> Softwareentwickler Infrastruktur
> Telefon: (0721) 91374 - 4224
> Telefax: (0721) 91374 - 2740
> E-Mail: gisbert.amm@1und1.de
> Internet: www.1und1.de
>
> 1&1 Internet AG
> Elgendorfer Strasse 57
> 56410 Montabaur
>
> Amtsgericht Montabaur HRB 6484
>
> Vorstand: Ralph Dommermuth, Matthias Ehrlich, Andreas Gauger
> (Vorsitzender), Matthias Greve, Henning Ahlert, Norbert Lang, Achim
> Weiss, Robert Hoffmann,
> Aufsichtsratsvorsitzender: Michael Scheeren
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

Re: Is this a bug (Maven needs pom to read global settings.xml)?

Posted by Gisbert Amm <gi...@webde.de>.
Vote for it ...

-Gisbert

Vanja Petreski wrote:
> Yes!
> 
> V
> 
> On 10/1/07, Gisbert Amm <gi...@webde.de> wrote:
> 
>>This one?
>>
>>http://jira.codehaus.org/browse/ARCHETYPE-81
>>
>>-Gisbert
>>
>>Vanja Petreski wrote:
>>
>>>Hello,
>>>
>>>I have Maven 2.0.7 installation on the SVN with configured settings.xml,
>>
>>so
>>
>>>every developer can update changes (for example, about repo, etc..).
>>>
>>>I am using Artifactory for repository management and everything work
>>>perfectly until now.
>>>
>>>If I use, for example, mvn archetype:create
>>>-DgroupId=com.blah-DartifactId=modulX in a folder that doesn't contain
>>>pom.xml, Maven stucks at "update blah blah from central", where central
>>
>>is
>>
>>>my Artifactory cache repo. I thought that there is a problem with
>>>Artifactory, but after an hour of experimenting I realized when I use
>>
>>the
>>
>>>same command in a directory that contains pom.xml, it works.
>>>
>>>So, in the first case, Maven doesn't recognize global settings.xml!?
>>>
>>>Can somebody explain this strange behaviour or this is a bug?
>>>
>>>V
>>>
>>
>>
> 

-- 
Gisbert Amm
Softwareentwickler Infrastruktur
Telefon: (0721) 91374 - 4224
Telefax: (0721) 91374 - 2740
E-Mail: gisbert.amm@1und1.de
Internet: www.1und1.de

1&1 Internet AG
Elgendorfer Strasse 57
56410 Montabaur

Amtsgericht Montabaur HRB 6484

Vorstand: Ralph Dommermuth, Matthias Ehrlich, Andreas Gauger 
(Vorsitzender), Matthias Greve, Henning Ahlert, Norbert Lang, Achim 
Weiss, Robert Hoffmann,
Aufsichtsratsvorsitzender: Michael Scheeren

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Is this a bug (Maven needs pom to read global settings.xml)?

Posted by Vanja Petreski <vp...@gmail.com>.
Yes!

V

On 10/1/07, Gisbert Amm <gi...@webde.de> wrote:
>
> This one?
>
> http://jira.codehaus.org/browse/ARCHETYPE-81
>
> -Gisbert
>
> Vanja Petreski wrote:
> > Hello,
> >
> > I have Maven 2.0.7 installation on the SVN with configured settings.xml,
> so
> > every developer can update changes (for example, about repo, etc..).
> >
> > I am using Artifactory for repository management and everything work
> > perfectly until now.
> >
> > If I use, for example, mvn archetype:create
> > -DgroupId=com.blah-DartifactId=modulX in a folder that doesn't contain
> > pom.xml, Maven stucks at "update blah blah from central", where central
> is
> > my Artifactory cache repo. I thought that there is a problem with
> > Artifactory, but after an hour of experimenting I realized when I use
> the
> > same command in a directory that contains pom.xml, it works.
> >
> > So, in the first case, Maven doesn't recognize global settings.xml!?
> >
> > Can somebody explain this strange behaviour or this is a bug?
> >
> > V
> >
>
>

Re: Is this a bug (Maven needs pom to read global settings.xml)?

Posted by Gisbert Amm <gi...@webde.de>.
This one?

http://jira.codehaus.org/browse/ARCHETYPE-81

-Gisbert

Vanja Petreski wrote:
> Hello,
> 
> I have Maven 2.0.7 installation on the SVN with configured settings.xml, so
> every developer can update changes (for example, about repo, etc..).
> 
> I am using Artifactory for repository management and everything work
> perfectly until now.
> 
> If I use, for example, mvn archetype:create
> -DgroupId=com.blah-DartifactId=modulX in a folder that doesn't contain
> pom.xml, Maven stucks at "update blah blah from central", where central is
> my Artifactory cache repo. I thought that there is a problem with
> Artifactory, but after an hour of experimenting I realized when I use the
> same command in a directory that contains pom.xml, it works.
> 
> So, in the first case, Maven doesn't recognize global settings.xml!?
> 
> Can somebody explain this strange behaviour or this is a bug?
> 
> V
> 

-- 
Gisbert Amm
Softwareentwickler Infrastruktur
Telefon: (0721) 91374 - 4224
Telefax: (0721) 91374 - 2740
E-Mail: gisbert.amm@1und1.de
Internet: www.1und1.de

1&1 Internet AG
Elgendorfer Strasse 57
56410 Montabaur

Amtsgericht Montabaur HRB 6484

Vorstand: Ralph Dommermuth, Matthias Ehrlich, Andreas Gauger 
(Vorsitzender), Matthias Greve, Henning Ahlert, Norbert Lang, Achim 
Weiss, Robert Hoffmann,
Aufsichtsratsvorsitzender: Michael Scheeren

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org