Re : Re : Axistool WSDL -> JAVA

2006-09-29 Thread langlois yan
Do you mean that axistool plugin is not designed to work with this kind of file 
path ?
 
 Yan.

- Message d'origine 
De : Jörg Schaible <[EMAIL PROTECTED]>
À : Maven Users List 
Envoyé le : Vendredi, 29 Septembre 2006, 8h52mn 27s
Objet : RE: Re : Axistool WSDL -> JAVA

langlois yan wrote on Friday, September 29, 2006 8:45 AM:

> When I use the file://c:/dir/file.wsdl I have this error message :
> 
> [INFO] Executing tasks
>  [echo] Tache Generation sources
> [INFO] Executed tasks
> [INFO] Registering compile source root
> D:\...\target\generated-sources\main\java
> [INFO] [axistools:wsdl2java {execution: default}]
> [INFO] about to add compile source root
> [INFO]
> --
> --
> [ERROR] BUILD ERROR
> [INFO]
> --
> --
> [INFO] error executing plugin
> 
> Embedded error: unable to download WSDL file from
> file://D:\dev\.../src\main\webapp\WEB-INF\wsdl\file.wsdl to
> D:\dev\...\target\axistools\wsdl2java\urlDownloads\file---D--dev-...-src-main-weba
> pp-WEB-INF-wsdl-file.wsdl. Reason: java.net.UnknownHostException: D
> [INFO] 
> --
> --
> [INFO] Trace
> org.apache.maven.lifecycle.LifecycleExecutionException: error
> executing plugin 

Right, it's not a proper URL!

Either:

file://localhost/c:/dir/file.wsdl

or short form:

file:///c:/dir/file.wsdl

- Jörg

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







Re: Re : Re : Axistool WSDL -> JAVA

2006-09-29 Thread Wayne Fay

No that's not what he meant... COUNT the number of backslashes in his
example. Then adjust your path and try again.

Wayne

On 9/29/06, langlois yan <[EMAIL PROTECTED]> wrote:

Do you mean that axistool plugin is not designed to work with this kind of file 
path ?

 Yan.

- Message d'origine 
De : Jörg Schaible <[EMAIL PROTECTED]>
À : Maven Users List 
Envoyé le : Vendredi, 29 Septembre 2006, 8h52mn 27s
Objet : RE: Re : Axistool WSDL -> JAVA

langlois yan wrote on Friday, September 29, 2006 8:45 AM:

> When I use the file://c:/dir/file.wsdl I have this error message :
>
> [INFO] Executing tasks
>  [echo] Tache Generation sources
> [INFO] Executed tasks
> [INFO] Registering compile source root
> D:\...\target\generated-sources\main\java
> [INFO] [axistools:wsdl2java {execution: default}]
> [INFO] about to add compile source root
> [INFO]
> --
> --
> [ERROR] BUILD ERROR
> [INFO]
> --
> --
> [INFO] error executing plugin
>
> Embedded error: unable to download WSDL file from
> file://D:\dev\.../src\main\webapp\WEB-INF\wsdl\file.wsdl to
> 
D:\dev\...\target\axistools\wsdl2java\urlDownloads\file---D--dev-...-src-main-weba
> pp-WEB-INF-wsdl-file.wsdl. Reason: java.net.UnknownHostException: D
> [INFO]
> --
> --
> [INFO] Trace
> org.apache.maven.lifecycle.LifecycleExecutionException: error
> executing plugin

Right, it's not a proper URL!

Either:

file://localhost/c:/dir/file.wsdl

or short form:

file:///c:/dir/file.wsdl

- Jörg

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









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



test-jar - unknown artefact type

2006-09-29 Thread Ken Helmes
Hello,

 

Has anyone run into this error when trying to use the "test-jar" type:

 

"Embedded error: Unknown artefact type[test-jar]"

 

-  Maven 2.0.4

-  The actual test-jar is created correctly and can be found from
the repository.  It is when being used that the error comes:



  config

  config_logic

  1.28-SNAPSHOT

  test-jar



 

Ken Helmes



 



Re : Re : Re : Axistool WSDL -> JAVA

2006-09-29 Thread langlois yan
thanks, it worked !

Yan.

- Message d'origine 
De : Wayne Fay <[EMAIL PROTECTED]>
À : Maven Users List 
Envoyé le : Vendredi, 29 Septembre 2006, 9h14mn 40s
Objet : Re: Re : Re : Axistool WSDL -> JAVA

No that's not what he meant... COUNT the number of backslashes in his
example. Then adjust your path and try again.

Wayne

On 9/29/06, langlois yan <[EMAIL PROTECTED]> wrote:
> Do you mean that axistool plugin is not designed to work with this kind of 
> file path ?
>
>  Yan.
>
> - Message d'origine 
> De : Jörg Schaible <[EMAIL PROTECTED]>
> À : Maven Users List 
> Envoyé le : Vendredi, 29 Septembre 2006, 8h52mn 27s
> Objet : RE: Re : Axistool WSDL -> JAVA
>
> langlois yan wrote on Friday, September 29, 2006 8:45 AM:
>
> > When I use the file://c:/dir/file.wsdl I have this error message :
> >
> > [INFO] Executing tasks
> >  [echo] Tache Generation sources
> > [INFO] Executed tasks
> > [INFO] Registering compile source root
> > D:\...\target\generated-sources\main\java
> > [INFO] [axistools:wsdl2java {execution: default}]
> > [INFO] about to add compile source root
> > [INFO]
> > --
> > --
> > [ERROR] BUILD ERROR
> > [INFO]
> > --
> > --
> > [INFO] error executing plugin
> >
> > Embedded error: unable to download WSDL file from
> > file://D:\dev\.../src\main\webapp\WEB-INF\wsdl\file.wsdl to
> > D:\dev\...\target\axistools\wsdl2java\urlDownloads\file---D--dev-...-src-main-weba
> > pp-WEB-INF-wsdl-file.wsdl. Reason: java.net.UnknownHostException: D
> > [INFO]
> > --
> > --
> > [INFO] Trace
> > org.apache.maven.lifecycle.LifecycleExecutionException: error
> > executing plugin
>
> Right, it's not a proper URL!
>
> Either:
>
> file://localhost/c:/dir/file.wsdl
>
> or short form:
>
> file:///c:/dir/file.wsdl
>
> - Jörg
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
>
>
>

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







[m2] how to config exec-maven-plugin to run different java programs?

2006-09-29 Thread Man-Chi Leung

hi,

i would like to a use mvn to exec different java programs between the 
same project directory just similarly like  Ant tasks

$ant prog1 (execute my first java program)
$ant prog2 (execute my secound java program)

this is my current setting in pom.xml:

org.codehaus.mojo
exec-maven-plugin

   
java





-classpath





however, i only able to do the followings, which is a bit too long, any 
better way to shorten this ? yes, I am lazy :-P . sorry!

$mvn exec:java -Dexec.mainClass="com.example.Program1"
$mvn exec:java -Dexec.mainClass="com.example.Program2"

-
My question: is it possible to do these
-
$ant exec:prog1  (execute my first java program)
$mvn exec:prog2 (execute my secound java program)

pls help
~manchi



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



Re: [M1] compiling jasper reports

2006-09-29 Thread Wim Deblauwe

I found the solution, I'm posting it here in case anybody got the same
problem. It seems that you need to include ant-apache-regexp *and*
jakarta-regexp to your dependencies. Even more you need to add the
root property to you dependencies.

This is the relevant piece in the project.xml:

   
   
   ant
   ant-apache-regexp
   1.6.5
   
   root
   
   
   
   jakarta-regexp
   jakarta-regexp
   1.4
   
   root
   
   
   

And these are the bits I added to my maven.xml:

   
   
   

   
   
   
   
   
   
   

   
   
   
   
   
   
   
   

regards,

Wim

2006/9/28, Wim Deblauwe <[EMAIL PROTECTED]>:


Hi,

anybody has experience with compiling jasperreports with Maven 1?

I tried to integrate their ant task into my maven.xml, but I keep getting
"No supported regular expression matcher found".

I check the jasper forums (http://www.jasperforge.org) and found simular
questions, but none of the proposed solutions seem to work.

any help would be highly appriciated!

regards,

Wim



Re: [M1] compiling jasper reports

2006-09-29 Thread Geoffrey De Smet
In maven 2, the mojo jasperreports-maven-plugin svn SNAPSHOT works like 
a charm... There 'll release it soon probably.


Wim Deblauwe wrote, On 2006-09-28 4:34 PM:

Hi,

anybody has experience with compiling jasperreports with Maven 1?

I tried to integrate their ant task into my maven.xml, but I keep getting
"No supported regular expression matcher found".

I check the jasper forums (http://www.jasperforge.org) and found simular
questions, but none of the proposed solutions seem to work.

any help would be highly appriciated!

regards,

Wim



--
With kind regards,
Geoffrey De Smet


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



Re: test-jar - unknown artefact type

2006-09-29 Thread Tom Huybrechts

Can you give us some more context for the error ?
Try giving your test-jar dependency a test

Tom

On 9/29/06, Ken Helmes <[EMAIL PROTECTED]> wrote:


Hello,



Has anyone run into this error when trying to use the "test-jar" type:



"Embedded error: Unknown artefact type[test-jar]"



-  Maven 2.0.4

-  The actual test-jar is created correctly and can be found from
the repository.  It is when being used that the error comes:



  config

  config_logic

  1.28-SNAPSHOT

  test-jar





Ken Helmes









Re: [M2] maven-clean-plugin and multi-module build

2006-09-29 Thread Man-Chi Leung

hi ,

this is my pom.xml

when I did "mvn clean"
it cleaned up my /logs directory but the empty  "logs" directory was 
not removed!

may I know how to delete directory "logs" as well ?



maven-clean-plugin




${basedir}/logs


*








On 2006-08-28 23:02:40 +0800, Jörg Schaible 
<[EMAIL PROTECTED]> said:



ArneD wrote on Monday, August 28, 2006 3:57 PM:


I have a multi-module build. In one of the sub-modules I use the
maven-clean-plugin in the pom.xml as follows:


maven-clean-plugin 

WebContent/WEB-INF/lib   
*







The WebContent/WEB-INF/lib folder gets cleaned, when I call
mvn clean on the
sub-module. But it does not get cleaned when I call mvn clean
on the main
module.

Should I file a JIRA issue? Or am I making a mistake? Is there any
workaround available?


Prepend "${basedir}/" to the directory. Maven does not change the  
working directory for (sub-)modules.


- Jörg





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



Re: [M1] compiling jasper reports

2006-09-29 Thread Wim Deblauwe

cool. If the surefire and the testng plugin now also would be released, I
could continue my conversion to Maven2...

regards,

Wim

2006/9/29, Geoffrey De Smet <[EMAIL PROTECTED]>:


In maven 2, the mojo jasperreports-maven-plugin svn SNAPSHOT works like
a charm... There 'll release it soon probably.

Wim Deblauwe wrote, On 2006-09-28 4:34 PM:
> Hi,
>
> anybody has experience with compiling jasperreports with Maven 1?
>
> I tried to integrate their ant task into my maven.xml, but I keep
getting
> "No supported regular expression matcher found".
>
> I check the jasper forums (http://www.jasperforge.org) and found simular
> questions, but none of the proposed solutions seem to work.
>
> any help would be highly appriciated!
>
> regards,
>
> Wim
>

--
With kind regards,
Geoffrey De Smet


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




Re:Re: test-jar - unknown artefact type

2006-09-29 Thread Ken Helmes
Tom,
 
(This comes as a new post since I was unsubscribed.  I am subscribed again.)
 
I am working almost exactly from the directions given here:
 
http://maven.apache.org/guides/mini/guide-attached-tests.html
 
module1 - t2_config (ear level) - multilevel build creates a
t2_config_logic-1.28-SNAPSHOT-tests.jar including its unit tests.
The jar level pom includes this and works.

maven-jar-plugin

   

 

   

 test-jar

   

 

   
 
module2 - t2_test (ear level) - multilevel build wants to include t2_config
test-jar in its ear.
The ear packaging pom tries to include this:



  t2.1_0_0.t2_config

  t2_config_logic

  1.28-SNAPSHOT

  test-jar


 
Putting test results in a successful ear build, but the
t2_config-logic.-tests.jar is not included in the module2 ear.
 
Regards,
Ken
 
 
>Can you give us some more context for the error ?
>Try giving your test-jar dependency a test
 
>Tom
 
>On 9/29/06, Ken Helmes <[EMAIL PROTECTED]> wrote:
> 
> Hello,
> 
> 
> 
> Has anyone run into this error when trying to use the "test-jar" type:
> 
> 
> 
> "Embedded error: Unknown artefact type[test-jar]"
> 
> 
> 
> -  Maven 2.0.4
> 
> -  The actual test-jar is created correctly and can be found from
> the repository.  It is when being used that the error comes:
> 
> 
> 
>   config
> 
>   config_logic
> 
>   1.28-SNAPSHOT
> 
>   test-jar
> 
> 
> 
> 
> 
> Ken Helmes
> 
> 
 

 



maven-antrun-plugin configure ${env.path}

2006-09-29 Thread Johan Vogelzang

Hello all,


From Maven[2.0.4] I want to use an existing third-paty ant-build script, by

executing tasks via the maven-antrun-plugin.
Some of the tasks in the ant-build script depend on Windows dll's, so these
dll's must be loaded on de PATH environment variable before the ant-scripts
runs.

Two questions:
1) Can I configure dll's as dependencies
2) Can I add these dll-dependencies to the PATH (${env.parh}) before the
ant-script runs.

Note: I do not want to make changes to the existingn ant-scripts, because
future versions are in hands of a third-party.

Thanx,
--
Johan


Setting up mirror of ibiblio?

2006-09-29 Thread Kapil Gupta
I would like to setup a common internal Maven Repository for different
projects running in my company which will mirror the global Maven
Repository at ibiblio. Now instead of downloading artifacts from ibiblio
all the client machines (running build process) should go the internal
Maven Repository. In case it is unable to find any artifact in the
internal repository it should give an error instead of going to ibiblio.

I did try by modifying the settings.xml file, setting up a mirror server
for ibiblio, but in this case if a client machine is unable to find the
artifact in the internal repository it goes to the net (ibiblio site) to
download. If I disable the proxies then it does not even goes to the
internal repository. 

 

Please suggest a suitable solution.

 

Regards,

Kapil

 

CONFIDENTIALITY NOTICE
This e-mail transmission and any documents, files, or previous e-mail
messages appended or attached to it, may contain information that is
confidential or legally privileged. If you are not the intended
recipient, or a person responsible for delivering it to the intended
recipient, you are hereby notified that you must not read this
transmission and that any disclosure, copying, printing, distribution,
or use of the information contained or attached to this transmission is
STRICTLY PROHIBITED. If you have received this transmission in error,
please immediately notify the sender by telephone +91.172.229.9450 or
return e-mail message [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]>  and delete the original
transmission, its attachments, and any copies without reading or saving
in any manner. Thank you.

 



Re: assembly plugin and fileset exclusion

2006-09-29 Thread berndq



Lookin at the new plugin doku at
http://people.apache.org/~epunzalan/maven-assembly-plugin/assembly.html
there is an  for .

What version of the plugin is it documenting? 2.1?


I could made it work with 2.2-SNAPSHOT

Bernd



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



[M2] Surefire executing a single test suite.

2006-09-29 Thread Michael Rimov
Hi All,

 

I've been working on updating the build system for a project
(http://emo.sf.net/) to maven2.

 

Because of the extensive database setup, it all unit tests execute through a
single test suite which has the format liket his:

 

com.sri.emo.test.EmoTestSuite

 

public static junit.framework.Test suite() throws Exception {

EmoTestSuite ts = new EmoTestSuite();

ts.addTest(com.sri.emo.dbobj.TestSchema.suite());

ts.addTestSuite(com.sri.emo.TestEmoSchema.class);

ts.addTestSuite(com.sri.emo.test.TestDatabaseTestFixture.class);

 

  //Other test suites

  return ts;

}

 

It has been working successfully under Maven1.

 

The relevant section of my POM is:

 



org.apache.maven.plugins

maven-surefire-plugin



pertest



none






**/EmoTestSuite*



-ea





 
junit.argv.webAppDir

 
${basedir}/webapps/emo 





 
junit.argv.configDir

 
${basedir}/testing/config





 
junit.argv.testContext

unittest





 
unit.argv.logDir

 
${basedir}/webapps/emo/WEB-INF/log










 

Unfortunately, I get:

 

---

 T E S T S

---

There are no tests to run.

 

Results :

Tests run: 0, Failures: 0, Errors: 0, Skipped: 0

 

I have:

 

1 - Verified that the target class is indeed getting compiled

2 - Tried debug mode to see if I could discern anything helpful. 

3 - Checked Spelling :-)

And of course..

4 - Googled :-)

 

Any ideas?

 

 
-Mike

 



Re: [M2] maven-clean-plugin and multi-module build

2006-09-29 Thread dan tran

The present of  means you want to remove all files under
${basedir}/log excluding directory
So remove your  tag would do what you want.

However, having to prefix with ${basedir} is bad, by convention we dont need
to do that for directory/file type.
Clean mojo should be able to fix that. Please file a Jira.

-D

On 9/29/06, Man-Chi Leung <[EMAIL PROTECTED]> wrote:


hi ,

this is my pom.xml

when I did "mvn clean"
it cleaned up my /logs directory but the empty  "logs" directory was
not removed!
may I know how to delete directory "logs" as well ?



   maven-clean-plugin
   
   
   

${basedir}/logs
   

*
   
   
   
   
   



On 2006-08-28 23:02:40 +0800, Jörg Schaible
<[EMAIL PROTECTED]> said:

> ArneD wrote on Monday, August 28, 2006 3:57 PM:
>
>> I have a multi-module build. In one of the sub-modules I use the
>> maven-clean-plugin in the pom.xml as follows:
>>
>> 
>> maven-clean-plugin

>> 
>> WebContent/WEB-INF/lib  
>> *
>> 
>> 
>> 
>> 
>> 
>>
>> The WebContent/WEB-INF/lib folder gets cleaned, when I call
>> mvn clean on the
>> sub-module. But it does not get cleaned when I call mvn clean
>> on the main
>> module.
>>
>> Should I file a JIRA issue? Or am I making a mistake? Is there any
>> workaround available?
>
> Prepend "${basedir}/" to the directory. Maven does not change the
> working directory for (sub-)modules.
>
> - Jörg




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




Maven2 - Setting Internal Maven Repository as Mirror of ibiblio

2006-09-29 Thread Vikas Gupta\(SCM\)
Hi All,

 

I would like to setup an internal Maven Repository which will mirror the
global Maven Repository at ibiblio. Now instead of downloading artifacts
from ibiblio it should go the internal Maven Repository. In case it is
unable to find any artifact in the internal repository it should give an
error instead of going to ibiblio.

I did try by modifying the settings.xml file, setting up a mirror server
for ibiblio, but in this case if it is unable to find the artifact in
the internal repository it goes to the net (ibiblio site) to download.
If i disable the proxies then it does not even goes to the internal
repository. 

 

Any idea?

 

 

~Vikas

 



Re: Maven2 - Setting Internal Maven Repository as Mirror of ibiblio

2006-09-29 Thread ben short

Search for '[M2] Mirror' at nabble http://www.nabble.com/Maven---Users-f178.html

Ben

On 9/29/06, Vikas Gupta(SCM) <[EMAIL PROTECTED]> wrote:

Hi All,



I would like to setup an internal Maven Repository which will mirror the
global Maven Repository at ibiblio. Now instead of downloading artifacts
from ibiblio it should go the internal Maven Repository. In case it is
unable to find any artifact in the internal repository it should give an
error instead of going to ibiblio.

I did try by modifying the settings.xml file, setting up a mirror server
for ibiblio, but in this case if it is unable to find the artifact in
the internal repository it goes to the net (ibiblio site) to download.
If i disable the proxies then it does not even goes to the internal
repository.



Any idea?





~Vikas







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



Re: Setting up mirror of ibiblio?

2006-09-29 Thread ben short

Search for '[M2] Mirror' at nabble http://www.nabble.com/Maven---Users-f178.html

Ben

On 9/29/06, Kapil Gupta <[EMAIL PROTECTED]> wrote:

I would like to setup a common internal Maven Repository for different
projects running in my company which will mirror the global Maven
Repository at ibiblio. Now instead of downloading artifacts from ibiblio
all the client machines (running build process) should go the internal
Maven Repository. In case it is unable to find any artifact in the
internal repository it should give an error instead of going to ibiblio.

I did try by modifying the settings.xml file, setting up a mirror server
for ibiblio, but in this case if a client machine is unable to find the
artifact in the internal repository it goes to the net (ibiblio site) to
download. If I disable the proxies then it does not even goes to the
internal repository.



Please suggest a suitable solution.



Regards,

Kapil



CONFIDENTIALITY NOTICE
This e-mail transmission and any documents, files, or previous e-mail
messages appended or attached to it, may contain information that is
confidential or legally privileged. If you are not the intended
recipient, or a person responsible for delivering it to the intended
recipient, you are hereby notified that you must not read this
transmission and that any disclosure, copying, printing, distribution,
or use of the information contained or attached to this transmission is
STRICTLY PROHIBITED. If you have received this transmission in error,
please immediately notify the sender by telephone +91.172.229.9450 or
return e-mail message [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]>  and delete the original
transmission, its attachments, and any copies without reading or saving
in any manner. Thank you.







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



Re: maven-antrun-plugin configure ${env.path}

2006-09-29 Thread dan tran

- You can upload your DLL to your internal remote repo
- Get maven-dependency-plugin to copy it, without version, your desired
location.
- Then you can use antrun to exe a new ant process ( this is where you can
configure
 java.library.path to include your dll path ) to invoke your build script.

May work, very sure about first 2 steps thou

-D


On 9/29/06, Johan Vogelzang <[EMAIL PROTECTED]> wrote:


Hello all,

From Maven[2.0.4] I want to use an existing third-paty ant-build script,
by
executing tasks via the maven-antrun-plugin.
Some of the tasks in the ant-build script depend on Windows dll's, so
these
dll's must be loaded on de PATH environment variable before the
ant-scripts
runs.

Two questions:
1) Can I configure dll's as dependencies
2) Can I add these dll-dependencies to the PATH (${env.parh}) before the
ant-script runs.

Note: I do not want to make changes to the existingn ant-scripts, because
future versions are in hands of a third-party.

Thanx,
--
Johan




[M2] Java Mojo Packaging Question

2006-09-29 Thread kurron

I'm try ing to write a Java-based mojo that executes after the normal
packaging work has been done and the artifact has created.  There are some
custom post-processors or validators that might be required to run and I
wanted to explore how that might be accomplish thru a custom mojo.  Anyway,
my mojo is getting handed the maven session, executed project,  current
project and settings but, to this point, I haven't been able to figure out
how to obtain the artifact that was just created.  I see printouts from my
mojo so I know it is getting called.  When the mojo ask the executed project
or the current project what the artifact is, they return null.The
artifact id comes back as empty-project from both objects.  Can anyone offer
any advice on how to obtain the full path to the artifact that was just
created?My mojo is registered to go off during the package phase (
@phase package) and I see it executing after the EAR/JAR/WARs are created so
it appears to be getting called when I want it to.  Any help is appreciated.

Thanks,
Ron
-- 
View this message in context: 
http://www.nabble.com/-M2--Java-Mojo-Packaging-Question-tf2356714.html#a6564355
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Is it possible to access the Users settings from a Mojo??

2006-09-29 Thread Laura Hinojosa


Is it possible to access the Users settings from a Mojo??

Thanks

Laura



This e-mail, and any attachments thereto, is confidential and is intended only 
for the individual(s) named.  If you are not the intended recipient, please let 
us know by e-mail reply and delete it from your system; do not copy/save this 
e-mail or disclose its contents to anyone.  E-mail transmissions cannot be 
guaranteed to be secure or error-free as the transmission could be interrupted, 
corrupted, lost, destroyed, altered, arrive late or contain viruses.  
ObjectWave does not accept liability for any errors or omissions in the 
contents of this e-mail which arise as a result of e-mail transmission.  The 
views expressed in this e-mail do not necessarily reflect those of ObjectWave 
or its affiliates.






Guide to Testing Development Versions of Plugins

2006-09-29 Thread berndq

Hi all,

http://maven.apache.org/guides/development/guide-testing-development-plugins.html

"How do I stop doing this?"

"The development version will stop being used if the  
element is removed from your POM or settings.xml (regardless of what is 
in your local repository)."


It does not mention to revert the plugin version in the pom back from 
-SNAPSHOT to whatever it was before.


Bernd

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



Re: Re: test-jar - unknown artefact type

2006-09-29 Thread Tom Huybrechts

The maven-ear-plugin only handles a limited number of artifact types, and
test-jar is not one of them.
See
https://svn.apache.org/repos/asf/maven/plugins/trunk/maven-ear-plugin/src/main/java/org/apache/maven/plugin/ear/EarModuleFactory.java

Tom

On 9/29/06, Ken Helmes <[EMAIL PROTECTED]> wrote:


Tom,

(This comes as a new post since I was unsubscribed.  I am subscribed
again.)

I am working almost exactly from the directions given here:

http://maven.apache.org/guides/mini/guide-attached-tests.html

module1 - t2_config (ear level) - multilevel build creates a
t2_config_logic-1.28-SNAPSHOT-tests.jar including its unit tests.
The jar level pom includes this and works.

maven-jar-plugin

   

 

   

 test-jar

   

 

   

module2 - t2_test (ear level) - multilevel build wants to include
t2_config
test-jar in its ear.
The ear packaging pom tries to include this:



  t2.1_0_0.t2_config

  t2_config_logic

  1.28-SNAPSHOT

  test-jar



Putting test results in a successful ear build, but the
t2_config-logic.-tests.jar is not included in the module2 ear.

Regards,
Ken


>Can you give us some more context for the error ?
>Try giving your test-jar dependency a test

>Tom

>On 9/29/06, Ken Helmes <[EMAIL PROTECTED]> wrote:
>
> Hello,
>
>
>
> Has anyone run into this error when trying to use the "test-jar" type:
>
>
>
> "Embedded error: Unknown artefact type[test-jar]"
>
>
>
> -  Maven 2.0.4
>
> -  The actual test-jar is created correctly and can be found
from
> the repository.  It is when being used that the error comes:
>
> 
>
>   config
>
>   config_logic
>
>   1.28-SNAPSHOT
>
>   test-jar
>
> 
>
>
>
> Ken Helmes
>
>








Re: Is it possible to access the Users settings from a Mojo??

2006-09-29 Thread dan tran

You question has been answered in previous post isn't it?

-D


On 9/29/06, Laura Hinojosa <[EMAIL PROTECTED]> wrote:




Is it possible to access the Users settings from a Mojo??

Thanks

Laura



This e-mail, and any attachments thereto, is confidential and is intended
only for the individual(s) named.  If you are not the intended recipient,
please let us know by e-mail reply and delete it from your system; do not
copy/save this e-mail or disclose its contents to anyone.  E-mail
transmissions cannot be guaranteed to be secure or error-free as the
transmission could be interrupted, corrupted, lost, destroyed, altered,
arrive late or contain viruses.  ObjectWave does not accept liability for
any errors or omissions in the contents of this e-mail which arise as a
result of e-mail transmission.  The views expressed in this e-mail do not
necessarily reflect those of ObjectWave or its affiliates.








Re: Maven2 and Network Shares

2006-09-29 Thread Doug Douglass

maven 2.x uses/expects M2_HOME env. variable, not MAVEN_HOME (as in maven
1.x). This is confirmed by having a look at the comments in the mvn.bat file
in the bin directory. Try defining M2_HOME and see if that makes any
difference.

As for UNC paths, like most pathing issues between windows and java, I'd try
using / instead of \ (i.e., //server/share/). As a long shot you might
try an URL of the form file://server/share/

If that all fails then Wayne is probably correct.

HTH,
Doug


On 9/28/06, Wayne Fay <[EMAIL PROTECTED]> wrote:


Probably there's some code like:
if (os == windows)
   if (path doesn't start with a drive letter)
  path.prepend("c:")

that should be changed. Definitely sounds like a bug, but not a big
deal to fix now that we have the mvn -X output and probably a good
idea where to look.

Wayne

On 9/28/06, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
> Thanks for the answer
>
> Mvn -X give some informations, but not much about this problem :
>
> Environment:
>  -Windows XP
>  -My local repositories is local (C:\M2LocalRepository) and is empty
>  -frmlefsi20 is a corporate SAN
>  -frcf1hdu10 is a users NT domain server
>
>
>
> >set MAVEN_HOME=\\frmlefsi20\inet_dev\DEVPLATFORM\maven-2.0.4
> >set PATH=%MAVEN_HOME%\bin;%PATH%
> >mvn -X clean
>
> + Error stacktraces are turned on.
> Maven version: 2.0.4
> [DEBUG] Building Maven user-level plugin registry from:
'C:\frcf1hdu10\users0$\rcoqueug\.m2\plugin-registry.xml'
> [DEBUG] Building Maven global-level plugin registry from:
'C:\frmlefsi20\inet_dev\DEVPLATFORM\maven-
2.0.4\bin\..\conf\plugin-registry.xml'
> [INFO] Scanning for projects...
> [INFO]

> [INFO] Building Projet de test maven2/SVN/Contiuum
> [INFO]task-segment: [clean]
> [INFO]

> [INFO] artifact org.apache.maven.plugins:maven-clean-plugin: checking
for updates from central
> [WARNING] repository metadata for: 'artifact
org.apache.maven.plugins:maven-clean-plugin' could not be retrieved from
repository: central due to an er
> ror: Error transferring file
> [INFO] Repository 'central' will be blacklisted
>
> (...)
>
> => HTTP Proxy problems. My %MAVEN_HOME%/conf/setting.xml is not read
>
>
> >net use z: \\frmlefsi20\inet_dev
> >set MAVEN_HOME=Z:\DEVPLATFORM\maven-2.0.4
> >set PATH=%MAVEN_HOME%\bin;%PATH%
> >mvn -X clean
>
>
> + Error stacktraces are turned on.
> Maven version: 2.0.4
> [DEBUG] Building Maven user-level plugin registry from:
'C:\frcf1hdu10\users0$\rcoqueug\.m2\plugin-registry.xml'
> [DEBUG] Building Maven global-level plugin registry from:
'Z:\DEVPLATFORM\maven-2.0.4\bin\..\conf\plugin-registry.xml'
> [INFO] Scanning for projects...
> [INFO]

> [INFO] Building Projet de test maven2/SVN/Contiuum
> [INFO]task-segment: [clean]
> [INFO]

> [INFO] artifact org.apache.maven.plugins:maven-clean-plugin: checking
for updates from central
> [DEBUG] maven-clean-plugin: resolved to version 2.1 from repository
central
> [DEBUG] Trying repository central
> Downloading:
http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-clean-plugin/2.1/maven-clean-plugin-2.1.pom
> 703b downloaded
> [DEBUG]   Artifact resolved
>
> (...)
>
> => HTTP Proxy is correctly used. My %MAVEN_HOME%/conf/setting.xml is
read.
>
>
> Apparently the UNC environment variable isn't correctly parsed :
> \\frmlefsi20\inet_dev\DEVPLATFORM\maven-2.0.4
> Is transformed in :
> C:\frmlefsi20\inet_dev\DEVPLATFORM\maven-2.0.4
>
> I'm going to open a Jira file.
>
>
>
>
>
>
>
>
>
>
> > -Message d'origine-
> > De : Wayne Fay [mailto:[EMAIL PROTECTED]
> > Envoyé : jeudi 28 septembre 2006 15:54
> > À : Maven Users List
> > Objet : Re: Maven2 and Network Shares
> >
> > Try mvn -X for more debugging info. You gave us almost
> > nothing to look at/work with.
> >
> > Wayne
> >
> > On 9/28/06, [EMAIL PROTECTED]
> > <[EMAIL PROTECTED]> wrote:
> > > Anyone got some ideas ?
> > >
> > >
> > > > Hi all,
> > > >
> > > > I've installed Maven2 in a corporate environment.
> > > > From my computer (Windows XP) this installation is accesible with
> > > > \\SERVER\MAVEN2
> > > >
> > > > From a command line I setup MAVEN_HOME with this UNC:
> > > > > set MAVEN_HOME=\\SERVER\MAVEN2
> > > > And put it in the PATH
> > > > > set PATH=%MAVEN_HOME%\bin;%PATH%
> > > > When I try to build any projects, maven is unable to
> > acces my global
> > > > settings : %MAVEN_HOME%\conf\settings.xml But when I
> > mount a network
> > > > share to this UNC:
> > > > > net use Z: \\SERVER\MAVEN2
> > > > ...Setup MAVEN_HOME ...
> > > > > set MAVEN_HOME=Z:\
> > > > ...And put it in the PATH ...
> > > > > set PATH=%MAVEN_HOME%\bin;%PATH%
> > > > My global settings are OK ?!?
> > > > Unfortunately , some of my software could NOT mount a

RE: Is it possible to access the Users settings from a Mojo??

2006-09-29 Thread Ian Springer
Laura,

If it's an Ant mojo, you can do something like the following in the
foo.mojos.xml:

  
  

  M2 local repo dir 
  settings.localRepository
  true
  ${settings.localRepository}
  the path to the M2 local repository

  
...
  
  

This will pass the settings.localRepository property into the
foo.build.xml Ant script as a parameter to the target corresponding to
the mojo goal. You could possibly also pass the entire settings bean,
but I have not attempted that.

I'm not sure how to pass a setting, or all of the settings, into a Java
mojo. If that's what you need to do, hopefully someone else will chime
in.

Ian

| -Original Message-
| From: Laura Hinojosa [mailto:[EMAIL PROTECTED] 
| Sent: Friday, September 29, 2006 8:57 AM
| To: users@maven.apache.org
| Subject: Is it possible to access the Users settings from a Mojo??
| 
| 
| 
| Is it possible to access the Users settings from a Mojo??
| 
| Thanks
| 
| Laura
| 
| 
| 
| This e-mail, and any attachments thereto, is confidential and 
| is intended only for the individual(s) named.  If you are not 
| the intended recipient, please let us know by e-mail reply 
| and delete it from your system; do not copy/save this e-mail 
| or disclose its contents to anyone.  E-mail transmissions 
| cannot be guaranteed to be secure or error-free as the 
| transmission could be interrupted, corrupted, lost, 
| destroyed, altered, arrive late or contain viruses.  
| ObjectWave does not accept liability for any errors or 
| omissions in the contents of this e-mail which arise as a 
| result of e-mail transmission.  The views expressed in this 
| e-mail do not necessarily reflect those of ObjectWave or its 
| affiliates.
| 
| 
| 
| 
| 

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



RE: Packaging dependencies in expanded format

2006-09-29 Thread Brian E. Fox
That currently isn't an option of the dependency plugin. We rely on
Maven to generate the list of dependencies, which will automatically
inherit the parents' dependencies. You can file a Jira feature request
if you'd like and I will look into it. 

-Original Message-
From: Morgovsky, Alexander (US - Glen Mills)
[mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 28, 2006 6:56 PM
To: users@maven.apache.org
Subject: Packaging dependencies in expanded format

I have an update for this.
I was able to use:
org.apache.maven.plugins 
maven-dependency-plugin 
2.0-ALPHA-1-SNAPSHOT

  
package

  unpack-dependencies


 
${project.build.directory}/prep
  true


The problem is it obtained not only the current pom.xml dependencies but
also the dependencies from the parent.  I though that excludeTransitive
would prevent the parent's dependencies from being obtained.  Is there a
way that I can use this plugin and only obtain the current pom.xml's
dependencies?
Thanks. 


This message (including any attachments) contains confidential
information intended for a specific individual and purpose, and is
protected by law.  If you are not the intended recipient, you should
delete this message. 


Any disclosure, copying, or distribution of this message, or the taking
of any action based on it, is strictly prohibited. [v.E.1]


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



Cannot override the default (root) location for webResource in war plugin

2006-09-29 Thread raghurajan . x . gurunathan
Hi All

I'm trying to override the default root directory for webResource copy in 
war plugin, but regardless of whatever the targetPath i mentioned it just 
copies the files to root directory only, not to the path i mentioned in 
targetPath

Is this known bug? or i'm doing something wrong here


org.apache.maven.plugins
maven-war-plugin
2.0.1

${pom.artifactId}
 ${basedir}/../dox/config/web.xml


 ${basedir}/../myfiles/directory>
 WEB-INF/raghu






Please help



Thanks,
Raghurajan Gurunathan




-
This transmission may contain information that is privileged,
confidential, legally privileged, and/or exempt from disclosure
under applicable law.  If you are not the intended recipient, you
are hereby notified that any disclosure, copying, distribution, or
use of the information contained herein (including any reliance
thereon) is STRICTLY PROHIBITED.  Although this transmission and
any attachments are believed to be free of any virus or other
defect that might affect any computer system into which it is
received and opened, it is the responsibility of the recipient to
ensure that it is virus free and no responsibility is accepted by
JPMorgan Chase & Co., its subsidiaries and affiliates, as
applicable, for any loss or damage arising in any way from its use.
If you received this transmission in error, please immediately
contact the sender and destroy the material in its entirety,
whether in electronic or hard copy format. Thank you.


How to package a zip for nonjava project

2006-09-29 Thread Gautham Pamu

Hi,

I have multiple projects, one of the is non java project and I would like to
package this non java project as a zip file. Whats
the best way to acheive it.


--
-Gautham Pamu


How to package a zip for nonjava project

2006-09-29 Thread Gautham Pamu

Hi,

I have multiple project setup and one of the project is non java project. I
want to package this nonjava project as zip. Whats the best way to package
this as zip.

Is it recommended to use assembly plugin..Last time, I used this, it
complained if we ran the assembly:assembly at the toplevel as the other
projects did not have assembly descriptor
or Should we use antrun plugin with anttasks or Is there any alternate
approach which is better ?

--
-Gautham Pamu


RE: Can I get the user settings from a Mojo

2006-09-29 Thread Laura Hinojosa
Thank you! It work, I just have to change the class name.  The correct name is 
Settings:
 
 /**
 * @parameter expression="${settings}"
 * @readonly
 */
 Settings settings;

 

 

 

From Rahul Thakur <[EMAIL PROTECTED]>   
Subject  Re: Can I get the user settings from a Mojo
Date Fri, 29 Sep 2006 05:00:12 GMT  
I think you can use something like this in your Mojo

 /**
 [EMAIL PROTECTED] expression="${settings}"
 * @readonly
 */
 MavenSettings settings;

PS: pls check the name spelling for the Maven settings class.

HTH,

Rahul



From: Laura Hinojosa [mailto:[EMAIL PROTECTED]
Sent: Thu 9/28/2006 11:31 PM
To: dev@maven.apache.org
Cc: users@maven.apache.org
Subject: Can I get the user settings from a Mojo




Is it possible to access the Users settings from a Mojo??

Thanks

Laura



This e-mail, and any attachments thereto, is confidential and is intended only 
for the individual(s) named.  If you are not the intended recipient, please let 
us know by e-mail reply and delete it from your system; do not copy/save this 
e-mail or disclose its contents to anyone.  E-mail transmissions cannot be 
guaranteed to be secure or error-free as the transmission could be interrupted, 
corrupted, lost, destroyed, altered, arrive late or contain viruses.  
ObjectWave does not accept liability for any errors or omissions in the 
contents of this e-mail which arise as a result of e-mail transmission.  The 
views expressed in this e-mail do not necessarily reflect those of ObjectWave 
or its affiliates.








Re: Loading properties for different enviroments

2006-09-29 Thread zarar


Any ideas on how to accomplish this?



torghal wrote:
> 
> We have 3 different kind of enviroments to deploy applications:
>   - development
>   - acceptation
>   - production
> 
> We would like to use 3 different propertie files, one for each enviroment:
>   - development.properties
>   - acceptation.properties
>   - production.properties
> 
> These propertie files contain enviroment specific properties (e.g.
> context-root under which the application is deployed).
> 
> We addapted the maven.xml so we can use a commandline parameter to switch
> between the different propertie files:
> 
>   
>   
>   
> 
>   
>   Loading properties
>   Omgeving: ${enviroment}
>   
>   
>file="${basedir}/../production.properties" />
>   
>   
>file="${basedir}/../acceptation.properties" />
>   
>   
>file="${basedir}/../development.properties" />
>   
>   
>   
> 
> This loads the properties correctly, Server is:
> ${server.name} will echo the server name as defined according
> to
> the commandline parameter.
> 
> The properties loaded this way can however not be used by other plugins:
> 
>   - in the project.xml we have:
> 
>   
>   ${pom.groupId}
>   mmis_imjv_beheer_war
>   ${pom.currentVersion}
>   war
>   
> 
> ${webapp.context.beheer} t-root>
>   true
>   
>   
> 
>   - in the project.properties file we have:
> 
>   webapp.context.beheer=/${server.name}/imjv-beheer
> 
>   - in the development.properties file we definied:
> 
>   server.name=development
> 
> When we run the ear:install goal we see in the application.xml that the
> context-root is /imjv-beheer instead of /developement/imj-beheer
> 
> It likes like the properties in the development.properties file where not
> loaded for the ear-plugin.  Is there a way to "pre-load" the properties in
> the development.properties file or is there another way to solve the
> "switching enviroments" problem.
> 
> Many thanks,
> 
> Tonny
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Loading-properties-for-different-enviroments-tf373481.html#a6566611
Sent from the Maven - Users mailing list archive at Nabble.com.


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



xslt Mojo Howto

2006-09-29 Thread Nicolas De Loof


Hello,

I'd like to use the XSLT mojo to convert some XML files to JSP using an 
XSLT template (for used with rialto studio)


This works fine, but I don't understant how to use the 
fileNameReplacement property to convert my file to a .jsp. Can someone 
give me some explaination ?


   
   org.codehaus.mojo
   xslt-maven-plugin
   
   ${basedir}/src/main/rialto
   
${basedir}/src/main/rialto/rialtoXMLtoJSP.xsl

   ${basedir}/src/main/webapp/rialto
   .*xml
   jsp 
   WHAT TO PUT HERE ???

   
   

Nico

This message contains information that may be privileged or confidential and is 
the property of the Capgemini Group. It is intended only for the person to whom 
it is addressed. If you are not the intended recipient,  you are not authorized 
to read, print, retain, copy, disseminate,  distribute, or use this message or 
any part thereof. If you receive this  message in error, please notify the 
sender immediately and delete all  copies of this message.


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



Re: Packaging dependencies in expanded format

2006-09-29 Thread Morgovsky, Alexander \(US - Glen Mills\)
Thanks Dan.  I got it work, but there is one more issue left.  I want to
use the assembly plugin to generate a .jar file of all the contents in
/target.  When I do this, the "target" folder is part of each path
inside in the resulting .jar.  I tried using
false, but that did not
help.  Is there a way to exclude the parent directory "target" from the
resulting paths inside the binary?  Thanks a lot for the previous help
as well. 


This message (including any attachments) contains confidential information 
intended for a specific individual and purpose, and is protected by law.  If 
you are not the intended recipient, you should delete this message. 


Any disclosure, copying, or distribution of this message, or the taking of any 
action based on it, is strictly prohibited. [v.E.1]


Re: xslt Mojo Howto

2006-09-29 Thread Nicolas De Loof


I've found it myself :

   (.*)xml
   $1jsp


Nicolas De Loof a écrit :


Hello,

I'd like to use the XSLT mojo to convert some XML files to JSP using 
an XSLT template (for used with rialto studio)


This works fine, but I don't understant how to use the 
fileNameReplacement property to convert my file to a .jsp. Can someone 
give me some explaination ?


   
   org.codehaus.mojo
   xslt-maven-plugin
   
   ${basedir}/src/main/rialto
   
${basedir}/src/main/rialto/rialtoXMLtoJSP.xsl

   ${basedir}/src/main/webapp/rialto
   .*xml
   jsp 
   WHAT TO PUT HERE ???

   
   

Nico

This message contains information that may be privileged or 
confidential and is the property of the Capgemini Group. It is 
intended only for the person to whom it is addressed. If you are not 
the intended recipient,  you are not authorized to read, print, 
retain, copy, disseminate,  distribute, or use this message or any 
part thereof. If you receive this  message in error, please notify the 
sender immediately and delete all  copies of this message.



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



This message contains information that may be privileged or confidential and is 
the property of the Capgemini Group. It is intended only for the person to whom 
it is addressed. If you are not the intended recipient,  you are not authorized 
to read, print, retain, copy, disseminate,  distribute, or use this message or 
any part thereof. If you receive this  message in error, please notify the 
sender immediately and delete all  copies of this message.


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



Re: Maven2 and Network Shares

2006-09-29 Thread Wayne Fay

We've had another person or two recently post about using UNC shares
on Windows so I think my comment about this being a bug is mostly
likely incorrect.

Follow Doug's advice here and see if it doesn't resolve your issues.
And if you opened a JIRA report but discover you simply had some bad
pathing, make sure you close the bug as invalid too.

Wayne

On 9/29/06, Doug Douglass <[EMAIL PROTECTED]> wrote:

maven 2.x uses/expects M2_HOME env. variable, not MAVEN_HOME (as in maven
1.x). This is confirmed by having a look at the comments in the mvn.bat file
in the bin directory. Try defining M2_HOME and see if that makes any
difference.

As for UNC paths, like most pathing issues between windows and java, I'd try
using / instead of \ (i.e., //server/share/). As a long shot you might
try an URL of the form file://server/share/

If that all fails then Wayne is probably correct.

HTH,
Doug


On 9/28/06, Wayne Fay <[EMAIL PROTECTED]> wrote:
>
> Probably there's some code like:
> if (os == windows)
>if (path doesn't start with a drive letter)
>   path.prepend("c:")
>
> that should be changed. Definitely sounds like a bug, but not a big
> deal to fix now that we have the mvn -X output and probably a good
> idea where to look.
>
> Wayne
>
> On 9/28/06, [EMAIL PROTECTED]
> <[EMAIL PROTECTED]> wrote:
> > Thanks for the answer
> >
> > Mvn -X give some informations, but not much about this problem :
> >
> > Environment:
> >  -Windows XP
> >  -My local repositories is local (C:\M2LocalRepository) and is empty
> >  -frmlefsi20 is a corporate SAN
> >  -frcf1hdu10 is a users NT domain server
> >
> >
> >
> > >set MAVEN_HOME=\\frmlefsi20\inet_dev\DEVPLATFORM\maven-2.0.4
> > >set PATH=%MAVEN_HOME%\bin;%PATH%
> > >mvn -X clean
> >
> > + Error stacktraces are turned on.
> > Maven version: 2.0.4
> > [DEBUG] Building Maven user-level plugin registry from:
> 'C:\frcf1hdu10\users0$\rcoqueug\.m2\plugin-registry.xml'
> > [DEBUG] Building Maven global-level plugin registry from:
> 'C:\frmlefsi20\inet_dev\DEVPLATFORM\maven-
> 2.0.4\bin\..\conf\plugin-registry.xml'
> > [INFO] Scanning for projects...
> > [INFO]
> 
> > [INFO] Building Projet de test maven2/SVN/Contiuum
> > [INFO]task-segment: [clean]
> > [INFO]
> 
> > [INFO] artifact org.apache.maven.plugins:maven-clean-plugin: checking
> for updates from central
> > [WARNING] repository metadata for: 'artifact
> org.apache.maven.plugins:maven-clean-plugin' could not be retrieved from
> repository: central due to an er
> > ror: Error transferring file
> > [INFO] Repository 'central' will be blacklisted
> >
> > (...)
> >
> > => HTTP Proxy problems. My %MAVEN_HOME%/conf/setting.xml is not read
> >
> >
> > >net use z: \\frmlefsi20\inet_dev
> > >set MAVEN_HOME=Z:\DEVPLATFORM\maven-2.0.4
> > >set PATH=%MAVEN_HOME%\bin;%PATH%
> > >mvn -X clean
> >
> >
> > + Error stacktraces are turned on.
> > Maven version: 2.0.4
> > [DEBUG] Building Maven user-level plugin registry from:
> 'C:\frcf1hdu10\users0$\rcoqueug\.m2\plugin-registry.xml'
> > [DEBUG] Building Maven global-level plugin registry from:
> 'Z:\DEVPLATFORM\maven-2.0.4\bin\..\conf\plugin-registry.xml'
> > [INFO] Scanning for projects...
> > [INFO]
> 
> > [INFO] Building Projet de test maven2/SVN/Contiuum
> > [INFO]task-segment: [clean]
> > [INFO]
> 
> > [INFO] artifact org.apache.maven.plugins:maven-clean-plugin: checking
> for updates from central
> > [DEBUG] maven-clean-plugin: resolved to version 2.1 from repository
> central
> > [DEBUG] Trying repository central
> > Downloading:
> 
http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-clean-plugin/2.1/maven-clean-plugin-2.1.pom
> > 703b downloaded
> > [DEBUG]   Artifact resolved
> >
> > (...)
> >
> > => HTTP Proxy is correctly used. My %MAVEN_HOME%/conf/setting.xml is
> read.
> >
> >
> > Apparently the UNC environment variable isn't correctly parsed :
> > \\frmlefsi20\inet_dev\DEVPLATFORM\maven-2.0.4
> > Is transformed in :
> > C:\frmlefsi20\inet_dev\DEVPLATFORM\maven-2.0.4
> >
> > I'm going to open a Jira file.
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > > -Message d'origine-
> > > De : Wayne Fay [mailto:[EMAIL PROTECTED]
> > > Envoyé : jeudi 28 septembre 2006 15:54
> > > À : Maven Users List
> > > Objet : Re: Maven2 and Network Shares
> > >
> > > Try mvn -X for more debugging info. You gave us almost
> > > nothing to look at/work with.
> > >
> > > Wayne
> > >
> > > On 9/28/06, [EMAIL PROTECTED]
> > > <[EMAIL PROTECTED]> wrote:
> > > > Anyone got some ideas ?
> > > >
> > > >
> > > > > Hi all,
> > > > >
> > > > > I've installed Maven2 in a corporate environment.
> > > > > From my computer (Windows XP) this installation is accesible with
> > > > > \\SERVE

Re: How to package a zip for nonjava project

2006-09-29 Thread dan tran

On 9/29/06, Gautham Pamu <[EMAIL PROTECTED]> wrote:


Hi,

I have multiple project setup and one of the project is non java project.
I
want to package this nonjava project as zip. Whats the best way to package
this as zip.

Is it recommended to use assembly plugin..Last time, I used this, it
complained if we ran the assembly:assembly at the toplevel as the other
projects did not have assembly descriptor




Not sure what you mean.

But for your non java project, define your packaging as pom, and then
attach  assembly:attach to your packaging.
This way, at install time your non java package will be installed/deployed
as well

or Should we use antrun plugin with anttasks or Is there any alternate

approach which is better ?

--
-Gautham Pamu




Re: Setting up mirror of ibiblio?

2006-09-29 Thread Wayne Fay

From: Kapil Gupta <[EMAIL PROTECTED]>
Date: Sep 29, 2006 6:01 AM
Subject: Setting up mirror of ibiblio?

From: Vikas Gupta(SCM) <[EMAIL PROTECTED]>
Date: Sep 29, 2006 7:20 AM
Subject: Maven2 - Setting Internal Maven Repository as Mirror of ibiblio


Kapil, you and Vikas need to team up and work on this problem together
to avoid duplicate posting to this email list... I'll go crazy if you
both send the same email repeatedly...

Wayne


On 9/29/06, Kapil Gupta <[EMAIL PROTECTED]> wrote:

I would like to setup a common internal Maven Repository for different
projects running in my company which will mirror the global Maven
Repository at ibiblio. Now instead of downloading artifacts from ibiblio
all the client machines (running build process) should go the internal
Maven Repository. In case it is unable to find any artifact in the
internal repository it should give an error instead of going to ibiblio.

I did try by modifying the settings.xml file, setting up a mirror server
for ibiblio, but in this case if a client machine is unable to find the
artifact in the internal repository it goes to the net (ibiblio site) to
download. If I disable the proxies then it does not even goes to the
internal repository.



Please suggest a suitable solution.



Regards,

Kapil



CONFIDENTIALITY NOTICE
This e-mail transmission and any documents, files, or previous e-mail
messages appended or attached to it, may contain information that is
confidential or legally privileged. If you are not the intended
recipient, or a person responsible for delivering it to the intended
recipient, you are hereby notified that you must not read this
transmission and that any disclosure, copying, printing, distribution,
or use of the information contained or attached to this transmission is
STRICTLY PROHIBITED. If you have received this transmission in error,
please immediately notify the sender by telephone +91.172.229.9450 or
return e-mail message [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]>  and delete the original
transmission, its attachments, and any copies without reading or saving
in any manner. Thank you.







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



Re: Any way to release with snapshot dependency?

2006-09-29 Thread shinsato

I fully respect the intention here.  This is not something I would want to do
in general.  But retrotranslator itself is not beta software.  I "could"
have rolled our own Ant plugin to use retrotranslator or retroweaver, which
as a new person to maven2 was not going to be that feasible, and would have
likely meant we would have been forced to drop the use of maven2 altogether. 
We're months away from our final release date, and we are needing to do an
internal build release for QA, not to the public.



Craig McClanahan-3 wrote:
> 
> On 9/28/06, shinsato <[EMAIL PROTECTED]> wrote:
>>
>>
>> We're using the retrotranslator plugin, which unfortunately isn't
>> released
>> yet.  It's still in the sandbox.  Which breaks the release plugin (which
>> we
>> discover the day before we have to get our first ever maven executed
>> release
>> out).
>>
>> Is there any way around this at all?  I'm a bit new to maven2 still, and
>> when I tried to do an internal release of retrotranslator, it was an
>> exercise in frustration.
>>
>> Hopefully someone knows some possible way around this.  If not, does
>> anyone
>> have an idea how to get such a release accomplished.  There were snapshot
>> dependencies as well.  Is this going to require releasing every
>> transitive
>> dependency too?  Please say there's a short cut around this...
> 
> 
> The most important question here is not about your dependencies ... it is
> about your own desires.  Why would you want to release something of your
> own, based on a snapshot dependency, that might be broken if the
> dependency
> developers later release an updated snapshot that is not compatible with
> your own product?
> 
> The only reasonable alternatives are:
> 
> * Convince the developers of the packages you are dependent on to release
> a
>non-snapshot version of whatever you are depending on, so you can
> declare
>a dependency on that version.
> 
> * Remove the dependency on the snapshot code by providing equivalent
> functionality
>   in some other manner.
> 
> If you wish to choose a different approach, you are guaranteeing that
> people
> like me will *never* *ever* trust any software you produce as being
> something that can be depended on, because there is no way *you* can
> guarantee that the snapshot based dependencies will not change in
> incompatible ways after your release.
> 
> Note that this is not an issue specific to Maven -- it's all about how
> serious you are about providing a stable (over time) ability to rebuild
> your
> software from its sources.
> 
> 
>   Thanks in advance,
>>   Harold Shinsato
> 
> 
> Craig McClanahan
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Any-way-to-release-with-snapshot-dependency--tf2354831.html#a6567170
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: Any way to release with snapshot dependency?

2006-09-29 Thread shinsato

Thanks!  I did try to do that for several days until I was able to get some
help from the retrotranslator developers.

It seemed that there were enough dependencies on other sandbox items that I
just couldn't get this approach to work.  So the developer said I needed to
include a pointer to the snapshot plugin repository.  Which I am very eager
to take out when and if retrotranslator is taken out of the sandbox.

Am I needing to trace all the transitive sandbox dependencies and install
them as well?  It seems that plugins get pulled from a different repository
by default, since they do seem to get their own POM entry.

Given the way things work, I probably won't ever point to the snapshot
plugin repository ever again!  I wasn't comfortable with it when the
developer recommended it, and now I know why it's not terribly functional
unless you don't plan to do a release.

   Harold



dan tran wrote:
> 
> a release of retrotranslator  plugin is imminent it has all the votes to
> be
> released last week.
> Now it is up the owner to put time in.
> 
> In the mean while, you can cut a release of this plugin yourself , by
> deploying it
> to your yr internal remote repo using a unique version of your own.
> 
> I usually append  the current svn revision number to the version so that I
> can refer back.
> (ie 1.0-alpha-1-2422 )
> 
> Strongly suggest that you get used to this, since expecting an immediate
> release of public
> plugin is quite impossible.
> 
> -D
> 
> 
> 
> 
> On 9/28/06, shinsato <[EMAIL PROTECTED]> wrote:
>>
>>
>> We're using the retrotranslator plugin, which unfortunately isn't
>> released
>> yet.  It's still in the sandbox.  Which breaks the release plugin (which
>> we
>> discover the day before we have to get our first ever maven executed
>> release
>> out).
>>
>> Is there any way around this at all?  I'm a bit new to maven2 still, and
>> when I tried to do an internal release of retrotranslator, it was an
>> exercise in frustration.
>>
>> Hopefully someone knows some possible way around this.  If not, does
>> anyone
>> have an idea how to get such a release accomplished.  There were snapshot
>> dependencies as well.  Is this going to require releasing every
>> transitive
>> dependency too?  Please say there's a short cut around this...
>>
>>  Thanks in advance,
>>  Harold Shinsato
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Any-way-to-release-with-snapshot-dependency--tf2354831.html#a6558929
>> Sent from the Maven - Users mailing list archive at Nabble.com.
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Any-way-to-release-with-snapshot-dependency--tf2354831.html#a6567307
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Override plugin dependency version

2006-09-29 Thread jan_bar
Hi,

I use a plugin (xmlbeans-maven-plugin). It depends on some jar
(xmlbeans/xbean-2.0.0.jar) but I want to use new version of that jar
(xbean-2.2.0.jar). How can I do that? If I specify new version in my POM
dependencies, the plugin still downloads (and apprently uses) old version.

Thank you, Jan




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



How to get external properties values to maven

2006-09-29 Thread raghurajan . x . gurunathan
Hi All

I'm trying to get some value from external properties file how can i get 
it

For eg,

I have one external property like "ext.properties" inthat i have 
property defined ad "myName=Raghurajan"

Now i need to have this value in manifest file 

so i included as follows

  org.apache.maven.plugins
maven-ear-plugin



${myname}


true



  


But when manifest is created i just see "Personname ${myname}" its not 
susituted i with the actual value... is there something wron i'm doing 
here ??
i have filtering as true for this property file in my resource section 
still its not working

Can anyone advise please



Thanks,
Raghurajan Gurunathan



-
This transmission may contain information that is privileged,
confidential, legally privileged, and/or exempt from disclosure
under applicable law.  If you are not the intended recipient, you
are hereby notified that any disclosure, copying, distribution, or
use of the information contained herein (including any reliance
thereon) is STRICTLY PROHIBITED.  Although this transmission and
any attachments are believed to be free of any virus or other
defect that might affect any computer system into which it is
received and opened, it is the responsibility of the recipient to
ensure that it is virus free and no responsibility is accepted by
JPMorgan Chase & Co., its subsidiaries and affiliates, as
applicable, for any loss or damage arising in any way from its use.
If you received this transmission in error, please immediately
contact the sender and destroy the material in its entirety,
whether in electronic or hard copy format. Thank you.


RE: Maven2 and Network Shares

2006-09-29 Thread Remy.Coqueugniot
Thanks for this new answer.

> > maven 2.x uses/expects M2_HOME env. variable, not MAVEN_HOME (as in 
> > maven 1.x). This is confirmed by having a look at the 
> comments in the 
> > mvn.bat file in the bin directory. Try defining M2_HOME and see if 
> > that makes any difference.

I've already tried with M2_HOME and not MAVEN_HOME. -> Same problem.
Moreover, if you read the mvn.bat script, you would see
M2_HOME==MAVEN_HOME if M2_HOME isn't declared.

> > As for UNC paths, like most pathing issues between windows 
> and java, 
> > I'd try using / instead of \ (i.e., //server/share/). As a long 
> > shot you might try an URL of the form file://server/share/

I've also tried with such UNC java '\' handle trick:
Those samples are based on the interpreatation of a : 'mvn -X -U clean'

M2_HOME=\\server\maven2
M2_HOME is interpreted with C:\server\maven2

M2_HOME=//server/maven2
M2_HOME is also interpreted with C:\server\maven2

M2_HOME=server\\maven2 
Error : 
ERROR: M2_HOME is set to an invalid directory.
M2_HOME = server\\maven2
Please set the M2_HOME variable in your environment to match the
location of the Maven installation


I think it's definitively a problem with the '/' or '\' windows UNC
replacement algorithm.

Jira is open here : http://jira.codehaus.org/browse/MNG-2580

Thanks for your support








---
"Cette communication (y compris les pieces jointes) est reservee a l'usage 
exclusif du destinataire (des destinataires) et peut contenir des informations 
privilegiees, confidentielles, exemptees de divulgation selon la loi ou 
protegees par les droits d'auteur. Si vous n'etes pas un destinataire, toute 
utilisation, divulgation, distribution, reproduction, examen ou copie (totale 
ou partielle) est non-autorisee et peut etre illegale. Tout message 
electronique est susceptible d'alteration et son integrite ne peut etre 
assuree. Sanofi Pasteur decline toute responsabilite au titre de ce message 
s'il a ete modifie ou falsifie. Si vous n'etes pas destinataire de ce message, 
merci de le detruire immediatement et d'avertir l'expediteur de l'erreur de 
distribution et de la destruction du message. Merci.
This transmission (including any attachments) is intended solely for the use of 
the addressee(s) and may contain confidential information including trade 
secrets which are privileged, confidential, exempt from disclosure under 
applicable law and/or subject to copyright. If you are not an intended 
recipient, any use, disclosure, distribution, reproduction, review or copying 
(either whole or partial) is unauthorized and may be unlawful. E-mails are 
susceptible to alteration and their integrity cannot be guaranteed.Sanofi 
Pasteur shall not be liable for this e-mail if modified or falsified. If you 
are not the intended recipient of this e-mail, please delete it immediately 
from your system and notify the sender of the wrong delivery and the mail 
deletion. Thank you."
**


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



How to use latest snapshot of assembly plugin?

2006-09-29 Thread Adam Lally
I'm new to Maven and have been trying to figure out how to get the 
assembly plugin to do what I want for my multi-module project.  I've seen 
some messages on the list recommending to use version 2.2-SNAPSHOT which 
may have fixed some issues.  But how do I do that?

I put the following in my pom.xml:



 maven-assembly-plugin
2.2-SNAPSHOT


 src/assembly/bin.xml






  

  apache.org
  Maven Plugin Snapshots
  http://people.apache.org/maven-snapshot-repository
  
false
  
  
true
  


  codehaus.org
  Codehaus Maven Plugin Snapshots
  http://snapshots.repository.codehaus.org/
  
false
  
  
true
  

  


but when I try to build I get:

[INFO] Failed to resolve artifact.

GroupId: org.apache.maven.plugins
ArtifactId: maven-assembly-plugin
Version: 2.2-SNAPSHOT

Reason: Unable to download the artifact from any repository

  org.apache.maven.plugins:maven-assembly-plugin:pom:2.2-SNAPSHOT

from the specified remote repositories:
  codehaus.org (http://snapshots.repository.codehaus.org/),
  central (http://repo1.maven.org/maven2),
  apache.org (http://people.apache.org/maven-snapshot-repository)

 

Any ideas what I am doing wrong?  I also tried putting the 
pluginRepositories in my settings.xml as described here:
http://maven.apache.org/guides/development/guide-plugin-snapshot-repositories.html,
but I still get the same error.

Thanks in advance for any help,
  -Adam

Re: How to use latest snapshot of assembly plugin?

2006-09-29 Thread Wayne Fay

I'd just pull the code down yourself from SVN and build/install
locally if you're going to depend on SNAPSHOT versioned code and
having trouble finding it deployed anywhere.

Wayne

On 9/29/06, Adam Lally <[EMAIL PROTECTED]> wrote:

I'm new to Maven and have been trying to figure out how to get the
assembly plugin to do what I want for my multi-module project.  I've seen
some messages on the list recommending to use version 2.2-SNAPSHOT which
may have fixed some issues.  But how do I do that?

I put the following in my pom.xml:
   
   
   
 maven-assembly-plugin
   2.2-SNAPSHOT
   
   
 src/assembly/bin.xml
   
   
   
   
   

 
   
 apache.org
 Maven Plugin Snapshots
 http://people.apache.org/maven-snapshot-repository
 
   false
 
 
   true
 
   
   
 codehaus.org
 Codehaus Maven Plugin Snapshots
 http://snapshots.repository.codehaus.org/
 
   false
 
 
   true
 
   
 


but when I try to build I get:

[INFO] Failed to resolve artifact.

GroupId: org.apache.maven.plugins
ArtifactId: maven-assembly-plugin
Version: 2.2-SNAPSHOT

Reason: Unable to download the artifact from any repository

 org.apache.maven.plugins:maven-assembly-plugin:pom:2.2-SNAPSHOT

from the specified remote repositories:
 codehaus.org (http://snapshots.repository.codehaus.org/),
 central (http://repo1.maven.org/maven2),
 apache.org (http://people.apache.org/maven-snapshot-repository)



Any ideas what I am doing wrong?  I also tried putting the
pluginRepositories in my settings.xml as described here:
http://maven.apache.org/guides/development/guide-plugin-snapshot-repositories.html,
but I still get the same error.

Thanks in advance for any help,
 -Adam



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



How I prevent the use of local repository?

2006-09-29 Thread pfrancav


Hi, I need to build release and I want to ensure the jars are correct, so I
want to mvn download jars from our internal repository, skipping the local
repository.

Is that possible?

Really thanks
-- 
View this message in context: 
http://www.nabble.com/How-I-prevent-the-use-of-local-repository--tf2358410.html#a6570110
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: How I prevent the use of local repository?

2006-09-29 Thread Wayne Fay

Delete your local repo and do the build.

Or adjust your M2 config to point to a new empty directory on your
machine; same results.

Wayne

On 9/29/06, pfrancav <[EMAIL PROTECTED]> wrote:



Hi, I need to build release and I want to ensure the jars are correct, so I
want to mvn download jars from our internal repository, skipping the local
repository.

Is that possible?

Really thanks
--
View this message in context: 
http://www.nabble.com/How-I-prevent-the-use-of-local-repository--tf2358410.html#a6570110
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: How I prevent the use of local repository?

2006-09-29 Thread pfrancav


Hi, I m actually removing the repo when I want to build a release, but I
want to know if exist any parameter that directly exclude the local repo.

Can I change M2 in the command line ?


Wayne Fay wrote:
> 
> Delete your local repo and do the build.
> 
> Or adjust your M2 config to point to a new empty directory on your
> machine; same results.
> 
> Wayne
> 
> On 9/29/06, pfrancav <[EMAIL PROTECTED]> wrote:
>>
>>
>> Hi, I need to build release and I want to ensure the jars are correct, so
>> I
>> want to mvn download jars from our internal repository, skipping the
>> local
>> repository.
>>
>> Is that possible?
>>
>> Really thanks
>> --
>> View this message in context:
>> http://www.nabble.com/How-I-prevent-the-use-of-local-repository--tf2358410.html#a6570110
>> 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]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/How-I-prevent-the-use-of-local-repository--tf2358410.html#a6570444
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Hibernate's new Entity Manager missing

2006-09-29 Thread Srepfler Srgjan

Hi,
Is there anyone that could be so kind to create an entry on ibiblio for 
the new EntityManager 3.2.0.CR2 that uses the latest Hibernate libs 
3.2.0.cr4? It's the last step that we'd need if we want to use JPA with 
hibernate. It has a couple of dependencies that are not in the repo as 
well. This package begs for some love as the last version was added on 
November 2005.
Also, if anyone needs a quick fix while waiting for the latest spring 
rc4 to get on ibiblio you can use "ant mvn.install.jars" that will 
install the jars in your repository. That said I hope we'll have spring 
2.0 the day it comes out :)

Thanks,
Srgjan

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



Re: How I prevent the use of local repository?

2006-09-29 Thread Wayne Fay

Maven always uses the local repo. I'm not aware of a way to turn it
off or exclude it.

Wayne

On 9/29/06, pfrancav <[EMAIL PROTECTED]> wrote:



Hi, I m actually removing the repo when I want to build a release, but I
want to know if exist any parameter that directly exclude the local repo.

Can I change M2 in the command line ?


Wayne Fay wrote:
>
> Delete your local repo and do the build.
>
> Or adjust your M2 config to point to a new empty directory on your
> machine; same results.
>
> Wayne
>
> On 9/29/06, pfrancav <[EMAIL PROTECTED]> wrote:
>>
>>
>> Hi, I need to build release and I want to ensure the jars are correct, so
>> I
>> want to mvn download jars from our internal repository, skipping the
>> local
>> repository.
>>
>> Is that possible?
>>
>> Really thanks
>> --
>> View this message in context:
>> 
http://www.nabble.com/How-I-prevent-the-use-of-local-repository--tf2358410.html#a6570110
>> 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]
>
>
>

--
View this message in context: 
http://www.nabble.com/How-I-prevent-the-use-of-local-repository--tf2358410.html#a6570444
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: Hibernate's new Entity Manager missing

2006-09-29 Thread Srepfler Srgjan

Srepfler Srgjan wrote:

Hi,
Is there anyone that could be so kind to create an entry on ibiblio 
for the new EntityManager 3.2.0.CR2 that uses the latest Hibernate 
libs 3.2.0.cr4? It's the last step that we'd need if we want to use 
JPA with hibernate. It has a couple of dependencies that are not in 
the repo as well. This package begs for some love as the last version 
was added on November 2005.
Also, if anyone needs a quick fix while waiting for the latest spring 
rc4 to get on ibiblio you can use "ant mvn.install.jars" that will 
install the jars in your repository. That said I hope we'll have 
spring 2.0 the day it comes out :)

Thanks,
Srgjan

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



I forgot to mention, the hibernate tools library is to be updated as well.
Srgjan

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



Re: How to use latest snapshot of assembly plugin?

2006-09-29 Thread John Casey

You can also add this to your POM:


 
   apache.snapshots
   http://people.apache.org/repo/m2-snapshot-repository
 


Cheers,

john

On 9/29/06, Wayne Fay <[EMAIL PROTECTED]> wrote:


I'd just pull the code down yourself from SVN and build/install
locally if you're going to depend on SNAPSHOT versioned code and
having trouble finding it deployed anywhere.

Wayne

On 9/29/06, Adam Lally <[EMAIL PROTECTED]> wrote:
> I'm new to Maven and have been trying to figure out how to get the
> assembly plugin to do what I want for my multi-module project.  I've
seen
> some messages on the list recommending to use version 2.2-SNAPSHOT which
> may have fixed some issues.  But how do I do that?
>
> I put the following in my pom.xml:
>
>
>
>  maven-assembly-plugin
>2.2-SNAPSHOT
>
>
>  src/assembly/bin.xml
>
>
>
>
>
>
>  
>
>  apache.org
>  Maven Plugin Snapshots
>  http://people.apache.org/maven-snapshot-repository
>  
>false
>  
>  
>true
>  
>
>
>  codehaus.org
>  Codehaus Maven Plugin Snapshots
>  http://snapshots.repository.codehaus.org/
>  
>false
>  
>  
>true
>  
>
>  
>
>
> but when I try to build I get:
>
> [INFO] Failed to resolve artifact.
>
> GroupId: org.apache.maven.plugins
> ArtifactId: maven-assembly-plugin
> Version: 2.2-SNAPSHOT
>
> Reason: Unable to download the artifact from any repository
>
>  org.apache.maven.plugins:maven-assembly-plugin:pom:2.2-SNAPSHOT
>
> from the specified remote repositories:
>  codehaus.org (http://snapshots.repository.codehaus.org/),
>  central (http://repo1.maven.org/maven2),
>  apache.org (http://people.apache.org/maven-snapshot-repository)
>
>
>
> Any ideas what I am doing wrong?  I also tried putting the
> pluginRepositories in my settings.xml as described here:
>
http://maven.apache.org/guides/development/guide-plugin-snapshot-repositories.html
,
> but I still get the same error.
>
> Thanks in advance for any help,
>  -Adam
>

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




Re: Override plugin dependency version

2006-09-29 Thread Yann Albou

Hi Jan,

What I tried to do to resolve this problem is to define a propeties 
xmlbeans.version in the plugin:


 

  org.apache.
  xmlbean
  ${xmlbean.version}

  
  
2.0.0
  


And then when you run maven in your project use:
mvn -Dxmlbean.version=2.2.0 install

unfortunalty if you define xmlbean.version in your project pom, then the 
 plugin will ignore this value! I don't know if it is an expected 
behavior...

Do someone know about it?

Yann.

jan_bar wrote:

Hi,

I use a plugin (xmlbeans-maven-plugin). It depends on some jar
(xmlbeans/xbean-2.0.0.jar) but I want to use new version of that jar
(xbean-2.2.0.jar). How can I do that? If I specify new version in my POM
dependencies, the plugin still downloads (and apprently uses) old version.

Thank you, Jan



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



Re: Hibernate's new Entity Manager missing

2006-09-29 Thread Wayne Fay

Is there any particular reason you're unable to create the Maven
artifact yourself and upload to JIRA? Or ask the Hibernate people to
please make a nice Maven bundle and post it themselves, if you're
unable/unwilling to do so?

Maven generally relies on people who need something (for their own
project) to actually create the bundle(s) and upload them to JIRA for
eventual uploading into the Maven repo. Or even better, the project
creates their own bundles and uploads them.

Wayne

On 9/29/06, Srepfler Srgjan <[EMAIL PROTECTED]> wrote:

Hi,
Is there anyone that could be so kind to create an entry on ibiblio for
the new EntityManager 3.2.0.CR2 that uses the latest Hibernate libs
3.2.0.cr4? It's the last step that we'd need if we want to use JPA with
hibernate. It has a couple of dependencies that are not in the repo as
well. This package begs for some love as the last version was added on
November 2005.
Also, if anyone needs a quick fix while waiting for the latest spring
rc4 to get on ibiblio you can use "ant mvn.install.jars" that will
install the jars in your repository. That said I hope we'll have spring
2.0 the day it comes out :)
Thanks,
Srgjan

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



clean plugin

2006-09-29 Thread Yann Albou

Hi,

When running "mvn clean", Is it posible to not remove the directory 
target but only what is inside ?


Yann.


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



Re: clean plugin

2006-09-29 Thread dan tran

dont think it is possible.

What is the point of removing every thing inside but not the directory?

-D


On 9/29/06, Yann Albou <[EMAIL PROTECTED]> wrote:


Hi,

When running "mvn clean", Is it posible to not remove the directory
target but only what is inside ?

Yann.


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




Re: How to use latest snapshot of assembly plugin?

2006-09-29 Thread Adam Lally
That didn't work for me either.  But if I go to that URL in my browser, I 
do see a 2.2-SNAPSHOT directory under the assembly plugin.  So it is 
there, but not being found for some reason?

Here's my entire POM for a simple test project:
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";>
4.0.0
org.myorg.test
simple
jar
1.0-SNAPSHOT
Maven Quick Start Archetype
http://maven.apache.org


junit
junit
3.8.1
test





maven-assembly-plugin

2.2-SNAPSHOT



src/assembly/bin.xml







apache.snapshots

http://people.apache.org/repo/m2-snapshot-repository


apache.org
Maven Plugin Snapshots

http://people.apache.org/maven-snapshot-repository


codehaus.org
Codehaus Maven Plugin Snapshots
http://snapshots.repository.codehaus.org/





I just created it from the archetype and added the assembly plugin and the 
pluginRepositories.  If I try to do a build it complains that 
maven-assembly-plugin is not being found.  Does this work for other 
people?

Thanks,
  -Adam




"John Casey" <[EMAIL PROTECTED]> 
09/29/2006 03:11 PM
Please respond to
"Maven Users List" 


To
"Maven Users List" 
cc

Subject
Re: How to use latest snapshot of assembly plugin?






You can also add this to your POM:


  
apache.snapshots
http://people.apache.org/repo/m2-snapshot-repository
  


Cheers,

john

On 9/29/06, Wayne Fay <[EMAIL PROTECTED]> wrote:
>
> I'd just pull the code down yourself from SVN and build/install
> locally if you're going to depend on SNAPSHOT versioned code and
> having trouble finding it deployed anywhere.
>
> Wayne
>
> On 9/29/06, Adam Lally <[EMAIL PROTECTED]> wrote:
> > I'm new to Maven and have been trying to figure out how to get the
> > assembly plugin to do what I want for my multi-module project.  I've
> seen
> > some messages on the list recommending to use version 2.2-SNAPSHOT 
which
> > may have fixed some issues.  But how do I do that?
> >
> > I put the following in my pom.xml:
> >
> >
> >
> >  maven-assembly-plugin
> >2.2-SNAPSHOT
> >
> >
> >  src/assembly/bin.xml
> >
> >
> >
> >
> >
> >
> >  
> >
> >  apache.org
> >  Maven Plugin Snapshots
> >  http://people.apache.org/maven-snapshot-repository
> >  
> >false
> >  
> >  
> >true
> >  
> >
> >
> >  codehaus.org
> >  Codehaus Maven Plugin Snapshots
> >  http://snapshots.repository.codehaus.org/
> >  
> >false
> >  
> >  
> >true
> >  
> >
> >  
> >
> >
> > but when I try to build I get:
> >
> > [INFO] Failed to resolve artifact.
> >
> > GroupId: org.apache.maven.plugins
> > ArtifactId: maven-assembly-plugin
> > Version: 2.2-SNAPSHOT
> >
> > Reason: Unable to download the artifact from any repository
> >
> >  org.apache.maven.plugins:maven-assembly-plugin:pom:2.2-SNAPSHOT
> >
> > from the specified remote repositories:
> >  codehaus.org (http://snapshots.repository.codehaus.org/),
> >  central (http://repo1.maven.org/maven2),
> >  apache.org (http://people.apache.org/maven-snapshot-repository)
> >
> >
> >
> > Any ideas what I am doing wrong?  I also tried putting the
> > pluginRepositories in my settings.xml as described here:
> >
> 
http://maven.apache.org/guides/development/guide-plugin-snapshot-repositories.html

> ,
> > but I still get the same error.
> >
> > Thanks in advance for any help,
> >  -Adam
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



Re: How to use latest snapshot of assembly plugin?

2006-09-29 Thread Wendy Smoak

On 9/29/06, Adam Lally <[EMAIL PROTECTED]> wrote:

That didn't work for me either.  But if I go to that URL in my browser, I
do see a 2.2-SNAPSHOT directory under the assembly plugin.  So it is
there, but not being found for some reason?


I have this:

   
  apache.snapshots
  http://people.apache.org/repo/m2-snapshot-repository/
  true
  false
   

Try explicitly enabling snapshots, maybe that isn't the default for
plugin repositories.

--
Wendy

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



Re: How to use latest snapshot of assembly plugin?

2006-09-29 Thread John Casey

Two things:

Adam: You may have to run with -U to get the update, but I doubt it...I'd be
interested to see the debug output from that build.

Wendy: It's a quirk of the plugin version resolver that you have to have
releases enabled on that snapshot repository where the assembly plugin
snapshot is stored, I think. It seems to me that even if you specify a
-SNAPSHOT version this might be the case, though that doesn't seem to make
sense on the face of it...

-john

On 9/29/06, Wendy Smoak <[EMAIL PROTECTED]> wrote:


On 9/29/06, Adam Lally <[EMAIL PROTECTED]> wrote:
> That didn't work for me either.  But if I go to that URL in my browser,
I
> do see a 2.2-SNAPSHOT directory under the assembly plugin.  So it is
> there, but not being found for some reason?

I have this:


   apache.snapshots
   http://people.apache.org/repo/m2-snapshot-repository/

   true
   false


Try explicitly enabling snapshots, maybe that isn't the default for
plugin repositories.

--
Wendy

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




Re: How to use latest snapshot of assembly plugin?

2006-09-29 Thread Adam Lally
Running with -U did not help.  Here's the output from "mvn -X compile".  I 
see a bunch of "Skipping disabled repository..." messages.  Why is that?

 

+ Error stacktraces are turned on.
Maven version: 2.0.4
[DEBUG] Building Maven user-level plugin registry from: 'C:\Documents and 
Settings\Administrator\.m2\plugin-registry.xml'
[DEBUG] Building Maven global-level plugin registry from: 'c:\Program 
Files\maven\bin\..\conf\plugin-registry.xml'
[INFO] Scanning for projects...
[INFO] 

[INFO] Building Maven Quick Start Archetype
[INFO]task-segment: [compile]
[INFO] 

[DEBUG] Skipping disabled repository apache.snapshots
[DEBUG] Skipping disabled repository apache.org
[DEBUG] Skipping disabled repository codehaus.org
[DEBUG] maven-resources-plugin: resolved to version 2.2 from repository 
central
[DEBUG] Retrieving parent-POM: org.apache.maven.plugins:maven-plugins::1 
for project: null:maven-resources-plugin:maven-plugin:2.2 from the 
repository.
[DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::1 for 
project: org.apache.maven.plugins:maven-plugins:pom:1 from the repository.
[DEBUG] Retrieving parent-POM: org.apache:apache::1 for project: 
org.apache.maven:maven-parent:pom:1 from the repository.
[DEBUG] Skipping disabled repository apache.snapshots
[DEBUG] Skipping disabled repository apache.org
[DEBUG] Skipping disabled repository codehaus.org
[DEBUG] maven-compiler-plugin: resolved to version 2.0.1 from repository 
central
[DEBUG] Retrieving parent-POM: org.apache.maven.plugins:maven-plugins::1 
for project: null:maven-compiler-plugin:maven-plugin:2.0.1 from the 
repository.
[DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::1 for 
project: org.apache.maven.plugins:maven-plugins:pom:1 from the repository.
[DEBUG] Retrieving parent-POM: org.apache:apache::1 for project: 
org.apache.maven:maven-parent:pom:1 from the repository.
[DEBUG] Skipping disabled repository central
[DEBUG] Skipping disabled repository central
[DEBUG] maven-assembly-plugin: using locally installed snapshot
[DEBUG] Trying repository apache.snapshots
Downloading: 
http://people.apache.org/repo/m2-snapshot-repository/org/apache/maven/plugins/maven-assembly-plugin/2.2-SNAPSHOT/maven-assembly-plugin-2.2-SNAPSHOT.pom
[WARNING] Unable to get resource from repository apache.snapshots 
(http://people.apache.org/repo/m2-snapshot-repository)
[DEBUG] Trying repository apache.org
Downloading: 
http://people.apache.org/maven-snapshot-repository/org/apache/maven/plugins/maven-assembly-plugin/2.2-SNAPSHOT/maven-assembly-plugin-2.2-SNAPSHOT.pom
[WARNING] Unable to get resource from repository apache.org 
(http://people.apache.org/maven-snapshot-repository)
[DEBUG] Trying repository codehaus.org
Downloading: 
http://snapshots.repository.codehaus.org//org/apache/maven/plugins/maven-assembly-plugin/2.2-SNAPSHOT/maven-assembly-plugin-2.2-SNAPSHOT.pom
[WARNING] Unable to get resource from repository codehaus.org 
(http://snapshots.repository.codehaus.org/)
[DEBUG] Skipping disabled repository central
[DEBUG] Skipping disabled repository central
[INFO] 

[ERROR] BUILD ERROR
[INFO] 

[INFO] Failed to resolve artifact.

GroupId: org.apache.maven.plugins
ArtifactId: maven-assembly-plugin
Version: 2.2-SNAPSHOT

Reason: Unable to download the artifact from any repository

  org.apache.maven.plugins:maven-assembly-plugin:pom:2.2-SNAPSHOT

from the specified remote repositories:
  codehaus.org (http://snapshots.repository.codehaus.org/),
  central (http://repo1.maven.org/maven2),
  apache.snapshots (http://people.apache.org/repo/m2-snapshot-repository),
  apache.org (http://people.apache.org/maven-snapshot-repository)


[INFO] 

[DEBUG] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Unable to build 
project for plugin 'org.apache.maven.plugins:maven-assembly-plugin': POM 
'org.apache.maven.plugins:maven-assembly-plugin' not found in repository: 
Unable to download the artifact from any repository

  org.apache.maven.plugins:maven-assembly-plugin:pom:2.2-SNAPSHOT

from the specified remote repositories:
  codehaus.org (http://snapshots.repository.codehaus.org/),
  central (http://repo1.maven.org/maven2),
  apache.snapshots (http://people.apache.org/repo/m2-snapshot-repository),
  apache.org (http://people.apache.org/maven-snapshot-repository)

at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1269)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.bindPluginToLifecycle(DefaultLifecycleExecutor.java:1216)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.constructLifecycleMappings

Maven2 parent pom.xml

2006-09-29 Thread Morgovsky, Alexander \(US - Glen Mills\)
I had thought that I hold solved my issue with the parent pom.xml, but
in fact I did not.  I am stuck and I cannot proceed, because what I
thought was going to work did not.  Here is the situation.


b
a
.
.
.



a







  

The problem is that when -b- inherits -a-, the plugin execution inside
-a- gets executed on the ${build.out.directory} of -b-.  All I want to
do is just inherit the dependencies declared in a, I do not want to
inherit the executions elements.  Is this possible to do?  I tried
making -a- of type pom and creating a submodule to try to solve this,
but that did not help.  I would appreciate any help given in what seems
to me to be a very difficult problem.  Thanks. 


This message (including any attachments) contains confidential information 
intended for a specific individual and purpose, and is protected by law.  If 
you are not the intended recipient, you should delete this message. 


Any disclosure, copying, or distribution of this message, or the taking of any 
action based on it, is strictly prohibited. [v.E.1]


Maven 2 pom.xml

2006-09-29 Thread Morgovsky, Alexander \(US - Glen Mills\)
I would like to have a pom.xml serve both as the parent POM for other
modules and have a  body which calls several plugins.  The
problem is that when I build applications which have this as a parent
but are not its modules, the execution of the pom get's performed.
Thus, the question is:  Is it possible to have a pom.xml serve as a
parent and have its execution perform when called from its basedir, but
when extended, the execution part would not run?  I worked around this
by creating another pom.xml without any executions with a submodule, but
I would like to know if there is an alternative.  Thanks. 


This message (including any attachments) contains confidential information 
intended for a specific individual and purpose, and is protected by law.  If 
you are not the intended recipient, you should delete this message. 


Any disclosure, copying, or distribution of this message, or the taking of any 
action based on it, is strictly prohibited. [v.E.1]


Re: How to use latest snapshot of assembly plugin?

2006-09-29 Thread Wayne Fay

Looks like you're behind a firewall or proxy of some kind?

Wayne

On 9/29/06, Adam Lally <[EMAIL PROTECTED]> wrote:

Running with -U did not help.  Here's the output from "mvn -X compile".  I
see a bunch of "Skipping disabled repository..." messages.  Why is that?



+ Error stacktraces are turned on.
Maven version: 2.0.4
[DEBUG] Building Maven user-level plugin registry from: 'C:\Documents and
Settings\Administrator\.m2\plugin-registry.xml'
[DEBUG] Building Maven global-level plugin registry from: 'c:\Program
Files\maven\bin\..\conf\plugin-registry.xml'
[INFO] Scanning for projects...
[INFO]

[INFO] Building Maven Quick Start Archetype
[INFO]task-segment: [compile]
[INFO]

[DEBUG] Skipping disabled repository apache.snapshots
[DEBUG] Skipping disabled repository apache.org
[DEBUG] Skipping disabled repository codehaus.org
[DEBUG] maven-resources-plugin: resolved to version 2.2 from repository
central
[DEBUG] Retrieving parent-POM: org.apache.maven.plugins:maven-plugins::1
for project: null:maven-resources-plugin:maven-plugin:2.2 from the
repository.
[DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::1 for
project: org.apache.maven.plugins:maven-plugins:pom:1 from the repository.
[DEBUG] Retrieving parent-POM: org.apache:apache::1 for project:
org.apache.maven:maven-parent:pom:1 from the repository.
[DEBUG] Skipping disabled repository apache.snapshots
[DEBUG] Skipping disabled repository apache.org
[DEBUG] Skipping disabled repository codehaus.org
[DEBUG] maven-compiler-plugin: resolved to version 2.0.1 from repository
central
[DEBUG] Retrieving parent-POM: org.apache.maven.plugins:maven-plugins::1
for project: null:maven-compiler-plugin:maven-plugin:2.0.1 from the
repository.
[DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::1 for
project: org.apache.maven.plugins:maven-plugins:pom:1 from the repository.
[DEBUG] Retrieving parent-POM: org.apache:apache::1 for project:
org.apache.maven:maven-parent:pom:1 from the repository.
[DEBUG] Skipping disabled repository central
[DEBUG] Skipping disabled repository central
[DEBUG] maven-assembly-plugin: using locally installed snapshot
[DEBUG] Trying repository apache.snapshots
Downloading:
http://people.apache.org/repo/m2-snapshot-repository/org/apache/maven/plugins/maven-assembly-plugin/2.2-SNAPSHOT/maven-assembly-plugin-2.2-SNAPSHOT.pom
[WARNING] Unable to get resource from repository apache.snapshots
(http://people.apache.org/repo/m2-snapshot-repository)
[DEBUG] Trying repository apache.org
Downloading:
http://people.apache.org/maven-snapshot-repository/org/apache/maven/plugins/maven-assembly-plugin/2.2-SNAPSHOT/maven-assembly-plugin-2.2-SNAPSHOT.pom
[WARNING] Unable to get resource from repository apache.org
(http://people.apache.org/maven-snapshot-repository)
[DEBUG] Trying repository codehaus.org
Downloading:
http://snapshots.repository.codehaus.org//org/apache/maven/plugins/maven-assembly-plugin/2.2-SNAPSHOT/maven-assembly-plugin-2.2-SNAPSHOT.pom
[WARNING] Unable to get resource from repository codehaus.org
(http://snapshots.repository.codehaus.org/)
[DEBUG] Skipping disabled repository central
[DEBUG] Skipping disabled repository central
[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] Failed to resolve artifact.

GroupId: org.apache.maven.plugins
ArtifactId: maven-assembly-plugin
Version: 2.2-SNAPSHOT

Reason: Unable to download the artifact from any repository

 org.apache.maven.plugins:maven-assembly-plugin:pom:2.2-SNAPSHOT

from the specified remote repositories:
 codehaus.org (http://snapshots.repository.codehaus.org/),
 central (http://repo1.maven.org/maven2),
 apache.snapshots (http://people.apache.org/repo/m2-snapshot-repository),
 apache.org (http://people.apache.org/maven-snapshot-repository)



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



Re: How to use latest snapshot of assembly plugin?

2006-09-29 Thread Adam Lally
Yes, I'm behind a firewall.  But that doesn't in general seem to prevent 
me from downloading components from Maven repositories.

-Adam




"Wayne Fay" <[EMAIL PROTECTED]> 
09/29/2006 04:46 PM
Please respond to
"Maven Users List" 


To
"Maven Users List" 
cc

Subject
Re: How to use latest snapshot of assembly plugin?






Looks like you're behind a firewall or proxy of some kind?

Wayne

On 9/29/06, Adam Lally <[EMAIL PROTECTED]> wrote:
> Running with -U did not help.  Here's the output from "mvn -X compile". 
I
> see a bunch of "Skipping disabled repository..." messages.  Why is that?
>
>
>
> + Error stacktraces are turned on.
> Maven version: 2.0.4
> [DEBUG] Building Maven user-level plugin registry from: 'C:\Documents 
and
> Settings\Administrator\.m2\plugin-registry.xml'
> [DEBUG] Building Maven global-level plugin registry from: 'c:\Program
> Files\maven\bin\..\conf\plugin-registry.xml'
> [INFO] Scanning for projects...
> [INFO]
> 

> [INFO] Building Maven Quick Start Archetype
> [INFO]task-segment: [compile]
> [INFO]
> 

> [DEBUG] Skipping disabled repository apache.snapshots
> [DEBUG] Skipping disabled repository apache.org
> [DEBUG] Skipping disabled repository codehaus.org
> [DEBUG] maven-resources-plugin: resolved to version 2.2 from repository
> central
> [DEBUG] Retrieving parent-POM: org.apache.maven.plugins:maven-plugins::1
> for project: null:maven-resources-plugin:maven-plugin:2.2 from the
> repository.
> [DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::1 for
> project: org.apache.maven.plugins:maven-plugins:pom:1 from the 
repository.
> [DEBUG] Retrieving parent-POM: org.apache:apache::1 for project:
> org.apache.maven:maven-parent:pom:1 from the repository.
> [DEBUG] Skipping disabled repository apache.snapshots
> [DEBUG] Skipping disabled repository apache.org
> [DEBUG] Skipping disabled repository codehaus.org
> [DEBUG] maven-compiler-plugin: resolved to version 2.0.1 from repository
> central
> [DEBUG] Retrieving parent-POM: org.apache.maven.plugins:maven-plugins::1
> for project: null:maven-compiler-plugin:maven-plugin:2.0.1 from the
> repository.
> [DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::1 for
> project: org.apache.maven.plugins:maven-plugins:pom:1 from the 
repository.
> [DEBUG] Retrieving parent-POM: org.apache:apache::1 for project:
> org.apache.maven:maven-parent:pom:1 from the repository.
> [DEBUG] Skipping disabled repository central
> [DEBUG] Skipping disabled repository central
> [DEBUG] maven-assembly-plugin: using locally installed snapshot
> [DEBUG] Trying repository apache.snapshots
> Downloading:
> 
http://people.apache.org/repo/m2-snapshot-repository/org/apache/maven/plugins/maven-assembly-plugin/2.2-SNAPSHOT/maven-assembly-plugin-2.2-SNAPSHOT.pom

> [WARNING] Unable to get resource from repository apache.snapshots
> (http://people.apache.org/repo/m2-snapshot-repository)
> [DEBUG] Trying repository apache.org
> Downloading:
> 
http://people.apache.org/maven-snapshot-repository/org/apache/maven/plugins/maven-assembly-plugin/2.2-SNAPSHOT/maven-assembly-plugin-2.2-SNAPSHOT.pom

> [WARNING] Unable to get resource from repository apache.org
> (http://people.apache.org/maven-snapshot-repository)
> [DEBUG] Trying repository codehaus.org
> Downloading:
> 
http://snapshots.repository.codehaus.org//org/apache/maven/plugins/maven-assembly-plugin/2.2-SNAPSHOT/maven-assembly-plugin-2.2-SNAPSHOT.pom

> [WARNING] Unable to get resource from repository codehaus.org
> (http://snapshots.repository.codehaus.org/)
> [DEBUG] Skipping disabled repository central
> [DEBUG] Skipping disabled repository central
> [INFO]
> 
> [ERROR] BUILD ERROR
> [INFO]
> 
> [INFO] Failed to resolve artifact.
>
> GroupId: org.apache.maven.plugins
> ArtifactId: maven-assembly-plugin
> Version: 2.2-SNAPSHOT
>
> Reason: Unable to download the artifact from any repository
>
>  org.apache.maven.plugins:maven-assembly-plugin:pom:2.2-SNAPSHOT
>
> from the specified remote repositories:
>  codehaus.org (http://snapshots.repository.codehaus.org/),
>  central (http://repo1.maven.org/maven2),
>  apache.snapshots (http://people.apache.org/repo/m2-snapshot-repository
),
>  apache.org (http://people.apache.org/maven-snapshot-repository)
>

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




Re: Maven 2 pom.xml

2006-09-29 Thread Johannes Schneider
 > Any disclosure, copying, or distribution of this message, or the 
taking of any action based on it, is strictly prohibited. [v.E.1]


Of course I deleted your message immediatly.


Regards,

Johannes Schneider


smime.p7s
Description: S/MIME Cryptographic Signature


Re: Hibernate's new Entity Manager missing

2006-09-29 Thread Srepfler Srgjan

Wayne Fay wrote:

Is there any particular reason you're unable to create the Maven
artifact yourself and upload to JIRA? Or ask the Hibernate people to
please make a nice Maven bundle and post it themselves, if you're
unable/unwilling to do so?

Maven generally relies on people who need something (for their own
project) to actually create the bundle(s) and upload them to JIRA for
eventual uploading into the Maven repo. Or even better, the project
creates their own bundles and uploads them.

Wayne

I didn't want to make a debate out of this but I felt it was coming. I 
already have my own quick and dirty setup and I do create my own fixes 
when I need them (and I need them too often, some libs get posted 
quickly - like the hibernate core the other week, but other get 
forgotten forever). I have been through a rather nasty trial and failure 
to submit Rife once and the interaction I had just sucked and it wasn't 
a nice experience. I am not saying it's someones fault but I don't need 
the experience again. I realize the pom's I create might not pass the 
quality assurance so I thought I'd suggest the idea to the maven 
community and get someone more qualified interested (I think of myself 
as someone that leans on the strength of the community when I need help, 
is this wrong attitude?).
I understand the "move your asses and help" argument that arises too 
often but this is not the case here, I'm just a content user but not 
quite happy to help any more in certain areas, but in others I believe I 
have helped like sending diffs for fixing documentation or just trying 
to swap ideas with the users in the community both on irc or the list, 
also I've blogged a bit trying to spread the gospel and trying to push 
it everywhere I work. So my original post was trying to raise an issue 
that if we as a community would get a working JEE5/JPA stack, that would 
help people adopt it sooner and also adopt maven along with it. I wasn't 
trying to get my homework done by someone else.
The hibernate people have bitched about maven all the time (sorry to say 
that, but I as hibernate user have a right to bitch as well, it's a two 
way street), I have asked them on more occasions (irc and forum) to try 
and adopt maven or at least publish hibernate libs and tools, zilch. The 
same I have tried when I did the Rife lib but then I got into 
philosophical discussions on maven's concept of dependencies, the 
classifier issue that at the time wasn't clear (I had two opposing 
answers from Carlos and Zyl, whom does one listen? - better, more 
visible guidelines needed) etc etc.
I believe our community suffers from these issues and I really don't 
know if we can help it. Perhaps a better human protocol on how to get 
libs in the repo? Perhaps some sort of a web page wizard that can create 
pom's automatically? We also could make use of rss feeds of with new 
releases, plugins and libs. Also the fact maven is so fragile when it 
builds doesn't help. I can understand it, but it doesn't help us. We are 
avoided as the bubonic plague when people want a deterministic build 
process. That way the people that should use maven and publish 100% 
correct pom's and libs don't use it to build their systems. What 
happened with the stories where projects were to be given access to 
upload their libs?
Sorry for the outburst or if I'm out of line here, I'm still for maven 
it just needs to sort some quicks out. Also this discussion is getting 
off topic.

Srgjan

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



Re: Maven 2 pom.xml

2006-09-29 Thread dan tran

use another sub pom project for that purpose. No way out

-D


On 9/29/06, Morgovsky, Alexander (US - Glen Mills) <[EMAIL PROTECTED]>
wrote:


I would like to have a pom.xml serve both as the parent POM for other
modules and have a  body which calls several plugins.  The
problem is that when I build applications which have this as a parent
but are not its modules, the execution of the pom get's performed.
Thus, the question is:  Is it possible to have a pom.xml serve as a
parent and have its execution perform when called from its basedir, but
when extended, the execution part would not run?  I worked around this
by creating another pom.xml without any executions with a submodule, but
I would like to know if there is an alternative.  Thanks.


This message (including any attachments) contains confidential information
intended for a specific individual and purpose, and is protected by law.  If
you are not the intended recipient, you should delete this message.


Any disclosure, copying, or distribution of this message, or the taking of
any action based on it, is strictly prohibited. [v.E.1]




Re: How to use latest snapshot of assembly plugin?

2006-09-29 Thread John Casey

stupid question, maybe, but can you browse to this URL:

http://people.apache.org/repo/m2-snapshot-repository/org/apache/maven/plugins/maven-assembly-plugin/2.2-SNAPSHOT/maven-assembly-plugin-2.2-20060920.230937-23.pom

?

I suspect there is some problem with your firewall/proxy that might keep you
from getting to people.apache.org...of course, your browser might be
configured correctly...

-john

On 9/29/06, Adam Lally <[EMAIL PROTECTED]> wrote:


Yes, I'm behind a firewall.  But that doesn't in general seem to prevent
me from downloading components from Maven repositories.

-Adam




"Wayne Fay" <[EMAIL PROTECTED]>
09/29/2006 04:46 PM
Please respond to
"Maven Users List" 


To
"Maven Users List" 
cc

Subject
Re: How to use latest snapshot of assembly plugin?






Looks like you're behind a firewall or proxy of some kind?

Wayne

On 9/29/06, Adam Lally <[EMAIL PROTECTED]> wrote:
> Running with -U did not help.  Here's the output from "mvn -X compile".
I
> see a bunch of "Skipping disabled repository..." messages.  Why is that?
>
>
>
> + Error stacktraces are turned on.
> Maven version: 2.0.4
> [DEBUG] Building Maven user-level plugin registry from: 'C:\Documents
and
> Settings\Administrator\.m2\plugin-registry.xml'
> [DEBUG] Building Maven global-level plugin registry from: 'c:\Program
> Files\maven\bin\..\conf\plugin-registry.xml'
> [INFO] Scanning for projects...
> [INFO]
>


> [INFO] Building Maven Quick Start Archetype
> [INFO]task-segment: [compile]
> [INFO]
>


> [DEBUG] Skipping disabled repository apache.snapshots
> [DEBUG] Skipping disabled repository apache.org
> [DEBUG] Skipping disabled repository codehaus.org
> [DEBUG] maven-resources-plugin: resolved to version 2.2 from repository
> central
> [DEBUG] Retrieving parent-POM: org.apache.maven.plugins:maven-plugins::1
> for project: null:maven-resources-plugin:maven-plugin:2.2 from the
> repository.
> [DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::1 for
> project: org.apache.maven.plugins:maven-plugins:pom:1 from the
repository.
> [DEBUG] Retrieving parent-POM: org.apache:apache::1 for project:
> org.apache.maven:maven-parent:pom:1 from the repository.
> [DEBUG] Skipping disabled repository apache.snapshots
> [DEBUG] Skipping disabled repository apache.org
> [DEBUG] Skipping disabled repository codehaus.org
> [DEBUG] maven-compiler-plugin: resolved to version 2.0.1 from repository
> central
> [DEBUG] Retrieving parent-POM: org.apache.maven.plugins:maven-plugins::1
> for project: null:maven-compiler-plugin:maven-plugin:2.0.1 from the
> repository.
> [DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::1 for
> project: org.apache.maven.plugins:maven-plugins:pom:1 from the
repository.
> [DEBUG] Retrieving parent-POM: org.apache:apache::1 for project:
> org.apache.maven:maven-parent:pom:1 from the repository.
> [DEBUG] Skipping disabled repository central
> [DEBUG] Skipping disabled repository central
> [DEBUG] maven-assembly-plugin: using locally installed snapshot
> [DEBUG] Trying repository apache.snapshots
> Downloading:
>

http://people.apache.org/repo/m2-snapshot-repository/org/apache/maven/plugins/maven-assembly-plugin/2.2-SNAPSHOT/maven-assembly-plugin-2.2-SNAPSHOT.pom

> [WARNING] Unable to get resource from repository apache.snapshots
> (http://people.apache.org/repo/m2-snapshot-repository)
> [DEBUG] Trying repository apache.org
> Downloading:
>

http://people.apache.org/maven-snapshot-repository/org/apache/maven/plugins/maven-assembly-plugin/2.2-SNAPSHOT/maven-assembly-plugin-2.2-SNAPSHOT.pom

> [WARNING] Unable to get resource from repository apache.org
> (http://people.apache.org/maven-snapshot-repository)
> [DEBUG] Trying repository codehaus.org
> Downloading:
>

http://snapshots.repository.codehaus.org//org/apache/maven/plugins/maven-assembly-plugin/2.2-SNAPSHOT/maven-assembly-plugin-2.2-SNAPSHOT.pom

> [WARNING] Unable to get resource from repository codehaus.org
> (http://snapshots.repository.codehaus.org/)
> [DEBUG] Skipping disabled repository central
> [DEBUG] Skipping disabled repository central
> [INFO]
> 
> [ERROR] BUILD ERROR
> [INFO]
> 
> [INFO] Failed to resolve artifact.
>
> GroupId: org.apache.maven.plugins
> ArtifactId: maven-assembly-plugin
> Version: 2.2-SNAPSHOT
>
> Reason: Unable to download the artifact from any repository
>
>  org.apache.maven.plugins:maven-assembly-plugin:pom:2.2-SNAPSHOT
>
> from the specified remote repositories:
>  codehaus.org (http://snapshots.repository.codehaus.org/),
>  central (http://repo1.maven.org/maven2),
>  apache.snapshots (http://people.apache.org/repo/m2-snapshot-repository
),
>  apache.org (http://people.apache.org/maven-snapshot-repository)
>

---

Re: Maven2 parent pom.xml

2006-09-29 Thread John Casey

in the plugin execution you do NOT want inherited, try adding this:


 [...]
 false
 [...]


I guess this would go in your -a- POM.

HTH,

John

On 9/29/06, Morgovsky, Alexander (US - Glen Mills) <[EMAIL PROTECTED]>
wrote:


I had thought that I hold solved my issue with the parent pom.xml, but
in fact I did not.  I am stuck and I cannot proceed, because what I
thought was going to work did not.  Here is the situation.


b
a
.
.
.



a









The problem is that when -b- inherits -a-, the plugin execution inside
-a- gets executed on the ${build.out.directory} of -b-.  All I want to
do is just inherit the dependencies declared in a, I do not want to
inherit the executions elements.  Is this possible to do?  I tried
making -a- of type pom and creating a submodule to try to solve this,
but that did not help.  I would appreciate any help given in what seems
to me to be a very difficult problem.  Thanks.


This message (including any attachments) contains confidential information
intended for a specific individual and purpose, and is protected by law.  If
you are not the intended recipient, you should delete this message.


Any disclosure, copying, or distribution of this message, or the taking of
any action based on it, is strictly prohibited. [v.E.1]




Re: Maven 2 pom.xml

2006-09-29 Thread John Casey

dan-

does false not work for you?

-j

On 9/29/06, dan tran <[EMAIL PROTECTED]> wrote:


use another sub pom project for that purpose. No way out

-D


On 9/29/06, Morgovsky, Alexander (US - Glen Mills) <
[EMAIL PROTECTED]>
wrote:
>
> I would like to have a pom.xml serve both as the parent POM for other
> modules and have a  body which calls several plugins.  The
> problem is that when I build applications which have this as a parent
> but are not its modules, the execution of the pom get's performed.
> Thus, the question is:  Is it possible to have a pom.xml serve as a
> parent and have its execution perform when called from its basedir, but
> when extended, the execution part would not run?  I worked around this
> by creating another pom.xml without any executions with a submodule, but
> I would like to know if there is an alternative.  Thanks.
>
>
> This message (including any attachments) contains confidential
information
> intended for a specific individual and purpose, and is protected by
law.  If
> you are not the intended recipient, you should delete this message.
>
>
> Any disclosure, copying, or distribution of this message, or the taking
of
> any action based on it, is strictly prohibited. [v.E.1]
>
>




Re: Maven 2 pom.xml

2006-09-29 Thread dan tran

umm, never try that yet ;-)

Thanks for pointing that out.  But I am not very keen having parent project
to do many things

-D

On 9/29/06, John Casey <[EMAIL PROTECTED]> wrote:


dan-

does false not work for you?

-j

On 9/29/06, dan tran <[EMAIL PROTECTED]> wrote:
>
> use another sub pom project for that purpose. No way out
>
> -D
>
>
> On 9/29/06, Morgovsky, Alexander (US - Glen Mills) <
> [EMAIL PROTECTED]>
> wrote:
> >
> > I would like to have a pom.xml serve both as the parent POM for other
> > modules and have a  body which calls several plugins.  The
> > problem is that when I build applications which have this as a parent
> > but are not its modules, the execution of the pom get's performed.
> > Thus, the question is:  Is it possible to have a pom.xml serve as a
> > parent and have its execution perform when called from its basedir,
but
> > when extended, the execution part would not run?  I worked around this
> > by creating another pom.xml without any executions with a submodule,
but
> > I would like to know if there is an alternative.  Thanks.
> >
> >
> > This message (including any attachments) contains confidential
> information
> > intended for a specific individual and purpose, and is protected by
> law.  If
> > you are not the intended recipient, you should delete this message.
> >
> >
> > Any disclosure, copying, or distribution of this message, or the
taking
> of
> > any action based on it, is strictly prohibited. [v.E.1]
> >
> >
>
>




Re: Release Failure [SOLVED]

2006-09-29 Thread shinsato

This may or not be a bug in the code (though I think the nullpointerexception
is clearly a bug from a user perspective - the failure should be more
informative - I've submitted a bug about it in JIRA, MRELEASE-167).

But if it isn't a bug, it should be more clearly described in the online
documentation.  This was an unnecessary waste of several hours, and I can
see from the other posts to the nabble forum, I wasn't the first.  I'll
submit a JIRA issue about this.

 Cheers,
 Harold



Hi,

I've found the reason why release:prepare fails for my project (it's  
an issue from Chas Douglass' post).
The scm section of my pom.xml was like this:
   
 scm:svn:file:///usr/local/svnrep/xxx/trunk
   

I downloaded the release plugin sources and checked the write method  
in the PropertiesReleaseConfigurationStore.java class (this is where  
the process fails).
And I've found, that the method assumes that a  tag is  
mandatory inside the scm section.
So the (temporary?) solution to this problem is to include both, the  
  and   in the scm section, eg:
   
 scm:svn:file:///usr/local/svnrep/xxx/trunk
 scm:svn:file:///usr/local/svnrep/xxx/trunk
   

I think that this is a bug. The  should be  
mandatory, but   should be optional, because the  
 is needed to perform
the release:perform. Or at least the process should stop and an  
apropriate message should send to console.
If it's a bug, I will file a JIRA issue and send a patch.
What do you think?

Regards,
Jakub


-- 
View this message in context: 
http://www.nabble.com/Release-Failure-tf1624778.html#a6574232
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: How to use latest snapshot of assembly plugin?

2006-09-29 Thread shinsato

Just be forewarned, if you add any kind of snapshot dependency to your build,
you will be unable to run the release plugin.  I just learned that today.

  Harold
-- 
View this message in context: 
http://www.nabble.com/How-to-use-latest-snapshot-of-assembly-plugin--tf2358332.html#a6574270
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Excluding depencencies inherited from parent

2006-09-29 Thread Tom Hurley
Hi:

Is it possible to exclude dependencies inherited from a parent pom in a
child's pom.

I have a multi level project where each project inherits dependencies from
its parent. However in one of the children, one of its dependencies is
causing some problems with one of the inherited dependencies. Is it possible
to exclude this?

Any help would be greatly appreciated.

Thanks,

Tom.


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



[M2] Where to place servlet code in a WAR project?

2006-09-29 Thread justin_fung
In my web project, I have the following:

src
main
java
-com/my/package/MyServlet
webapp
*.jsp
WEB-INF

In the WAR file that is generated, MyServlet ends up in a folder called 
imported_classes. It cannot be reference after I deploy my WAR as it is 
not in the classpath. Can anybody please advise how I would go about 
making it visible and what the point of having a src/main/java/... path 
would be in a web project?

Thanks,

-j

---
Justin Fung
[EMAIL PROTECTED]
Consultant, Business Systems
IT Banking Systems, e-Business
HSBC Bank Canada
http://www.hsbc.ca
p: (604) 643-6605
f: (604) 643-6727

***
This email may contain confidential information, and is intended only for the 
named recipient and may be privileged. Distribution or copying of this email by 
anyone other than the named recipient is prohibited. If you are not the named 
recipient, please notify us immediately and permanently destroy this email and 
all copies of it. Internet email is not private, secure, or reliable.  No 
member of the HSBC Group is liable for any errors or omissions in the content 
or transmission of this email. Any opinions contained in this email are solely 
those of the author and, unless clearly indicated otherwise in writing, are not 
endorsed by any member of the HSBC Group.
***
Ce courriel peut renfermer des renseignements confidentiels et privilégiés et 
s'adresse au destinataire désigné seulement.   La distribution ou la copie de 
ce courriel par toute personne autre que le destinataire désigné est interdite. 
 Si vous n'êtes pas le destinataire désigné, veuillez nous en aviser 
immédiatement et détruire de façon permanente ce courriel ainsi que toute copie 
de celui-ci. La transmission de courriel par Internet ne constitue pas un mode 
de transmission confidentiel, sécuritaire ou fiable. Aucun membre du Groupe 
HSBC ne sera responsable des erreurs ou des omissions relatives au contenu ou à 
la transmission de ce courriel.  L'auteur de ce courriel est seul responsable 
des opinions émises dans ce courriel, lesquelles, à moins  d'un avis contraire 
fourni par écrit, ne sont pas endossées par aucun membre du Groupe HSBC.
***

"SAVE PAPER - THINK BEFORE YOU PRINT!"

"ÉCONOMISEZ LE PAPIER – PENSEZ-Y À DEUX FOIS AVANT D'IMPRIMER!"



Re: [M2] Where to place servlet code in a WAR project?

2006-09-29 Thread Max Cooper

Justin,

I am not sure where the "imported_classes" directory is coming from. 
That is not the normal behavior for Maven.


Normally, the setup you describe would result in the sources from 
src/main/java being compiled into WEB-INF/classes inside the war file. 
However, be aware that I *DON'T* mean src/main/webapp/WEB-INF/classes. 
All the files produced during the build (including .class files) end up 
inside the "target" dir.


Search your pom.xml file for the string "imported_classes". Perhaps you 
adapted your pom.xml from another project and inherited an unwanted setting.


Are you using an IDE? Maybe it is compiling the sources to that location.

Here is a link to the maven-war-plugin documentation, which is very 
helpful for setting up a war project in maven (or figuring out why a war 
project isn't building the way you expect it to):

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

src/main/java is the standard location for Java sources in Maven. If you 
are asking "why not in src/main/webapp/WEB-INF/src (or similar)?", I 
have two responses:

* most projects don't want their source code in the war file structure
* using the Maven standard location means you can use all the Maven 
reports, etc. without having to configure a "custom" location


-Max

[EMAIL PROTECTED] wrote:

In my web project, I have the following:

src
main
java
-com/my/package/MyServlet
webapp
*.jsp
WEB-INF

In the WAR file that is generated, MyServlet ends up in a folder called 
imported_classes. It cannot be reference after I deploy my WAR as it is 
not in the classpath. Can anybody please advise how I would go about 
making it visible and what the point of having a src/main/java/... path 
would be in a web project?


Thanks,

-j

---
Justin Fung
[EMAIL PROTECTED]
Consultant, Business Systems
IT Banking Systems, e-Business
HSBC Bank Canada
http://www.hsbc.ca
p: (604) 643-6605
f: (604) 643-6727

***
This email may contain confidential information, and is intended only for the 
named recipient and may be privileged. Distribution or copying of this email by 
anyone other than the named recipient is prohibited. If you are not the named 
recipient, please notify us immediately and permanently destroy this email and 
all copies of it. Internet email is not private, secure, or reliable.  No 
member of the HSBC Group is liable for any errors or omissions in the content 
or transmission of this email. Any opinions contained in this email are solely 
those of the author and, unless clearly indicated otherwise in writing, are not 
endorsed by any member of the HSBC Group.
***
Ce courriel peut renfermer des renseignements confidentiels et privilégiés et 
s'adresse au destinataire désigné seulement.   La distribution ou la copie de 
ce courriel par toute personne autre que le destinataire désigné est interdite. 
 Si vous n'êtes pas le destinataire désigné, veuillez nous en aviser 
immédiatement et détruire de façon permanente ce courriel ainsi que toute copie 
de celui-ci. La transmission de courriel par Internet ne constitue pas un mode 
de transmission confidentiel, sécuritaire ou fiable. Aucun membre du Groupe 
HSBC ne sera responsable des erreurs ou des omissions relatives au contenu ou à 
la transmission de ce courriel.  L'auteur de ce courriel est seul responsable 
des opinions émises dans ce courriel, lesquelles, à moins  d'un avis contraire 
fourni par écrit, ne sont pas endossées par aucun membre du Groupe HSBC.
***

"SAVE PAPER - THINK BEFORE YOU PRINT!"

"ÉCONOMISEZ LE PAPIER – PENSEZ-Y À DEUX FOIS AVANT D'IMPRIMER!"




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



Security exception

2006-09-29 Thread Brian E. Fox
Hi All,
I managed to build the webapp and get it deployed on Tomcat. As soon as
I add a valid repository, I get the following exception (tried with 2
different repos). Any ideas?
 
587109 [TP-Processor2] INFO
org.apache.maven.archiva.scheduler.task.RepositoryTask:indexer  -
Searching repository 3rd Party
587484 [TP-Processor2] INFO
org.apache.maven.archiva.scheduler.task.RepositoryTask:indexer  -
Discovered 222 unindexed artifacts
587484 [TP-Processor2] DEBUG
org.apache.maven.archiva.reporting.ReportExecutor  - Reading previous
report database Repository Health from repository 3rd Party
590547 [TP-Processor2] ERROR
com.opensymphony.webwork.dispatcher.DispatcherUtils  - Could not execute
action
java.lang.SecurityException: no manifiest section for signature file
entry javax/activation/DataContentHandlerFactory.class
 at
sun.security.util.SignatureFileVerifier.verifySection(SignatureFileVerif
ier.java:329)
 at
sun.security.util.SignatureFileVerifier.process0(SignatureFileVerifier.j
ava:241)
 at
sun.security.util.SignatureFileVerifier.process(SignatureFileVerifier.ja
va:191)
 at java.util.jar.JarVerifier.processEntry(JarVerifier.java:239)
 at java.util.jar.JarVerifier.update(JarVerifier.java:194)
 at java.util.jar.JarFile.initializeVerifier(JarFile.java:300)
 at java.util.jar.JarFile.getInputStream(JarFile.java:362)
 at
org.apache.maven.archiva.reporting.LocationArtifactReportProcessor.readA
rtifactModel(LocationArtifactReportProcessor.java:182)
 at
org.apache.maven.archiva.reporting.LocationArtifactReportProcessor.proce
ssArtifact(LocationArtifactReportProcessor.java:125)
 at
org.apache.maven.archiva.reporting.AbstractReportGroup.processArtifact(A
bstractReportGroup.java:53)
 at
org.apache.maven.archiva.reporting.DefaultReportExecutor.runArtifactRepo
rts(DefaultReportExecutor.java:126)
 at
org.apache.maven.archiva.scheduler.task.IndexerTask.execute(IndexerTask.
java:201)
 at
org.apache.maven.archiva.scheduler.task.IndexerTask.executeNowIfNeeded(I
ndexerTask.java:267)
 at
org.apache.maven.archiva.scheduler.DefaultRepositoryTaskScheduler.schedu
leJobs(DefaultRepositoryTaskScheduler.java:113)
 at
org.apache.maven.archiva.scheduler.DefaultRepositoryTaskScheduler.notify
OfConfigurationChange(DefaultRepositoryTaskScheduler.java:156)
 at
org.apache.maven.archiva.configuration.DefaultConfigurationStore.storeCo
nfiguration(DefaultConfigurationStore.java:126)
 at
org.apache.maven.archiva.web.action.admin.AbstractConfigureRepositoryAct
ion.saveConfiguration(AbstractConfigureRepositoryAction.java:111)
 at
org.apache.maven.archiva.web.action.admin.AbstractConfigureRepositoryAct
ion.add(AbstractConfigureRepositoryAction.java:86)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
 at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at
com.opensymphony.xwork.DefaultActionInvocation.invokeAction(DefaultActio
nInvocation.java:364)
 at
com.opensymphony.xwork.DefaultActionInvocation.invokeActionOnly(DefaultA
ctionInvocation.java:216)
 at
com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvoc
ation.java:190)
 at
org.codehaus.plexus.security.ui.web.interceptor.SecureActionInterceptor.
intercept(SecureActionInterceptor.java:141)
 at
com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvoc
ation.java:188)
 at
org.codehaus.plexus.security.ui.web.interceptor.AutoLoginInterceptor.int
ercept(AutoLoginInterceptor.java:89)
 at
com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvoc
ation.java:188)
 at
org.codehaus.plexus.security.ui.web.interceptor.ForceAdminUserIntercepto
r.intercept(ForceAdminUserInterceptor.java:59)
 at
com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvoc
ation.java:188)
 at
org.codehaus.plexus.security.ui.web.interceptor.EnvironmentCheckIntercep
tor.intercept(EnvironmentCheckInterceptor.java:123)
 at
com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvoc
ation.java:188)
 at
com.opensymphony.xwork.interceptor.DefaultWorkflowInterceptor.doIntercep
t(DefaultWorkflowInterceptor.java:168)
 at
com.opensymphony.xwork.interceptor.MethodFilterInterceptor.intercept(Met
hodFilterInterceptor.java:86)
 at
com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvoc
ation.java:188)
 at
com.opensymphony.xwork.validator.ValidationInterceptor.doIntercept(Valid
ationInterceptor.java:115)
 at
com.opensymphony.xwork.interceptor.MethodFilterInterceptor.intercept(Met
hodFilterInterceptor.java:86)
 at
com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvoc
ation.java:188)
 at
com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInt
erceptor.java:31)
 at
com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvoc
ation.java:188)
 at
com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInt
ercepto

Re: Security exception

2006-09-29 Thread Brett Porter

just guessing - but do you have a bad activation JAR in your repository?

On 30/09/2006, at 12:05 PM, Brian E. Fox wrote:


Hi All,
I managed to build the webapp and get it deployed on Tomcat. As  
soon as

I add a valid repository, I get the following exception (tried with 2
different repos). Any ideas?

587109 [TP-Processor2] INFO
org.apache.maven.archiva.scheduler.task.RepositoryTask:indexer  -
Searching repository 3rd Party
587484 [TP-Processor2] INFO
org.apache.maven.archiva.scheduler.task.RepositoryTask:indexer  -
Discovered 222 unindexed artifacts
587484 [TP-Processor2] DEBUG
org.apache.maven.archiva.reporting.ReportExecutor  - Reading previous
report database Repository Health from repository 3rd Party
590547 [TP-Processor2] ERROR
com.opensymphony.webwork.dispatcher.DispatcherUtils  - Could not  
execute

action
java.lang.SecurityException: no manifiest section for signature file
entry javax/activation/DataContentHandlerFactory.class
 at
sun.security.util.SignatureFileVerifier.verifySection 
(SignatureFileVerif

ier.java:329)
 at
sun.security.util.SignatureFileVerifier.process0 
(SignatureFileVerifier.j

ava:241)
 at
sun.security.util.SignatureFileVerifier.process 
(SignatureFileVerifier.ja

va:191)
 at java.util.jar.JarVerifier.processEntry(JarVerifier.java:239)
 at java.util.jar.JarVerifier.update(JarVerifier.java:194)
 at java.util.jar.JarFile.initializeVerifier(JarFile.java:300)
 at java.util.jar.JarFile.getInputStream(JarFile.java:362)
 at
org.apache.maven.archiva.reporting.LocationArtifactReportProcessor.rea 
dA

rtifactModel(LocationArtifactReportProcessor.java:182)
 at
org.apache.maven.archiva.reporting.LocationArtifactReportProcessor.pro 
ce

ssArtifact(LocationArtifactReportProcessor.java:125)
 at
org.apache.maven.archiva.reporting.AbstractReportGroup.processArtifact 
(A

bstractReportGroup.java:53)
 at
org.apache.maven.archiva.reporting.DefaultReportExecutor.runArtifactRe 
po

rts(DefaultReportExecutor.java:126)
 at
org.apache.maven.archiva.scheduler.task.IndexerTask.execute 
(IndexerTask.

java:201)
 at
org.apache.maven.archiva.scheduler.task.IndexerTask.executeNowIfNeeded 
(I

ndexerTask.java:267)
 at
org.apache.maven.archiva.scheduler.DefaultRepositoryTaskScheduler.sche 
du

leJobs(DefaultRepositoryTaskScheduler.java:113)
 at
org.apache.maven.archiva.scheduler.DefaultRepositoryTaskScheduler.noti 
fy

OfConfigurationChange(DefaultRepositoryTaskScheduler.java:156)
 at
org.apache.maven.archiva.configuration.DefaultConfigurationStore.store 
Co

nfiguration(DefaultConfigurationStore.java:126)
 at
org.apache.maven.archiva.web.action.admin.AbstractConfigureRepositoryA 
ct

ion.saveConfiguration(AbstractConfigureRepositoryAction.java:111)
 at
org.apache.maven.archiva.web.action.admin.AbstractConfigureRepositoryA 
ct

ion.add(AbstractConfigureRepositoryAction.java:86)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
sun.reflect.NativeMethodAccessorImpl.invoke 
(NativeMethodAccessorImpl.jav

a:39)
 at
sun.reflect.DelegatingMethodAccessorImpl.invoke 
(DelegatingMethodAccessor

Impl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at
com.opensymphony.xwork.DefaultActionInvocation.invokeAction 
(DefaultActio

nInvocation.java:364)
 at
com.opensymphony.xwork.DefaultActionInvocation.invokeActionOnly 
(DefaultA

ctionInvocation.java:216)
 at
com.opensymphony.xwork.DefaultActionInvocation.invoke 
(DefaultActionInvoc

ation.java:190)
 at
org.codehaus.plexus.security.ui.web.interceptor.SecureActionIntercepto 
r.

intercept(SecureActionInterceptor.java:141)
 at
com.opensymphony.xwork.DefaultActionInvocation.invoke 
(DefaultActionInvoc

ation.java:188)
 at
org.codehaus.plexus.security.ui.web.interceptor.AutoLoginInterceptor.i 
nt

ercept(AutoLoginInterceptor.java:89)
 at
com.opensymphony.xwork.DefaultActionInvocation.invoke 
(DefaultActionInvoc

ation.java:188)
 at
org.codehaus.plexus.security.ui.web.interceptor.ForceAdminUserIntercep 
to

r.intercept(ForceAdminUserInterceptor.java:59)
 at
com.opensymphony.xwork.DefaultActionInvocation.invoke 
(DefaultActionInvoc

ation.java:188)
 at
org.codehaus.plexus.security.ui.web.interceptor.EnvironmentCheckInterc 
ep

tor.intercept(EnvironmentCheckInterceptor.java:123)
 at
com.opensymphony.xwork.DefaultActionInvocation.invoke 
(DefaultActionInvoc

ation.java:188)
 at
com.opensymphony.xwork.interceptor.DefaultWorkflowInterceptor.doInterc 
ep

t(DefaultWorkflowInterceptor.java:168)
 at
com.opensymphony.xwork.interceptor.MethodFilterInterceptor.intercept 
(Met

hodFilterInterceptor.java:86)
 at
com.opensymphony.xwork.DefaultActionInvocation.invoke 
(DefaultActionInvoc

ation.java:188)
 at
com.opensymphony.xwork.validator.ValidationInterceptor.doIntercept 
(Valid

ationInterceptor.java:115)
 at
com.opensymphony.xwork.interceptor.MethodFilterInterceptor.intercept 
(Met

hodFilterInterceptor.java:86)
 at
com.opensymphony.xwork.DefaultActionInvocation.invoke 
(DefaultActionInvoc

ation.java:188)
 at
com.opensymphony.xwork.interceptor.Arou

Re: [M2] Where to place servlet code in a WAR project?

2006-09-29 Thread Owen Jacobson

On 9/29/06, Max Cooper <[EMAIL PROTECTED]> wrote:

Justin,

I am not sure where the "imported_classes" directory is coming from.
That is not the normal behavior for Maven.

Normally, the setup you describe would result in the sources from
src/main/java being compiled into WEB-INF/classes inside the war file.
However, be aware that I *DON'T* mean src/main/webapp/WEB-INF/classes.
All the files produced during the build (including .class files) end up
inside the "target" dir.

Search your pom.xml file for the string "imported_classes". Perhaps you
adapted your pom.xml from another project and inherited an unwanted setting.


Agreed.  Examine the pom and all parent poms to see if one of them is
reconfiguring either the javac plugin or the war plugin.

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



EJB3 applications and M2

2006-09-29 Thread Owen Jacobson

I'm working on a proof of concept maven project using EJB3 entities
and stateless session beans to demonstrate a flaw in Hibernate 3.
However, I'm stuck on how to package the stateless session beans and
the ear file.

Option 1: package the SLSBs as jar.
maven-ear-plugin refuses to use the resulting artifact as an ejb
module in application.xml.
Option 2: package the SLSBs as ejb.  Maven
expects an ejb-jar.xml file, which is no longer required in the ejb3
proto-specification.  If given an ejb-jar.xml it also generates a
spurious ejb client JAR.
Option 3: I'm missing something crucial.

I'm aware there's a version of the EJB and EAR plugins that can cope
with EJB3 in the works; however, that's not to my knowledge going to
be released soon and since this is going to be a test case submitted
to others I'd rather not rely on building a snapshot of the ear and/or
ejb plugins myself.

The complete project tree is available at
.

Owen

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



Re: M2 release plugin snapshot version does not handle new development d

2006-09-29 Thread shinsato

Did you find a solution?  I'm noticing the same problem.

The POM version is changed from 1.0.0.1-SNAPSHOT to 1.0.0.1 for the release,
and then up to 1.0.0.2-SNAPSHOT for the next development.

But the internal project dependencies are not changed from 1.0.0.1 to
1.0.0.2-SNAPSHOT.  It seems like a definite bug, unless I'm missing
something in the way that the POM was supposed to be written.

Harold



Markku Saarela wrote:
> 
> Hi,
> 
> After release:perform snapshot version project pom.xml include 
> dependency versions for dependent projects remains to new release 
> version ex. 1.0a not new development version ex 1.0-SNAPSHOT. I couldn't 
> find anything from google concerning  this issue. Is there any way to 
> avoid this. It's annoying because there are over 40 modules in project.
> 
> Regards, Markku Saarela
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/M2-release-plugin-snapshot-version-does-not-handle-new-development-depency-version-correctly-in-multimodule-project-tf2152810.html#a6575828
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: plugin development

2006-09-29 Thread Neeraj Bisht

hi all
  i am still in puzle why reactor taking the project in sorted
order rather than the dependency ,
 can any one guide me where i am wrong or it is bug of reactor to take the
project in sorted order (in multiproject env)

Regards
Neeraj


On 9/29/06, Neeraj Bisht <[EMAIL PROTECTED]> wrote:


hi Geoffrey
 Thanks for your kind support
can you tell me one think also ,actully i am working in maven 1.0.2 but
the reactor is not working accordingly i.e it take the building of
multiproject in sorted order but not one there dependency and frome googling
i came to know that in maven 2.0 it is possible but on going through the
link which you have provided i found that number of task we will not be able
to do in maven 2.0
   so please ,if you have the similler link regarding maven 1.0.2  then
send me

Regards
Neeraj


 On 9/28/06, Geoffrey De Smet <[EMAIL PROTECTED]> wrote:
>
> Go to mergere.com and download the free maven2 book.
> Currently it's the best documentation I know.
>
> Neeraj Bisht wrote, On 2006-09-28 2:29 PM:
> > hi all
> >  Can any one please tell me or can give some link of tutorial
> where
> > i can study
> >   how i can make plugin in maven 2.0
> > i study from the following site
> >
> http://maven.apache.org/guides/introduction/introduction-to-plugins.html
> >
> > but not able to understand
> >
> > Regards
> > Neeraj Singh Bisht
> >
>
> --
> With kind regards,
> Geoffrey De Smet
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



https 401 error

2006-09-29 Thread Joseph Marques

when trying to add a maven2 project i'm getting the error: "could not
download https://user:[EMAIL PROTECTED]//pom.xml: Server returned
HTTP response code: 401 for URL: https://user:[EMAIL PROTECTED]/
/pom.xml.  i can hit and download the pom from both IE and
firefox. any clue as to what's going on?  **i was told in irc that it's
probably because java doesn't know my certificate, which granted is
self-signed, but according to
http://jira.codehaus.org/secure/attachment/16385/secure-url-validation.patchfrom
http://jira.codehaus.org/browse/CONTINUUM-258 continuum has been using the
all-accepting trust store for quite some time.  any suggestions on why this
might be happening?

oh, and just in case it was a certificate issue, I added the certificate to
the default truststore for my 1.5 installation (setup through JAVA_HOME) at
the console via keytool.  I also added the cert to the truststore associated
with the 1.6 jre registered with the browser (firefox) i'm using.  neither
of those options helped.

-joe


help to find link for maven 1.0.2

2006-09-29 Thread Neeraj Bisht

hi all
i have come to know that there is online book for maven 1.0.2 at
the following site
   http://www.milindparikh.com/
but when i gone through this site it show 504 error ,mens no page was
display
can any one tell me where i found this link or if this link is changed then
what is the new link or if you know any free online book for maven
1.0.2then please remined

Regards
Neeraj