repository definition

2008-09-04 Thread Wolfgang.Winter
Hi,

 

I don't know if this is an issue or a bug or both:

 

In my settings.xml I define an internal repository :

 

 repositories

repository

   idinternal/id

   nameRepository on deacr001/name

   urlfile://Y:/IPS/Produkt/maven-repository/internal/url

   layoutdefault/layout

/repository

 /repositories

 

In my pom I define a distributionManagement repository like this:

 

   distributionManagement

  repository

 idinternal/id

  /repository

   /distributionManagement

 

From intuitive feeling I would say: there is a reference to a defined 
repository in settings.xml, so Maven will find the missing attributes, but no 
it does not, it does like this:

 

Exception in thread main java.lang.NullPointerException

  at org.apache.maven.wagon.PathUtils.protocol(PathUtils.java:206)

  at 
org.apache.maven.wagon.repository.Repository.setUrl(Repository.java:121)

  at org.apache.maven.wagon.repository.Repository.init(Repository.java:74)

  at 
org.apache.maven.artifact.repository.DefaultArtifactRepository.init(DefaultArtifactRepository.java:75)

  at 
org.apache.maven.artifact.repository.DefaultArtifactRepositoryFactory.createDeploymentArtifactRepository(DefaultArtifactRepositoryFactory.java:84)

  at 
org.apache.maven.artifact.repository.DefaultArtifactRepositoryFactory.createDeploymentArtifactRepository(DefaultArtifactRepositoryFactory.java:65)

  at 
org.apache.maven.DefaultMavenTools.buildDeploymentArtifactRepository(DefaultMavenTools.java:73)

  at 
org.apache.maven.project.DefaultMavenProjectBuilder.processProjectLogic(DefaultMavenProjectBuilder.java:1031)

  at 
org.apache.maven.project.DefaultMavenProjectBuilder.buildInternal(DefaultMavenProjectBuilder.java:812)

  at 
org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFileInternal(DefaultMavenProjectBuilder.java:504)

  at 
org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMavenProjectBuilder.java:200)

  at org.apache.maven.DefaultMaven.build_aroundBody2(DefaultMaven.java:312)

  at 
org.apache.maven.DefaultMaven.build_aroundBody3$advice(DefaultMaven.java:447)

  at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:312)

  at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:282)

  at 
org.apache.maven.DefaultMaven.createReactorManager(DefaultMaven.java:103)

  at 
org.apache.maven.DefaultMaven.execute_aroundBody0(DefaultMaven.java:160)

  at 
org.apache.maven.DefaultMaven.execute_aroundBody1$advice(DefaultMaven.java:304)

  at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:1)

  at 
org.apache.maven.embedder.MavenEmbedder.execute_aroundBody2(MavenEmbedder.java:904)

  at 
org.apache.maven.embedder.MavenEmbedder.execute_aroundBody3$advice(MavenEmbedder.java:304)

  at org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:1)

  at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:176)

  at org.apache.maven.cli.MavenCli.main(MavenCli.java:63)

  at org.apache.maven.cli.MavenCli.main(MavenCli.java:52)

 

not very helpful this error message. It seems that I have to force my 
developers to define the URL two times in their settings.xml: First in the 
repositories/repository tag, second in the distributionManagement/repository 
tag. Not very convenient. 

 

My experience with Maven is: Don't use intuition

 

 

Freundliche Grüße / Kind regards

 

Wolfgang Winter

System Analyst

 

--

 

Atos Worldline GmbH

Pascalstraße 19

52076 Aachen

Germany

Phone:  +49 2408 148-0

Fax:  +49 2408 148-204

mailto: [EMAIL PROTECTED] BLOCKED::mailto:[EMAIL PROTECTED] 

http://www.atosworldline.de

 

Geschäftsführer: Erik Munk Koefoed

Aufsichtsratsvorsitzender: Dominique Illien

Sitz der Gesellschaft: Frankfurt/Main

Handelsregister: Frankfurt/Main HRB 58 268

 

Atos Worldline is an Atos Origin company: www.atosorigin.com

--

 

This e-mail is privileged and may contain confidential information intended 
only for the person(s) named above. If you receive this e-mail in error, please 
notify the sender immediately by telephone or return e-mail. 
Although the sender endeavours to maintain a computer virus free network, the 
sender does not warrant that this transmission is virus-free and will not be 
liable for any damages resulting from any virus transmitted. 

 



Re: repository definition

2008-09-04 Thread Wendy Smoak
On Thu, Sep 4, 2008 at 6:06 AM,  [EMAIL PROTECTED] wrote:

 From intuitive feeling I would say: there is a reference to a defined 
 repository in settings.xml, so Maven will find the missing attributes, but no 
 it does not, it does like this:
...
 not very helpful this error message. It seems that I have to force my 
 developers to define the URL two times in their settings.xml: First in the 
 repositories/repository tag, second in the distributionManagement/repository 
 tag. Not very convenient.

I agree there should be a better error message and not a NPE.

However the urls for repositories and distribution management are
usually different-- file:// urls may be the only time they could be
shared.  For example, you may pull from a repository as http:// , but
publish to it with dav:http:// or scp:// .

Further, distributionManagement is often set once, up in an
organization level pom, and repositories can go in a shared
conf/settings.xml, neither of which developers need to maintain.

HTH,
-- 
Wendy

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



AW: repository definition

2008-09-04 Thread Wolfgang.Winter


 

 From intuitive feeling I would say: there is a reference to a defined
repository in settings.xml, so Maven will find the missing attributes,
but no it does not, it does like this:
...
 not very helpful this error message. It seems that I have to force my
developers to define the URL two times in their settings.xml: First in
the repositories/repository tag, second in the
distributionManagement/repository tag. Not very convenient.

I agree there should be a better error message and not a NPE.

However the urls for repositories and distribution management are
usually different-- file:// urls may be the only time they could be
shared.  For example, you may pull from a repository as http:// , but
publish to it with dav:http:// or scp:// .

[Winter, Wolfgang] ... or pulling and publishing with ftp what we did
first and where the urls are also equal. But we discarded ftp with
ftp-wagon because it was so buggy and unreliable:
- sometimes Maven does not find the wagon-ftp plugin
- sometimes 'connection reset by peer' error
- sometimes only half of a file is published without any error message
- sometimes the deployed file is corrupted without any error message
This must have to do s.th. with Maven because with other FTP client we
have no problems.

Further, distributionManagement is often set once, up in an
organization level pom, and repositories can go in a shared
conf/settings.xml, neither of which developers need to maintain.

[Winter, Wolfgang] that's what I try to do: I have the
distributionManagement in an organisation pom with a variable for the
url which is set in settings and the repositories in settings. That's
why the developers seem to have to define the url two times in their
settings.

HTH,
-- 
Wendy


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



Re: repository definition

2006-12-21 Thread mylene

You should set the version number...

Mylene

On 12/21/06, serafettin senturk [EMAIL PROTECTED] wrote:


  Hello,

  I used in my pom.xml the following repositories.

repositories
repository
idandromda/id
nameAndroMDA Repository/name
urlhttp://team.andromda.org/maven2/url
/repository

repository
idandromda/id
nameAndroMDA Repository/name
urlhttp://team.andromda.org/maven/url
/repository

  repository
idandromda/id
nameAndroMDA Repository/name
urlhttp://www.ibiblio.org/maven/url
/repository

/repositories


But still I get the below warning messages. How can I fix this problem?


Downloading:
http://team.andromda.org/maven2/org/andromda/cartridges/andromda-bp
m4struts-cartridge/${andromda.version}/andromda-bpm4struts-cartridge-${andromda.
version}.jar
[WARNING] Unable to get resource from repository andromda
(http://team.andromda.
org/maven2)
Downloading:
http://repo1.maven.org/maven2/org/andromda/cartridges/andromda-bpm4
struts-cartridge/${andromda.version}/andromda-bpm4struts-cartridge-${andromda.ve
rsion}.jar
[WARNING] Unable to get resource from repository central
(http://repo1.maven.org
/maven2)
Downloading:
http://team.andromda.org/maven2/andromda/andromda-profile-datatype/
${andromda.version}/andromda-profile-datatype-${andromda.version}.xml.zip
[WARNING] Unable to get resource from repository andromda
(http://team.andromda.
org/maven2)
Downloading:
http://repo1.maven.org/maven2/andromda/andromda-profile-datatype/${
andromda.version}/andromda-profile-datatype-${andromda.version}.xml.zip
[WARNING] Unable to get resource from repository central
(http://repo1.maven.org
/maven2)
Downloading:
http://team.andromda.org/maven2/andromda/andromda-profile-persisten
ce/${andromda.version}/andromda-profile-persistence-${andromda.version}.xml.zip
[WARNING] Unable to get resource from repository andromda
(http://team.andromda.
org/maven2)
Downloading:
http://repo1.maven.org/maven2/andromda/andromda-profile-persistence
/${andromda.version}/andromda-profile-persistence-${andromda.version}.xml.zip
[WARNING] Unable to get resource from repository central
(http://repo1.maven.org
/maven2)
Downloading:
http://team.andromda.org/maven2/org/andromda/cartridges/andromda-ja
va-cartridge/${andromda.version}/andromda-java-cartridge-${andromda.version}.jar

[WARNING] Unable to get resource from repository andromda
(http://team.andromda.
org/maven2)
Downloading:
http://repo1.maven.org/maven2/org/andromda/cartridges/andromda-java
-cartridge/${andromda.version}/andromda-java-cartridge-${andromda.version}.jar
[WARNING] Unable to get resource from repository central
(http://repo1.maven.org




htmlDIVFONT color=#330099
PSerafettin SenturkBRBRComputer Engineer (BSc)
BRBRMScin Software Technology - Stuttgart Uni. of Applied Sciences
BRBRTel. (0532)4037784 BRBRAddress.Haci Hesna Hatun Mah.
Yeni Dunya Sok. DeryaApt. 21/4 Üsküdar/P/FONT
P/P
P/P
P/P/DIV/html

_
En etkili ve güvenilir PC Korumayi tercih edin, rahat edin!
http://www.msn.com.tr/security/


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





--
Mylene

Books just wanna be FREE! See what I mean at:
http://bookcrossing.com/friend/mylene

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



[M2] Repository definition

2005-11-09 Thread Jörg Schaible
Hi folks,

the reference guide defines the release and snapshot tags as children of the 
repository or pluginRepository tags. If I define them in my settings.xml, Maven 
claims that they are not recognized:

[1] [EMAIL PROTECTED] ~/Elsag/buildsystem/sample-maven-project
$ mvn projecthelp:active-profiles
Error reading settings.xml: Unrecognised tag: 'release' (position: START_TAG 
seen ...repository\r\nrelease... @23:30) 
  Line:   23
  Column: 30

[1] [EMAIL PROTECTED] ~/Elsag/buildsystem/sample-maven-project
$ mvn projecthelp:active-profiles
Error reading settings.xml: Unrecognised tag: 'snapshot' (position: START_TAG 
seen .../release --\r\nsnapshot... @27:31) 
  Line:   27
  Column: 31

How do I define different repos for snapshot/release artifacts?

- Jörg

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



Re: [M2] Repository definition

2005-11-09 Thread Brett Porter
snapshots and releases (there is an error in the documenter that
is stripping plurals on non-lists).

- Brett

On 11/9/05, Jörg Schaible [EMAIL PROTECTED] wrote:
 Hi folks,

 the reference guide defines the release and snapshot tags as children of the 
 repository or pluginRepository tags. If I define them in my settings.xml, 
 Maven claims that they are not recognized:

 [1] [EMAIL PROTECTED] ~/Elsag/buildsystem/sample-maven-project
 $ mvn projecthelp:active-profiles
 Error reading settings.xml: Unrecognised tag: 'release' (position: START_TAG 
 seen ...repository\r\nrelease... @23:30)
   Line:   23
   Column: 30

 [1] [EMAIL PROTECTED] ~/Elsag/buildsystem/sample-maven-project
 $ mvn projecthelp:active-profiles
 Error reading settings.xml: Unrecognised tag: 'snapshot' (position: START_TAG 
 seen .../release --\r\nsnapshot... @27:31)
   Line:   27
   Column: 31

 How do I define different repos for snapshot/release artifacts?

 - Jörg

 -
 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]



Re: [M2] Repository definition

2005-11-09 Thread Jason van Zyl
On Wed, 2005-11-09 at 10:31 +0100, Jörg Schaible wrote:
 Hi folks,
 
 the reference guide defines the release and snapshot tags as children of the 
 repository or pluginRepository tags. If I define them in my settings.xml, 
 Maven claims that they are not recognized:

Can you point me at which reference guide so I can fix it, or better yet
put it in JIRA.

 [1] [EMAIL PROTECTED] ~/Elsag/buildsystem/sample-maven-project
 $ mvn projecthelp:active-profiles
 Error reading settings.xml: Unrecognised tag: 'release' (position: START_TAG 
 seen ...repository\r\nrelease... @23:30) 
   Line:   23
   Column: 30
 
 [1] [EMAIL PROTECTED] ~/Elsag/buildsystem/sample-maven-project
 $ mvn projecthelp:active-profiles
 Error reading settings.xml: Unrecognised tag: 'snapshot' (position: START_TAG 
 seen .../release --\r\nsnapshot... @27:31) 
   Line:   27
   Column: 31
 
 How do I define different repos for snapshot/release artifacts?

You can currently look at Maven's parent POM for an example:

http://svn.apache.org/viewcvs.cgi/*checkout*/maven/components/trunk/pom.xml?rev=329741

 - Jörg
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
-- 
jvz.

Jason van Zyl
jason at maven.org
http://maven.apache.org

believe nothing, no matter where you read it,
or who has said it,
not even if i have said it,
unless it agrees with your own reason
and your own common sense.

 -- Buddha


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



RE: [M2] Repository definition

2005-11-09 Thread Jörg Schaible
Jason van Zyl wrote on Wednesday, November 09, 2005 4:10 PM:

 On Wed, 2005-11-09 at 10:31 +0100, Jörg Schaible wrote:
 Hi folks,
 
 the reference guide defines the release and snapshot tags as children
 of the repository or pluginRepository tags. If I define them in my
 settings.xml, Maven claims that they are not recognized:
 
 Can you point me at which reference guide so I can fix it

It's the reference for pom.xml and settings.xml:
http://maven.apache.org/maven-model/maven.html
http://maven.apache.org/maven-settings/settings.html

As Brett said, there are some tags that misses an 's' at the end of their name:

/settings/profiles/profile/activation/os
/settings/profiles/profile/repositories/repository/releases
/settings/profiles/profile/repositories/repository/snapshots
/settings/profiles/profile/pluginRepositories/pluginRepository/releases
/settings/profiles/profile/pluginRepositories/pluginRepository/snapshots
/project/profiles/profile/activation/os
/project/profiles/profile/repositories/repository/releases
/project/profiles/profile/repositories/repository/snapshots
/project/profiles/profile/pluginRepositories/pluginRepository/releases
/project/profiles/profile/pluginRepositories/pluginRepository/snapshots
/project/repositories/repository/releases
/project/repositories/repository/snapshots
/project/pluginRepositories/pluginRepository/releases
/project/pluginRepositories/pluginRepository/snapshots

Not sure, how these two guides are generated tough.

 or better yet put it in JIRA.

http://jira.codehaus.org/browse/MNG-1478

- Jörg

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