No refresh for build view on one project

2007-11-20 Thread Christophe Lechenne
Hi all,

Monday morning, I deleted some build on this project using delete button.
From this time, I can't see new build for this project although I can find
build file in \webapp\WEB-INF\build-output-directory\projectId directory.

We are using 1.1-beta-3 version on windows 2000.

Any idea ?

Regards,
Christophe


RE: need to change the directory of build.xml

2007-11-20 Thread Pallavi.Satish
Thanks

-Original Message-
From: Emmanuel Venisse [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 20, 2007 3:03 PM
To: continuum-users@maven.apache.org
Subject: Re: need to change the directory of build.xml

you should define the build.xml path in the build definition.

Emmanuel

[EMAIL PROTECTED] a écrit :
 Hi all,
 
 I am building my project which has its build.xml in different directory
 not with src. Is it possible to define directory of build.xml in
 continuum?
 
 Thanks  regards
 Pallavi 
 
 


Re: need to change the directory of build.xml

2007-11-20 Thread Emmanuel Venisse

you should define the build.xml path in the build definition.

Emmanuel

[EMAIL PROTECTED] a écrit :

Hi all,

I am building my project which has its build.xml in different directory
not with src. Is it possible to define directory of build.xml in
continuum?

Thanks  regards
Pallavi 







Re: Building project root as recursive build

2007-11-20 Thread Emmanuel Venisse


ArneD a écrit :

I noticed two problems with building the root of a projcet as a recursive
build. I'm still on 1.1-beta-3, but at least from the release notes I could
not see anything that this has been changed for 1.1-beta-4 or the 1.1 RC.

First of all, when adding a Maven 2.0+ project using a POM url, with the
checkbox For multi modules project, load only root as recursive build
enabled, still all sub-modules get added to Continuum and must be removed
manually afterwards.


I can't remember if it was a problem inbeta-3 but I tested with beta-4 and 1.1 
final (that should be released in few days) and I have only the parent pom 
added.



The second problem is regarding automatic builds in case one of the
dependencies has changed. Only the dependencies of the root module seem to
be considered. The project information page on multi-module projects also
only shows the dependencies of the root module.


If you use the recursive mode without sub-modules, continuum doesn't know 
sub-modules so it doesn't know sub-dependencies.

In future versions, you'll can add some dependencies between continuum projects 
to create links between them but not in 1.1

Emmanuel


Am I missing something? Should I file an issue?

Thanks
- Arne




need to change the directory of build.xml

2007-11-20 Thread Pallavi.Satish

Hi all,

I am building my project which has its build.xml in different directory
not with src. Is it possible to define directory of build.xml in
continuum?

Thanks  regards
Pallavi 


Re: need to change the directory of build.xml

2007-11-20 Thread Emmanuel Venisse

look at CONTINUUM_WORKING_DIRECTORY/PROJECT_ID/build/ if your file exist

Emmanuel

[EMAIL PROTECTED] a écrit :
Hey while trying to do so I am getting this error 


Buildfile: build\build.xml does not exist!
Build failed

Thanks
Pallavi 


-Original Message-
From: Emmanuel Venisse [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 20, 2007 3:25 PM

To: continuum-users@maven.apache.org
Subject: Re: need to change the directory of build.xml

buildDefinition.xml ??? what is this file?

I'm talking about build definition in the Continuum UI in the project group or 
in the project.

Emmanuel

[EMAIL PROTECTED] a écrit :

Hi,

Are you talking about buildDefinition.xml file if yes then in which attribute. 
kindly explain.

Thanks 
Pallavi Satish 


-Original Message-
From: Emmanuel Venisse [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 20, 2007 3:03 PM

To: continuum-users@maven.apache.org
Subject: Re: need to change the directory of build.xml

you should define the build.xml path in the build definition.

Emmanuel

[EMAIL PROTECTED] a écrit :

Hi all,

I am building my project which has its build.xml in different directory
not with src. Is it possible to define directory of build.xml in
continuum?

Thanks  regards
Pallavi 












Re: help with assembly plugin

2007-11-20 Thread Gunnar Boström

Hi,
Thanks for trying to help but the problem is with the multi-module project.
If I run mvn package from the module directory it works correctly.
If I run mvn package from the parent directory the line endings will not be
converted! 
As I write I managed to get this working for a single file by starting the
source tag with a slash i.e. 
source/src/..source
:-)

Mick Knutson-4 wrote:
 
 formats
 formattar/format
 /formats
 
 
 Then make sure the ascii files you are adding are like:
 
 file
 source/src/main/resources/deploy/deploy-configs.sh/source
 outputDirectory/outputDirectory
 destNamedeploy-configs.sh/destName
 filteredtrue/filtered
 *lineEndingunix/lineEnding*
 fileMode0754/fileMode
 /file
 
 
 On Nov 19, 2007 9:01 AM, Gunnar Boström [EMAIL PROTECTED]
 wrote:
 

 Hi,
 I use the maven-assembly-plugin to create a zip file on windows XP.
 It works ok, with one problem.
 The zip file will be unzipped on a Solaris computer so I need to fix the
 line endings. This works fine if I do mvn package directly in a module,
 but
 if I run mvn package from the master it will not do the conversion.

 [INFO] Reading assembly descriptor:
 D:\SERF\dev\serf-server\src\main\assembly\bin.xml
 [INFO] No files selected for line-ending conversion. Skipping:
 src/main/scripts/expect

 The corresponding line in the pom file is
 directorysrc/main/scripts/expect/directory

 So what can I do?

 Regards
 Gunnar
 --
 View this message in context:
 http://www.nabble.com/help-with-assembly-plugin-tf4837763s177.html#a13840413
 Sent from the Maven - Users mailing list archive at Nabble.com.


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


 
 
 -- 
 
 Thanks,
 Mick Knutson
 
 http://www.baselogic.com
 http://www.blincmagazine.com
 http://www.djmick.com
 http://www.myspace.com/mickknutson
 http://www.myspace.com/djmick_dot_com
 http://www.myspace.com/sexybeotches
 http://www.thumpradio.com
 ---
 
 

-- 
View this message in context: 
http://www.nabble.com/help-with-assembly-plugin-tf4837763s177.html#a13852445
Sent from the Maven - Users mailing list archive at Nabble.com.


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



[M2]Eclipse WTP, dependency, deployement, libraries

2007-11-20 Thread Michael Bernagou
Hi,

I'm new to M2 and I use Eclipse 3.2 WTP, Maven 2.0.7 and the latest maven
plugin for eclipse. I use the server integration in Eclipse to test my
webapp and I set the dependency in my pom.xml. For example, I develop a
Tapestry webapp so I added the tapestry-core-5.0.6 dependency in the pom.xml
.

The build is done normally but when I start the server, the libraries
defined in the pom.xml are not copyed in the Tomcat instance managed by
Eclipse WTP.
I tried all the different scope and none of them deploy the libs. I tried
also to specify in Eclipse the Maven dependency should be Export
(Project/Build Path/Order Export/check the boxes).

For the scope system I tried to specifyed the absolute path where I would
like to have my libraries (WEB-INF/lib) but it is finally not the goal of
this scope since it is just to refer a system library needed.

A solution is to copy the lib I need in my webaap/WEB-INF/lib but then M2
would be useless in this case.
So, what did I miss?

Thanks


-- 
Michael Bernagou
Java Developper


Doxia Macro in a xdoc file

2007-11-20 Thread Rémy Sanlaville
Hi,

I wanted to add a TOC to my xdoc files.
In the Doxia web site, the Doxia Macros Guide explains that it exists a TOC
Macro (cf.
http://maven.apache.org/doxia/macros/index.html).

In a xdoc file, it will be:

macro name=toc
  param name=section value=2/
  param name=fromDepth value=0/
  param name=toDepth value=4/
/macro


So I tried it but it does not work.

[ERROR] Error parsing P:\project-site\src\site\xdoc\installation.xml: lin
e [-1] Error parsing the model.
org.apache.maven.doxia.parser.ParseException: Error parsing the model.
at org.apache.maven.doxia.module.xdoc.XdocParser.parse(
XdocParser.java:55)
at org.apache.maven.doxia.DefaultDoxia.parse(DefaultDoxia.java:52)
at
org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.renderDocument(
DefaultSiteRenderer.java:264)
at
org.apache.maven.doxia.siterenderer.DoxiaDocumentRenderer.renderDocument(
DoxiaDocumentRenderer.java:43)
at
org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.renderModule(
DefaultSiteRenderer.java:239)
at org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.render(
DefaultSiteRenderer.java:115)
at org.apache.maven.plugins.site.SiteMojo.renderLocale(SiteMojo.java
:124)
at org.apache.maven.plugins.site.SiteMojo.execute(SiteMojo.java:92)
at org.apache.maven.plugin.DefaultPluginManager.executeMojo(
DefaultPluginManager.java:443)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
DefaultLifecycleExecutor.java:539)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle
(DefaultLifecycleExecutor.java:48
0)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(
DefaultLifecycleExecutor.java:459)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures
(DefaultLifecycleExecutor.jav
a:311)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
DefaultLifecycleExecutor.java:278)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(
DefaultLifecycleExecutor.java:143)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:280)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java
:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java
:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.doxia.macro.manager.MacroNotFoundException:
Cannot find macro with id = null
at org.apache.maven.doxia.macro.manager.DefaultMacroManager.getMacro
(DefaultMacroManager.java:43)
at org.apache.maven.doxia.parser.AbstractParser.executeMacro(
AbstractParser.java:44)
at org.apache.maven.doxia.module.xdoc.XdocParser.parseXdoc(
XdocParser.java:177)
at org.apache.maven.doxia.module.xdoc.XdocParser.parse(
XdocParser.java:51)
... 25 more

I don't what's wrong and what to do...
I haven't found for the moment a project or sample using the TOC macro.

Rémy


RE: [M2]Eclipse WTP, dependency, deployement, libraries

2007-11-20 Thread Beelen, M. - SPLXL
Michael,

For running (and debugging) my eclipse projects in tomcat I am using the
Sysdeo tomcat plugin. (http://www.eclipsetotale.com/tomcatPlugin.html)

It offers the ability to start and stop tomcat from Eclipse and more
importantly contains a additional DevLoader, which you can add to your
tomcat-configuration, which ensure that the libraries referenced in your
project configuration are loaded in the webContext within tomcat.
If your project refers to the libs in your M2-repo, then those libs will
be loaded.

It is really using WTP, but it works like a charm for me.
(Note: You do have to select which libs you want to include in the
classpath of the webContext, so you can ignore those dependancies on the
classpath for the scope provided or or test)

With kind regards,
  Marco Beelen



 

-Original Message-
From: Michael Bernagou [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 20, 2007 9:49 AM
To: users@maven.apache.org
Subject: [M2]Eclipse WTP, dependency, deployement, libraries

Hi,

I'm new to M2 and I use Eclipse 3.2 WTP, Maven 2.0.7 and the latest
maven plugin for eclipse. I use the server integration in Eclipse to
test my webapp and I set the dependency in my pom.xml. For example, I
develop a Tapestry webapp so I added the tapestry-core-5.0.6 dependency
in the pom.xml .

The build is done normally but when I start the server, the libraries
defined in the pom.xml are not copyed in the Tomcat instance managed by
Eclipse WTP.
I tried all the different scope and none of them deploy the libs. I
tried also to specify in Eclipse the Maven dependency should be Export
(Project/Build Path/Order Export/check the boxes).

For the scope system I tried to specifyed the absolute path where I
would like to have my libraries (WEB-INF/lib) but it is finally not the
goal of this scope since it is just to refer a system library needed.

A solution is to copy the lib I need in my webaap/WEB-INF/lib but then
M2 would be useless in this case.
So, what did I miss?

Thanks


--
Michael Bernagou
Java Developper
**
For information, services and offers, please visit our web site:
http://www.klm.com. This e-mail and any attachment may contain
confidential and privileged material intended for the addressee
only. If you are not the addressee, you are notified that no part
of the e-mail or any attachment may be disclosed, copied or
distributed, and that any other action related to this e-mail or
attachment is strictly prohibited, and may be unlawful. If you have
received this e-mail by error, please notify the sender immediately
by return e-mail, and delete this message. 

Koninklijke Luchtvaart Maatschappij NV (KLM), its subsidiaries
and/or its employees shall not be liable for the incorrect or
incomplete transmission of this e-mail or any attachments, nor
responsible for any delay in receipt.
Koninklijke Luchtvaart Maatschappij N.V. (also known as KLM Royal
Dutch Airlines) is registered in Amstelveen, The Netherlands, with
registered number 33014286 
**

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



Using maven-antrun-plugin

2007-11-20 Thread Vishal Pahwa

Hi

I am using maven2.0.6 and i need to execute ant build script from maven
so i use maven-antrun-plugin and the configuration is like.

  plugin
artifactIdmaven-antrun-plugin/artifactId
version1.1/version
executions
 execution
iddocbook/id
phaseinstall/phase
goals
  goalrun/goal
/goals
configuration
  tasks

  ant antfile=build.xml
 dir=${basedir}/

  /tasks
   /configuration
/execution

plugin

but i need to specify parameters also. like :  ant -l deploy.log
-Dtarget.env=local vcm-deploy

can aneone please tell me where i can specify these parameters.

Regards
Vishal. 


RE: need to change the directory of build.xml

2007-11-20 Thread Pallavi.Satish
Hey while trying to do so I am getting this error 

Buildfile: build\build.xml does not exist!
Build failed

Thanks
Pallavi 

-Original Message-
From: Emmanuel Venisse [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 20, 2007 3:25 PM
To: [EMAIL PROTECTED]
Subject: Re: need to change the directory of build.xml

buildDefinition.xml ??? what is this file?

I'm talking about build definition in the Continuum UI in the project group or 
in the project.

Emmanuel

[EMAIL PROTECTED] a écrit :
 Hi,
 
 Are you talking about buildDefinition.xml file if yes then in which 
 attribute. kindly explain.
 
 Thanks 
 Pallavi Satish 
 
 -Original Message-
 From: Emmanuel Venisse [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, November 20, 2007 3:03 PM
 To: [EMAIL PROTECTED]
 Subject: Re: need to change the directory of build.xml
 
 you should define the build.xml path in the build definition.
 
 Emmanuel
 
 [EMAIL PROTECTED] a écrit :
 Hi all,

 I am building my project which has its build.xml in different directory
 not with src. Is it possible to define directory of build.xml in
 continuum?

 Thanks  regards
 Pallavi 


 
 


[M2] maven-dependency-plugin vs. dependency-maven-plugin

2007-11-20 Thread CodingPlayer

hi,

does anyone know which of these plugins is still maintained?
(meaning what plugin should i use, and which is the current version?)

http://mirrors.ibiblio.org/pub/mirrors/maven2/maven/maven-dependency-plugin/

http://mirrors.ibiblio.org/pub/mirrors/maven2/org/codehaus/mojo/dependency-maven-plugin/

since both of them seem to be quite old, i wonder if there is a newer
release version somewhere?

thx 4 help
R.C.
-- 
View this message in context: 
http://www.nabble.com/-M2--maven-dependency-plugin-vs.-dependency-maven-plugin-tf4842466s177.html#a13854145
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: maven-javadoc report fails

2007-11-20 Thread aldana

i had a look at http://jira.codehaus.org/browse/MJAVADOC-101, it was told to
be resolved, but still occurs in my project (though i am using version 2.3).


aldana wrote:
 
 hi, 
 
 i've got problems with javadoc report plugin
 org.apache.maven.plugins:maven-javadoc-plugin:2.3. it breaks during page
 generation (see below). log mentions 1 error. but i only see warnings from
 javadoc, no hint what the real breaking error is. 
 
 some more informations:
 1) report works in other projects (that means, with other poms)
 2) generation of javadoc of failing project works fine, when executed
 inside eclipse
 3) when executing maven with -e flag i do not get more detailed
 information, just stack-trace shown with MavenReportException.
 
 what is going wrong, too many warnings to handle? any workarounds?
 
 1 error
 103 warnings
 [INFO]
 
 [ERROR] BUILD ERROR
 [INFO]
 
 [INFO] Error during page generation
 
 Embedded error: Error rendering Maven report: Exit code: 1 
 
 

-- 
View this message in context: 
http://www.nabble.com/maven-javadoc-report-fails-tf4842387s177.html#a13854143
Sent from the Maven - Users mailing list archive at Nabble.com.


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



RE: need to change the directory of build.xml

2007-11-20 Thread Pallavi.Satish
Yupp I got that Thanks

-Original Message-
From: Emmanuel Venisse [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 20, 2007 3:25 PM
To: [EMAIL PROTECTED]
Subject: Re: need to change the directory of build.xml

buildDefinition.xml ??? what is this file?

I'm talking about build definition in the Continuum UI in the project group or 
in the project.

Emmanuel

[EMAIL PROTECTED] a écrit :
 Hi,
 
 Are you talking about buildDefinition.xml file if yes then in which 
 attribute. kindly explain.
 
 Thanks 
 Pallavi Satish 
 
 -Original Message-
 From: Emmanuel Venisse [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, November 20, 2007 3:03 PM
 To: [EMAIL PROTECTED]
 Subject: Re: need to change the directory of build.xml
 
 you should define the build.xml path in the build definition.
 
 Emmanuel
 
 [EMAIL PROTECTED] a écrit :
 Hi all,

 I am building my project which has its build.xml in different directory
 not with src. Is it possible to define directory of build.xml in
 continuum?

 Thanks  regards
 Pallavi 


 
 


maven-javadoc report fails

2007-11-20 Thread aldana

hi, 

i've got problems with javadoc report plugin
org.apache.maven.plugins:maven-javadoc-plugin:2.3. it breaks during page
generation (see below). log mentions 1 error. but i only see warnings from
javadoc, no hint what the real breaking error is. 

some more informations:
1) report works in other projects (that means, with other poms)
2) generation of javadoc of failing project works fine, when executed inside
eclipse
3) when executing maven with -e flag i do not get more detailed information,
just stack-trace shown with MavenReportException.

what is going wrong, too many warnings to handle? any workarounds?

1 error
103 warnings
[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] Error during page generation

Embedded error: Error rendering Maven report: Exit code: 1 

-- 
View this message in context: 
http://www.nabble.com/maven-javadoc-report-fails-tf4842387s177.html#a13853959
Sent from the Maven - Users mailing list archive at Nabble.com.


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



RE: need to change the directory of build.xml

2007-11-20 Thread Pallavi.Satish
Hi,

Are you talking about buildDefinition.xml file if yes then in which attribute. 
kindly explain.

Thanks 
Pallavi Satish 

-Original Message-
From: Emmanuel Venisse [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 20, 2007 3:03 PM
To: [EMAIL PROTECTED]
Subject: Re: need to change the directory of build.xml

you should define the build.xml path in the build definition.

Emmanuel

[EMAIL PROTECTED] a écrit :
 Hi all,
 
 I am building my project which has its build.xml in different directory
 not with src. Is it possible to define directory of build.xml in
 continuum?
 
 Thanks  regards
 Pallavi 
 
 


Re: need to change the directory of build.xml

2007-11-20 Thread Emmanuel Venisse

buildDefinition.xml ??? what is this file?

I'm talking about build definition in the Continuum UI in the project group or 
in the project.

Emmanuel

[EMAIL PROTECTED] a écrit :

Hi,

Are you talking about buildDefinition.xml file if yes then in which attribute. 
kindly explain.

Thanks 
Pallavi Satish 


-Original Message-
From: Emmanuel Venisse [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 20, 2007 3:03 PM

To: [EMAIL PROTECTED]
Subject: Re: need to change the directory of build.xml

you should define the build.xml path in the build definition.

Emmanuel

[EMAIL PROTECTED] a écrit :

Hi all,

I am building my project which has its build.xml in different directory
not with src. Is it possible to define directory of build.xml in
continuum?

Thanks  regards
Pallavi 










[M2] repositories (central, codehaus, java.net)

2007-11-20 Thread CodingPlayer

Hi,

i currently reorganize my repositories within my artifactory installation
(artifact cache).

and i wonder which of these repositories is correct:

*  central
  o http://www.ibiblio.org/pub/packages/maven2/
  o http://www.ibiblio.org/maven2
  o http://repo1.maven.org/maven2 (mirror of ibiblio) 
  o http://mirrors.ibiblio.org/pub/mirrors/maven2

* codehaus
  o release
+ http://dist.codehaus.org
+ http://repository.codehaus.org
  o snapshot
+ http://snapshots.repository.codehaus.org 

* java.net
  o maven1 (still some artifacts are found in the old legacy repo)
+ https://maven-repository.dev.java.net/repository/
  x http mirror: http://download.java.net/maven/1 
  o maven2
+ http://download.java.net/maven/2 

it would be nice if someone could tell me which of these repositories are
kept up-to-date and which of them are old URLs/domains. (or mirrors of
others).

do i miss some (important) repositories (not listed above)?

thx 4 help
R.C.

-- 
View this message in context: 
http://www.nabble.com/-M2--repositories-%28central%2C-codehaus%2C-java.net%29-tf4842621s177.html#a13854510
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: [M2]Eclipse WTP, dependency, deployement, libraries

2007-11-20 Thread Michael Bernagou
So, the problem seems to be in the WTP part which do not take care about M2
(the plugin neither).
It's the first time I used M2 and this repository system was a good idea,
but if to use it I need another development tool, it's very bad.
Thanks for answering, but I don't want to change again the way I develop
especially if I don't have a very good reason to use M2 such as sharing
libraries between projects. Yes, my librairies are used only in this project
and I don't see the need of M2 in this context.

Hope the next WTP will have also a DevLoader...

2007/11/20, Beelen, M. - SPLXL [EMAIL PROTECTED]:

 Michael,

 For running (and debugging) my eclipse projects in tomcat I am using the
 Sysdeo tomcat plugin. (http://www.eclipsetotale.com/tomcatPlugin.html)

 It offers the ability to start and stop tomcat from Eclipse and more
 importantly contains a additional DevLoader, which you can add to your
 tomcat-configuration, which ensure that the libraries referenced in your
 project configuration are loaded in the webContext within tomcat.
 If your project refers to the libs in your M2-repo, then those libs will
 be loaded.

 It is really using WTP, but it works like a charm for me.
 (Note: You do have to select which libs you want to include in the
 classpath of the webContext, so you can ignore those dependancies on the
 classpath for the scope provided or or test)

 With kind regards,
   Marco Beelen





 -Original Message-
 From: Michael Bernagou [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, November 20, 2007 9:49 AM
 To: users@maven.apache.org
 Subject: [M2]Eclipse WTP, dependency, deployement, libraries

 Hi,

 I'm new to M2 and I use Eclipse 3.2 WTP, Maven 2.0.7 and the latest
 maven plugin for eclipse. I use the server integration in Eclipse to
 test my webapp and I set the dependency in my pom.xml. For example, I
 develop a Tapestry webapp so I added the tapestry-core-5.0.6 dependency
 in the pom.xml .

 The build is done normally but when I start the server, the libraries
 defined in the pom.xml are not copyed in the Tomcat instance managed by
 Eclipse WTP.
 I tried all the different scope and none of them deploy the libs. I
 tried also to specify in Eclipse the Maven dependency should be Export
 (Project/Build Path/Order Export/check the boxes).

 For the scope system I tried to specifyed the absolute path where I
 would like to have my libraries (WEB-INF/lib) but it is finally not the
 goal of this scope since it is just to refer a system library needed.

 A solution is to copy the lib I need in my webaap/WEB-INF/lib but then
 M2 would be useless in this case.
 So, what did I miss?

 Thanks


 --
 Michael Bernagou
 Java Developper
 **
 For information, services and offers, please visit our web site:
 http://www.klm.com. This e-mail and any attachment may contain
 confidential and privileged material intended for the addressee
 only. If you are not the addressee, you are notified that no part
 of the e-mail or any attachment may be disclosed, copied or
 distributed, and that any other action related to this e-mail or
 attachment is strictly prohibited, and may be unlawful. If you have
 received this e-mail by error, please notify the sender immediately
 by return e-mail, and delete this message.

 Koninklijke Luchtvaart Maatschappij NV (KLM), its subsidiaries
 and/or its employees shall not be liable for the incorrect or
 incomplete transmission of this e-mail or any attachments, nor
 responsible for any delay in receipt.
 Koninklijke Luchtvaart Maatschappij N.V. (also known as KLM Royal
 Dutch Airlines) is registered in Amstelveen, The Netherlands, with
 registered number 33014286
 **

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




-- 
Michael Bernagou
Java Developper


Plans for releasing maven-eclipse-plugin-2.5?

2007-11-20 Thread Beelen, M. - SPLXL
Hello all,
 
I saw that the issues concerning WTP 2.0 support were closed as Fixed
for the maven-eclipse-plugin in version 2.5.
That version hasn't been released yet, which made me wonder when a new
release of the plug-in might be expected.
 
I know that very often open-source-projects can't/won't give any
estimates about release dates, since it frequently depends on volunteers
to do the job. So I tried to find out what still needed to be done for
the 2.5-release, but in the issue tracker
(http://jira.codehaus.org/browse/MECLIPSE) I couldn't find any
versioning planning/actual roadmap information.
I would appreciate seeing some planning there and knowing whichs issues
are 'blocking' a release might trigger some developers (including me) to
devote some time on solving those issues.
 
I'll try to use the 2.5-SNAPSHOT to get the WTP-2.0 until the actual
release will become available.
 
With kind regards,
Marco Beelen
 


**
For information, services and offers, please visit our web site:
http://www.klm.com. This e-mail and any attachment may contain
confidential and privileged material intended for the addressee
only. If you are not the addressee, you are notified that no part
of the e-mail or any attachment may be disclosed, copied or
distributed, and that any other action related to this e-mail or
attachment is strictly prohibited, and may be unlawful. If you have
received this e-mail by error, please notify the sender immediately
by return e-mail, and delete this message. 

Koninklijke Luchtvaart Maatschappij NV (KLM), its subsidiaries
and/or its employees shall not be liable for the incorrect or
incomplete transmission of this e-mail or any attachments, nor
responsible for any delay in receipt.
Koninklijke Luchtvaart Maatschappij N.V. (also known as KLM Royal
Dutch Airlines) is registered in Amstelveen, The Netherlands, with
registered number 33014286 
**

RE: need to change the directory of build.xml

2007-11-20 Thread Pallavi.Satish
Thanks for all the help I am able to build now 

-Original Message-
From: Emmanuel Venisse [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 20, 2007 3:50 PM
To: [EMAIL PROTECTED]
Subject: Re: need to change the directory of build.xml

look at CONTINUUM_WORKING_DIRECTORY/PROJECT_ID/build/ if your file exist

Emmanuel

[EMAIL PROTECTED] a écrit :
 Hey while trying to do so I am getting this error 
 
 Buildfile: build\build.xml does not exist!
 Build failed
 
 Thanks
 Pallavi 
 
 -Original Message-
 From: Emmanuel Venisse [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, November 20, 2007 3:25 PM
 To: [EMAIL PROTECTED]
 Subject: Re: need to change the directory of build.xml
 
 buildDefinition.xml ??? what is this file?
 
 I'm talking about build definition in the Continuum UI in the project group 
 or in the project.
 
 Emmanuel
 
 [EMAIL PROTECTED] a écrit :
 Hi,

 Are you talking about buildDefinition.xml file if yes then in which 
 attribute. kindly explain.

 Thanks 
 Pallavi Satish 

 -Original Message-
 From: Emmanuel Venisse [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, November 20, 2007 3:03 PM
 To: [EMAIL PROTECTED]
 Subject: Re: need to change the directory of build.xml

 you should define the build.xml path in the build definition.

 Emmanuel

 [EMAIL PROTECTED] a écrit :
 Hi all,

 I am building my project which has its build.xml in different directory
 not with src. Is it possible to define directory of build.xml in
 continuum?

 Thanks  regards
 Pallavi 



 
 


Re: maven-javadoc report fails

2007-11-20 Thread aldana

i seemed to have resolved the error. was my mistake, there was a wrong html
document inside my package.html so it was failing. the eclipse javadoc
processor went through because it did not scan the src/main/javadoc folder.

sorry, wrong alert.


aldana wrote:
 
 i had a look at http://jira.codehaus.org/browse/MJAVADOC-101, it was told
 to be resolved, but still occurs in my project (though i am using version
 2.3).
 
 
 aldana wrote:
 
 hi, 
 
 i've got problems with javadoc report plugin
 org.apache.maven.plugins:maven-javadoc-plugin:2.3. it breaks during page
 generation (see below). log mentions 1 error. but i only see warnings
 from javadoc, no hint what the real breaking error is. 
 
 some more informations:
 1) report works in other projects (that means, with other poms)
 2) generation of javadoc of failing project works fine, when executed
 inside eclipse
 3) when executing maven with -e flag i do not get more detailed
 information, just stack-trace shown with MavenReportException.
 
 what is going wrong, too many warnings to handle? any workarounds?
 
 1 error
 103 warnings
 [INFO]
 
 [ERROR] BUILD ERROR
 [INFO]
 
 [INFO] Error during page generation
 
 Embedded error: Error rendering Maven report: Exit code: 1 
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/maven-javadoc-report-fails-tf4842387s177.html#a13854518
Sent from the Maven - Users mailing list archive at Nabble.com.


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



RE: [M2] maven-dependency-plugin vs. dependency-maven-plugin

2007-11-20 Thread Brian E. Fox
You want org.apache.maven.plugins:maven-dependency-plugin. Latest
release is 2.0-alpha-4.

http://maven.apache.org/plugins/maven-dependency-plugin

That ibiblio mirror is seriously slow. I think you should stop using it.
Use repo1.maven.org/maven2 instead. 

-Original Message-
From: CodingPlayer [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 20, 2007 5:12 AM
To: users@maven.apache.org
Subject: [M2] maven-dependency-plugin vs. dependency-maven-plugin


hi,

does anyone know which of these plugins is still maintained?
(meaning what plugin should i use, and which is the current version?)

http://mirrors.ibiblio.org/pub/mirrors/maven2/maven/maven-dependency-plu
gin/

http://mirrors.ibiblio.org/pub/mirrors/maven2/org/codehaus/mojo/dependen
cy-maven-plugin/

since both of them seem to be quite old, i wonder if there is a newer
release version somewhere?

thx 4 help
R.C.
-- 
View this message in context:
http://www.nabble.com/-M2--maven-dependency-plugin-vs.-dependency-maven-
plugin-tf4842466s177.html#a13854145
Sent from the Maven - Users mailing list archive at Nabble.com.


-
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: Building project root as recursive build

2007-11-20 Thread ArneD


Emmanuel Venisse wrote:
 
 
 ArneD a écrit :
 I noticed two problems with building the root of a projcet as a recursive
 build. I'm still on 1.1-beta-3, but at least from the release notes I
 could
 not see anything that this has been changed for 1.1-beta-4 or the 1.1 RC.
 
 First of all, when adding a Maven 2.0+ project using a POM url, with the
 checkbox For multi modules project, load only root as recursive build
 enabled, still all sub-modules get added to Continuum and must be removed
 manually afterwards.
 
 I can't remember if it was a problem inbeta-3 but I tested with beta-4 and
 1.1 final (that should be released in few days) and I have only the parent
 pom added.
 

Thanks, I'll try again with 1.1 after the release, and would file a bug in
case it occurs again.



 
 
 The second problem is regarding automatic builds in case one of the
 dependencies has changed. Only the dependencies of the root module seem
 to
 be considered. The project information page on multi-module projects
 also
 only shows the dependencies of the root module.
 
 If you use the recursive mode without sub-modules, continuum doesn't know
 sub-modules so it doesn't know sub-dependencies.
 
 In future versions, you'll can add some dependencies between continuum
 projects to create links between them but not in 1.1
 
 

Wouldn't it be possible and desireable for Continuum to evaluate the modules
section of the root POM and then the POMs of all relevant sub-modules in
order to determine the correct dependencies?

Thanks
- Arne


-- 
View this message in context: 
http://www.nabble.com/Building-project-root-as-recursive-build-tf4841777.html#a13855880
Sent from the Continuum - Users mailing list archive at Nabble.com.



Re: Plans for releasing maven-eclipse-plugin-2.5?

2007-11-20 Thread nicolas de loof
Any chance to see MECLIPSE-172 patches beeing applied, and a new SNAPSHOT ?

Nico.

2007/11/20, Beelen, M. - SPLXL [EMAIL PROTECTED]:

 Hello all,

 I saw that the issues concerning WTP 2.0 support were closed as Fixed
 for the maven-eclipse-plugin in version 2.5.
 That version hasn't been released yet, which made me wonder when a new
 release of the plug-in might be expected.

 I know that very often open-source-projects can't/won't give any
 estimates about release dates, since it frequently depends on volunteers
 to do the job. So I tried to find out what still needed to be done for
 the 2.5-release, but in the issue tracker
 (http://jira.codehaus.org/browse/MECLIPSE) I couldn't find any
 versioning planning/actual roadmap information.
 I would appreciate seeing some planning there and knowing whichs issues
 are 'blocking' a release might trigger some developers (including me) to
 devote some time on solving those issues.

 I'll try to use the 2.5-SNAPSHOT to get the WTP-2.0 until the actual
 release will become available.

 With kind regards,
 Marco Beelen



 **
 For information, services and offers, please visit our web site:
 http://www.klm.com. This e-mail and any attachment may contain
 confidential and privileged material intended for the addressee
 only. If you are not the addressee, you are notified that no part
 of the e-mail or any attachment may be disclosed, copied or
 distributed, and that any other action related to this e-mail or
 attachment is strictly prohibited, and may be unlawful. If you have
 received this e-mail by error, please notify the sender immediately
 by return e-mail, and delete this message.

 Koninklijke Luchtvaart Maatschappij NV (KLM), its subsidiaries
 and/or its employees shall not be liable for the incorrect or
 incomplete transmission of this e-mail or any attachments, nor
 responsible for any delay in receipt.
 Koninklijke Luchtvaart Maatschappij N.V. (also known as KLM Royal
 Dutch Airlines) is registered in Amstelveen, The Netherlands, with
 registered number 33014286
 **


Re: Plans for releasing maven-eclipse-plugin-2.5?

2007-11-20 Thread Arnaud HERITIER
I'm working on it, but as you said it's difficult to plan a release, due to
personal/professionals constraints.
I would like to apply all patchs (or to reject them) actually in Jira to be
able in a future release to refactor the code of this plugin.
If I don't have too many problems this week we could hope to have a release
in one or two weeks.

Arnaud

On Nov 20, 2007 2:05 PM, nicolas de loof [EMAIL PROTECTED] wrote:

 Any chance to see MECLIPSE-172 patches beeing applied, and a new SNAPSHOT
 ?

 Nico.

 2007/11/20, Beelen, M. - SPLXL [EMAIL PROTECTED]:
 
  Hello all,
 
  I saw that the issues concerning WTP 2.0 support were closed as Fixed
  for the maven-eclipse-plugin in version 2.5.
  That version hasn't been released yet, which made me wonder when a new
  release of the plug-in might be expected.
 
  I know that very often open-source-projects can't/won't give any
  estimates about release dates, since it frequently depends on volunteers
  to do the job. So I tried to find out what still needed to be done for
  the 2.5-release, but in the issue tracker
  (http://jira.codehaus.org/browse/MECLIPSE) I couldn't find any
  versioning planning/actual roadmap information.
  I would appreciate seeing some planning there and knowing whichs issues
  are 'blocking' a release might trigger some developers (including me) to
  devote some time on solving those issues.
 
  I'll try to use the 2.5-SNAPSHOT to get the WTP-2.0 until the actual
  release will become available.
 
  With kind regards,
  Marco Beelen
 
 
 
  **
  For information, services and offers, please visit our web site:
  http://www.klm.com. This e-mail and any attachment may contain
  confidential and privileged material intended for the addressee
  only. If you are not the addressee, you are notified that no part
  of the e-mail or any attachment may be disclosed, copied or
  distributed, and that any other action related to this e-mail or
  attachment is strictly prohibited, and may be unlawful. If you have
  received this e-mail by error, please notify the sender immediately
  by return e-mail, and delete this message.
 
  Koninklijke Luchtvaart Maatschappij NV (KLM), its subsidiaries
  and/or its employees shall not be liable for the incorrect or
  incomplete transmission of this e-mail or any attachments, nor
  responsible for any delay in receipt.
  Koninklijke Luchtvaart Maatschappij N.V. (also known as KLM Royal
  Dutch Airlines) is registered in Amstelveen, The Netherlands, with
  registered number 33014286
  **




-- 
..
Arnaud HERITIER
..
OCTO Technology - aheritier AT octo DOT com
www.octo.com | blog.octo.com
..
ASF - aheritier AT apache DOT org
www.apache.org | maven.apache.org
...


Re: Maven, junit and Mock Classes

2007-11-20 Thread Francois Fernandes
Guten Tag Jan Torben Heuer,

Hi Jan,
 So where can I put both Mock Objects?

 Obviously not in the dao, because testclasses are not dependencies.
 So I would end up with a project for each or all MockObjects.

You may specify the test-classes as a dependency using the test-jar
mojo of the jar plugin:
http://maven.apache.org/plugins/maven-jar-plugin/test-jar-mojo.html

Using this, you'll have jars containing the test-classes which will be
available using the tests classifier

Using that technique, it is possible to place your mock-objects inside
project-dao (or project-core, if the class-level dependencies allow
you to do so).

hope that helps.


Francois




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



Re: Maven, junit and Mock Classes

2007-11-20 Thread Antonio Petrelli
2007/11/20, Jan Torben Heuer [EMAIL PROTECTED]:

 I have have (again) a design question, where to place Mock Classes for
 junit.



Mock classes can stay in the src/test/java directory. What's the problem?

Antonio


Maven, junit and Mock Classes

2007-11-20 Thread Jan Torben Heuer
I have have (again) a design question, where to place Mock Classes for
junit.

Example:

project-core (depends project-dao)
public TestSomeCoreFunctions {
DAO dao = new MockDAO();
...
}


project-dao
public interface dao {
public AccessObject1 do();
}

public interface AccessObject1 {

}



 
project-another module (depends project-core)
public TestSomeThing {
DAO dao = new MockDAO();
AccessObject1 ao = new MockAccessObject();
...
}

So where can I put both Mock Objects?

Obviously not in the dao, because testclasses are not dependencies.
So I would end up with a project for each or all MockObjects.

project-dao-mock (depends project-dao)
public class MockAccessObject implements AccessObject1..


This means in turn, that I COULD NOT use the mock objects in the project-dao
(circular dependencies), but I NEED them for my junit tests...

So what? I'm confused ;-)


Jan


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



Re: [M2]Eclipse WTP, dependency, deployement, libraries

2007-11-20 Thread Arnaud HERITIER
Did you activate the WTP support in the eclipse plugin for maven 2 ?
mvn eclipse:eclipse -Dwtpversion=1.5

It's working fine generally

TEll us if you have any problem, we'll try to solve them

Arnaud

On Nov 20, 2007 9:49 AM, Michael Bernagou [EMAIL PROTECTED] wrote:

 Hi,

 I'm new to M2 and I use Eclipse 3.2 WTP, Maven 2.0.7 and the latest maven
 plugin for eclipse. I use the server integration in Eclipse to test my
 webapp and I set the dependency in my pom.xml. For example, I develop a
 Tapestry webapp so I added the tapestry-core-5.0.6 dependency in the
 pom.xml
 .

 The build is done normally but when I start the server, the libraries
 defined in the pom.xml are not copyed in the Tomcat instance managed by
 Eclipse WTP.
 I tried all the different scope and none of them deploy the libs. I tried
 also to specify in Eclipse the Maven dependency should be Export
 (Project/Build Path/Order Export/check the boxes).

 For the scope system I tried to specifyed the absolute path where I
 would
 like to have my libraries (WEB-INF/lib) but it is finally not the goal of
 this scope since it is just to refer a system library needed.

 A solution is to copy the lib I need in my webaap/WEB-INF/lib but then M2
 would be useless in this case.
 So, what did I miss?

 Thanks


 --
 Michael Bernagou
 Java Developper




-- 
..
Arnaud HERITIER
..
OCTO Technology - aheritier AT octo DOT com
www.octo.com | blog.octo.com
..
ASF - aheritier AT apache DOT org
www.apache.org | maven.apache.org
...


Re: [M2]Eclipse WTP, dependency, deployement, libraries

2007-11-20 Thread Arnaud HERITIER
ok, sorry, I didn't see that you were new to M2.

You have actually several choices to work with maven 2 and eclipse.

The first one is to use a plugin in eclipse to launch maven 2 to build your
application.
There are 2 plugins actually for eclipse :
- http://code.google.com/p/q4e/ which we hope will be integrated in eclipse
in some monthes. When i tested it this plugin worked only with maven 2.1.x.
It should be transparent in most cases if you are using 2.0.x, but it's not
sure
- http://m2eclipse.codehaus.org/
Those plugins will give you some additional features in eclipse: For example
they'll help you to write your pom, add dependencies...
The problem with those plugins, is that they aren't supporting WTP if you
are developing a web application :-(

The other choice, is to use the plugin in maven to setup your project for
eclipse
http://maven.apache.org/plugins/maven-eclipse-plugin/
This plugin is used from maven in command line. It setup your eclipse
settings (build path, WTP support, ...).
You will have to regenerate your eclipse settings each time that you change
your pom (adding/removing a dependency for example).
After that you can import your project in eclipse and you'll use the
standard build of eclipse (Ctrl + B) to build your application. You'll also
be able to deploy your webapp on an application server using WTP

Hope, this helps

Arnaud


On Nov 20, 2007 2:51 PM, Michael Bernagou [EMAIL PROTECTED] wrote:

 Hum, I don't know how to do that.
 Ok I can create a bat file to launch the command but is it to do only
 once?

 2007/11/20, Arnaud HERITIER [EMAIL PROTECTED]:
 
  Did you activate the WTP support in the eclipse plugin for maven 2 ?
  mvn eclipse:eclipse -Dwtpversion=1.5
 
  It's working fine generally
 
  TEll us if you have any problem, we'll try to solve them
 
  Arnaud
 
  On Nov 20, 2007 9:49 AM, Michael Bernagou [EMAIL PROTECTED]
 wrote:
 
   Hi,
  
   I'm new to M2 and I use Eclipse 3.2 WTP, Maven 2.0.7 and the latest
  maven
   plugin for eclipse. I use the server integration in Eclipse to test my
   webapp and I set the dependency in my pom.xml. For example, I develop
 a
   Tapestry webapp so I added the tapestry-core-5.0.6 dependency in the
   pom.xml
   .
  
   The build is done normally but when I start the server, the libraries
   defined in the pom.xml are not copyed in the Tomcat instance managed
 by
   Eclipse WTP.
   I tried all the different scope and none of them deploy the libs. I
  tried
   also to specify in Eclipse the Maven dependency should be Export
   (Project/Build Path/Order Export/check the boxes).
  
   For the scope system I tried to specifyed the absolute path where I
   would
   like to have my libraries (WEB-INF/lib) but it is finally not the goal
  of
   this scope since it is just to refer a system library needed.
  
   A solution is to copy the lib I need in my webaap/WEB-INF/lib but then
  M2
   would be useless in this case.
   So, what did I miss?
  
   Thanks
  
  
   --
   Michael Bernagou
   Java Developper
  
 
 
 
  --
  ..
  Arnaud HERITIER
  ..
  OCTO Technology - aheritier AT octo DOT com
  www.octo.com | blog.octo.com
  ..
  ASF - aheritier AT apache DOT org
  www.apache.org | maven.apache.org
  ...
 



 --
 Michael Bernagou
 Java Developper




-- 
..
Arnaud HERITIER
..
OCTO Technology - aheritier AT octo DOT com
www.octo.com | blog.octo.com
..
ASF - aheritier AT apache DOT org
www.apache.org | maven.apache.org
...


Re: [M2]Eclipse WTP, dependency, deployement, libraries

2007-11-20 Thread Arnaud HERITIER
You have to launch it  in your project directory.

Arnaud

On Nov 20, 2007 3:01 PM, Michael Bernagou [EMAIL PROTECTED] wrote:

 So I did it :
 R:\java\tools\maven-2.0.7\binmvn eclipse:eclipse -Dwtpversion=1.5 -
 Declipse.workspace=R:\Michael\PersonalWS

 [INFO] Scanning for projects...
 [INFO] Searching repository for plugin with prefix: 'eclipse'.
 [INFO]
 -
 ---
 [INFO] Building Maven Default Project
 [INFO]task-segment: [eclipse:eclipse]
 [INFO]
 -
 ---
 [INFO] Preparing eclipse:eclipse
 [INFO] No goals needed for project - skipping
 [INFO]
 
 [ERROR] BUILD ERROR
 [INFO]
 
 [INFO] Cannot execute mojo: eclipse. It requires a project with an
 existing
 pom.
 xml, but the build is not using one.
 [INFO]
 
 [INFO] For more information, run Maven with the -e switch
 [INFO]
 
 [INFO] Total time:  1 second
 [INFO] Finished at: Tue Nov 20 14:57:30 CET 2007
 [INFO] Final Memory: 2M/4M
 [INFO]
 

 I notice it try to update maven-eclipse-plugin I already have and set (not
 visible in this log since it's another try).
 It fails because it didn't find a project with a pom.xml... but there is
 one, mine.
 Maybe something is missing such as the project name to target: -
 Declipse.project or something like that?

 2007/11/20, Michael Bernagou [EMAIL PROTECTED]:
 
  Hum, I don't know how to do that.
  Ok I can create a bat file to launch the command but is it to do only
  once?
 
  2007/11/20, Arnaud HERITIER  [EMAIL PROTECTED]:
  
   Did you activate the WTP support in the eclipse plugin for maven 2 ?
   mvn eclipse:eclipse -Dwtpversion=1.5
  
   It's working fine generally
  
   TEll us if you have any problem, we'll try to solve them
  
   Arnaud
  
   On Nov 20, 2007 9:49 AM, Michael Bernagou  [EMAIL PROTECTED]
   wrote:
  
Hi,
   
I'm new to M2 and I use Eclipse 3.2 WTP, Maven 2.0.7 and the latest
   maven
plugin for eclipse. I use the server integration in Eclipse to test
 my
  
webapp and I set the dependency in my pom.xml. For example, I
 develop
   a
Tapestry webapp so I added the tapestry-core-5.0.6 dependency in the
pom.xml
.
   
The build is done normally but when I start the server, the
 libraries
defined in the pom.xml are not copyed in the Tomcat instance managed
   by
Eclipse WTP.
I tried all the different scope and none of them deploy the libs. I
   tried
also to specify in Eclipse the Maven dependency should be Export
(Project/Build Path/Order Export/check the boxes).
   
For the scope system I tried to specifyed the absolute path where
 I
would
like to have my libraries (WEB-INF/lib) but it is finally not the
 goal
   of
this scope since it is just to refer a system library needed.
   
A solution is to copy the lib I need in my webaap/WEB-INF/lib but
 then
   M2
would be useless in this case.
So, what did I miss?
   
Thanks
   
   
--
Michael Bernagou
Java Developper
   
  
  
  
   --
   ..
   Arnaud HERITIER
   ..
   OCTO Technology - aheritier AT octo DOT com
   www.octo.com | blog.octo.com
   ..
   ASF - aheritier AT apache DOT org
   www.apache.org | maven.apache.org
   ...
  
 
 
 
  --
  Michael Bernagou
  Java Developper




 --
 Michael Bernagou
 Java Developper




-- 
..
Arnaud HERITIER
..
OCTO Technology - aheritier AT octo DOT com
www.octo.com | blog.octo.com
..
ASF - aheritier AT apache DOT org
www.apache.org | maven.apache.org
...


Re: [M2]Eclipse WTP, dependency, deployement, libraries

2007-11-20 Thread Michael Bernagou
So I did it :
R:\java\tools\maven-2.0.7\binmvn eclipse:eclipse -Dwtpversion=1.5 -
Declipse.workspace=R:\Michael\PersonalWS

[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'eclipse'.
[INFO]
-
---
[INFO] Building Maven Default Project
[INFO]task-segment: [eclipse:eclipse]
[INFO]
-
---
[INFO] Preparing eclipse:eclipse
[INFO] No goals needed for project - skipping
[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] Cannot execute mojo: eclipse. It requires a project with an existing
pom.
xml, but the build is not using one.
[INFO]

[INFO] For more information, run Maven with the -e switch
[INFO]

[INFO] Total time:  1 second
[INFO] Finished at: Tue Nov 20 14:57:30 CET 2007
[INFO] Final Memory: 2M/4M
[INFO]


I notice it try to update maven-eclipse-plugin I already have and set (not
visible in this log since it's another try).
It fails because it didn't find a project with a pom.xml... but there is
one, mine.
Maybe something is missing such as the project name to target: -
Declipse.project or something like that?

2007/11/20, Michael Bernagou [EMAIL PROTECTED]:

 Hum, I don't know how to do that.
 Ok I can create a bat file to launch the command but is it to do only
 once?

 2007/11/20, Arnaud HERITIER  [EMAIL PROTECTED]:
 
  Did you activate the WTP support in the eclipse plugin for maven 2 ?
  mvn eclipse:eclipse -Dwtpversion=1.5
 
  It's working fine generally
 
  TEll us if you have any problem, we'll try to solve them
 
  Arnaud
 
  On Nov 20, 2007 9:49 AM, Michael Bernagou  [EMAIL PROTECTED]
  wrote:
 
   Hi,
  
   I'm new to M2 and I use Eclipse 3.2 WTP, Maven 2.0.7 and the latest
  maven
   plugin for eclipse. I use the server integration in Eclipse to test my
 
   webapp and I set the dependency in my pom.xml. For example, I develop
  a
   Tapestry webapp so I added the tapestry-core-5.0.6 dependency in the
   pom.xml
   .
  
   The build is done normally but when I start the server, the libraries
   defined in the pom.xml are not copyed in the Tomcat instance managed
  by
   Eclipse WTP.
   I tried all the different scope and none of them deploy the libs. I
  tried
   also to specify in Eclipse the Maven dependency should be Export
   (Project/Build Path/Order Export/check the boxes).
  
   For the scope system I tried to specifyed the absolute path where I
   would
   like to have my libraries (WEB-INF/lib) but it is finally not the goal
  of
   this scope since it is just to refer a system library needed.
  
   A solution is to copy the lib I need in my webaap/WEB-INF/lib but then
  M2
   would be useless in this case.
   So, what did I miss?
  
   Thanks
  
  
   --
   Michael Bernagou
   Java Developper
  
 
 
 
  --
  ..
  Arnaud HERITIER
  ..
  OCTO Technology - aheritier AT octo DOT com
  www.octo.com | blog.octo.com
  ..
  ASF - aheritier AT apache DOT org
  www.apache.org | maven.apache.org
  ...
 



 --
 Michael Bernagou
 Java Developper




-- 
Michael Bernagou
Java Developper


Re: [M2]Eclipse WTP, dependency, deployement, libraries

2007-11-20 Thread Michael Bernagou
Hum, I don't know how to do that.
Ok I can create a bat file to launch the command but is it to do only once?

2007/11/20, Arnaud HERITIER [EMAIL PROTECTED]:

 Did you activate the WTP support in the eclipse plugin for maven 2 ?
 mvn eclipse:eclipse -Dwtpversion=1.5

 It's working fine generally

 TEll us if you have any problem, we'll try to solve them

 Arnaud

 On Nov 20, 2007 9:49 AM, Michael Bernagou [EMAIL PROTECTED] wrote:

  Hi,
 
  I'm new to M2 and I use Eclipse 3.2 WTP, Maven 2.0.7 and the latest
 maven
  plugin for eclipse. I use the server integration in Eclipse to test my
  webapp and I set the dependency in my pom.xml. For example, I develop a
  Tapestry webapp so I added the tapestry-core-5.0.6 dependency in the
  pom.xml
  .
 
  The build is done normally but when I start the server, the libraries
  defined in the pom.xml are not copyed in the Tomcat instance managed by
  Eclipse WTP.
  I tried all the different scope and none of them deploy the libs. I
 tried
  also to specify in Eclipse the Maven dependency should be Export
  (Project/Build Path/Order Export/check the boxes).
 
  For the scope system I tried to specifyed the absolute path where I
  would
  like to have my libraries (WEB-INF/lib) but it is finally not the goal
 of
  this scope since it is just to refer a system library needed.
 
  A solution is to copy the lib I need in my webaap/WEB-INF/lib but then
 M2
  would be useless in this case.
  So, what did I miss?
 
  Thanks
 
 
  --
  Michael Bernagou
  Java Developper
 



 --
 ..
 Arnaud HERITIER
 ..
 OCTO Technology - aheritier AT octo DOT com
 www.octo.com | blog.octo.com
 ..
 ASF - aheritier AT apache DOT org
 www.apache.org | maven.apache.org
 ...




-- 
Michael Bernagou
Java Developper


Re: [M2]Eclipse WTP, dependency, deployement, libraries

2007-11-20 Thread Michael Bernagou
Ok I did what you explain and something happended :D

It replace all my source by ... nothing and create a target/classes folder
in the root project. It deleted all the lib I had in WEB-INF/lib and put
only the 4 I had defined for test purpose in my pom.xml using the scope
system and added them as jar to import in the project and not webapp
libraries.

So, if I undestand well :
1- I must have all my libraries declared in the pom.xml
2- I have to define a build element in the pom.xml to define my src... (got
4 folder because of web services)
3- Each time my classpath should evolve I have to restart the .bat in my
project folder.
Then :
4- When I deploy for test in WTP, Eclipse take care of Maven and received
also the lib declared in the pom.xml
5- When I would like to deploy on prod I will use maven to create a war will
include all the lib in the right places.

Am I right?

2007/11/20, Arnaud HERITIER [EMAIL PROTECTED]:

 You have to launch it  in your project directory.

 Arnaud

 On Nov 20, 2007 3:01 PM, Michael Bernagou [EMAIL PROTECTED] wrote:

  So I did it :
  R:\java\tools\maven-2.0.7\binmvn eclipse:eclipse -Dwtpversion=1.5 -
  Declipse.workspace=R:\Michael\PersonalWS
 
  [INFO] Scanning for projects...
  [INFO] Searching repository for plugin with prefix: 'eclipse'.
  [INFO]
 
 -
  ---
  [INFO] Building Maven Default Project
  [INFO]task-segment: [eclipse:eclipse]
  [INFO]
 
 -
  ---
  [INFO] Preparing eclipse:eclipse
  [INFO] No goals needed for project - skipping
  [INFO]
  
  [ERROR] BUILD ERROR
  [INFO]
  
  [INFO] Cannot execute mojo: eclipse. It requires a project with an
  existing
  pom.
  xml, but the build is not using one.
  [INFO]
  
  [INFO] For more information, run Maven with the -e switch
  [INFO]
  
  [INFO] Total time:  1 second
  [INFO] Finished at: Tue Nov 20 14:57:30 CET 2007
  [INFO] Final Memory: 2M/4M
  [INFO]
  
 
  I notice it try to update maven-eclipse-plugin I already have and set
 (not
  visible in this log since it's another try).
  It fails because it didn't find a project with a pom.xml... but there is
  one, mine.
  Maybe something is missing such as the project name to target: -
  Declipse.project or something like that?
 
  2007/11/20, Michael Bernagou [EMAIL PROTECTED]:
  
   Hum, I don't know how to do that.
   Ok I can create a bat file to launch the command but is it to do only
   once?
  
   2007/11/20, Arnaud HERITIER  [EMAIL PROTECTED]:
   
Did you activate the WTP support in the eclipse plugin for maven 2 ?
mvn eclipse:eclipse -Dwtpversion=1.5
   
It's working fine generally
   
TEll us if you have any problem, we'll try to solve them
   
Arnaud
   
On Nov 20, 2007 9:49 AM, Michael Bernagou  [EMAIL PROTECTED]
wrote:
   
 Hi,

 I'm new to M2 and I use Eclipse 3.2 WTP, Maven 2.0.7 and the
 latest
maven
 plugin for eclipse. I use the server integration in Eclipse to
 test
  my
   
 webapp and I set the dependency in my pom.xml. For example, I
  develop
a
 Tapestry webapp so I added the tapestry-core-5.0.6 dependency in
 the
 pom.xml
 .

 The build is done normally but when I start the server, the
  libraries
 defined in the pom.xml are not copyed in the Tomcat instance
 managed
by
 Eclipse WTP.
 I tried all the different scope and none of them deploy the libs.
 I
tried
 also to specify in Eclipse the Maven dependency should be Export
 (Project/Build Path/Order Export/check the boxes).

 For the scope system I tried to specifyed the absolute path
 where
  I
 would
 like to have my libraries (WEB-INF/lib) but it is finally not the
  goal
of
 this scope since it is just to refer a system library needed.

 A solution is to copy the lib I need in my webaap/WEB-INF/lib but
  then
M2
 would be useless in this case.
 So, what did I miss?

 Thanks


 --
 Michael Bernagou
 Java Developper

   
   
   
--
..
Arnaud HERITIER
..
OCTO Technology - aheritier AT octo DOT com
www.octo.com | blog.octo.com
..
ASF - aheritier AT apache DOT org
www.apache.org | maven.apache.org
...
   
  
  
  
   --
   Michael Bernagou
   Java Developper
 
 

Re: [M2]Eclipse WTP, dependency, deployement, libraries

2007-11-20 Thread Arnaud HERITIER
On Nov 20, 2007 3:19 PM, Michael Bernagou [EMAIL PROTECTED] wrote:

 Ok I did what you explain and something happended :D

 It replace all my source by ... nothing and create a target/classes folder
 in the root project. It deleted all the lib I had in WEB-INF/lib and put
 only the 4 I had defined for test purpose in my pom.xml using the scope
 system and added them as jar to import in the project and not webapp
 libraries.

 So, if I undestand well :
 1- I must have all my libraries declared in the pom.xml


yes


 2- I have to define a build element in the pom.xml to define my src...
 (got
 4 folder because of web services)

Be careful, conventions in maven are to have only one src folder by langage
(src/main/java) and one artifact (a jar, a war, ..) per project.


 3- Each time my classpath should evolve I have to restart the .bat in my
 project folder.


Yes you update your eclipse settings using maven  (never using eclipse
itself)


 Then :
 4- When I deploy for test in WTP, Eclipse take care of Maven and received
 also the lib declared in the pom.xml

yes


 5- When I would like to deploy on prod I will use maven to create a war
 will
 include all the lib in the right places.

yes : mvn package



 Am I right?


yes

Arnaud



 2007/11/20, Arnaud HERITIER [EMAIL PROTECTED]:
 
  You have to launch it  in your project directory.
 
  Arnaud
 
  On Nov 20, 2007 3:01 PM, Michael Bernagou [EMAIL PROTECTED]
 wrote:
 
   So I did it :
   R:\java\tools\maven-2.0.7\binmvn eclipse:eclipse -Dwtpversion=1.5 -
   Declipse.workspace=R:\Michael\PersonalWS
  
   [INFO] Scanning for projects...
   [INFO] Searching repository for plugin with prefix: 'eclipse'.
   [INFO]
  
 
 -
   ---
   [INFO] Building Maven Default Project
   [INFO]task-segment: [eclipse:eclipse]
   [INFO]
  
 
 -
   ---
   [INFO] Preparing eclipse:eclipse
   [INFO] No goals needed for project - skipping
   [INFO]
  
 
   [ERROR] BUILD ERROR
   [INFO]
  
 
   [INFO] Cannot execute mojo: eclipse. It requires a project with an
   existing
   pom.
   xml, but the build is not using one.
   [INFO]
  
 
   [INFO] For more information, run Maven with the -e switch
   [INFO]
  
 
   [INFO] Total time:  1 second
   [INFO] Finished at: Tue Nov 20 14:57:30 CET 2007
   [INFO] Final Memory: 2M/4M
   [INFO]
  
 
  
   I notice it try to update maven-eclipse-plugin I already have and set
  (not
   visible in this log since it's another try).
   It fails because it didn't find a project with a pom.xml... but there
 is
   one, mine.
   Maybe something is missing such as the project name to target: -
   Declipse.project or something like that?
  
   2007/11/20, Michael Bernagou [EMAIL PROTECTED]:
   
Hum, I don't know how to do that.
Ok I can create a bat file to launch the command but is it to do
 only
once?
   
2007/11/20, Arnaud HERITIER  [EMAIL PROTECTED]:

 Did you activate the WTP support in the eclipse plugin for maven 2
 ?
 mvn eclipse:eclipse -Dwtpversion=1.5

 It's working fine generally

 TEll us if you have any problem, we'll try to solve them

 Arnaud

 On Nov 20, 2007 9:49 AM, Michael Bernagou 
 [EMAIL PROTECTED]
 wrote:

  Hi,
 
  I'm new to M2 and I use Eclipse 3.2 WTP, Maven 2.0.7 and the
  latest
 maven
  plugin for eclipse. I use the server integration in Eclipse to
  test
   my

  webapp and I set the dependency in my pom.xml. For example, I
   develop
 a
  Tapestry webapp so I added the tapestry-core-5.0.6 dependency in
  the
  pom.xml
  .
 
  The build is done normally but when I start the server, the
   libraries
  defined in the pom.xml are not copyed in the Tomcat instance
  managed
 by
  Eclipse WTP.
  I tried all the different scope and none of them deploy the
 libs.
  I
 tried
  also to specify in Eclipse the Maven dependency should be Export
  (Project/Build Path/Order Export/check the boxes).
 
  For the scope system I tried to specifyed the absolute path
  where
   I
  would
  like to have my libraries (WEB-INF/lib) but it is finally not
 the
   goal
 of
  this scope since it is just to refer a system library needed.
 
  A solution is to copy the lib I need in my webaap/WEB-INF/lib
 but
   then
 M2
  would be useless in this case.
  So, what did I miss?
 
  Thanks
 
 
  --
  Michael Bernagou
  Java Developper
 
   

Artifact problem on vista

2007-11-20 Thread Toby Hobson
Hi guys,

I've recently installed Maven 2.0.7 together with jdk 1.6 on Windows Vista and 
I'm having quite a few problems. It seems maven is unable to download most of 
the artifacts I need, for example the following command doesn't work:

C:\Users\toby\workspacemvn -e archetype:create -DgroupId=com.mycompany.app 
-DartifactId=my-webapp -DarchetypeArtifactId=maven-archetype-webapp

I get the following error:

[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'archetype'.
[INFO] 
[ERROR] BUILD ERROR
[INFO] 
[INFO] The plugin 'org.apache.maven.plugins:maven-archetype-plugin' does not exi
st or no valid version could be found
[INFO] 
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: The plugin 'org.apache.m
aven.plugins:maven-archetype-plugin' does not exist or no valid version could be
 found
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(Defa
ultLifecycleExecutor.java:1286)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor
(DefaultLifecycleExecutor.java:1522)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListBy
AggregationNeeds(DefaultLifecycleExecutor.java:386)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
fecycleExecutor.java:138)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:280)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)

at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.version.PluginVersionNotFoundException: The p
lugin 'org.apache.maven.plugins:maven-archetype-plugin' does not exist or no val
id version could be found
at org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePl
uginVersion(DefaultPluginVersionManager.java:228)
at org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePl
uginVersion(DefaultPluginVersionManager.java:90)
at org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPlug
inManager.java:166)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(Defa
ultLifecycleExecutor.java:1257)
... 14 more
[INFO] 
[INFO] Total time:  1 second
[INFO] Finished at: Tue Nov 20 14:35:53 GMT 2007
[INFO] Final Memory: 1M/4M
[INFO] 

I have installed maven in c:\program files\java\maven-2.0.7

I had no problems using maven with xp so i suspect the problem may be something 
to do with vista's more restrictive permissions. Has anyone else come across 
this problem?

Thanks

Toby




Re: [M2]Eclipse WTP, dependency, deployement, libraries

2007-11-20 Thread Michael Bernagou
 Be careful, conventions in maven are to have only one src folder by
langage
 (src/main/java) and one artifact (a jar, a war, ..) per project.

But Axis2 convention is to have web services implementation outside to be
deployed in WEB-INF/services instead of WEB-INF/classes as the other...
When conventions meet the other conventions

Anyway, thanks a lot it is more clear than before. So I updated my pom.xml :

build
finalName${artifactId}-${version}/finalName
directory${basedir}/webapp/WEB-INF/classes/directory
resources
resource

targetPath${basedir}/webapp/WEB-INF/services/ApplicationWebService/targetPath
filteringfalse/filtering
directory${basedir}/src/ApplicationWebService/directory
/resource
resource

targetPath${basedir}/webapp/WEB-INF/services/UserWebService/targetPath
filteringfalse/filtering
directory${basedir}/src/UserWebService/directory
/resource
resource
targetPath${basedir}/webapp/WEB-INF/classes/targetPath
filteringfalse/filtering
directory${basedir}/src/main/directory
/resource
resource
targetPath${basedir}/webapp/WEB-INF/classes/targetPath
filteringfalse/filtering
directory${basedir}/src/resources/directory
/resource
/resources
...
/build

And then I rerun the batch, but I still have a target directory created and
maven change the directory for all the 4 resources I defined. Anyway, I can
leave with that target folder since Eclipse WTP will copied it itself in the
WEB-INF/classes but I don't understand why my directory information are
not take into account in the mvn process.

2007/11/20, Arnaud HERITIER [EMAIL PROTECTED]:

 On Nov 20, 2007 3:19 PM, Michael Bernagou [EMAIL PROTECTED] wrote:

 
  2- I have to define a build element in the pom.xml to define my src...
  (got
  4 folder because of web services)

 Be careful, conventions in maven are to have only one src folder by
 langage
 (src/main/java) and one artifact (a jar, a war, ..) per project.

 
  3- Each time my classpath should evolve I have to restart the .bat in my
  project folder.


 Yes you update your eclipse settings using maven  (never using eclipse
 itself)

 
  Then :
  4- When I deploy for test in WTP, Eclipse take care of Maven and
 received
  also the lib declared in the pom.xml

 yes

 
  5- When I would like to deploy on prod I will use maven to create a war
  will
  include all the lib in the right places.

 yes : mvn package

 
 
  Am I right?


 yes

 Arnaud

 
 
  2007/11/20, Arnaud HERITIER [EMAIL PROTECTED]:
  
   You have to launch it  in your project directory.
  
   Arnaud
  
   On Nov 20, 2007 3:01 PM, Michael Bernagou [EMAIL PROTECTED]
  wrote:
  
So I did it :
R:\java\tools\maven-2.0.7\binmvn eclipse:eclipse -Dwtpversion=1.5 -
Declipse.workspace=R:\Michael\PersonalWS
   
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'eclipse'.
[INFO]
   
  
 
 -
---
[INFO] Building Maven Default Project
[INFO]task-segment: [eclipse:eclipse]
[INFO]
   
  
 
 -
---
[INFO] Preparing eclipse:eclipse
[INFO] No goals needed for project - skipping
[INFO]
   
  
[ERROR] BUILD ERROR
[INFO]
   
  
[INFO] Cannot execute mojo: eclipse. It requires a project with an
existing
pom.
xml, but the build is not using one.
[INFO]
   
  
[INFO] For more information, run Maven with the -e switch
[INFO]
   
  
[INFO] Total time:  1 second
[INFO] Finished at: Tue Nov 20 14:57:30 CET 2007
[INFO] Final Memory: 2M/4M
[INFO]
   
  
   
I notice it try to update maven-eclipse-plugin I already have and
 set
   (not
visible in this log since it's another try).
It fails because it didn't find a project with a pom.xml... but
 there
  is
one, mine.
Maybe something is missing such as the project name to target: -
Declipse.project or something like that?
   
2007/11/20, Michael Bernagou [EMAIL PROTECTED]:

 Hum, I don't know how to do that.
 Ok I can create a bat file to launch the command but is it to do
  only
 once?

 2007/11/20, Arnaud HERITIER  [EMAIL PROTECTED]:
 
  Did you activate the WTP support in the eclipse plugin for maven
 2
  ?
  mvn eclipse:eclipse 

Re: [M2]Eclipse WTP, dependency, deployement, libraries

2007-11-20 Thread Michael Bernagou
I'm completely lost. I think I'm going to restart step by step. First a
Maven2 Webapp using WTP and Tapestry... and then I'll study the Axis2
plugins to integrate in my project.

But, just to understand a little bit more. What you propose to me is to put
my webservice sources outside the main project as independant AAR project
and add depencies in the pom.xml of my main project?

2007/11/20, Michael Bernagou [EMAIL PROTECTED]:

 Thanks a lot... I'm going to try and let you know.

 2007/11/20, Arnaud HERITIER [EMAIL PROTECTED]:
 
  On Nov 20, 2007 3:52 PM, Michael Bernagou [EMAIL PROTECTED]
  wrote:
 
Be careful, conventions in maven are to have only one src folder by
   langage
(src/main/java) and one artifact (a jar, a war, ..) per project.
  
   But Axis2 convention is to have web services implementation outside
  to
   be
   deployed in WEB-INF/services instead of WEB-INF/classes as the
  other...
   When conventions meet the other conventions
 
 
  You can have an AAR project and use it as dependency in your war :
  http://ws.apache.org/axis2/tools/1_3/maven-plugins/maven-aar-plugin.html
 
 
 
  
  
   Anyway, thanks a lot it is more clear than before. So I updated my
  pom.xml:
  
   build
  finalName${artifactId}-${version}/finalName
  directory${basedir}/webapp/WEB-INF/classes/directory
  resources
  resource
  
  
  
  targetPath${basedir}/webapp/WEB-INF/services/ApplicationWebService/targetPath
  filteringfalse/filtering
  directory${basedir}/src/ApplicationWebService/directory
 
  /resource
  resource
  
  
  targetPath${basedir}/webapp/WEB-INF/services/UserWebService/targetPath
  filteringfalse/filtering
  directory${basedir}/src/UserWebService/directory
  /resource
  resource
  targetPath${basedir}/webapp/WEB-INF/classes/targetPath
 
  filteringfalse/filtering
  directory${basedir}/src/main/directory
  /resource
  resource
  targetPath${basedir}/webapp/WEB-INF/classes/targetPath
 
  filteringfalse/filtering
  directory${basedir}/src/resources/directory
  /resource
  /resources
   ...
   /build
  
   And then I rerun the batch, but I still have a target directory
  created
   and
   maven change the directory for all the 4 resources I defined. Anyway,
  I
   can
   leave with that target folder since Eclipse WTP will copied it itself
  in
   the
   WEB-INF/classes but I don't understand why my directory information
  are
   not take into account in the mvn process.
 
 
  Why don't you add directly your services descriptors in :
  src/main/webapp/WEB-INF/services/
  The default directory for your webapp data are in :
  src/main/webapp
  It's used when you use a war packaging (packagingwar/packaging in
  your
  pom)
  You don't have to define where to copy classes, ressources and others
  Maven will do it for you
  target/${yourAppName}-src/main/webapp
  target/${yourAppName}/WEB-INF/classes-src/main/java (after compilation)
 
  target/${yourAppName}/WEB-INF/classes-src/main/resources
  target/${yourAppName}/WEB-INF/lib-libs defined in your pom
 
  It's not directory that you have to use but outputDirectory
  http://maven.apache.org/ref/current/maven-model/maven.html#class_build
 
  Arnaud
 
  
  
   2007/11/20, Arnaud HERITIER [EMAIL PROTECTED]:
   
On Nov 20, 2007 3:19 PM, Michael Bernagou [EMAIL PROTECTED]
   wrote:
   

 2- I have to define a build element in the pom.xml to define my
  src...
 (got
 4 folder because of web services)
   
Be careful, conventions in maven are to have only one src folder by
langage
(src/main/java) and one artifact (a jar, a war, ..) per project.
   

 3- Each time my classpath should evolve I have to restart the .bat
  in
   my
 project folder.
   
   
Yes you update your eclipse settings using maven  (never using
  eclipse
itself)
   

 Then :
 4- When I deploy for test in WTP, Eclipse take care of Maven and
received
 also the lib declared in the pom.xml
   
yes
   

 5- When I would like to deploy on prod I will use maven to create
  a
   war
 will
 include all the lib in the right places.
   
yes : mvn package
   


 Am I right?
   
   
yes
   
Arnaud
   


 2007/11/20, Arnaud HERITIER [EMAIL PROTECTED] :
 
  You have to launch it  in your project directory.
 
  Arnaud
 
  On Nov 20, 2007 3:01 PM, Michael Bernagou 
  [EMAIL PROTECTED]
 wrote:
 
   So I did it :
   R:\java\tools\maven-2.0.7\binmvn eclipse:eclipse
  -Dwtpversion= 1.5-
   Declipse.workspace=R:\Michael\PersonalWS
  
   [INFO] Scanning for projects...
   [INFO] Searching repository for plugin with prefix: 'eclipse'.
 
   

Re: [M2]Eclipse WTP, dependency, deployement, libraries

2007-11-20 Thread Arnaud HERITIER
On Nov 20, 2007 4:54 PM, Michael Bernagou [EMAIL PROTECTED] wrote:

 I'm completely lost. I think I'm going to restart step by step. First a
 Maven2 Webapp using WTP and Tapestry... and then I'll study the Axis2
 plugins to integrate in my project.


You can find free books to help you on www.devzuz.com and www.sonatype.com




 But, just to understand a little bit more. What you propose to me is to
 put
 my webservice sources outside the main project as independant AAR project
 and add depencies in the pom.xml of my main project?


Yes, it's a possibility. I'm not sure this is the best one.
Perhaps you can ask on this list what is the preferred solution to do that.
It's not an eclipse/maven problem but an axis/maven best practice that you
need...



 2007/11/20, Michael Bernagou [EMAIL PROTECTED]:
 
  Thanks a lot... I'm going to try and let you know.
 
  2007/11/20, Arnaud HERITIER [EMAIL PROTECTED]:
  
   On Nov 20, 2007 3:52 PM, Michael Bernagou [EMAIL PROTECTED]
   wrote:
  
 Be careful, conventions in maven are to have only one src folder
 by
langage
 (src/main/java) and one artifact (a jar, a war, ..) per project.
   
But Axis2 convention is to have web services implementation
 outside
   to
be
deployed in WEB-INF/services instead of WEB-INF/classes as the
   other...
When conventions meet the other conventions
  
  
   You can have an AAR project and use it as dependency in your war :
  
 http://ws.apache.org/axis2/tools/1_3/maven-plugins/maven-aar-plugin.html
  
  
  
   
   
Anyway, thanks a lot it is more clear than before. So I updated my
   pom.xml:
   
build
   finalName${artifactId}-${version}/finalName
   directory${basedir}/webapp/WEB-INF/classes/directory
   resources
   resource
   
   
   
  
 targetPath${basedir}/webapp/WEB-INF/services/ApplicationWebService/targetPath
   filteringfalse/filtering
   
  directory${basedir}/src/ApplicationWebService/directory
  
   /resource
   resource
   
   
  
 targetPath${basedir}/webapp/WEB-INF/services/UserWebService/targetPath
   filteringfalse/filtering
   directory${basedir}/src/UserWebService/directory
   /resource
   resource
   
  targetPath${basedir}/webapp/WEB-INF/classes/targetPath
  
   filteringfalse/filtering
   directory${basedir}/src/main/directory
   /resource
   resource
   
  targetPath${basedir}/webapp/WEB-INF/classes/targetPath
  
   filteringfalse/filtering
   directory${basedir}/src/resources/directory
   /resource
   /resources
...
/build
   
And then I rerun the batch, but I still have a target directory
   created
and
maven change the directory for all the 4 resources I defined.
 Anyway,
   I
can
leave with that target folder since Eclipse WTP will copied it
 itself
   in
the
WEB-INF/classes but I don't understand why my directory
 information
   are
not take into account in the mvn process.
  
  
   Why don't you add directly your services descriptors in :
   src/main/webapp/WEB-INF/services/
   The default directory for your webapp data are in :
   src/main/webapp
   It's used when you use a war packaging (packagingwar/packaging in
   your
   pom)
   You don't have to define where to copy classes, ressources and others
   Maven will do it for you
   target/${yourAppName}-src/main/webapp
   target/${yourAppName}/WEB-INF/classes-src/main/java (after
 compilation)
  
   target/${yourAppName}/WEB-INF/classes-src/main/resources
   target/${yourAppName}/WEB-INF/lib-libs defined in your pom
  
   It's not directory that you have to use but outputDirectory
   http://maven.apache.org/ref/current/maven-model/maven.html#class_build
  
   Arnaud
  
   
   
2007/11/20, Arnaud HERITIER [EMAIL PROTECTED]:

 On Nov 20, 2007 3:19 PM, Michael Bernagou [EMAIL PROTECTED]
 
wrote:

 
  2- I have to define a build element in the pom.xml to define my
   src...
  (got
  4 folder because of web services)

 Be careful, conventions in maven are to have only one src folder
 by
 langage
 (src/main/java) and one artifact (a jar, a war, ..) per project.

 
  3- Each time my classpath should evolve I have to restart the
 .bat
   in
my
  project folder.


 Yes you update your eclipse settings using maven  (never using
   eclipse
 itself)

 
  Then :
  4- When I deploy for test in WTP, Eclipse take care of Maven and
 received
  also the lib declared in the pom.xml

 yes

 
  5- When I would like to deploy on prod I will use maven to
 create
   a
war
  will
  include all the lib in the right places.

 yes : mvn package

 
 
  Am I right?


 yes

 Arnaud

   

Re: [M2]Eclipse WTP, dependency, deployement, libraries

2007-11-20 Thread Michael Bernagou
Thanks a lot... I'm going to try and let you know.

2007/11/20, Arnaud HERITIER [EMAIL PROTECTED]:

 On Nov 20, 2007 3:52 PM, Michael Bernagou [EMAIL PROTECTED] wrote:

   Be careful, conventions in maven are to have only one src folder by
  langage
   (src/main/java) and one artifact (a jar, a war, ..) per project.
 
  But Axis2 convention is to have web services implementation outside to
  be
  deployed in WEB-INF/services instead of WEB-INF/classes as the other...
  When conventions meet the other conventions


 You can have an AAR project and use it as dependency in your war :
 http://ws.apache.org/axis2/tools/1_3/maven-plugins/maven-aar-plugin.html



 
 
  Anyway, thanks a lot it is more clear than before. So I updated my
 pom.xml:
 
  build
 finalName${artifactId}-${version}/finalName
 directory${basedir}/webapp/WEB-INF/classes/directory
 resources
 resource
 
 
 
 targetPath${basedir}/webapp/WEB-INF/services/ApplicationWebService/targetPath
 filteringfalse/filtering

 directory${basedir}/src/ApplicationWebService/directory
 /resource
 resource
 
 
 targetPath${basedir}/webapp/WEB-INF/services/UserWebService/targetPath
 filteringfalse/filtering
 directory${basedir}/src/UserWebService/directory
 /resource
 resource

 targetPath${basedir}/webapp/WEB-INF/classes/targetPath
 filteringfalse/filtering
 directory${basedir}/src/main/directory
 /resource
 resource

 targetPath${basedir}/webapp/WEB-INF/classes/targetPath
 filteringfalse/filtering
 directory${basedir}/src/resources/directory
 /resource
 /resources
  ...
  /build
 
  And then I rerun the batch, but I still have a target directory created
  and
  maven change the directory for all the 4 resources I defined. Anyway, I
  can
  leave with that target folder since Eclipse WTP will copied it itself in
  the
  WEB-INF/classes but I don't understand why my directory information
 are
  not take into account in the mvn process.


 Why don't you add directly your services descriptors in :
 src/main/webapp/WEB-INF/services/
 The default directory for your webapp data are in :
 src/main/webapp
 It's used when you use a war packaging (packagingwar/packaging in your
 pom)
 You don't have to define where to copy classes, ressources and others
 Maven will do it for you
 target/${yourAppName}-src/main/webapp
 target/${yourAppName}/WEB-INF/classes-src/main/java (after compilation)
 target/${yourAppName}/WEB-INF/classes-src/main/resources
 target/${yourAppName}/WEB-INF/lib-libs defined in your pom

 It's not directory that you have to use but outputDirectory
 http://maven.apache.org/ref/current/maven-model/maven.html#class_build

 Arnaud

 
 
  2007/11/20, Arnaud HERITIER [EMAIL PROTECTED]:
  
   On Nov 20, 2007 3:19 PM, Michael Bernagou [EMAIL PROTECTED]
  wrote:
  
   
2- I have to define a build element in the pom.xml to define my
 src...
(got
4 folder because of web services)
  
   Be careful, conventions in maven are to have only one src folder by
   langage
   (src/main/java) and one artifact (a jar, a war, ..) per project.
  
   
3- Each time my classpath should evolve I have to restart the .bat
 in
  my
project folder.
  
  
   Yes you update your eclipse settings using maven  (never using eclipse
   itself)
  
   
Then :
4- When I deploy for test in WTP, Eclipse take care of Maven and
   received
also the lib declared in the pom.xml
  
   yes
  
   
5- When I would like to deploy on prod I will use maven to create a
  war
will
include all the lib in the right places.
  
   yes : mvn package
  
   
   
Am I right?
  
  
   yes
  
   Arnaud
  
   
   
2007/11/20, Arnaud HERITIER [EMAIL PROTECTED]:

 You have to launch it  in your project directory.

 Arnaud

 On Nov 20, 2007 3:01 PM, Michael Bernagou [EMAIL PROTECTED]
 
wrote:

  So I did it :
  R:\java\tools\maven-2.0.7\binmvn eclipse:eclipse -Dwtpversion=
 1.5-
  Declipse.workspace=R:\Michael\PersonalWS
 
  [INFO] Scanning for projects...
  [INFO] Searching repository for plugin with prefix: 'eclipse'.
  [INFO]
 

   
  
 
 -
  ---
  [INFO] Building Maven Default Project
  [INFO]task-segment: [eclipse:eclipse]
  [INFO]
 

   
  
 
 -
  ---
  [INFO] Preparing eclipse:eclipse
  [INFO] No goals needed for project - skipping
  [INFO]
 
   
  
  [ERROR] BUILD ERROR
  [INFO]
 
   
  

Re: [M2]Eclipse WTP, dependency, deployement, libraries

2007-11-20 Thread Arnaud HERITIER
On Nov 20, 2007 3:52 PM, Michael Bernagou [EMAIL PROTECTED] wrote:

  Be careful, conventions in maven are to have only one src folder by
 langage
  (src/main/java) and one artifact (a jar, a war, ..) per project.

 But Axis2 convention is to have web services implementation outside to
 be
 deployed in WEB-INF/services instead of WEB-INF/classes as the other...
 When conventions meet the other conventions


You can have an AAR project and use it as dependency in your war :
http://ws.apache.org/axis2/tools/1_3/maven-plugins/maven-aar-plugin.html





 Anyway, thanks a lot it is more clear than before. So I updated my pom.xml:

 build
finalName${artifactId}-${version}/finalName
directory${basedir}/webapp/WEB-INF/classes/directory
resources
resource


 targetPath${basedir}/webapp/WEB-INF/services/ApplicationWebService/targetPath
filteringfalse/filtering
directory${basedir}/src/ApplicationWebService/directory
/resource
resource

 targetPath${basedir}/webapp/WEB-INF/services/UserWebService/targetPath
filteringfalse/filtering
directory${basedir}/src/UserWebService/directory
/resource
resource
targetPath${basedir}/webapp/WEB-INF/classes/targetPath
filteringfalse/filtering
directory${basedir}/src/main/directory
/resource
resource
targetPath${basedir}/webapp/WEB-INF/classes/targetPath
filteringfalse/filtering
directory${basedir}/src/resources/directory
/resource
/resources
 ...
 /build

 And then I rerun the batch, but I still have a target directory created
 and
 maven change the directory for all the 4 resources I defined. Anyway, I
 can
 leave with that target folder since Eclipse WTP will copied it itself in
 the
 WEB-INF/classes but I don't understand why my directory information are
 not take into account in the mvn process.


Why don't you add directly your services descriptors in :
src/main/webapp/WEB-INF/services/
The default directory for your webapp data are in :
src/main/webapp
It's used when you use a war packaging (packagingwar/packaging in your
pom)
You don't have to define where to copy classes, ressources and others
Maven will do it for you
target/${yourAppName}-src/main/webapp
target/${yourAppName}/WEB-INF/classes-src/main/java (after compilation)
target/${yourAppName}/WEB-INF/classes-src/main/resources
target/${yourAppName}/WEB-INF/lib-libs defined in your pom

It's not directory that you have to use but outputDirectory
http://maven.apache.org/ref/current/maven-model/maven.html#class_build

Arnaud



 2007/11/20, Arnaud HERITIER [EMAIL PROTECTED]:
 
  On Nov 20, 2007 3:19 PM, Michael Bernagou [EMAIL PROTECTED]
 wrote:
 
  
   2- I have to define a build element in the pom.xml to define my src...
   (got
   4 folder because of web services)
 
  Be careful, conventions in maven are to have only one src folder by
  langage
  (src/main/java) and one artifact (a jar, a war, ..) per project.
 
  
   3- Each time my classpath should evolve I have to restart the .bat in
 my
   project folder.
 
 
  Yes you update your eclipse settings using maven  (never using eclipse
  itself)
 
  
   Then :
   4- When I deploy for test in WTP, Eclipse take care of Maven and
  received
   also the lib declared in the pom.xml
 
  yes
 
  
   5- When I would like to deploy on prod I will use maven to create a
 war
   will
   include all the lib in the right places.
 
  yes : mvn package
 
  
  
   Am I right?
 
 
  yes
 
  Arnaud
 
  
  
   2007/11/20, Arnaud HERITIER [EMAIL PROTECTED]:
   
You have to launch it  in your project directory.
   
Arnaud
   
On Nov 20, 2007 3:01 PM, Michael Bernagou [EMAIL PROTECTED]
   wrote:
   
 So I did it :
 R:\java\tools\maven-2.0.7\binmvn eclipse:eclipse -Dwtpversion=1.5-
 Declipse.workspace=R:\Michael\PersonalWS

 [INFO] Scanning for projects...
 [INFO] Searching repository for plugin with prefix: 'eclipse'.
 [INFO]

   
  
 
 -
 ---
 [INFO] Building Maven Default Project
 [INFO]task-segment: [eclipse:eclipse]
 [INFO]

   
  
 
 -
 ---
 [INFO] Preparing eclipse:eclipse
 [INFO] No goals needed for project - skipping
 [INFO]

  
 
 [ERROR] BUILD ERROR
 [INFO]

  
 
 [INFO] Cannot execute mojo: eclipse. It requires a project with an
 existing
 pom.
 xml, but the build is not using one.
 [INFO]

  
 
 [INFO] For more 

Re: resources in an ant plugin

2007-11-20 Thread BenTatham

For future finders of this message, see here for some solutions:
http://www.nabble.com/forum/Search.jtp?forum=178local=yquery=resources+ant
-- 
View this message in context: 
http://www.nabble.com/resources-in-an-ant-plugin-tf4841631s177.html#a13859928
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: Artifact problem on vista

2007-11-20 Thread Wayne Fay
Without knowing anything about it in any detail (I don't run Vista), I
would guess you might need to disable a firewall or grant
Internet-connect privileges to your JDK executables.

Wayne

On 11/20/07, Sean Hennessy [EMAIL PROTECTED] wrote:
 Perhaps you might try adding -U option to command line and archetypeGroupId
 also..or simpler maven-archetype-site first?
 C:\Users\toby\workspacemvn -U -e archetype:create
 -DgroupId=com.mycompany.app -DarchetypeGroupId=org.apache.maven.archetypes
 -DartifactId=my-webapp -DarchetypeArtifactId=maven-archetype-webapp

 -Original Message-
 From: Toby Hobson [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, November 20, 2007 6:40 AM
 To: users@maven.apache.org
 Subject: Artifact problem on vista


 Hi guys,

 I've recently installed Maven 2.0.7 together with jdk 1.6 on Windows Vista
 and I'm having quite a few problems. It seems maven is unable to download
 most of the artifacts I need, for example the following command doesn't
 work:

 C:\Users\toby\workspacemvn -e archetype:create -DgroupId=com.mycompany.app
 -DartifactId=my-webapp -DarchetypeArtifactId=maven-archetype-webapp

 I get the following error:

 [INFO] Scanning for projects...
 [INFO] Searching repository for plugin with prefix: 'archetype'. [INFO]
 
 [ERROR] BUILD ERROR
 [INFO]
 
 [INFO] The plugin 'org.apache.maven.plugins:maven-archetype-plugin' does not
 exi st or no valid version could be found [INFO]
 
 [INFO] Trace
 org.apache.maven.lifecycle.LifecycleExecutionException: The plugin
 'org.apache.m aven.plugins:maven-archetype-plugin' does not exist or no
 valid version could be  found
 at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(Defa
 ultLifecycleExecutor.java:1286)
 at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor
 (DefaultLifecycleExecutor.java:1522)
 at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListBy
 AggregationNeeds(DefaultLifecycleExecutor.java:386)
 at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
 fecycleExecutor.java:138)
 at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
 at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
 at org.apache.maven.cli.MavenCli.main(MavenCli.java:280)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
 java:39)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
 sorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:597)
 at
 org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
 at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
 at
 org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)

 at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
 Caused by: org.apache.maven.plugin.version.PluginVersionNotFoundException:
 The p lugin 'org.apache.maven.plugins:maven-archetype-plugin' does not exist
 or no val id version could be found
 at
 org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePl
 uginVersion(DefaultPluginVersionManager.java:228)
 at
 org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePl
 uginVersion(DefaultPluginVersionManager.java:90)
 at
 org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPlug
 inManager.java:166)
 at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(Defa
 ultLifecycleExecutor.java:1257)
 ... 14 more
 [INFO]
 
 [INFO] Total time:  1 second
 [INFO] Finished at: Tue Nov 20 14:35:53 GMT 2007
 [INFO] Final Memory: 1M/4M
 [INFO]
 

 I have installed maven in c:\program files\java\maven-2.0.7

 I had no problems using maven with xp so i suspect the problem may be
 something to do with vista's more restrictive permissions. Has anyone else
 come across this problem?

 Thanks

 Toby



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



ERROR: Cannot override read-only parameter: packaging in goal: install: install

2007-11-20 Thread charliec

Hello, 
I have a pom.xml file that is used to install a jar file into the
repository.  I've attached the pom file.  This file is included in a folder
named jsr94 along with a jar file jsr94-1.0-SNAPSHOT.jar in that folder. 
When I execute mvn, everything works fine, the jar file gets copied into the
repository.  

I have a parent folder called libraries.  Within that folder, there is a
pom.xml file which contains the tag:
 modules
modulejsr94/module
 /modules
so the jsr94 jar file can be installed.  I've attached the pom.xml for this
as well.  However, when I execute mvn, I receive the following error:
[INFO] Error configuring: org.apache.maven.plugins:maven-install-plugin.
Reason:
 ERROR: Cannot override read-only parameter: packaging in goal:
install:install

Please help.   Why does it work in the child pom.xml and not the parent.xml? 
Thanks.  http://www.nabble.com/file/p13860110/pom.xml pom.xml 
http://www.nabble.com/file/p13860110/pom.xml pom.xml 
-- 
View this message in context: 
http://www.nabble.com/ERROR%3A-Cannot-override-read-only-parameter%3A-packaging-in-goal%3A-install%3A-install-tf480s177.html#a13860110
Sent from the Maven - Users mailing list archive at Nabble.com.


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



RE: Artifact problem on vista

2007-11-20 Thread Sean Hennessy
Perhaps you might try adding -U option to command line and archetypeGroupId 
also..or simpler maven-archetype-site first?
C:\Users\toby\workspacemvn -U -e archetype:create -DgroupId=com.mycompany.app 
-DarchetypeGroupId=org.apache.maven.archetypes -DartifactId=my-webapp 
-DarchetypeArtifactId=maven-archetype-webapp

-Original Message-
From: Toby Hobson [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 20, 2007 6:40 AM
To: users@maven.apache.org
Subject: Artifact problem on vista


Hi guys,

I've recently installed Maven 2.0.7 together with jdk 1.6 on Windows Vista and 
I'm having quite a few problems. It seems maven is unable to download most of 
the artifacts I need, for example the following command doesn't work:

C:\Users\toby\workspacemvn -e archetype:create -DgroupId=com.mycompany.app 
-DartifactId=my-webapp -DarchetypeArtifactId=maven-archetype-webapp

I get the following error:

[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'archetype'. [INFO] 

[ERROR] BUILD ERROR
[INFO] 
[INFO] The plugin 'org.apache.maven.plugins:maven-archetype-plugin' does not 
exi st or no valid version could be found [INFO] 

[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: The plugin 
'org.apache.m aven.plugins:maven-archetype-plugin' does not exist or no valid 
version could be  found
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(Defa
ultLifecycleExecutor.java:1286)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor
(DefaultLifecycleExecutor.java:1522)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListBy
AggregationNeeds(DefaultLifecycleExecutor.java:386)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
fecycleExecutor.java:138)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:280)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)

at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.version.PluginVersionNotFoundException: The 
p lugin 'org.apache.maven.plugins:maven-archetype-plugin' does not exist or no 
val id version could be found
at org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePl
uginVersion(DefaultPluginVersionManager.java:228)
at org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePl
uginVersion(DefaultPluginVersionManager.java:90)
at org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPlug
inManager.java:166)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(Defa
ultLifecycleExecutor.java:1257)
... 14 more
[INFO] 
[INFO] Total time:  1 second
[INFO] Finished at: Tue Nov 20 14:35:53 GMT 2007
[INFO] Final Memory: 1M/4M
[INFO] 

I have installed maven in c:\program files\java\maven-2.0.7

I had no problems using maven with xp so i suspect the problem may be something 
to do with vista's more restrictive permissions. Has anyone else come across 
this problem?

Thanks

Toby



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



RE: Ant Mojo Resources

2007-11-20 Thread BenTatham

Simple question in regard to this really old solution:
How do I get the plugin version number into the ant plugin's build.xml so I
don't have to remember to modify the build.xml every time I release?  Can
you use filtering on the ant file at plugin build time?  I would think that
would be tricky because of all the real ant properties.  Is the
${project.version} available inside the ant xml -- the ${project.version} of
the plugin that is.  

-Ben



Ian Springer wrote:
 
 Pass ${settings.localRepository} as a param to your Ant mojo. Then unzip
 the file(s) you need from the plugin jar (e.g.
 ${settings.localRepository}/com/xyz/foo-m2-plugin/1.0/foo-m2-plugin-1.0.
 jar) to a temp dir. Ugly, I know, but it works  :-)
 
 | -Original Message-
 | From: SlinnHawkins, Jon (ELS) [mailto:[EMAIL PROTECTED] 
 | Sent: Thursday, October 26, 2006 8:49 AM
 | To: users@maven.apache.org
 | Subject: Ant Mojo Resources
 | 
 | Hi All, 
 |  
 | I have created an Ant based plugin that need to call a windows batch
 | file.  The batch file is in the plugin projects resources folder and
 | thus in the plugin jar.  How can I access this resource path/ 
 | batch file
 | using the exec ant task ?
 |  
 | Thanks
 | 
 | Jon
 | 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Ant-Mojo-Resources-tf2514145s177.html#a13859921
Sent from the Maven - Users mailing list archive at Nabble.com.


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



FW: Open Source Java 6 Developer Preview Release

2007-11-20 Thread Wayne Fay
Any Apple/Mac users here might be interested in the message below from
the Apple Dev list...

Wayne

- Original Message -
From: Landon Fuller [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, November 20, 2007 2:14 AM
Subject: Open Source Java 6 Developer Preview Release

Howdy everyone,

I'm pleased to announce the first Developer Preview release of the
open-source port of Java 6 to Mac OS X (Intel).

While I've spent some time testing this release with my own projects,
this preview release should be considered early-beta quality.
The project is very much in need of additional community testing -- If
you're hankering for Java 6, please give this a try!

The full announcement, as well as download and build instructions, are
available here:

http://landonf.bikemonkey.org/code/macosx/MacOS_Java_16_Developer_Preview_1.20071120.html


Cheers all!
Landon Fuller

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



Re: [M2] repositories (central, codehaus, java.net)

2007-11-20 Thread Wayne Fay
Looks generally fine, except that the Central master is
repo1.maven.org, and ibiblio is the mirror.

Wayne

On 11/20/07, CodingPlayer [EMAIL PROTECTED] wrote:

 Hi,

 i currently reorganize my repositories within my artifactory installation
 (artifact cache).

 and i wonder which of these repositories is correct:

 *  central
   o http://www.ibiblio.org/pub/packages/maven2/
   o http://www.ibiblio.org/maven2
   o http://repo1.maven.org/maven2 (mirror of ibiblio)
   o http://mirrors.ibiblio.org/pub/mirrors/maven2

 * codehaus
   o release
 + http://dist.codehaus.org
 + http://repository.codehaus.org
   o snapshot
 + http://snapshots.repository.codehaus.org

 * java.net
   o maven1 (still some artifacts are found in the old legacy repo)
 + https://maven-repository.dev.java.net/repository/
   x http mirror: http://download.java.net/maven/1
   o maven2
 + http://download.java.net/maven/2

 it would be nice if someone could tell me which of these repositories are
 kept up-to-date and which of them are old URLs/domains. (or mirrors of
 others).

 do i miss some (important) repositories (not listed above)?

 thx 4 help
 R.C.

 --
 View this message in context:
 http://www.nabble.com/-M2--repositories-%28central%2C-codehaus%2C-java.net%29-tf4842621s177.html#a13854510
 Sent from the Maven - Users mailing list archive at Nabble.com.


 -
 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: site:deploy using scp

2007-11-20 Thread n2000

Thank you!

You have to change /etc/ssh/sshd_config on the server!


Maciej Mastalarczuk-3 wrote:
 
 Hi,
 
 Please don't worry about this post, I fixed it.
 
 For anyone interested:
 I had to set PasswordAuthentication to 'yes' in /etc/ssh/sshd_config as it 
 defaults to 'no'. Seems to be happy now.
 
 Regards
 
 Maciej
 
 
From: Maciej Mastalarczuk [EMAIL PROTECTED]
Reply-To: Maven Users List users@maven.apache.org
To: users@maven.apache.org
Subject: site:deploy using scp
Date: Mon, 15 May 2006 14:37:21 +0800

Hi,

I'm having a strange problem with deployment of the site via scp. Here is 
what's in my pom.xml

(...)
iddoc-site/id
nameDocumentation Site/name
url
   scp://lara/opt/java-build/site/${artifactId}/${version}
/url
(...)

The settings.xml contains:

(...)
server
  iddoc-site/id
  usernamemm/username
  password[EMAIL PROTECTED]/password
/server
(...)


Despite the fact the password is specified in settings.xml it still
prompts 
me for it during the deployment and works OK if the right password is 
supplied. The target server runs sshd on Suse Linux 10.

The strange thing is when I try to deploy exectly the same site to the 
Windows box (running sshd from Cygwin) it all works fine (I mean no prompt 
and the site is deployed). Can't see why the two should be any different 
from the scp client point of view.

Is this a bug in site plugin?

Regards

Maciej

_
Search for local singles online @ Lavalife - Click here 
http://a.ninemsn.com.au/b.aspx?URL=http%3A%2F%2Flavalife9%2Eninemsn%2Ecom%2Eau%2Fclickthru%2Fclickthru%2Eact%3Fid%3Dninemsn%26context%3Dan99%26locale%3Den%5FAU%26a%3D22141_t=751140432_r=emailtagline_may_search_m=EXT


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

 
 _
 Search for local singles online @ Lavalife - Click here 
 http://a.ninemsn.com.au/b.aspx?URL=http%3A%2F%2Flavalife9%2Eninemsn%2Ecom%2Eau%2Fclickthru%2Fclickthru%2Eact%3Fid%3Dninemsn%26context%3Dan99%26locale%3Den%5FAU%26a%3D22141_t=751140432_r=emailtagline_may_search_m=EXT
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/site%3Adeploy-using-scp-tf1619186s177.html#a13860929
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: help with assembly plugin

2007-11-20 Thread Mick Knutson
Have you tried source${basedir}/

On 11/20/07, Gunnar Boström [EMAIL PROTECTED] wrote:


 Hi,
 Thanks for trying to help but the problem is with the multi-module
 project.
 If I run mvn package from the module directory it works correctly.
 If I run mvn package from the parent directory the line endings will not
 be
 converted!
 As I write I managed to get this working for a single file by starting the
 source tag with a slash i.e.
 source/src/..source
 :-)

 Mick Knutson-4 wrote:
 
  formats
  formattar/format
  /formats
 
 
  Then make sure the ascii files you are adding are like:
 
  file
  source/src/main/resources/deploy/deploy-configs.sh
 /source
  outputDirectory/outputDirectory
  destNamedeploy-configs.sh/destName
  filteredtrue/filtered
  *lineEndingunix/lineEnding*
  fileMode0754/fileMode
  /file
 
 
  On Nov 19, 2007 9:01 AM, Gunnar Boström [EMAIL PROTECTED]
  wrote:
 
 
  Hi,
  I use the maven-assembly-plugin to create a zip file on windows XP.
  It works ok, with one problem.
  The zip file will be unzipped on a Solaris computer so I need to fix
 the
  line endings. This works fine if I do mvn package directly in a module,
  but
  if I run mvn package from the master it will not do the conversion.
 
  [INFO] Reading assembly descriptor:
  D:\SERF\dev\serf-server\src\main\assembly\bin.xml
  [INFO] No files selected for line-ending conversion. Skipping:
  src/main/scripts/expect
 
  The corresponding line in the pom file is
  directorysrc/main/scripts/expect/directory
 
  So what can I do?
 
  Regards
  Gunnar
  --
  View this message in context:
 
 http://www.nabble.com/help-with-assembly-plugin-tf4837763s177.html#a13840413
  Sent from the Maven - Users mailing list archive at Nabble.com.
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
  --
 
  Thanks,
  Mick Knutson
 
  http://www.baselogic.com
  http://www.blincmagazine.com
  http://www.djmick.com
  http://www.myspace.com/mickknutson
  http://www.myspace.com/djmick_dot_com
  http://www.myspace.com/sexybeotches
  http://www.thumpradio.com
  ---
 
 

 --
 View this message in context:
 http://www.nabble.com/help-with-assembly-plugin-tf4837763s177.html#a13852445
 Sent from the Maven - Users mailing list archive at Nabble.com.


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




-- 

Thanks,
Mick Knutson

http://www.baselogic.com
http://www.blincmagazine.com
http://www.djmick.com
http://www.myspace.com/mickknutson
http://www.myspace.com/djmick_dot_com
http://www.myspace.com/sexybeotches
http://www.thumpradio.com
---


war overlays and compiler classpath

2007-11-20 Thread Blue . Thomas
I've configured an app-war to depend on overlay-war, and app-war lists
overlay-war as an overlay in the maven-war-plugin configuration.  On top
of that, the classes in app-war depend on the classes in overlay-war for
compilation, but being a type 'war', they don't seem to end up in the
classpath when app-war compiles.

I've tried adding the target/classes directory of overlay-war to
app-war's configurationclasspath/classpath/configuration block
for maven-compiler-plugin, but this did not do the trick.  I'd like the
class files from overlay-war to be copied into app-war _and_ be
compile-time dependency.  Is this possible (without breaking
overlay-war's java source as a separate type 'jar' pom)?

Thanks in advance,
Blue

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]



Zip Assembly flatten

2007-11-20 Thread Saloucious

Hi,

is it possible to create an  Assembly with ZIP format with files in root
dir.

Actually i've got

assembly.zip
|
|${finalName}
|  |
|  |- my_file


And i would like: 

assembly.zip
|
|my_file


outputDirectory seems to begin at ${finalName} dir ...


Thanks
  
-- 
View this message in context: 
http://www.nabble.com/Zip-Assembly-flatten-tf4845402s177.html#a13862719
Sent from the Maven - Users mailing list archive at Nabble.com.


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



RE: Classloading Issues

2007-11-20 Thread Paul Hepworth
Just to add, the weblogic dependencies scope is system. 

-Original Message-
From: Paul Hepworth [mailto:[EMAIL PROTECTED] 
Sent: 20 November 2007 18:42
To: users@maven.apache.org
Subject: Classloading Issues

Hi
 
On my project, we are using Weblogic 8.1 and XmlBeans 2.3 and associated
dependencies.
 
The problem we have is that there are duplicate implementations (of
different versions) of things such as QName, and so when running our
tests, depending on which one is loaded first, it either works or we get
errors.
 
The problem has come about since I updated our version of the surefire
plugin to 2.3 in order to fix a couple of bugs that were present in
earlier versions (we were using 2.1.2). With version 2.1.2, our tests
would pass, as the Weblogic implementations were being ignored in
preference of the XmlBeans/Stax implementations. However, with the newer
version of surefire, this appears to be the other way round and so the
tests fail with NoSuchMethodExceptions for QName constructor etc...
 
I've verified that this is the problem on a sample project by explicitly
excluding the weblogic dependency (it was coming through transitively
from another project), and the test runs fine. However, I won't be able
to do this for all of our projects and so need to find a solution...
 
Is there any way of specifying to exclude a dependency just for running
the tests? Or a way of changing the classpath so that I can get the
required version loaded??
 
Any ideas greatly appreciated!
Paul



This message should be regarded as confidential. If you have received
this email in error please notify the sender and destroy it immediately.
Statements of intent shall only become binding when confirmed in hard
copy by an authorised signatory.  The contents of this email may relate
to dealings with other companies within the Detica Group plc group of
companies.

Detica Limited is registered in England under No: 1337451.

Registered offices: Surrey Research Park, Guildford, Surrey, GU2 7YP,
England.



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



Classloading Issues

2007-11-20 Thread Paul Hepworth
Hi
 
On my project, we are using Weblogic 8.1 and XmlBeans 2.3 and associated
dependencies.
 
The problem we have is that there are duplicate implementations (of
different versions) of things such as QName, and so when running our
tests, depending on which one is loaded first, it either works or we get
errors.
 
The problem has come about since I updated our version of the surefire
plugin to 2.3 in order to fix a couple of bugs that were present in
earlier versions (we were using 2.1.2). With version 2.1.2, our tests
would pass, as the Weblogic implementations were being ignored in
preference of the XmlBeans/Stax implementations. However, with the newer
version of surefire, this appears to be the other way round and so the
tests fail with NoSuchMethodExceptions for QName constructor etc...
 
I've verified that this is the problem on a sample project by explicitly
excluding the weblogic dependency (it was coming through transitively
from another project), and the test runs fine. However, I won't be able
to do this for all of our projects and so need to find a solution...
 
Is there any way of specifying to exclude a dependency just for running
the tests? Or a way of changing the classpath so that I can get the
required version loaded??
 
Any ideas greatly appreciated!
Paul



This message should be regarded as confidential. If you have received this 
email in error please notify the sender and destroy it immediately.
Statements of intent shall only become binding when confirmed in hard copy by 
an authorised signatory.  The contents of this email may relate to dealings 
with other companies within the Detica Group plc group of companies.

Detica Limited is registered in England under No: 1337451.

Registered offices: Surrey Research Park, Guildford, Surrey, GU2 7YP, England.




Re: ant tasks and pom properties

2007-11-20 Thread Hervé BOUTEMY
Le lundi 19 novembre 2007, Kevin Stembridge a écrit :
 Hi all,
 Is it possible for the ant tasks to read in arbitrary pom.xml
 properties?

 I'm not having any trouble getting at the normal properties that are
 part of the POM schema (project.version, project.build.directory etc)
 but I can't read in any properties that I define in a properties tag.

 Is this supposed to be possible?
no
:)

Hervé

 Thanks for any help.
 Kevin



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



Re: Doxia Macro in a xdoc file

2007-11-20 Thread Dennis Lundberg

Which version of the site-plugin and doxia are you using?

I think that some of the macros are only available in version 
2.0-beta-6-SNAPSHOT of the site-plugin.


Rémy Sanlaville wrote:

Hi,

I wanted to add a TOC to my xdoc files.
In the Doxia web site, the Doxia Macros Guide explains that it exists a TOC
Macro (cf.
http://maven.apache.org/doxia/macros/index.html).

In a xdoc file, it will be:

macro name=toc
  param name=section value=2/
  param name=fromDepth value=0/
  param name=toDepth value=4/
/macro


So I tried it but it does not work.

[ERROR] Error parsing P:\project-site\src\site\xdoc\installation.xml: lin
e [-1] Error parsing the model.
org.apache.maven.doxia.parser.ParseException: Error parsing the model.
at org.apache.maven.doxia.module.xdoc.XdocParser.parse(
XdocParser.java:55)
at org.apache.maven.doxia.DefaultDoxia.parse(DefaultDoxia.java:52)
at
org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.renderDocument(
DefaultSiteRenderer.java:264)
at
org.apache.maven.doxia.siterenderer.DoxiaDocumentRenderer.renderDocument(
DoxiaDocumentRenderer.java:43)
at
org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.renderModule(
DefaultSiteRenderer.java:239)
at org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.render(
DefaultSiteRenderer.java:115)
at org.apache.maven.plugins.site.SiteMojo.renderLocale(SiteMojo.java
:124)
at org.apache.maven.plugins.site.SiteMojo.execute(SiteMojo.java:92)
at org.apache.maven.plugin.DefaultPluginManager.executeMojo(
DefaultPluginManager.java:443)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
DefaultLifecycleExecutor.java:539)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle
(DefaultLifecycleExecutor.java:48
0)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(
DefaultLifecycleExecutor.java:459)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures
(DefaultLifecycleExecutor.jav
a:311)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
DefaultLifecycleExecutor.java:278)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(
DefaultLifecycleExecutor.java:143)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:280)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java
:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java
:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.doxia.macro.manager.MacroNotFoundException:
Cannot find macro with id = null
at org.apache.maven.doxia.macro.manager.DefaultMacroManager.getMacro
(DefaultMacroManager.java:43)
at org.apache.maven.doxia.parser.AbstractParser.executeMacro(
AbstractParser.java:44)
at org.apache.maven.doxia.module.xdoc.XdocParser.parseXdoc(
XdocParser.java:177)
at org.apache.maven.doxia.module.xdoc.XdocParser.parse(
XdocParser.java:51)
... 25 more

I don't what's wrong and what to do...
I haven't found for the moment a project or sample using the TOC macro.

Rémy




--
Dennis Lundberg


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



inhouse repository and dependencies

2007-11-20 Thread mffortin

I've been working on setting up an inhouse repository for our company.  I
have it setup and and I can deploy my project to it but I want to add my
project dependencies.  From what I've read on this list and else where there
is no simple way to do that.  What I'd really like to see in maven is
something like mvn deploy:deploy-dependencies and have all transitive
dependencies upload.  My question is, can I rsync my ~/.m2/repository to my
in-house remote repository?  Is the structure the same?
-- 
View this message in context: 
http://www.nabble.com/inhouse-repository-and-dependencies-tf4846100s177.html#a13864902
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: inhouse repository and dependencies

2007-11-20 Thread Wayne Fay
Most people solve these problems by implementing a Maven proxy like
Archiva, Artifactory, Proximity, etc.

And no, you cannot sync your local repository cache to create a remote
repository. There are some differences in the repos. Google for it or
search the list archives -- we've talked about this before.

Wayne

On 11/20/07, mffortin [EMAIL PROTECTED] wrote:

 I've been working on setting up an inhouse repository for our company.  I
 have it setup and and I can deploy my project to it but I want to add my
 project dependencies.  From what I've read on this list and else where there
 is no simple way to do that.  What I'd really like to see in maven is
 something like mvn deploy:deploy-dependencies and have all transitive
 dependencies upload.  My question is, can I rsync my ~/.m2/repository to my
 in-house remote repository?  Is the structure the same?
 --
 View this message in context:
 http://www.nabble.com/inhouse-repository-and-dependencies-tf4846100s177.html#a13864902
 Sent from the Maven - Users mailing list archive at Nabble.com.


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



antLib not producing same classpath as Mvn

2007-11-20 Thread Kallin Nagelberg
I've found what looks like a bug in the Maven Antlib, but I thought I
should check here first before sending the issue to JIRA as I am a
relatively new Maven user.

I've created a pom that transitively has two paths to the artifact
commons-logging. Due to the structure of the poms this resulted in 1.0
being selected instead of what I needed, 1.0.4. In an attempt to
resolve this I added the following to my SuperPom from which all
others inherit:

dependencyManagement
dependencies
dependency
groupIdcommons-logging/groupId
artifactIdcommons-logging/artifactId
version1.0.4/version
/dependency
/dependencies
/dependencyManagement

Now, when I run mvn dependency:resolve on my child pom it changes the
resolved dependency from 1.0 to 1.0.4 as I desired. Hurrah!
Unfortunately when I reference the classpath produced by this pom in
my ant script it still shows the 1.0 version on the classpath. It
seems that the maven antLib is not taking the parent's dependency
management section into account. I've heard that the maven antlib does
not always function as maven should. Is this true?

Regards,
Kallin Nagelberg.

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



Re: Artifact problem on vista

2007-11-20 Thread Toby Hobson

It seems there are no firewall problems because the eclipse update works ok
... also I can't even get a simple mvn archetype:create to work

I've copied the settings.xml from maven-2.0.7\conf to my .m2 folder as well
but still no luck :-(


Toby Hobson wrote:
 
 Hi guys,
 
 I've recently installed Maven 2.0.7 together with jdk 1.6 on Windows Vista
 and I'm having quite a few problems. It seems maven is unable to download
 most of the artifacts I need, for example the following command doesn't
 work:
 
 C:\Users\toby\workspacemvn -e archetype:create
 -DgroupId=com.mycompany.app -DartifactId=my-webapp
 -DarchetypeArtifactId=maven-archetype-webapp
 
 I get the following error:
 
 [INFO] Scanning for projects...
 [INFO] Searching repository for plugin with prefix: 'archetype'.
 [INFO]
 
 [ERROR] BUILD ERROR
 [INFO]
 
 [INFO] The plugin 'org.apache.maven.plugins:maven-archetype-plugin' does
 not exi
 st or no valid version could be found
 [INFO]
 
 [INFO] Trace
 org.apache.maven.lifecycle.LifecycleExecutionException: The plugin
 'org.apache.m
 aven.plugins:maven-archetype-plugin' does not exist or no valid version
 could be
  found
 at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(Defa
 ultLifecycleExecutor.java:1286)
 at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor
 (DefaultLifecycleExecutor.java:1522)
 at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListBy
 AggregationNeeds(DefaultLifecycleExecutor.java:386)
 at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
 fecycleExecutor.java:138)
 at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
 at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
 at org.apache.maven.cli.MavenCli.main(MavenCli.java:280)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
 java:39)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
 sorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:597)
 at
 org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
 at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
 at
 org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
 
 at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
 Caused by: org.apache.maven.plugin.version.PluginVersionNotFoundException:
 The p
 lugin 'org.apache.maven.plugins:maven-archetype-plugin' does not exist or
 no val
 id version could be found
 at
 org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePl
 uginVersion(DefaultPluginVersionManager.java:228)
 at
 org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePl
 uginVersion(DefaultPluginVersionManager.java:90)
 at
 org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPlug
 inManager.java:166)
 at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(Defa
 ultLifecycleExecutor.java:1257)
 ... 14 more
 [INFO]
 
 [INFO] Total time:  1 second
 [INFO] Finished at: Tue Nov 20 14:35:53 GMT 2007
 [INFO] Final Memory: 1M/4M
 [INFO]
 
 
 I have installed maven in c:\program files\java\maven-2.0.7
 
 I had no problems using maven with xp so i suspect the problem may be
 something to do with vista's more restrictive permissions. Has anyone else
 come across this problem?
 
 Thanks
 
 Toby
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Artifact-problem-on-vista-tf4843900s177.html#a13866146
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Adding Maven2 Project via URL

2007-11-20 Thread Hodanics, Charles J.
I can visit the pom.xml in my browser via URL fine however the continuum
add comes back with no pom.xml existing.

Any thoughts?

Charles Hodanics
NSTD-STJ
443-778-3246



Re: Artifact problem on vista

2007-11-20 Thread Wayne Fay
the eclipse update works ok -- what (exactly) do you mean? How does
Eclipse working == no firewall problems?

In addition to the Vista firewall, what antivirus software are you
running? A few people have posted here very frustrated by things only
to discover that McAfee or something similar was the root of their
troubles. Disable *all* such software and try again.

Also, try running with -U to force an update of artifacts from repos.
The final step is to rename the ~/.m2 directory to ~/.m2x (or simply
delete ~/.m2) and try again from scratch.

Wayne

On 11/20/07, Toby Hobson [EMAIL PROTECTED] wrote:

 It seems there are no firewall problems because the eclipse update works ok
 ... also I can't even get a simple mvn archetype:create to work

 I've copied the settings.xml from maven-2.0.7\conf to my .m2 folder as well
 but still no luck :-(


 Toby Hobson wrote:
 
  Hi guys,
 
  I've recently installed Maven 2.0.7 together with jdk 1.6 on Windows Vista
  and I'm having quite a few problems. It seems maven is unable to download
  most of the artifacts I need, for example the following command doesn't
  work:
 
  C:\Users\toby\workspacemvn -e archetype:create
  -DgroupId=com.mycompany.app -DartifactId=my-webapp
  -DarchetypeArtifactId=maven-archetype-webapp
 
  I get the following error:
 
  [INFO] Scanning for projects...
  [INFO] Searching repository for plugin with prefix: 'archetype'.
  [INFO]
  
  [ERROR] BUILD ERROR
  [INFO]
  
  [INFO] The plugin 'org.apache.maven.plugins:maven-archetype-plugin' does
  not exi
  st or no valid version could be found
  [INFO]
  
  [INFO] Trace
  org.apache.maven.lifecycle.LifecycleExecutionException: The plugin
  'org.apache.m
  aven.plugins:maven-archetype-plugin' does not exist or no valid version
  could be
   found
  at
  org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(Defa
  ultLifecycleExecutor.java:1286)
  at
  org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor
  (DefaultLifecycleExecutor.java:1522)
  at
  org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListBy
  AggregationNeeds(DefaultLifecycleExecutor.java:386)
  at
  org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
  fecycleExecutor.java:138)
  at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
  at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
  at org.apache.maven.cli.MavenCli.main(MavenCli.java:280)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at
  sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
  java:39)
  at
  sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
  sorImpl.java:25)
  at java.lang.reflect.Method.invoke(Method.java:597)
  at
  org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
  at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
  at
  org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
 
  at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
  Caused by: org.apache.maven.plugin.version.PluginVersionNotFoundException:
  The p
  lugin 'org.apache.maven.plugins:maven-archetype-plugin' does not exist or
  no val
  id version could be found
  at
  org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePl
  uginVersion(DefaultPluginVersionManager.java:228)
  at
  org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePl
  uginVersion(DefaultPluginVersionManager.java:90)
  at
  org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPlug
  inManager.java:166)
  at
  org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(Defa
  ultLifecycleExecutor.java:1257)
  ... 14 more
  [INFO]
  
  [INFO] Total time:  1 second
  [INFO] Finished at: Tue Nov 20 14:35:53 GMT 2007
  [INFO] Final Memory: 1M/4M
  [INFO]
  
 
  I have installed maven in c:\program files\java\maven-2.0.7
 
  I had no problems using maven with xp so i suspect the problem may be
  something to do with vista's more restrictive permissions. Has anyone else
  come across this problem?
 
  Thanks
 
  Toby
 
 
 
 

 --
 View this message in context:
 http://www.nabble.com/Artifact-problem-on-vista-tf4843900s177.html#a13866146
 Sent from the Maven - Users mailing list archive at Nabble.com.


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




Re: Artifact problem on vista

2007-11-20 Thread Toby Hobson
Sorry ... I mean that the JDK executable is able to pass through the vista 
firewall, I'll try disabling AVG etc.

- Original Message 
From: Wayne Fay [EMAIL PROTECTED]
To: Maven Users List users@maven.apache.org
Sent: Tuesday, 20 November, 2007 9:39:46 PM
Subject: Re: Artifact problem on vista

the eclipse update works ok -- what (exactly) do you mean? How does
Eclipse working == no firewall problems?

In addition to the Vista firewall, what antivirus software are you
running? A few people have posted here very frustrated by things only
to discover that McAfee or something similar was the root of their
troubles. Disable *all* such software and try again.

Also, try running with -U to force an update of artifacts from repos.
The final step is to rename the ~/.m2 directory to ~/.m2x (or simply
delete ~/.m2) and try again from scratch.

Wayne

On 11/20/07, Toby Hobson [EMAIL PROTECTED] wrote:

 It seems there are no firewall problems because the eclipse update
 works ok
 ... also I can't even get a simple mvn archetype:create to work

 I've copied the settings.xml from maven-2.0.7\conf to my .m2 folder
 as well
 but still no luck :-(


 Toby Hobson wrote:
 
  Hi guys,
 
  I've recently installed Maven 2.0.7 together with jdk 1.6 on
 Windows Vista
  and I'm having quite a few problems. It seems maven is unable to
 download
  most of the artifacts I need, for example the following command
 doesn't
  work:
 
  C:\Users\toby\workspacemvn -e archetype:create
  -DgroupId=com.mycompany.app -DartifactId=my-webapp
  -DarchetypeArtifactId=maven-archetype-webapp
 
  I get the following error:
 
  [INFO] Scanning for projects...
  [INFO] Searching repository for plugin with prefix: 'archetype'.
  [INFO]
 
 
  [ERROR] BUILD ERROR
  [INFO]
 
 
  [INFO] The plugin 'org.apache.maven.plugins:maven-archetype-plugin'
 does
  not exi
  st or no valid version could be found
  [INFO]
 
 
  [INFO] Trace
  org.apache.maven.lifecycle.LifecycleExecutionException: The plugin
  'org.apache.m
  aven.plugins:maven-archetype-plugin' does not exist or no valid
 version
  could be
   found
  at
 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(Defa
  ultLifecycleExecutor.java:1286)
  at
 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor
  (DefaultLifecycleExecutor.java:1522)
  at
 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListBy
  AggregationNeeds(DefaultLifecycleExecutor.java:386)
  at
 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
  fecycleExecutor.java:138)
  at
 org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
  at
 org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
  at org.apache.maven.cli.MavenCli.main(MavenCli.java:280)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
 Method)
  at
 
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
  java:39)
  at
 
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
  sorImpl.java:25)
  at java.lang.reflect.Method.invoke(Method.java:597)
  at
  org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
  at
 org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
  at
 
 org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
 
  at
 org.codehaus.classworlds.Launcher.main(Launcher.java:375)
  Caused by:
 org.apache.maven.plugin.version.PluginVersionNotFoundException:
  The p
  lugin 'org.apache.maven.plugins:maven-archetype-plugin' does not
 exist or
  no val
  id version could be found
  at
 
 org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePl
  uginVersion(DefaultPluginVersionManager.java:228)
  at
 
 org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePl
  uginVersion(DefaultPluginVersionManager.java:90)
  at
 
 org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPlug
  inManager.java:166)
  at
 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(Defa
  ultLifecycleExecutor.java:1257)
  ... 14 more
  [INFO]
 
 
  [INFO] Total time:  1 second
  [INFO] Finished at: Tue Nov 20 14:35:53 GMT 2007
  [INFO] Final Memory: 1M/4M
  [INFO]
 
 
 
  I have installed maven in c:\program files\java\maven-2.0.7
 
  I had no problems using maven with xp so i suspect the problem may
 be
  something to do with vista's more restrictive permissions. Has
 anyone else
  come across this problem?
 
  Thanks
 
  Toby
 
 
 
 

 --
 View this message in 

Re: Adding Maven2 Project via URL

2007-11-20 Thread olivier lamy
Hi,
Does your pom have the right scm informations ?
Do you have error in continuum logs ?

--
Olivier

2007/11/20, Hodanics, Charles J. [EMAIL PROTECTED]:

 I can visit the pom.xml in my browser via URL fine however the continuum
 add comes back with no pom.xml existing.

 Any thoughts?

 Charles Hodanics
 NSTD-STJ
 443-778-3246




Re: Artifact problem on vista

2007-11-20 Thread Toby Hobson
ok .. it seems that maven is downloading stuff - i deleted .m2 and the next 
time i ran mvn it downloaded the maven-metadata-central.xml file

It still doesn't work though :-(

- Original Message 
From: Toby Hobson [EMAIL PROTECTED]
To: Maven Users List users@maven.apache.org
Sent: Tuesday, 20 November, 2007 9:43:07 PM
Subject: Re: Artifact problem on vista

Sorry ... I mean that the JDK executable is able to pass through the
 vista firewall, I'll try disabling AVG etc.

- Original Message 
From: Wayne Fay [EMAIL PROTECTED]
To: Maven Users List users@maven.apache.org
Sent: Tuesday, 20 November, 2007 9:39:46 PM
Subject: Re: Artifact problem on vista

the eclipse update works ok -- what (exactly) do you mean? How does
Eclipse working == no firewall problems?

In addition to the Vista firewall, what antivirus software are you
running? A few people have posted here very frustrated by things only
to discover that McAfee or something similar was the root of their
troubles. Disable *all* such software and try again.

Also, try running with -U to force an update of artifacts from repos.
The final step is to rename the ~/.m2 directory to ~/.m2x (or simply
delete ~/.m2) and try again from scratch.

Wayne

On 11/20/07, Toby Hobson [EMAIL PROTECTED] wrote:

 It seems there are no firewall problems because the eclipse update
 works ok
 ... also I can't even get a simple mvn archetype:create to work

 I've copied the settings.xml from maven-2.0.7\conf to my .m2 folder
 as well
 but still no luck :-(


 Toby Hobson wrote:
 
  Hi guys,
 
  I've recently installed Maven 2.0.7 together with jdk 1.6 on
 Windows Vista
  and I'm having quite a few problems. It seems maven is unable to
 download
  most of the artifacts I need, for example the following command
 doesn't
  work:
 
  C:\Users\toby\workspacemvn -e archetype:create
  -DgroupId=com.mycompany.app -DartifactId=my-webapp
  -DarchetypeArtifactId=maven-archetype-webapp
 
  I get the following error:
 
  [INFO] Scanning for projects...
  [INFO] Searching repository for plugin with prefix: 'archetype'.
  [INFO]
 

 
  [ERROR] BUILD ERROR
  [INFO]
 

 
  [INFO] The plugin 'org.apache.maven.plugins:maven-archetype-plugin'
 does
  not exi
  st or no valid version could be found
  [INFO]
 

 
  [INFO] Trace
  org.apache.maven.lifecycle.LifecycleExecutionException: The plugin
  'org.apache.m
  aven.plugins:maven-archetype-plugin' does not exist or no valid
 version
  could be
   found
  at
 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(Defa
  ultLifecycleExecutor.java:1286)
  at
 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor
  (DefaultLifecycleExecutor.java:1522)
  at
 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListBy
  AggregationNeeds(DefaultLifecycleExecutor.java:386)
  at
 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
  fecycleExecutor.java:138)
  at
 org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
  at
 org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
  at org.apache.maven.cli.MavenCli.main(MavenCli.java:280)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
 Method)
  at
 
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
  java:39)
  at
 
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
  sorImpl.java:25)
  at java.lang.reflect.Method.invoke(Method.java:597)
  at
  org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
  at
 org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
  at
 
 org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
 
  at
 org.codehaus.classworlds.Launcher.main(Launcher.java:375)
  Caused by:
 org.apache.maven.plugin.version.PluginVersionNotFoundException:
  The p
  lugin 'org.apache.maven.plugins:maven-archetype-plugin' does not
 exist or
  no val
  id version could be found
  at
 
 org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePl
  uginVersion(DefaultPluginVersionManager.java:228)
  at
 
 org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePl
  uginVersion(DefaultPluginVersionManager.java:90)
  at
 
 org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPlug
  inManager.java:166)
  at
 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(Defa
  ultLifecycleExecutor.java:1257)
  ... 14 more
  [INFO]
 

 
  [INFO] Total time:  1 second
  [INFO] Finished at: Tue Nov 20 14:35:53 GMT 2007
  [INFO] Final Memory: 1M/4M
  [INFO]
 

 

Re: Artifact problem on vista

2007-11-20 Thread Wayne Fay
Try mvn -X -U ... and see what comes shows up in the debug output.

Wayne

On 11/20/07, Toby Hobson [EMAIL PROTECTED] wrote:
 ok .. it seems that maven is downloading stuff - i deleted .m2 and the next
 time i ran mvn it downloaded the maven-metadata-central.xml file

 It still doesn't work though :-(

 - Original Message 
 From: Toby Hobson [EMAIL PROTECTED]
 To: Maven Users List users@maven.apache.org
 Sent: Tuesday, 20 November, 2007 9:43:07 PM
 Subject: Re: Artifact problem on vista

 Sorry ... I mean that the JDK executable is able to pass through the
  vista firewall, I'll try disabling AVG etc.

 - Original Message 
 From: Wayne Fay [EMAIL PROTECTED]
 To: Maven Users List users@maven.apache.org
 Sent: Tuesday, 20 November, 2007 9:39:46 PM
 Subject: Re: Artifact problem on vista

 the eclipse update works ok -- what (exactly) do you mean? How does
 Eclipse working == no firewall problems?

 In addition to the Vista firewall, what antivirus software are you
 running? A few people have posted here very frustrated by things only
 to discover that McAfee or something similar was the root of their
 troubles. Disable *all* such software and try again.

 Also, try running with -U to force an update of artifacts from repos.
 The final step is to rename the ~/.m2 directory to ~/.m2x (or simply
 delete ~/.m2) and try again from scratch.

 Wayne

 On 11/20/07, Toby Hobson [EMAIL PROTECTED] wrote:
 
  It seems there are no firewall problems because the eclipse update
  works ok
  ... also I can't even get a simple mvn archetype:create to work
 
  I've copied the settings.xml from maven-2.0.7\conf to my .m2 folder
  as well
  but still no luck :-(
 
 
  Toby Hobson wrote:
  
   Hi guys,
  
   I've recently installed Maven 2.0.7 together with jdk 1.6 on
  Windows Vista
   and I'm having quite a few problems. It seems maven is unable to
  download
   most of the artifacts I need, for example the following command
  doesn't
   work:
  
   C:\Users\toby\workspacemvn -e archetype:create
   -DgroupId=com.mycompany.app -DartifactId=my-webapp
   -DarchetypeArtifactId=maven-archetype-webapp
  
   I get the following error:
  
   [INFO] Scanning for projects...
   [INFO] Searching repository for plugin with prefix: 'archetype'.
   [INFO]
  

  
   [ERROR] BUILD ERROR
   [INFO]
  

  
   [INFO] The plugin 'org.apache.maven.plugins:maven-archetype-plugin'
  does
   not exi
   st or no valid version could be found
   [INFO]
  

  
   [INFO] Trace
   org.apache.maven.lifecycle.LifecycleExecutionException: The plugin
   'org.apache.m
   aven.plugins:maven-archetype-plugin' does not exist or no valid
  version
   could be
found
   at
  
  org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(Defa
   ultLifecycleExecutor.java:1286)
   at
  
  org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor
   (DefaultLifecycleExecutor.java:1522)
   at
  
  org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListBy
   AggregationNeeds(DefaultLifecycleExecutor.java:386)
   at
  
  org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
   fecycleExecutor.java:138)
   at
  org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
   at
  org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
   at org.apache.maven.cli.MavenCli.main(MavenCli.java:280)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
  Method)
   at
  
  sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
   java:39)
   at
  
  sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
   sorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:597)
   at
   org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
   at
  org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
   at
  
  org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
  
   at
  org.codehaus.classworlds.Launcher.main(Launcher.java:375)
   Caused by:
  org.apache.maven.plugin.version.PluginVersionNotFoundException:
   The p
   lugin 'org.apache.maven.plugins:maven-archetype-plugin' does not
  exist or
   no val
   id version could be found
   at
  
  org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePl
   uginVersion(DefaultPluginVersionManager.java:228)
   at
  
  org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePl
   uginVersion(DefaultPluginVersionManager.java:90)
   at
  
  org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPlug
   inManager.java:166)
   at
  
  org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(Defa
   

Re: Artifact problem on vista

2007-11-20 Thread Wayne Fay
(Eclipse uses javaw.exe) != (Maven uses java.exe). It is very possible that 
javaw.exe would be allowed while java.exe is blocked by your firewall etc 
software.

I'm still not convinced you are able to download artifacts from Central. If you 
can dig into ~/.m2 and find some files named *.jar, then I might change my mind.

Wayne

On 11/20/07, Toby Hobson [EMAIL PROTECTED] wrote:
 Sorry ... I mean that the JDK executable is able to pass through the vista
 firewall, I'll try disabling AVG etc.
 
 - Original Message 
 From: Wayne Fay [EMAIL PROTECTED]
 To: Maven Users List users@maven.apache.org
 Sent: Tuesday, 20 November, 2007 9:39:46 PM
 Subject: Re: Artifact problem on vista
 
 the eclipse update works ok -- what (exactly) do you mean? How does
 Eclipse working == no firewall problems?
 
 In addition to the Vista firewall, what antivirus software are you
 running? A few people have posted here very frustrated by things only
 to discover that McAfee or something similar was the root of their
 troubles. Disable *all* such software and try again.
 
 Also, try running with -U to force an update of artifacts from repos.
 The final step is to rename the ~/.m2 directory to ~/.m2x (or simply
 delete ~/.m2) and try again from scratch.
 
 Wayne
 
 On 11/20/07, Toby Hobson [EMAIL PROTECTED] wrote:
 
  It seems there are no firewall problems because the eclipse update
  works ok
  ... also I can't even get a simple mvn archetype:create to work
 
  I've copied the settings.xml from maven-2.0.7\conf to my .m2 folder
  as well
  but still no luck :-(
 
 
  Toby Hobson wrote:
  
   Hi guys,
  
   I've recently installed Maven 2.0.7 together with jdk 1.6 on
  Windows Vista
   and I'm having quite a few problems. It seems maven is unable to
  download
   most of the artifacts I need, for example the following command
  doesn't
   work:
  
   C:\Users\toby\workspacemvn -e archetype:create
   -DgroupId=com.mycompany.app -DartifactId=my-webapp
   -DarchetypeArtifactId=maven-archetype-webapp
  
   I get the following error:
  
   [INFO] Scanning for projects...
   [INFO] Searching repository for plugin with prefix: 'archetype'.
   [INFO]
  
  
   [ERROR] BUILD ERROR
   [INFO]
  
  
   [INFO] The plugin 'org.apache.maven.plugins:maven-archetype-plugin'
  does
   not exi
   st or no valid version could be found
   [INFO]
  
  
   [INFO] Trace
   org.apache.maven.lifecycle.LifecycleExecutionException: The plugin
   'org.apache.m
   aven.plugins:maven-archetype-plugin' does not exist or no valid
  version
   could be
found
   at
  
  org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(Defa
   ultLifecycleExecutor.java:1286)
   at
  
  org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor
   (DefaultLifecycleExecutor.java:1522)
   at
  
  org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListBy
   AggregationNeeds(DefaultLifecycleExecutor.java:386)
   at
  
  org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
   fecycleExecutor.java:138)
   at
  org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
   at
  org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
   at org.apache.maven.cli.MavenCli.main(MavenCli.java:280)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
  Method)
   at
  
  sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
   java:39)
   at
  
  sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
   sorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:597)
   at
   org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
   at
  org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
   at
  
  org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
  
   at
  org.codehaus.classworlds.Launcher.main(Launcher.java:375)
   Caused by:
  org.apache.maven.plugin.version.PluginVersionNotFoundException:
   The p
   lugin 'org.apache.maven.plugins:maven-archetype-plugin' does not
  exist or
   no val
   id version could be found
   at
  
  org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePl
   uginVersion(DefaultPluginVersionManager.java:228)
   at
  
  org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePl
   uginVersion(DefaultPluginVersionManager.java:90)
   at
  
  org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPlug
   inManager.java:166)
   at
  
  org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(Defa
   ultLifecycleExecutor.java:1257)
   ... 14 more
   [INFO]
  
  

Re: Artifact problem on vista

2007-11-20 Thread Toby Hobson
ok good point Wayne! I've disabled the windows firewall and antivirus but i'm 
still having no luck:

C:\Users\toby\workspacemvn -DgroupId=com.test -DartifactId=test -X -U archetype
:create
+ Error stacktraces are turned on.
Maven version: 2.0.7
Java version: 1.6.0_03
OS name: windows vista version: 6.0 arch: x86
[DEBUG] Building Maven user-level plugin registry from: 'C:\Users\toby\.m2\plugi
n-registry.xml'
[DEBUG] Building Maven global-level plugin registry from: 'c:\Program Files\Java
\maven-2.0.7\bin\..\conf\plugin-registry.xml'
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'archetype'.
[DEBUG] Loading plugin prefixes from group: org.apache.maven.plugins
[INFO] org.apache.maven.plugins: checking for updates from central
[DEBUG] repository metadata for: 'org.apache.maven.plugins' could not be found o
n repository: central
[DEBUG] Loading plugin prefixes from group: org.codehaus.mojo
[INFO] org.codehaus.mojo: checking for updates from central
[DEBUG] repository metadata for: 'org.codehaus.mojo' could not be found on repos
itory: central
[INFO] artifact org.apache.maven.plugins:maven-archetype-plugin: checking for up
dates from central
[DEBUG] repository metadata for: 'artifact org.apache.maven.plugins:maven-archet
ype-plugin' could not be found on repository: central
[DEBUG] maven-archetype-plugin: using locally installed snapshot
[DEBUG] Artifact not found - using stub model: Unable to determine the latest ve
rsion

  org.apache.maven.plugins:maven-archetype-plugin:pom:LATEST


[DEBUG] Using defaults for missing POM org.apache.maven.plugins:maven-archetype-
plugin:pom:LATEST
[DEBUG] maven-archetype-plugin: using locally installed snapshot
[DEBUG] Artifact not found - using stub model: Unable to determine the release v
ersion

  org.apache.maven.plugins:maven-archetype-plugin:pom:RELEASE


[DEBUG] Using defaults for missing POM org.apache.maven.plugins:maven-archetype-
plugin:pom:RELEASE
[INFO] 
[ERROR] BUILD ERROR
[INFO] 
[INFO] The plugin 'org.apache.maven.plugins:maven-archetype-plugin' does not exi
st or no valid version could be found
[INFO] 
[DEBUG] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: The plugin 'org.apache.m
aven.plugins:maven-archetype-plugin' does not exist or no valid version could be
 found
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(Defa
ultLifecycleExecutor.java:1286)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor
(DefaultLifecycleExecutor.java:1522)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListBy
AggregationNeeds(DefaultLifecycleExecutor.java:386)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
fecycleExecutor.java:138)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:280)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)

at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.version.PluginVersionNotFoundException: The p
lugin 'org.apache.maven.plugins:maven-archetype-plugin' does not exist or no val
id version could be found
at org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePl
uginVersion(DefaultPluginVersionManager.java:228)
at org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePl
uginVersion(DefaultPluginVersionManager.java:90)
at org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPlug
inManager.java:166)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(Defa
ultLifecycleExecutor.java:1257)
... 14 more
[INFO] 
[INFO] Total time: 1 second
[INFO] Finished at: Tue Nov 20 22:41:53 GMT 2007
[INFO] Final Memory: 1M/4M
[INFO] 

C:\Users\toby\workspace

- Original Message 
From: Wayne Fay [EMAIL PROTECTED]
To: Maven Users List users@maven.apache.org
Sent: Tuesday, 20 November, 2007 10:07:03 PM
Subject: Re: Artifact problem on vista

(Eclipse 

Re: Artifact problem on vista

2007-11-20 Thread Wayne Fay
Are you perhaps behind an Internet proxy of some kind? If so, you must
configure things in settings.xml. This is documented on the site
and/or Wiki.

Wayne

On 11/20/07, Toby Hobson [EMAIL PROTECTED] wrote:
 ok good point Wayne! I've disabled the windows firewall and antivirus but
 i'm still having no luck:

 C:\Users\toby\workspacemvn -DgroupId=com.test -DartifactId=test -X -U
 archetype
 :create
 + Error stacktraces are turned on.
 Maven version: 2.0.7
 Java version: 1.6.0_03
 OS name: windows vista version: 6.0 arch: x86
 [DEBUG] Building Maven user-level plugin registry from:
 'C:\Users\toby\.m2\plugi
 n-registry.xml'
 [DEBUG] Building Maven global-level plugin registry from: 'c:\Program
 Files\Java
 \maven-2.0.7\bin\..\conf\plugin-registry.xml'
 [INFO] Scanning for projects...
 [INFO] Searching repository for plugin with prefix: 'archetype'.
 [DEBUG] Loading plugin prefixes from group: org.apache.maven.plugins
 [INFO] org.apache.maven.plugins: checking for updates from central
 [DEBUG] repository metadata for: 'org.apache.maven.plugins' could not be
 found o
 n repository: central
 [DEBUG] Loading plugin prefixes from group: org.codehaus.mojo
 [INFO] org.codehaus.mojo: checking for updates from central
 [DEBUG] repository metadata for: 'org.codehaus.mojo' could not be found on
 repos
 itory: central
 [INFO] artifact org.apache.maven.plugins:maven-archetype-plugin: checking
 for up
 dates from central
 [DEBUG] repository metadata for: 'artifact
 org.apache.maven.plugins:maven-archet
 ype-plugin' could not be found on repository: central
 [DEBUG] maven-archetype-plugin: using locally installed snapshot
 [DEBUG] Artifact not found - using stub model: Unable to determine the
 latest ve
 rsion

   org.apache.maven.plugins:maven-archetype-plugin:pom:LATEST


 [DEBUG] Using defaults for missing POM
 org.apache.maven.plugins:maven-archetype-
 plugin:pom:LATEST
 [DEBUG] maven-archetype-plugin: using locally installed snapshot
 [DEBUG] Artifact not found - using stub model: Unable to determine the
 release v
 ersion

   org.apache.maven.plugins:maven-archetype-plugin:pom:RELEASE


 [DEBUG] Using defaults for missing POM
 org.apache.maven.plugins:maven-archetype-
 plugin:pom:RELEASE
 [INFO]
 
 [ERROR] BUILD ERROR
 [INFO]
 
 [INFO] The plugin 'org.apache.maven.plugins:maven-archetype-plugin' does not
 exi
 st or no valid version could be found
 [INFO]
 
 [DEBUG] Trace
 org.apache.maven.lifecycle.LifecycleExecutionException: The plugin
 'org.apache.m
 aven.plugins:maven-archetype-plugin' does not exist or no valid version
 could be
  found
 at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(Defa
 ultLifecycleExecutor.java:1286)
 at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor
 (DefaultLifecycleExecutor.java:1522)
 at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListBy
 AggregationNeeds(DefaultLifecycleExecutor.java:386)
 at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
 fecycleExecutor.java:138)
 at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
 at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
 at org.apache.maven.cli.MavenCli.main(MavenCli.java:280)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
 java:39)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
 sorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:597)
 at
 org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
 at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
 at
 org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)

 at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
 Caused by: org.apache.maven.plugin.version.PluginVersionNotFoundException:
 The p
 lugin 'org.apache.maven.plugins:maven-archetype-plugin' does not exist or no
 val
 id version could be found
 at
 org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePl
 uginVersion(DefaultPluginVersionManager.java:228)
 at
 org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePl
 uginVersion(DefaultPluginVersionManager.java:90)
 at
 org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPlug
 inManager.java:166)
 at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(Defa
 ultLifecycleExecutor.java:1257)
 ... 14 more
 [INFO]
 
 [INFO] Total time: 1 second
 [INFO] Finished at: Tue Nov 20 22:41:53 GMT 2007
 [INFO] 

Re: Artifact problem on vista

2007-11-20 Thread Toby Hobson
Nope ... just a normal wifi router/firewall and my xp laptop works ok

Toby

- Original Message 
From: Wayne Fay [EMAIL PROTECTED]
To: Maven Users List users@maven.apache.org
Sent: Tuesday, 20 November, 2007 10:52:55 PM
Subject: Re: Artifact problem on vista

Are you perhaps behind an Internet proxy of some kind? If so, you must
configure things in settings.xml. This is documented on the site
and/or Wiki.

Wayne

On 11/20/07, Toby Hobson [EMAIL PROTECTED] wrote:
 ok good point Wayne! I've disabled the windows firewall and antivirus
 but
 i'm still having no luck:

 C:\Users\toby\workspacemvn -DgroupId=com.test -DartifactId=test -X
 -U
 archetype
 :create
 + Error stacktraces are turned on.
 Maven version: 2.0.7
 Java version: 1.6.0_03
 OS name: windows vista version: 6.0 arch: x86
 [DEBUG] Building Maven user-level plugin registry from:
 'C:\Users\toby\.m2\plugi
 n-registry.xml'
 [DEBUG] Building Maven global-level plugin registry from: 'c:\Program
 Files\Java
 \maven-2.0.7\bin\..\conf\plugin-registry.xml'
 [INFO] Scanning for projects...
 [INFO] Searching repository for plugin with prefix: 'archetype'.
 [DEBUG] Loading plugin prefixes from group: org.apache.maven.plugins
 [INFO] org.apache.maven.plugins: checking for updates from central
 [DEBUG] repository metadata for: 'org.apache.maven.plugins' could not
 be
 found o
 n repository: central
 [DEBUG] Loading plugin prefixes from group: org.codehaus.mojo
 [INFO] org.codehaus.mojo: checking for updates from central
 [DEBUG] repository metadata for: 'org.codehaus.mojo' could not be
 found on
 repos
 itory: central
 [INFO] artifact org.apache.maven.plugins:maven-archetype-plugin:
 checking
 for up
 dates from central
 [DEBUG] repository metadata for: 'artifact
 org.apache.maven.plugins:maven-archet
 ype-plugin' could not be found on repository: central
 [DEBUG] maven-archetype-plugin: using locally installed snapshot
 [DEBUG] Artifact not found - using stub model: Unable to determine
 the
 latest ve
 rsion

   org.apache.maven.plugins:maven-archetype-plugin:pom:LATEST


 [DEBUG] Using defaults for missing POM
 org.apache.maven.plugins:maven-archetype-
 plugin:pom:LATEST
 [DEBUG] maven-archetype-plugin: using locally installed snapshot
 [DEBUG] Artifact not found - using stub model: Unable to determine
 the
 release v
 ersion

   org.apache.maven.plugins:maven-archetype-plugin:pom:RELEASE


 [DEBUG] Using defaults for missing POM
 org.apache.maven.plugins:maven-archetype-
 plugin:pom:RELEASE
 [INFO]

 
 [ERROR] BUILD ERROR
 [INFO]

 
 [INFO] The plugin 'org.apache.maven.plugins:maven-archetype-plugin'
 does not
 exi
 st or no valid version could be found
 [INFO]

 
 [DEBUG] Trace
 org.apache.maven.lifecycle.LifecycleExecutionException: The plugin
 'org.apache.m
 aven.plugins:maven-archetype-plugin' does not exist or no valid
 version
 could be
  found
 at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(Defa
 ultLifecycleExecutor.java:1286)
 at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor
 (DefaultLifecycleExecutor.java:1522)
 at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListBy
 AggregationNeeds(DefaultLifecycleExecutor.java:386)
 at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
 fecycleExecutor.java:138)
 at
 org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
 at
 org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
 at org.apache.maven.cli.MavenCli.main(MavenCli.java:280)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
 Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
 java:39)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
 sorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:597)
 at
 org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
 at
 org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
 at
 org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)

 at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
 Caused by:
 org.apache.maven.plugin.version.PluginVersionNotFoundException:
 The p
 lugin 'org.apache.maven.plugins:maven-archetype-plugin' does not
 exist or no
 val
 id version could be found
 at
 org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePl
 uginVersion(DefaultPluginVersionManager.java:228)
 at
 org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePl
 uginVersion(DefaultPluginVersionManager.java:90)
 at
 org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPlug
 inManager.java:166)
 at
 

Build in success, but maven failed

2007-11-20 Thread Hodanics, Charles J.
Any reason why continuum build would say build in success with icon
when this is the output?


Downloading: ...
[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] Failed to resolve artifact.

Missing:...

from the specified remote repositories:
  central (http://repo1.maven.org/maven2)


[INFO]

[INFO] For more information, run Maven with the -e switch
[INFO]

[INFO] Total time: 2 seconds
[INFO] Finished at: Tue Nov 20 17:59:08 EST 2007
[INFO] Final Memory: 5M/10M
[INFO]



?

Charles Hodanics
NSTD-STJ
443-778-3246



RE: Artifact problem on vista

2007-11-20 Thread Sean Hennessy
complete command line you are using?

similar problems in past were due missing mvn option
-DarchetypeGroupId=org.apache.maven.archetypes

log suggests it is trying to match GroupID of org.apache.maven.plugins
instead of org.apache.maven.archetypes??

Sean


-Original Message-
From: Toby Hobson [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 20, 2007 3:00 PM
To: Maven Users List
Subject: Re: Artifact problem on vista


Nope ... just a normal wifi router/firewall and my xp laptop works ok

Toby

- Original Message 
From: Wayne Fay [EMAIL PROTECTED]
To: Maven Users List users@maven.apache.org
Sent: Tuesday, 20 November, 2007 10:52:55 PM
Subject: Re: Artifact problem on vista

Are you perhaps behind an Internet proxy of some kind? If so, you must 
configure things in settings.xml. This is documented on the site and/or Wiki.

Wayne

On 11/20/07, Toby Hobson [EMAIL PROTECTED] wrote:
 ok good point Wayne! I've disabled the windows firewall and antivirus
 but
 i'm still having no luck:

 C:\Users\toby\workspacemvn -DgroupId=com.test -DartifactId=test -X
 -U
 archetype
 :create
 + Error stacktraces are turned on.
 Maven version: 2.0.7
 Java version: 1.6.0_03
 OS name: windows vista version: 6.0 arch: x86
 [DEBUG] Building Maven user-level plugin registry from:
 'C:\Users\toby\.m2\plugi n-registry.xml'
 [DEBUG] Building Maven global-level plugin registry from: 'c:\Program
 Files\Java
 \maven-2.0.7\bin\..\conf\plugin-registry.xml'
 [INFO] Scanning for projects...
 [INFO] Searching repository for plugin with prefix: 'archetype'.
 [DEBUG] Loading plugin prefixes from group: org.apache.maven.plugins
 [INFO] org.apache.maven.plugins: checking for updates from central
 [DEBUG] repository metadata for: 'org.apache.maven.plugins' could not
 be
 found o
 n repository: central
 [DEBUG] Loading plugin prefixes from group: org.codehaus.mojo [INFO]
 org.codehaus.mojo: checking for updates from central [DEBUG]
 repository metadata for: 'org.codehaus.mojo' could not be
 found on
 repos
 itory: central
 [INFO] artifact org.apache.maven.plugins:maven-archetype-plugin:
 checking
 for up
 dates from central
 [DEBUG] repository metadata for: 'artifact
 org.apache.maven.plugins:maven-archet
 ype-plugin' could not be found on repository: central
 [DEBUG] maven-archetype-plugin: using locally installed snapshot
 [DEBUG] Artifact not found - using stub model: Unable to determine
 the
 latest ve
 rsion

   org.apache.maven.plugins:maven-archetype-plugin:pom:LATEST


 [DEBUG] Using defaults for missing POM
 org.apache.maven.plugins:maven-archetype-
 plugin:pom:LATEST
 [DEBUG] maven-archetype-plugin: using locally installed snapshot
 [DEBUG] Artifact not found - using stub model: Unable to determine
 the
 release v
 ersion

   org.apache.maven.plugins:maven-archetype-plugin:pom:RELEASE


 [DEBUG] Using defaults for missing POM
 org.apache.maven.plugins:maven-archetype-
 plugin:pom:RELEASE
 [INFO]

 
 [ERROR] BUILD ERROR
 [INFO]

 
 [INFO] The plugin 'org.apache.maven.plugins:maven-archetype-plugin'
 does not
 exi
 st or no valid version could be found
 [INFO]

 
 [DEBUG] Trace
 org.apache.maven.lifecycle.LifecycleExecutionException: The plugin
 'org.apache.m aven.plugins:maven-archetype-plugin' does not exist or
 no valid
 version
 could be
  found
 at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(Defa
 ultLifecycleExecutor.java:1286)
 at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor
 (DefaultLifecycleExecutor.java:1522)
 at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListBy
 AggregationNeeds(DefaultLifecycleExecutor.java:386)
 at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
 fecycleExecutor.java:138)
 at
 org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
 at
 org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
 at org.apache.maven.cli.MavenCli.main(MavenCli.java:280)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
 Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
 java:39)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
 sorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:597)
 at
 org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
 at
 org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
 at
 org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)

 at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
 Caused by:
 org.apache.maven.plugin.version.PluginVersionNotFoundException:
 The p
 lugin 'org.apache.maven.plugins:maven-archetype-plugin' does not
 exist 

Re: Artifact problem on vista

2007-11-20 Thread Wayne Fay
Unfortunately, you've exhausted my personal list of things to check
when Maven does not work. Based on what you've said, it seems to be
something in Vista that is causing you problems, but since I don't run
Vista, I'm not much help.

Perhaps someone else on Vista who does not have these problems will
reply with how they got it working. And if/when you solve the problem,
please do reply back with instructions for other people.

Wayne

On 11/20/07, Toby Hobson [EMAIL PROTECTED] wrote:
 Nope ... just a normal wifi router/firewall and my xp laptop works ok

 Toby

 - Original Message 
 From: Wayne Fay [EMAIL PROTECTED]
 To: Maven Users List users@maven.apache.org
 Sent: Tuesday, 20 November, 2007 10:52:55 PM
 Subject: Re: Artifact problem on vista

 Are you perhaps behind an Internet proxy of some kind? If so, you must
 configure things in settings.xml. This is documented on the site
 and/or Wiki.

 Wayne

 On 11/20/07, Toby Hobson [EMAIL PROTECTED] wrote:
  ok good point Wayne! I've disabled the windows firewall and antivirus
  but
  i'm still having no luck:
 
  C:\Users\toby\workspacemvn -DgroupId=com.test -DartifactId=test -X
  -U
  archetype
  :create
  + Error stacktraces are turned on.
  Maven version: 2.0.7
  Java version: 1.6.0_03
  OS name: windows vista version: 6.0 arch: x86
  [DEBUG] Building Maven user-level plugin registry from:
  'C:\Users\toby\.m2\plugi
  n-registry.xml'
  [DEBUG] Building Maven global-level plugin registry from: 'c:\Program
  Files\Java
  \maven-2.0.7\bin\..\conf\plugin-registry.xml'
  [INFO] Scanning for projects...
  [INFO] Searching repository for plugin with prefix: 'archetype'.
  [DEBUG] Loading plugin prefixes from group: org.apache.maven.plugins
  [INFO] org.apache.maven.plugins: checking for updates from central
  [DEBUG] repository metadata for: 'org.apache.maven.plugins' could not
  be
  found o
  n repository: central
  [DEBUG] Loading plugin prefixes from group: org.codehaus.mojo
  [INFO] org.codehaus.mojo: checking for updates from central
  [DEBUG] repository metadata for: 'org.codehaus.mojo' could not be
  found on
  repos
  itory: central
  [INFO] artifact org.apache.maven.plugins:maven-archetype-plugin:
  checking
  for up
  dates from central
  [DEBUG] repository metadata for: 'artifact
  org.apache.maven.plugins:maven-archet
  ype-plugin' could not be found on repository: central
  [DEBUG] maven-archetype-plugin: using locally installed snapshot
  [DEBUG] Artifact not found - using stub model: Unable to determine
  the
  latest ve
  rsion
 
org.apache.maven.plugins:maven-archetype-plugin:pom:LATEST
 
 
  [DEBUG] Using defaults for missing POM
  org.apache.maven.plugins:maven-archetype-
  plugin:pom:LATEST
  [DEBUG] maven-archetype-plugin: using locally installed snapshot
  [DEBUG] Artifact not found - using stub model: Unable to determine
  the
  release v
  ersion
 
org.apache.maven.plugins:maven-archetype-plugin:pom:RELEASE
 
 
  [DEBUG] Using defaults for missing POM
  org.apache.maven.plugins:maven-archetype-
  plugin:pom:RELEASE
  [INFO]
 
  
  [ERROR] BUILD ERROR
  [INFO]
 
  
  [INFO] The plugin 'org.apache.maven.plugins:maven-archetype-plugin'
  does not
  exi
  st or no valid version could be found
  [INFO]
 
  
  [DEBUG] Trace
  org.apache.maven.lifecycle.LifecycleExecutionException: The plugin
  'org.apache.m
  aven.plugins:maven-archetype-plugin' does not exist or no valid
  version
  could be
   found
  at
  org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(Defa
  ultLifecycleExecutor.java:1286)
  at
  org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor
  (DefaultLifecycleExecutor.java:1522)
  at
  org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListBy
  AggregationNeeds(DefaultLifecycleExecutor.java:386)
  at
  org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
  fecycleExecutor.java:138)
  at
  org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
  at
  org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
  at org.apache.maven.cli.MavenCli.main(MavenCli.java:280)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
  Method)
  at
  sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
  java:39)
  at
  sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
  sorImpl.java:25)
  at java.lang.reflect.Method.invoke(Method.java:597)
  at
  org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
  at
  org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
  at
  org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
 
  at 

Proximity into corporate use

2007-11-20 Thread hackaton

I would like to put Proximity into corporate use. While anyone can download
artifacts from Proximity, only a few people can do deploy.

I would like to setup the AffirmativeAccessManager to use
ComplexPropertiesFileUsernameBasedAccessDecisionVoter. However, I get return
code 500, when I do “deploy:deploy-file!

I added some debug codes and found the “request.username” from the Voter was
“null”. I did add a “server” entry with username and password in setting.xml
and specify it in –DrepositoryId when I did “deploy:deploy-file”, like:

mvn deploy:deploy-file -DrepositoryId= -Durl=http:// …. 

After reading the follow mail
http://www.nabble.com/Re%3A-Proximity-with-https-client-certs-tf1711334s177.html#a4646452

I guess using https is a MUST?
-- 
View this message in context: 
http://www.nabble.com/Proximity-into-corporate-use-tf4848068s177.html#a13871104
Sent from the Maven - Users mailing list archive at Nabble.com.


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



How to pass different options to javac during compile and testCompile goals?

2007-11-20 Thread Sahoo
(Resending as I am on the users alias now. I have also put a reference 
to a similar unsolved question from the past)


Hi,

I want to pass different options to maven-compiler-plugin during compile
and testCompile goals. Let's say, I want to set source level as 1.4 for
all my src/main/java code and set source level as 1.5 for my test
sources. How do I do it? I found someone having similar requirements in 
the past [1], but there is no mention of a working solution yet.


Thanks,
Sahoo

[1] 
http://mail-archives.apache.org/mod_mbox/maven-users/200609.mbox/[EMAIL PROTECTED]





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



Re: How to pass different options to javac during compile and testCompile goals?

2007-11-20 Thread Milos Kleint

Sahoo wrote:
(Resending as I am on the users alias now. I have also put a reference 
to a similar unsolved question from the past)


Hi,

I want to pass different options to maven-compiler-plugin during compile
and testCompile goals. Let's say, I want to set source level as 1.4 for
all my src/main/java code and set source level as 1.5 for my test
sources. How do I do it? I found someone having similar requirements 
in the past [1], but there is no mention of a working solution yet.


Thanks,
Sahoo

[1] 
http://mail-archives.apache.org/mod_mbox/maven-users/200609.mbox/[EMAIL PROTECTED] 






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


what about something like this?

build
  plugins
  plugin
  groupIdorg.apache.maven.plugins/groupId
  artifactIdmaven-compiler
-plugin/artifactId
  configuration
 
compilerVersion${sourceLevel}/compilerVersion

  source${sourceLevel}/source
  target${sourceLevel}/target
  /configuration
  executions
  execution
  idcompile-tests/id
  phaseprocess-test-sources/phase
  goals
  goaltestCompile/goal
  /goals
  configuration
 
source${testSourceLevel}/source
 
target${testSourceLevel}/target

  /configuration
  /execution
  /executions
  /plugin
  /plugins
/build
properties
  sourceLevel1.4/sourceLevel
  testSourceLevel1.5/testSourceLevel
/properties

Regards

Milos Kleint


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



How to pass different options to javac during compile and testCompile goals?

2007-11-20 Thread Sahoo
(I have not yet subscribed to users alias, so please copy a reply 
directly to me)


Hi,

I want to pass different options to maven-compiler-plugin during compile 
and testCompile goals. Let's say, I want to set source level as 1.4 for 
all my src/main/java code and set source level as 1.5 for my test 
sources. How do I do it?


Thanks,
Sahoo



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



[FWD: Maven2 and Sun Jars]

2007-11-20 Thread Travis Winkler
project 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/maven-v4_0_0.xsd;

modelVersion4.0.0/modelVersion

groupIdcom.dolby.atlassian.confluence/groupId
artifactIdconfluence-soap-model/artifactId
packagingjar/packaging

nameAtlassian CONFLUENCE Soap Model/name
version0.1/version
url/url
descriptionThis library exposes precompiled wsdl to allow dependant 
access to CONFLUENCE instances via web services/description

!--
issueManagement
systemAtlassian Developer JIRA/system
urlhttp://developer.atlassian.com/confluence/browse/soaplib/url
/issueManagement

scm

connectionscm:svn:http://svn.atlassian.com/svn/public/contrib/confluence/soaplib/trunk
/connection
developerConnection

scm:svn:https://svn.atlassian.com/svn/public/contrib/confluence/soaplib/trunk
/developerConnection

urlhttp://svn.atlassian.com/fisheye/browse/public/contrib/confleunce/soaplib/trunk/url
/scm
--

licenses
license
nameGPL v3/name
distributionhttp://www.gnu.org/licenses/gpl-3.0.txt/distribution
comments
 Copyright (c) 2007, Dolby Laboratories, Inc.  
All rights reserved.
/comments
/license
/licenses

developers
developer
nameAndy Brook/name
emailaxb at dolby dot co dot uk/email
organizationDolby Laboratories, Inc./organization
organizationUrlhttp://www.dolby.co.uk//organizationUrl
roles
roleDeveloper/role
/roles
timezone0/timezone
/developer
/developers

!--
organization
nameAtlassian Developer Network/name
urlhttp://confluence.atlassian.com/display/CONFEXT/SoapLib/url
/organization
--

dependencies
dependency
groupIdjavax.mail/groupId
artifactIdmail/artifactId
version1.4/version
/dependency
dependency
  groupIdjavax.activation/groupId
  artifactIdactivation/artifactId
  version1.1/version 
/dependency
dependency
groupIdcommons-discovery/groupId
artifactIdcommons-discovery/artifactId
version0.2/version
/dependency
dependency
groupIdcommons-logging/groupId
artifactIdcommons-logging/artifactId
version1.1/version
/dependency
dependency
groupIdaxis/groupId
artifactIdaxis/artifactId
version1.4/version
/dependency
dependency
groupIdaxis/groupId
artifactIdaxis-jaxrpc/artifactId
version1.4/version
/dependency
dependency
groupIdaxis/groupId
artifactIdaxis-saaj/artifactId
version1.4/version
/dependency
dependency
groupIdaxis/groupId
artifactIdaxis-wsdl4j/artifactId
version1.5.1/version
/dependency
/dependencies


!--  for full build use: mvn clean site install --
!--  depgraph:depgraph, if uncommented below will regenerate 
target/depgraph.png --
build
!-- This will automatically put POM settings into atlassian-plugin.xml 
when building.  --
resources
resource
directorysrc/main/resources/directory
includes
include**/*.properties/include
include**/*.xml/include
/includes
/resource
resource
directorysrc/main/resources/directory
filteringtrue/filtering
includes
include**/*.properties/include
include**/*.xml/include
/includes
/resource
/resources
testResources
testResource
directorysrc/test/resources/directory
filteringtrue/filtering
includes
include**/*.xml/include
include**/*.properties/include
/includes
/testResource
/testResources

plugins

!--  ensure we build what we're targetting --
plugin
artifactIdmaven-compiler-plugin/artifactId
configuration
source1.5/source
target1.5/target
/configuration
/plugin

!-- target = axistools:wsdl2java --
plugin
groupIdorg.codehaus.mojo/groupId
artifactIdaxistools-maven-plugin/artifactId
configuration
sourceDirectorywsdl/sourceDirectory


Re: solaris package (pkg) support

2007-11-20 Thread deckrider
On Oct 17, 2007 5:00 PM, Dan Tran [EMAIL PROTECTED] wrote:
 could you try this

 http://mojo.codehaus.org/solaris-maven-plugin/

 and give feed back?

I couldn't get this to work.  Looking through the docs as well as
finding this subversion repository ...

https://svn.codehaus.org/mojo/trunk/sandbox/solaris-maven-plugin/

... it seems that not much is yet supported.  Here is some good documentation:

http://docs.sun.com/app/docs/doc/817-0406

It would be great if all the special packaging files could be
supported, including at least these:

checkinstall
depend
pkginfo (appears to be already supported)
postinstall
postremove
preinstall
preremove
prototype (not sure how exactly this is currently implemented)
request

Also, I think it is vital to be able to customize owners (for
instance, default file owners to root:bin or some other id) without
having to assume those privileges during the build.

Normally (outside of maven) I run a shell script that utilizes
fakeroot to customize the staging directory with the required
user:group ownership followed by running pkgproto (still under the
same fakeroot instance) to generate the correct prototype.

But perhaps I'm missing how the above things would be achieved while
using this plugin.  I would be grateful for any help.

Thanks,
Dave.

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



RE: Artifact problem on vista

2007-11-20 Thread David Florance
This won't help you much (because I don't already found a solution /
workaround) but I have a problem which can be linked to yours. I use an
archiva server. When I package my projects with a PC on Windows XP (mine
or one of my dev team), everything works OK but when my leader try with
it's laptop on Windows Vista, maven is not able to download artifact. I
also have the same problem with a PC on Windows Server 2003 R2.

The log of archiva says that the server has received the request but
can't perform it ... Quite strange...
I'm gonna try all the tests without antivirus / firewall / ...

David.

-Original Message-
From: Wayne Fay [mailto:[EMAIL PROTECTED] 
Sent: mercredi 21 novembre 2007 00:59
To: Maven Users List
Subject: Re: Artifact problem on vista


Unfortunately, you've exhausted my personal list of things to check when
Maven does not work. Based on what you've said, it seems to be something
in Vista that is causing you problems, but since I don't run Vista, I'm
not much help.

Perhaps someone else on Vista who does not have these problems will
reply with how they got it working. And if/when you solve the problem,
please do reply back with instructions for other people.

Wayne

On 11/20/07, Toby Hobson [EMAIL PROTECTED] wrote:
 Nope ... just a normal wifi router/firewall and my xp laptop works ok

 Toby

 - Original Message 
 From: Wayne Fay [EMAIL PROTECTED]
 To: Maven Users List users@maven.apache.org
 Sent: Tuesday, 20 November, 2007 10:52:55 PM
 Subject: Re: Artifact problem on vista

 Are you perhaps behind an Internet proxy of some kind? If so, you must

 configure things in settings.xml. This is documented on the site 
 and/or Wiki.

 Wayne

 On 11/20/07, Toby Hobson [EMAIL PROTECTED] wrote:
  ok good point Wayne! I've disabled the windows firewall and 
  antivirus
  but
  i'm still having no luck:
 
  C:\Users\toby\workspacemvn -DgroupId=com.test -DartifactId=test -X
  -U
  archetype
  :create
  + Error stacktraces are turned on.
  Maven version: 2.0.7
  Java version: 1.6.0_03
  OS name: windows vista version: 6.0 arch: x86
  [DEBUG] Building Maven user-level plugin registry from: 
  'C:\Users\toby\.m2\plugi n-registry.xml'
  [DEBUG] Building Maven global-level plugin registry from:
'c:\Program
  Files\Java
  \maven-2.0.7\bin\..\conf\plugin-registry.xml'
  [INFO] Scanning for projects...
  [INFO] Searching repository for plugin with prefix: 'archetype'.
  [DEBUG] Loading plugin prefixes from group: org.apache.maven.plugins
  [INFO] org.apache.maven.plugins: checking for updates from central
  [DEBUG] repository metadata for: 'org.apache.maven.plugins' could
not
  be
  found o
  n repository: central
  [DEBUG] Loading plugin prefixes from group: org.codehaus.mojo [INFO]

  org.codehaus.mojo: checking for updates from central [DEBUG] 
  repository metadata for: 'org.codehaus.mojo' could not be
  found on
  repos
  itory: central
  [INFO] artifact org.apache.maven.plugins:maven-archetype-plugin:
  checking
  for up
  dates from central
  [DEBUG] repository metadata for: 'artifact 
  org.apache.maven.plugins:maven-archet
  ype-plugin' could not be found on repository: central [DEBUG] 
  maven-archetype-plugin: using locally installed snapshot [DEBUG] 
  Artifact not found - using stub model: Unable to determine
  the
  latest ve
  rsion
 
org.apache.maven.plugins:maven-archetype-plugin:pom:LATEST
 
 
  [DEBUG] Using defaults for missing POM
  org.apache.maven.plugins:maven-archetype-
  plugin:pom:LATEST
  [DEBUG] maven-archetype-plugin: using locally installed snapshot 
  [DEBUG] Artifact not found - using stub model: Unable to determine
  the
  release v
  ersion
 
org.apache.maven.plugins:maven-archetype-plugin:pom:RELEASE
 
 
  [DEBUG] Using defaults for missing POM
  org.apache.maven.plugins:maven-archetype-
  plugin:pom:RELEASE
  [INFO]
 
  


  [ERROR] BUILD ERROR
  [INFO]
 
  


  [INFO] The plugin 'org.apache.maven.plugins:maven-archetype-plugin'
  does not
  exi
  st or no valid version could be found
  [INFO]
 
  


  [DEBUG] Trace
  org.apache.maven.lifecycle.LifecycleExecutionException: The plugin 
  'org.apache.m aven.plugins:maven-archetype-plugin' does not exist or

  no valid
  version
  could be
   found
  at 
  org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(Def
  a
  ultLifecycleExecutor.java:1286)
  at
 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor
  (DefaultLifecycleExecutor.java:1522)
  at
 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListBy
  AggregationNeeds(DefaultLifecycleExecutor.java:386)
  at
 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
  fecycleExecutor.java:138)
  at