Re: Stuck on custom wagon and plexus

2008-09-03 Thread Brett Porter
this could be a classloading issue.
How are you instantiating the wagon, and how are you declaring it to Maven
(is it just a dependency of the plugin?)

- Brett

2008/9/4 Edelson, Justin <[EMAIL PROTECTED]>

> Thanks Brett. I knew it was something simple.
>
> That got me one step further, now I'm getting:
> Caused by: org.codehaus.plexus.component.composition.CompositionException:
> Composition failed for the field knownHostsProvider in object of type
> com.mtvi.plateng.maven.wagon.JschTunnelWagon
>at
> org.codehaus.plexus.component.composition.FieldComponentComposer.assignRequirementToField(FieldComponentComposer.java:144)
>at
> org.codehaus.plexus.component.composition.FieldComponentComposer.assembleComponent(FieldComponentComposer.java:73)
>at
> org.codehaus.plexus.component.composition.DefaultComponentComposerManager.assembleComponent(DefaultComponentComposerManager.java:68)
>at
> org.codehaus.plexus.DefaultPlexusContainer.composeComponent(DefaultPlexusContainer.java:1486)
>at
> org.codehaus.plexus.personality.plexus.lifecycle.phase.CompositionPhase.execute(CompositionPhase.java:29)
>... 35 more
> Caused by: java.lang.IllegalArgumentException
>at
> sun.reflect.UnsafeObjectFieldAccessorImpl.set(UnsafeObjectFieldAccessorImpl.java:63)
>at java.lang.reflect.Field.set(Field.java:656)
>at
> org.codehaus.plexus.component.composition.FieldComponentComposer.assignRequirementToField(FieldComponentComposer.java:137)
>... 39 mor
>
> knownHostsProvider is a field in AbstractJschWagon, which is extended by
> ScpWagon, which my class then extends. I basically just copied the component
> configuration from that of ScpWagon
>
>
>
>
> 
>
> From: Brett Porter [mailto:[EMAIL PROTECTED]
> Sent: Wed 9/3/2008 9:57 PM
> To: Maven Users List
> Subject: Re: Stuck on custom wagon and plexus
>
>
>
> Is the resource really in that directory?
> It should be src/main/resources/META-INF/plexus/components.xml instead :)
>
> Cheers,
> Brett
>
> 2008/9/4 Edelson, Justin <[EMAIL PROTECTED]>
>
> > I'm writing a Maven plugin that requires a customized version of the SCP
> > Wagon. While I've written a number of plugins in the past, this is the
> first
> > time I've tried to create a Plexus component and I seem to be stuck.
> >
> > Here's what I've done:
> > * In one project, I have a class (...JschTunnelWagon), an interface
> > (...TunnelWagon), and a components.xml file (in
> src/main/resources/plexus)
> > with this content:
> > 
> >  
> >
> >  org.apache.maven.wagon.Wagon
> >  ssh-pf
> >
> >
>  com.mtvi.plateng.maven.wagon.JschTunnelWagon
> >
> > [other configuration]
> >
> >
> >  
> > 
> > * In my plugin project, I depend upon the first project and do this:
> >/**
> > * The Tunneling Wagon.
> > *
> > * @parameter
> > expression="${component.org.apache.maven.wagon.Wagon#ssh-pf}"
> > * @required
> > * @readonly
> > */
> >private TunnelWagon wagon;
> >
> > When I try to execute my mojo, I get this error:
> > Component descriptor cannot be found in the component repository:
> > org.apache.maven.wagon.Wagonssh-pf.
> >
> > With -X, I see this:
> > Caused by:
> org.codehaus.plexus.component.composition.CompositionException:
> > Composition failed of field wagon in object of type
> > com.mtvi.plateng.maven.utils.TunnelCreatorMojo because the requirement
> > ComponentRequirement{role='org.apache.maven.wagon.Wagon',
> roleHint='ssh-pf',
> > fieldName='wagon'} was missing
> >
> > I'm sure I'm missing something simple, but if anyone can help, I'd
> > appreciate it.
> >
> > Thanks,
> > Justin
> >
> >
>
>
> --
> Brett Porter
> Blog: http://blogs.exist.com/bporter/
>
>
>


-- 
Brett Porter
Blog: http://blogs.exist.com/bporter/


RE: Stuck on custom wagon and plexus

2008-09-03 Thread Edelson, Justin
Thanks Brett. I knew it was something simple.
 
That got me one step further, now I'm getting:
Caused by: org.codehaus.plexus.component.composition.CompositionException: 
Composition failed for the field knownHostsProvider in object of type 
com.mtvi.plateng.maven.wagon.JschTunnelWagon
at 
org.codehaus.plexus.component.composition.FieldComponentComposer.assignRequirementToField(FieldComponentComposer.java:144)
at 
org.codehaus.plexus.component.composition.FieldComponentComposer.assembleComponent(FieldComponentComposer.java:73)
at 
org.codehaus.plexus.component.composition.DefaultComponentComposerManager.assembleComponent(DefaultComponentComposerManager.java:68)
at 
org.codehaus.plexus.DefaultPlexusContainer.composeComponent(DefaultPlexusContainer.java:1486)
at 
org.codehaus.plexus.personality.plexus.lifecycle.phase.CompositionPhase.execute(CompositionPhase.java:29)
... 35 more
Caused by: java.lang.IllegalArgumentException
at 
sun.reflect.UnsafeObjectFieldAccessorImpl.set(UnsafeObjectFieldAccessorImpl.java:63)
at java.lang.reflect.Field.set(Field.java:656)
at 
org.codehaus.plexus.component.composition.FieldComponentComposer.assignRequirementToField(FieldComponentComposer.java:137)
... 39 mor
 
knownHostsProvider is a field in AbstractJschWagon, which is extended by 
ScpWagon, which my class then extends. I basically just copied the component 
configuration from that of ScpWagon
 
 
 



From: Brett Porter [mailto:[EMAIL PROTECTED]
Sent: Wed 9/3/2008 9:57 PM
To: Maven Users List
Subject: Re: Stuck on custom wagon and plexus



Is the resource really in that directory?
It should be src/main/resources/META-INF/plexus/components.xml instead :)

Cheers,
Brett

2008/9/4 Edelson, Justin <[EMAIL PROTECTED]>

> I'm writing a Maven plugin that requires a customized version of the SCP
> Wagon. While I've written a number of plugins in the past, this is the first
> time I've tried to create a Plexus component and I seem to be stuck.
>
> Here's what I've done:
> * In one project, I have a class (...JschTunnelWagon), an interface
> (...TunnelWagon), and a components.xml file (in src/main/resources/plexus)
> with this content:
> 
>  
>
>  org.apache.maven.wagon.Wagon
>  ssh-pf
>
>  com.mtvi.plateng.maven.wagon.JschTunnelWagon
>
> [other configuration]
>
>
>  
> 
> * In my plugin project, I depend upon the first project and do this:
>/**
> * The Tunneling Wagon.
> *
> * @parameter
> expression="${component.org.apache.maven.wagon.Wagon#ssh-pf}"
> * @required
> * @readonly
> */
>private TunnelWagon wagon;
>
> When I try to execute my mojo, I get this error:
> Component descriptor cannot be found in the component repository:
> org.apache.maven.wagon.Wagonssh-pf.
>
> With -X, I see this:
> Caused by: org.codehaus.plexus.component.composition.CompositionException:
> Composition failed of field wagon in object of type
> com.mtvi.plateng.maven.utils.TunnelCreatorMojo because the requirement
> ComponentRequirement{role='org.apache.maven.wagon.Wagon', roleHint='ssh-pf',
> fieldName='wagon'} was missing
>
> I'm sure I'm missing something simple, but if anyone can help, I'd
> appreciate it.
>
> Thanks,
> Justin
>
>


--
Brett Porter
Blog: http://blogs.exist.com/bporter/




Re: Stuck on custom wagon and plexus

2008-09-03 Thread Brett Porter
Is the resource really in that directory?
It should be src/main/resources/META-INF/plexus/components.xml instead :)

Cheers,
Brett

2008/9/4 Edelson, Justin <[EMAIL PROTECTED]>

> I'm writing a Maven plugin that requires a customized version of the SCP
> Wagon. While I've written a number of plugins in the past, this is the first
> time I've tried to create a Plexus component and I seem to be stuck.
>
> Here's what I've done:
> * In one project, I have a class (...JschTunnelWagon), an interface
> (...TunnelWagon), and a components.xml file (in src/main/resources/plexus)
> with this content:
> 
>  
>
>  org.apache.maven.wagon.Wagon
>  ssh-pf
>
>  com.mtvi.plateng.maven.wagon.JschTunnelWagon
>
> [other configuration]
>
>
>  
> 
> * In my plugin project, I depend upon the first project and do this:
>/**
> * The Tunneling Wagon.
> *
> * @parameter
> expression="${component.org.apache.maven.wagon.Wagon#ssh-pf}"
> * @required
> * @readonly
> */
>private TunnelWagon wagon;
>
> When I try to execute my mojo, I get this error:
> Component descriptor cannot be found in the component repository:
> org.apache.maven.wagon.Wagonssh-pf.
>
> With -X, I see this:
> Caused by: org.codehaus.plexus.component.composition.CompositionException:
> Composition failed of field wagon in object of type
> com.mtvi.plateng.maven.utils.TunnelCreatorMojo because the requirement
> ComponentRequirement{role='org.apache.maven.wagon.Wagon', roleHint='ssh-pf',
> fieldName='wagon'} was missing
>
> I'm sure I'm missing something simple, but if anyone can help, I'd
> appreciate it.
>
> Thanks,
> Justin
>
>


-- 
Brett Porter
Blog: http://blogs.exist.com/bporter/


Stuck on custom wagon and plexus

2008-09-03 Thread Edelson, Justin
I'm writing a Maven plugin that requires a customized version of the SCP Wagon. 
While I've written a number of plugins in the past, this is the first time I've 
tried to create a Plexus component and I seem to be stuck.

Here's what I've done:
* In one project, I have a class (...JschTunnelWagon), an interface 
(...TunnelWagon), and a components.xml file (in src/main/resources/plexus) with 
this content:

  

  org.apache.maven.wagon.Wagon
  ssh-pf
  
com.mtvi.plateng.maven.wagon.JschTunnelWagon

[other configuration]


  

* In my plugin project, I depend upon the first project and do this:
/**
 * The Tunneling Wagon.
 * 
 * @parameter expression="${component.org.apache.maven.wagon.Wagon#ssh-pf}"
 * @required
 * @readonly
 */
private TunnelWagon wagon;

When I try to execute my mojo, I get this error:
Component descriptor cannot be found in the component repository: 
org.apache.maven.wagon.Wagonssh-pf.

With -X, I see this:
Caused by: org.codehaus.plexus.component.composition.CompositionException: 
Composition failed of field wagon in object of type 
com.mtvi.plateng.maven.utils.TunnelCreatorMojo because the requirement 
ComponentRequirement{role='org.apache.maven.wagon.Wagon', roleHint='ssh-pf', 
fieldName='wagon'} was missing

I'm sure I'm missing something simple, but if anyone can help, I'd appreciate 
it.

Thanks,
Justin



[PLEASE TEST] Maven 2.1.0-M1-RC13

2008-09-03 Thread John Casey

Hi again everyone,

On the last go around, we had one issue pop up with maven plugin builds 
(though it might also apply to build extensions in the reactor as well). 
I've fixed it, and now here's the lucky 13th release candidate:


http://people.apache.org/~jdcasey/stage/apache-maven/2.1.0-M1-RC13/org/apache/maven/apache-maven/2.1.0-M1-RC13/

Please give it a spin (especially you, Arnaud! :) ), and let me know if 
you have any trouble.


Thanks,

-john

--
John Casey
Developer, PMC Member - Apache Maven (http://maven.apache.org)
Blog: http://www.ejlife.net/blogs/buildchimp/

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



Re: What is current status of repositorytools-plugin ?

2008-09-03 Thread Arnaud Bailly

Thanks a lot for your detailed answer. The problem I am trying to
solve is slightly different to the one you are pointing at: I just
want to be able to control precisely what are the elements that are
used in some build so that any discrepancy between two builds of
the same source, which usually manifests itself as a compile or test
failure, can be analyzed quickly. I do not - yet - tackle the release
problem. 

As I said in my previous post, there are various techniques in maven
to ensure this. Those that I know and can think of are:
 - pluginManagement and dependencyManagement with all versions of
   plugins pinned down
 - prerequisites
 - enforcer plugin

It seems to be that a great deal of trouble is alleviated by pinning
down precisely what artifacts you are using for the build (not the
artifact you are producing), plus a couple of other things in the
environment. While I am aware of those various techniques and think
they are good practices that should be followed, I was wondering
whether a tool that could "compare" the local repository (ie. not the
local in corporate way, local in maven way) with some other build's
repository "signature" would be useful.

I have all too often been beaten by local succesful build (on
the developer's workstation) that yield failure on CI because some
dependency was added that had unexpected side-effects or the
environment is uncorrectly set (for whatever reasons),... I am also
aware that discipline and rigor always help in developing software,
but we are mere faillible mortals :)

I knew about SVN's HTTP features but thought that its WebDAV's ability
was somehow special (using something called DeltaV ?) and could not be
used by "mundane" DAV enabled wagon. Thank you very much for the tip.

But the local repository is accessed through filesystem so that I
would need further processing to version it. Maybe I could use a
custom ArtifactRepository that would version each run in a local
mercurial depot ?

That explains my interest in tools working with repositories: I could
use that to synchronize 2 local repositories, or to ensure that only
some artifacts are present and compare expecter/actual repository
structure...

Regards,
-- 
Arnaud Bailly, PhD
OQube - Software Engineering
http://www.oqube.com

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



RE: Maven Plugin

2008-09-03 Thread simoha

 thank first, no it was not in it. 
it was up to Packaging, I forgot to set the Packaging as maven-plugin . 
it works now. 
Thank you 

simoha wrote:
> 
>  thank first, no it was not in it. 
> it was up to Packaging, I forgot, the Packaging in maven-plugin set. 
> it works now. 
> Thank you 
> 
> Dhruva Reddy-2 wrote:
>> 
>> As it appears in your email, you have spaces in the goal name:
>> 
>> sample.plugin:maven-hello-plugin :1.0-SNAPSHOT: sayhi
>> 
>> isn't the same as 
>> 
>> sample.plugin:maven-hello-plugin:1.0-SNAPSHOT:sayhi
>> 
>> is it?
>> 
>> -Original Message-
>> From: simoha [mailto:[EMAIL PROTECTED] 
>> Sent: Wednesday, September 03, 2008 9:48 AM
>> To: users@maven.apache.org
>> Subject: Maven Plugin
>> 
>> 
>>> Hi,
>>>   I created my first simple maven *plugin* and successfully installed
>> it.
>>> when I try to compile it with the command "mvn 
>>> sample.plugin:maven-hello-plugin :1.0-SNAPSHOT: sayhi" , I get the 
>>> following error message...
>>>
>>> Error:
>>> java.lang.IllegalStateException: The *PluginDescriptor* for the plugin
>>> Plugin* **[*sample.plugin*:*maven-hello-plugin *]* was not found.
>>> MOJO:
>>> 
>>> [EMAIL PROTECTED] sayhi
>>> .
>>>
>>> pom.xml:
>>> ...
>>> sample.plugin
>>> maven-hello-plugin ...
>>> 1.0-SNAPSHOT
>>>
>>> Can you tell me, where is the problem or what should I do to use my 
>>> Plugin?
>>> Thanks,
>>> Mhamed
>> 
>> -- 
>> View this message in context:
>> http://www.nabble.com/Maven-Plugin-tp19289561p19289561.html
>> 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/Maven-Plugin-tp19289561p19298177.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



RE: Maven Plugin

2008-09-03 Thread simoha

 thank first, no it was not in it. 
it was up to Packaging, I forgot, the Packaging in maven-plugin set. 
it works now. 
Thank you 

Dhruva Reddy-2 wrote:
> 
> As it appears in your email, you have spaces in the goal name:
> 
> sample.plugin:maven-hello-plugin :1.0-SNAPSHOT: sayhi
> 
> isn't the same as 
> 
> sample.plugin:maven-hello-plugin:1.0-SNAPSHOT:sayhi
> 
> is it?
> 
> -Original Message-
> From: simoha [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, September 03, 2008 9:48 AM
> To: users@maven.apache.org
> Subject: Maven Plugin
> 
> 
>> Hi,
>>   I created my first simple maven *plugin* and successfully installed
> it.
>> when I try to compile it with the command "mvn 
>> sample.plugin:maven-hello-plugin :1.0-SNAPSHOT: sayhi" , I get the 
>> following error message...
>>
>> Error:
>> java.lang.IllegalStateException: The *PluginDescriptor* for the plugin
>> Plugin* **[*sample.plugin*:*maven-hello-plugin *]* was not found.
>> MOJO:
>> 
>> [EMAIL PROTECTED] sayhi
>> .
>>
>> pom.xml:
>> ...
>> sample.plugin
>> maven-hello-plugin ...
>> 1.0-SNAPSHOT
>>
>> Can you tell me, where is the problem or what should I do to use my 
>> Plugin?
>> Thanks,
>> Mhamed
> 
> -- 
> View this message in context:
> http://www.nabble.com/Maven-Plugin-tp19289561p19289561.html
> 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/Maven-Plugin-tp19289561p19298148.html
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: [INFO] Dependency ... has changed ... messages during build

2008-09-03 Thread Wayne Fay
On Wed, Sep 3, 2008 at 12:21 PM, gotama <[EMAIL PROTECTED]> wrote:
>
> what is not clear to me is why 'alpha' versions make it into the releases
> repository. I previously did not set my version for the maven-war-plugin.
> 2.1-alpha-2 is the default version. In the Maven world, I thought alpha/beta
> versions = SNAPSHOTS.

This is simply incorrect. Alpha and Beta are considered releases.

For stable builds, you are strongly encouraged to lock down the
plugins you are using in the pom.xml file. Otherwise, you may
experience troubles like this when Maven auto-updates a plugin and
breaks/changes functionality you were using, or a new bug is
introduced, etc.

Wayne

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



Re: [INFO] Dependency ... has changed ... messages during build

2008-09-03 Thread gotama

fyi, this is a bug in maven-war-plugin 2.1-alpha-2. I have filed a bug for
it:
http://jira.codehaus.org/browse/MWAR-168

these incorrectly reported messages do not appear in maven-war-plugin 2.0.2.

try:
mvn clean;
mvn install;
mvn install;

with both 2.0.2 and 2.1-alpha-2. during the 3rd command you will see these
messages with 2.1-alpha-2 and not with 2.0.2.

what is not clear to me is why 'alpha' versions make it into the releases
repository. I previously did not set my version for the maven-war-plugin.
2.1-alpha-2 is the default version. In the Maven world, I thought alpha/beta
versions = SNAPSHOTS.



-- 
View this message in context: 
http://www.nabble.com/-INFO--Dependency-...-has-changed-...-messages-during-build-tp19276739p19296172.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Maven Embedder - Jar in official repo is too old

2008-09-03 Thread Shalin Shekhar Mangar
Hello,

I'm trying to embed Maven in my application. I've looked at the Maven
embedded mini-guide at
http://maven.apache.org/guides/mini/guide-embedding-m2.html

The latest version of maven-embedded at the main repository is 2.0.4 (
http://repo1.maven.org/maven2/org/apache/maven/maven-embedder/ ). However,
that version seems to be very old and many of the classes and methods used
in the example snippet on the guide page do not exist in that version.

Where can I find the most recent stable release 2.0.9 version for
maven-embedded? Is it not hosted on any repository?

-- 
Regards,
Shalin Shekhar Mangar.


Re: what to do when you require a dependency in an open-source project that isn't available on a public maven 2 repository, but could be (and you can't host it)

2008-09-03 Thread Graham Leggett

Gary Weaver wrote:

Are there any of you out there that have open-source projects where you 
couldn't find a dependency in a public Maven 2 repo, and if you, how did 
you handle it?


We run our own maven repository where we publish our own artifacts 
released using the release plugin.


Jars that are not publicly available, or jars that we have patched 
ourselves, go into this same repository.


Regards,
Graham
--


smime.p7s
Description: S/MIME Cryptographic Signature


Re: Explicit Profile Activation doesn't work for me

2008-09-03 Thread Danny

Carlos,

the profiles are indeed active by default, which contradicts the Maven POM
schema(!) Perhaps there's another schema that applies to external profiles
such as in my case since I was using profiles.xml (or I'm not interpreting
the schema correctly). Oh well, it doesn't really matter now.

Once I specified false on one of the
profiles, 'mvn help:active-profiles' did indeed report that profile as
inactive. 

It now works as expected, once I tagged all profiles in profiles.xml as
false. I can now activate a profile by
specifying -P , which is exactly what I wanted.

Thanks!





-- 
View this message in context: 
http://n2.nabble.com/Explicit-Profile-Activation-doesn%27t-work-for-me-tp834749p837029.html
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: Problem when customize and develop Jetspeed Portal in Eclipse based on tutorial?

2008-09-03 Thread Wayne Fay
Please send this to the Jetspeed Users mailing list.

Wayne

On Wed, Sep 3, 2008 at 12:36 AM, Fancing <[EMAIL PROTECTED]> wrote:
> I have spent about 2 weeks to try to follow the tutorial to customize a
> Jetspeed portal, but always failed when i start the server.
>
> All my steps are based on the tutorial "
> http://portals.apache.org/tutorials/jetspeed-2/";, and I use my own Tomcat
> server.
>
> And I got "BUILD SUCCESSFUL" at the end of "mvn -P tomcat,min", but when i
> access to the portal, i got this exception:
>
> *HTTP Status 500 -
>
> type Exception report
>
> message
>
> description The server encountered an internal error () that prevented it
> from fulfilling this request.
>
> exception
>
> javax.servlet.ServletException: Failed to initalize jetspeed.
>  org.apache.jetspeed.exception.JetspeedException: Jetspeed Initialization
> exception!
> org.apache.jetspeed.engine.JetspeedServlet.doGet(JetspeedServlet.java:219)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
> org.apache.jetspeed.engine.servlet.XXSUrlAttackFilter.doFilter(XXSUrlAttackFilter.java:52)
>
> root cause
>
> org.apache.jetspeed.exception.JetspeedException: Jetspeed Initialization
> exception!
> org.apache.jetspeed.engine.JetspeedEngine.start(JetspeedEngine.java:144)
> org.apache.jetspeed.engine.JetspeedServlet.init(JetspeedServlet.java:159)
> org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:626)
> org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:553)
> org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:488)
> org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)
> org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)
> org.apache.catalina.startup.Catalina.start(Catalina.java:552)
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> java.lang.reflect.Method.invoke(Method.java:597)
> org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
> org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
>
> root cause
>
> org.springframework.beans.factory.BeanCreationException: Error creating bean
> with name 'ajax-pipeline' defined in ServletContext resource
> [/WEB-INF/assembly/pipelines.xml]: Cannot resolve reference to bean
> 'layoutValve' while setting constructor argument with key [6]; nested
> exception is org.springframework.beans.factory.BeanCreationException: Error
> creating bean with name 'layoutValve' defined in ServletContext resource
> [/WEB-INF/assembly/ajax-layout.xml]: Cannot resolve reference to bean
> 'AjaxRequestService' while setting constructor argument with index 0; nested
> exception is org.springframework.beans.factory.BeanCreationException: Error
> creating bean with name 'AjaxRequestService' defined in ServletContext
> resource [/WEB-INF/assembly/ajax-layout.xml]: Cannot resolve reference to
> bean 'AjaxActionMap' while setting constructor argument with index 0; nested
> exception is org.springframework.beans.factory.BeanCreationException: Error
> creating bean with name 'AjaxActionMap' defined in ServletContext resource
> [/WEB-INF/assembly/ajax-layout.xml]: Cannot resolve reference to bean
> 'AjaxExportObject' while setting constructor argument with index 0 with key
> [TypedStringValue: value [export], target type [null]]; nested exception is
> org.springframework.beans.factory.BeanCreationException: Error creating bean
> with name 'AjaxExportObject' defined in ServletContext resource
> [/WEB-INF/assembly/ajax-layout.xml]: Cannot resolve reference to bean
> 'importerCastorPageManager' while setting constructor argument with index 4;
> nested exception is org.springframework.beans.factory.BeanCreationException:
> Error creating bean with name 'org.apache.jetspeed.page.CastorPageManager'
> defined in ServletContext resource
> [/WEB-INF/assembly/importer-page-manager.xml]: Cannot resolve reference to
> bean 'ImportDocumentHandlerFactory' while setting constructor argument with
> index 1; nested exception is
> org.springframework.beans.factory.BeanCreationException: Error creating bean
> with name 'ImportDocumentHandlerFactory' defined in ServletContext resource
> [/WEB-INF/assembly/importer-page-manager.xml]: Cannot resolve reference to
> bean 'ImportPsmlDocumentHandler' while setting constructor argument with key
> [TypedStringValue: value [.psml], target type [null]]; nested exception is
> org.springframework.beans.factory.BeanCreationException: Error creating bean
> with name 'ImportPsmlDocumentHandler' defined in ServletContext resource
> [/WEB-INF/assembly/importer-page-manager.xml]: Instantiation of bean failed;
> nested exception is org.springframework.beans.B

Re: what to do when you require a dependency in an open-source project that isn't available on a public maven 2 repository, but could be (and you can't host it)

2008-09-03 Thread Gary Weaver

Thanks, Geoffrey! Great blog!

I also liked Brian's that he mentioned in a comment: 
http://blogs.sonatype.com/brian/2008/05/27/1211942439071.html


And it appears that there is a bit of info here on fixing other's stuff 
in the central repo too that Brian referenced:

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

It's hard to believe that anyone wouldn't want their open-source project 
to have greater adoptability of their releases by Maven 2, etc. Maybe a 
repository that could act as a maven 2 repository, and Ivy repository, 
etc. and be *perceived* as truly agnostic is the answer.


Thanks again!

Gary


Geoffrey Wiseman wrote:

On Wed, Sep 3, 2008 at 11:09 AM, Gary Weaver <[EMAIL PROTECTED]> wrote:

  

For example, right now I'd like to use a simple in-memory HTTP Server of
some sort for serving RSS. While there is a simple HTTPServer built into
Java 6 (
http://java.sun.com/javase/6/docs/jre/api/net/httpserver/spec/com/sun/net/httpserver/package-summary.html),
 a good number of the projects described on
http://java-source.net/open-source/web-servers like Rupy, Simple, etc.
don't have artifacts deployed to http://repo1.maven.org/maven2/ . While I
could install/deploy the required jar(s) locally for my own projects, I
would like to use this in an open-source project without requiring others to
have to manually deploy the jar via installing it specifically or via
deployment to their m2 repo (if they have one setup).




Yeah, I played with a few of these, but I just ended up using the Sun one --
although I only needed it for testing, so my requirements weren't incredibly
stringent.


  

Are there any of you out there that have open-source projects where you
couldn't find a dependency in a public Maven 2 repo, and if you, how did you
handle it?




http://furiouspurpose.blogspot.com/2008/05/subetha-smtp-maven-and-community.html
  



--
Gary Weaver
Internet Framework Services
Office of Information Technology
Duke University


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



Re: creating runnable jar file

2008-09-03 Thread David Brown
Hello, something like the following works for me everytime. The only drawback 
is long compile times on slow machines. HTH, David

**

maven-assembly-plugin



test.Test
test
true


development
${pom.url}


src/main/java/test/MANIFEST.MF


jar-with-dependencies


test.Test
test
true

src/main/java/test/MANIFEST.MF


**
Run this at your POM.XML command-line directory:

mvn clean install assembly:assembly




cablepuff wrote ..
> 
> Hi i have a runnable jar files that depends on hibernate and spring (latest
> version of their jar file respectively).
> 
> I tried maven-jar-plugin.
> 
>   
>   org.apache.maven.plugins
>   maven-jar-plugin
>   
> 
>   
> true
> company.main.execute
>   
> 
>   
>   
> 
> but this doesn't allow me to distribute the file to other machine.
> 
> I also tried maven assembly plugin. 
> 
> 
>   maven-assembly-plugin
>   
>   
>   
> src/main/filters/build.properties
>   
>   
>   
> src/main/assemble/descriptor.xml
>   
>   target/assembly/work
>   
>   
>   company.main.execute
>   
>   
>   
>  
> 
> my descriptor.xml
> 
> 
>   jar-with-dependencies
>   
> jar
>   
>   false
>   
> 
>   lib
>   true
>   runtime
> 
>   
>   
> 
>   target/classes
>   
> 
>   
> 
> 
> however i get this error
> about namespace www.springframework.org/schema/tx cannot be found. 
> 
> Is their a better way to create deployable jar files that runs on different
> machine. 
> 
> -- 
> View this message in context: 
> http://www.nabble.com/creating-runnable-jar-file-tp19289532p19289532.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
Yet some, not wise, go to the other side of the globe, to barbarous and 
unhealthy regions, and devote ten or twenty years, in that they may live,-that 
is, keep comfortably warm,- and die in New England at last. 

Henry David Thoreau - Walden - 1845


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



Re: what to do when you require a dependency in an open-source project that isn't available on a public maven 2 repository, but could be (and you can't host it)

2008-09-03 Thread Gary Weaver

Nick,

Thanks for the quick response!

The problem is that I'm not the project owner or even a developer on the 
dependencies I would need deployed.


I could definitely attempt to get permission from some of the project 
owners, if that is the best route. I know from past experience that 
people may sometimes deploy stuff to central (repo1) that they don't 
own, because I've heard a project owner say one time something like 
"Whoever deployed that had a messed up pom.xml that they created for it".


Some of the page that you mentioned says that if it is a new groupId 
(which in all cases it would be), then the owner of the domain or at 
least the project owner/developer would need to be asked.


Should I get permission from the developer, etc. before posting a "Maven 
Upload Request" to Jira via: 
http://jira.codehaus.org/secure/CreateIssue.jspa?pid=10367&issuetype=5


Or if it is a public, open-source project, is a simple "notification" 
sent to them that I requested it to be uploaded good enough? In some 
circumstances, I'd imagine the developer may not be able to be contacted 
easily or at all. Is it still ok to post a Jira issue to upload it to 
central in that case?


And does the artifact need to be fully tested and to some extent 
working/usable before it can be uploaded? (i.e. If a project artifact 
from a 3rd party open-source project is advertised on the site as being 
a release (albeit possibly a v0.2 or similar) is the best route to 
install locally, get it to work and prove it is of worth to others 
before going through the process of requesting an upload to the central 
m2 repo, or do people sometimes just request upload first and then test 
it after the fact?)


Some of the answers to these questions might seem obvious to some, but 
I'm just trying to get a handle on what is normal since I'm a virgin at 
this.


Thanks,
Gary


Nick Stolwijk wrote:

Take a look at the Maven website, especially this [1] page. I guess it
tells you everything you ask about uploading third party libraries to
central.

[1] http://maven.apache.org/guides/mini/guide-central-repository-upload.html

Hth,

Nick Stolwijk
~Java Developer~

Iprofs BV.
Claus Sluterweg 125
2012 WS Haarlem
www.iprofs.nl



On Wed, Sep 3, 2008 at 5:09 PM, Gary Weaver <[EMAIL PROTECTED]> wrote:
  

Hey everyone,

I've been using and evangelizing Maven 2 for a few years now. And yes, it is
really the greatest thing since sliced bread!

However, I've run into one thing makes life with Maven a little less easy
than it should be. Specifically, there are projects out there that don't
have anyone deploying project artifacts to a public Maven 2 repository (or
at least they aren't advertising that fact, and I can't seem to find some of
them).

For example, right now I'd like to use a simple in-memory HTTP Server of
some sort for serving RSS. While there is a simple HTTPServer built into
Java 6 (
http://java.sun.com/javase/6/docs/jre/api/net/httpserver/spec/com/sun/net/httpserver/package-summary.html
), a good number of the projects described on
http://java-source.net/open-source/web-servers like Rupy, Simple, etc. don't
have artifacts deployed to http://repo1.maven.org/maven2/ . While I could
install/deploy the required jar(s) locally for my own projects, I would like
to use this in an open-source project without requiring others to have to
manually deploy the jar via installing it specifically or via deployment to
their m2 repo (if they have one setup).

Are there any of you out there that have open-source projects where you
couldn't find a dependency in a public Maven 2 repo, and if you, how did you
handle it?

I've run into issues with some of the Sun jars that have licensing issues
before, but I kind of consider that par for the course for Maven 2 projects.
However, it doesn't seem "normal" to make a developer that wants to build
your project have to deploy some other libraries locally just to build it
when there are no licensing issues. So I'm just curious how you guys usually
handle these, if you don't mind me asking.

Thanks!

Gary

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

  



--
Gary Weaver
Internet Framework Services
Office of Information Technology
Duke University


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



Re: what to do when you require a dependency in an open-source project that isn't available on a public maven 2 repository, but could be (and you can't host it)

2008-09-03 Thread Geoffrey Wiseman
On Wed, Sep 3, 2008 at 11:09 AM, Gary Weaver <[EMAIL PROTECTED]> wrote:

> For example, right now I'd like to use a simple in-memory HTTP Server of
> some sort for serving RSS. While there is a simple HTTPServer built into
> Java 6 (
> http://java.sun.com/javase/6/docs/jre/api/net/httpserver/spec/com/sun/net/httpserver/package-summary.html),
>  a good number of the projects described on
> http://java-source.net/open-source/web-servers like Rupy, Simple, etc.
> don't have artifacts deployed to http://repo1.maven.org/maven2/ . While I
> could install/deploy the required jar(s) locally for my own projects, I
> would like to use this in an open-source project without requiring others to
> have to manually deploy the jar via installing it specifically or via
> deployment to their m2 repo (if they have one setup).


Yeah, I played with a few of these, but I just ended up using the Sun one --
although I only needed it for testing, so my requirements weren't incredibly
stringent.


> Are there any of you out there that have open-source projects where you
> couldn't find a dependency in a public Maven 2 repo, and if you, how did you
> handle it?
>

http://furiouspurpose.blogspot.com/2008/05/subetha-smtp-maven-and-community.html
-- 
Geoffrey Wiseman


Re: maven-rar-plugin and filtering

2008-09-03 Thread Rémy Sanlaville
Hi Olivier,

If I can do it, I will.
Thanks,

Rémy


Re: what to do when you require a dependency in an open-source project that isn't available on a public maven 2 repository, but could be (and you can't host it)

2008-09-03 Thread Nick Stolwijk
Take a look at the Maven website, especially this [1] page. I guess it
tells you everything you ask about uploading third party libraries to
central.

[1] http://maven.apache.org/guides/mini/guide-central-repository-upload.html

Hth,

Nick Stolwijk
~Java Developer~

Iprofs BV.
Claus Sluterweg 125
2012 WS Haarlem
www.iprofs.nl



On Wed, Sep 3, 2008 at 5:09 PM, Gary Weaver <[EMAIL PROTECTED]> wrote:
> Hey everyone,
>
> I've been using and evangelizing Maven 2 for a few years now. And yes, it is
> really the greatest thing since sliced bread!
>
> However, I've run into one thing makes life with Maven a little less easy
> than it should be. Specifically, there are projects out there that don't
> have anyone deploying project artifacts to a public Maven 2 repository (or
> at least they aren't advertising that fact, and I can't seem to find some of
> them).
>
> For example, right now I'd like to use a simple in-memory HTTP Server of
> some sort for serving RSS. While there is a simple HTTPServer built into
> Java 6 (
> http://java.sun.com/javase/6/docs/jre/api/net/httpserver/spec/com/sun/net/httpserver/package-summary.html
> ), a good number of the projects described on
> http://java-source.net/open-source/web-servers like Rupy, Simple, etc. don't
> have artifacts deployed to http://repo1.maven.org/maven2/ . While I could
> install/deploy the required jar(s) locally for my own projects, I would like
> to use this in an open-source project without requiring others to have to
> manually deploy the jar via installing it specifically or via deployment to
> their m2 repo (if they have one setup).
>
> Are there any of you out there that have open-source projects where you
> couldn't find a dependency in a public Maven 2 repo, and if you, how did you
> handle it?
>
> I've run into issues with some of the Sun jars that have licensing issues
> before, but I kind of consider that par for the course for Maven 2 projects.
> However, it doesn't seem "normal" to make a developer that wants to build
> your project have to deploy some other libraries locally just to build it
> when there are no licensing issues. So I'm just curious how you guys usually
> handle these, if you don't mind me asking.
>
> Thanks!
>
> Gary
>
> -
> 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]



what to do when you require a dependency in an open-source project that isn't available on a public maven 2 repository, but could be (and you can't host it)

2008-09-03 Thread Gary Weaver

Hey everyone,

I've been using and evangelizing Maven 2 for a few years now. And yes, 
it is really the greatest thing since sliced bread!


However, I've run into one thing makes life with Maven a little less 
easy than it should be. Specifically, there are projects out there that 
don't have anyone deploying project artifacts to a public Maven 2 
repository (or at least they aren't advertising that fact, and I can't 
seem to find some of them).


For example, right now I'd like to use a simple in-memory HTTP Server of 
some sort for serving RSS. While there is a simple HTTPServer built into 
Java 6 ( 
http://java.sun.com/javase/6/docs/jre/api/net/httpserver/spec/com/sun/net/httpserver/package-summary.html 
), a good number of the projects described on 
http://java-source.net/open-source/web-servers like Rupy, Simple, etc. 
don't have artifacts deployed to http://repo1.maven.org/maven2/ . While 
I could install/deploy the required jar(s) locally for my own projects, 
I would like to use this in an open-source project without requiring 
others to have to manually deploy the jar via installing it specifically 
or via deployment to their m2 repo (if they have one setup).


Are there any of you out there that have open-source projects where you 
couldn't find a dependency in a public Maven 2 repo, and if you, how did 
you handle it?


I've run into issues with some of the Sun jars that have licensing 
issues before, but I kind of consider that par for the course for Maven 
2 projects. However, it doesn't seem "normal" to make a developer that 
wants to build your project have to deploy some other libraries locally 
just to build it when there are no licensing issues. So I'm just curious 
how you guys usually handle these, if you don't mind me asking.


Thanks!

Gary

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



RE: mvn compile works mvn site-deploy causes complation error

2008-09-03 Thread mac-systems
Hello,

i am not compiling any JSP. It happend durring site-deploy

- Jens


Jens-

*if this is happening at deploy*
then a best guess would be that the jspc (jasper compiler) phase is failing
http://mojo.codehaus.org/jspc/jspc-maven-plugin/usage.html
can you force the jasper-compiler to execute and compile the jsp pages BEFORE 
deployment
any diags such as stacktraces from the logs would be most helpful

?
Martin 
__ 
Disclaimer and confidentiality note 
Everything in this e-mail and any attachments relates to the official business 
of Sender. This transmission is of a confidential nature and Sender does not 
endorse distribution to any party other than intended recipient. Sender does 
not necessarily endorse content contained within this transmission. 


> From: [EMAIL PROTECTED]
> To: users@maven.apache.org
> Subject: mvn compile works mvn site-deploy causes complation error
> Date: Wed, 3 Sep 2008 16:15:53 +0200
> 
> Hello,
> 
> i try to setup my multi module project. I am trying to setup the site 
generation after all compile dependencies are now resolved and no compile error 
is caused durring mvn compile.
> When i do a mvn site-deploy i get a compile error, anyone has a clue what the 
heck is going on ? Also a mvn clean before does not fix this problem :/
> 
> best regards,
> Jens
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

_
Want to do more with Windows Live? Learn “10 hidden secrets” from Jamie.
http://windowslive.com/connect/post/jamiethomson.spaces.live.com-Blog-cns!550F68
1DAD532637!5295.entry?ocid=TXT_TAGLM_WL_domore_092008

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



Re: maven-rar-plugin and filtering

2008-09-03 Thread Olivier Lamy
Hi,
Sounds reasonnable.
Can you attach a patch to http://jira.codehaus.org/browse/MRAR-22 ?

Thanks,
--
Olivier

2008/9/3 Rémy Sanlaville <[EMAIL PROTECTED]>:
> Hi,
>
> I just wonder if it possible to use filtering with maven-rar-plugin (it
> seems not).
> For instance, we need it for login/password and jdbc urls parameters.
>
> If not, I think the best way to add this feature is to use the shared
> component maven-filtering.
> Are you agree ?
>
> Rémy
>

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



Re: What is current status of repositorytools-plugin ?

2008-09-03 Thread Graham Leggett

Arnaud Bailly wrote:


I am investigating how to create "reproducible" builds with
maven2. There is a proposal from Brett Porter in the wiki about
refactoring local repository structure that goes in that
direction. Not sure however when it will be available. Enforcers and
requirements also helps, as well as of course pinning plugin
versions. 


I was however hoping to find a way to "tag" the local repository used
for a build in order to be able to reproduce the latter and/or to
compare local repositories produced by two builds that are supposed to
be identical.


A fundamental rule underlying maven is that once an artifact is rolled, 
it never changes. You cannot have repeatability without this.


If your local or remote repository is changing over time, then something 
is very broken.


And it is surprisingly easy unfortunately to get bitten by this: the 
person doing the release forgets to include vital file X in their build, 
so rather than rerolling the release, they cheat and manually insert 
missing file X into their released jar file without telling anybody.


Fast forward a short while, and person Y has checked out the source for 
that release - minus file X - to investigate a production problem, and 
they get the error "file X is missing". Much time is wasted trying to 
investigate why they are suddenly getting the error about a missing file 
X, instead of the production problem they are trying to solve. This is 
caused because the source doesn't match the binary, it is not repeatable.


A possible solution to your problem could be hosting your local 
repository (which I am interpreting to mean the repository local to your 
organisation where you deploy your releases) on a subversion server over 
WebDAV.


Subversion has a very useful feature in that a repository is accessible 
via a normal web browser (which means maven can download artifacts 
without maven having any knowledge whatsoever that it is really talking 
to subversion).


It has a second even more useful feature giving write access to the 
repository via WebDAV (which means the maven release process can deploy 
the new artifacts to the WebDAV maven repository, again without any 
knowledge whatsoever that subversion is even there).


Because your maven repository is now also a subversion repository, you 
now have full history of who did what. If an artifact is changed, that 
can be searched for in the subversion history and red flagged before 
that jar makes it into production. And the subversion repository will 
have full details of exactly who overwrote the binary, and when.


Regards,
Graham
--


smime.p7s
Description: S/MIME Cryptographic Signature


RE: mvn compile works mvn site-deploy causes complation error

2008-09-03 Thread Martin Gainty

Jens-

*if this is happening at deploy*
then a best guess would be that the jspc (jasper compiler) phase is failing
http://mojo.codehaus.org/jspc/jspc-maven-plugin/usage.html
can you force the jasper-compiler to execute and compile the jsp pages BEFORE 
deployment
any diags such as stacktraces from the logs would be most helpful

?
Martin 
__ 
Disclaimer and confidentiality note 
Everything in this e-mail and any attachments relates to the official business 
of Sender. This transmission is of a confidential nature and Sender does not 
endorse distribution to any party other than intended recipient. Sender does 
not necessarily endorse content contained within this transmission. 


> From: [EMAIL PROTECTED]
> To: users@maven.apache.org
> Subject: mvn compile works mvn site-deploy causes complation error
> Date: Wed, 3 Sep 2008 16:15:53 +0200
> 
> Hello,
> 
> i try to setup my multi module project. I am trying to setup the site 
> generation after all compile dependencies are now resolved and no compile 
> error is caused durring mvn compile.
> When i do a mvn site-deploy i get a compile error, anyone has a clue what the 
> heck is going on ? Also a mvn clean before does not fix this problem :/
> 
> best regards,
> Jens
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

_
Want to do more with Windows Live? Learn “10 hidden secrets” from Jamie.
http://windowslive.com/connect/post/jamiethomson.spaces.live.com-Blog-cns!550F681DAD532637!5295.entry?ocid=TXT_TAGLM_WL_domore_092008

maven-rar-plugin and filtering

2008-09-03 Thread Rémy Sanlaville
Hi,

I just wonder if it possible to use filtering with maven-rar-plugin (it
seems not).
For instance, we need it for login/password and jdbc urls parameters.

If not, I think the best way to add this feature is to use the shared
component maven-filtering.
Are you agree ?

Rémy


Re: What is current status of repositorytools-plugin ?

2008-09-03 Thread Arnaud Bailly
"Tom Huybrechts" <[EMAIL PROTECTED]> writes:

> I contributed it to the sandbox a long time ago, but have not looked
> at it since. The repository copying worked in some cases, but
> certainly not all.
> If you want to use it but find bugs, please be prepared to fix them yourself.
> I would also recommend to look at the stage plugin to see if this fits
> your needs.
>

I am investigating how to create "reproducible" builds with
maven2. There is a proposal from Brett Porter in the wiki about
refactoring local repository structure that goes in that
direction. Not sure however when it will be available. Enforcers and
requirements also helps, as well as of course pinning plugin
versions. 

I was however hoping to find a way to "tag" the local repository used
for a build in order to be able to reproduce the latter and/or to
compare local repositories produced by two builds that are supposed to
be identical.

I suspect this is something very common but googling a little bit did
not give any clear path towards a solution (which BTW I suspect does
not exist, the path, not the solution).

I am looking for something along the lines of
http://nixos.org/about.html

Regards,
-- 
Arnaud Bailly, PhD
OQube - Software Engineering
http://www.oqube.com

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



RE: Maven Plugin

2008-09-03 Thread Dhruva Reddy
As it appears in your email, you have spaces in the goal name:

sample.plugin:maven-hello-plugin :1.0-SNAPSHOT: sayhi

isn't the same as 

sample.plugin:maven-hello-plugin:1.0-SNAPSHOT:sayhi

is it?

-Original Message-
From: simoha [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, September 03, 2008 9:48 AM
To: users@maven.apache.org
Subject: Maven Plugin


> Hi,
>   I created my first simple maven *plugin* and successfully installed
it.
> when I try to compile it with the command "mvn 
> sample.plugin:maven-hello-plugin :1.0-SNAPSHOT: sayhi" , I get the 
> following error message...
>
> Error:
> java.lang.IllegalStateException: The *PluginDescriptor* for the plugin
> Plugin* **[*sample.plugin*:*maven-hello-plugin *]* was not found.
> MOJO:
> 
> [EMAIL PROTECTED] sayhi
> .
>
> pom.xml:
> ...
> sample.plugin
> maven-hello-plugin ...
> 1.0-SNAPSHOT
>
> Can you tell me, where is the problem or what should I do to use my 
> Plugin?
> Thanks,
> Mhamed

-- 
View this message in context:
http://www.nabble.com/Maven-Plugin-tp19289561p19289561.html
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]



mvn compile works mvn site-deploy causes complation error

2008-09-03 Thread mac-systems
Hello,

i try to setup my multi module project. I am trying to setup the site 
generation after all compile dependencies are now resolved and no compile error 
is caused durring mvn compile.
When i do a mvn site-deploy i get a compile error, anyone has a clue what the 
heck is going on ? Also a mvn clean before does not fix this problem :/

best regards,
Jens

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



release-plugin: dependency version not adjusted within

2008-09-03 Thread Cla Emanuel Monsch

hi there

while executing release:prepare the versions of dependencies to 
submodules are adjusted correct. but they're just adapted to the new 
version if they are not defined within a  section.
the profile 'jboss' was activated correct. i've checked that with 
help:active-profiles.


---
have a look at this section of the pom.xml.tag file.

release version: esp-blabla-1.0
current dev version: 1.0.0-SNAPSHOT

adjusted correct:

  
 
ch.abc.project1
esp-business-logic
esp-blabla-1.0
esp-ejb-jboss
 
  



not adjusted:

  
  

  jboss
  

  ch.abc.project1
  esp-business-logic
  1.0.0-SNAPSHOT
  esp-ejb-jboss

  



any ideas?

thanks,
cla


--
Projekt «Robot Team Challenge»: Wir fördern den Nachwuchs
www.informatica08.ch/robot

Cla Emanuel Monsch | [EMAIL PROTECTED]
phone +41-44-247 79 06 | fax +41-44-247 70 75
Netcetera AG | 8040 Zürich | Switzerland | http://netcetera.ch

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



Re: creating runnable jar file

2008-09-03 Thread Graham Leggett

cablepuff wrote:


however i get this error
about namespace www.springframework.org/schema/tx cannot be found. 


Is their a better way to create deployable jar files that runs on different
machine. 


It sounds like you are trying to create an uberjar, AKA a 
jar-with-dependencies.


An uberjar is a new big jar created by unpacking all the dependent jars 
into one big jar, which being self contained, will run on any machine 
without needing any special classpath setup.


The assembly plugin can create uberjars for you, look at the docs for 
the assembly plugin to see how.


Regards,
Graham
--


smime.p7s
Description: S/MIME Cryptographic Signature


Maven Plugin

2008-09-03 Thread simoha

> Hi,
>   I created my first simple maven *plugin* and successfully installed it.
> when I try to compile it with the command "mvn 
> sample.plugin:maven-hello-plugin :1.0-SNAPSHOT: sayhi" , I get the 
> following error message...
>
> Error:
> java.lang.IllegalStateException: The *PluginDescriptor* for the plugin
> Plugin* **[*sample.plugin*:*maven-hello-plugin *]* was not found.
> MOJO:
> 
> [EMAIL PROTECTED] sayhi
> .
>
> pom.xml:
> ...
> sample.plugin
> maven-hello-plugin ...
> 1.0-SNAPSHOT
>
> Can you tell me, where is the problem or what should I do to use my 
> Plugin?
> Thanks,
> Mhamed

-- 
View this message in context: 
http://www.nabble.com/Maven-Plugin-tp19289561p19289561.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



creating runnable jar file

2008-09-03 Thread cablepuff

Hi i have a runnable jar files that depends on hibernate and spring (latest
version of their jar file respectively).

I tried maven-jar-plugin.

  
org.apache.maven.plugins
maven-jar-plugin

  

  true
  company.main.execute

  



but this doesn't allow me to distribute the file to other machine.

I also tried maven assembly plugin. 


maven-assembly-plugin



src/main/filters/build.properties



src/main/assemble/descriptor.xml

target/assembly/work


company.main.execute



 

my descriptor.xml


  jar-with-dependencies
  
jar
  
  false
  

  lib
  true
  runtime

  
  

  target/classes
  

  


however i get this error
about namespace www.springframework.org/schema/tx cannot be found. 

Is their a better way to create deployable jar files that runs on different
machine. 

-- 
View this message in context: 
http://www.nabble.com/creating-runnable-jar-file-tp19289532p19289532.html
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: What is current status of repositorytools-plugin ?

2008-09-03 Thread Tom Huybrechts
I contributed it to the sandbox a long time ago, but have not looked
at it since. The repository copying worked in some cases, but
certainly not all.
If you want to use it but find bugs, please be prepared to fix them yourself.
I would also recommend to look at the stage plugin to see if this fits
your needs.

Tom

On Wed, Sep 3, 2008 at 2:41 PM, Martin Gainty <[EMAIL PROTECTED]> wrote:
>
> are you talking about the economy?
> could you be more specific what the issue is?
> has the project been archived?
> Martin
> __
> Disclaimer and confidentiality note
> Everything in this e-mail and any attachments relates to the official 
> business of Sender. This transmission is of a confidential nature and Sender 
> does not endorse distribution to any party other than intended recipient. 
> Sender does not necessarily endorse content contained within this 
> transmission.
>
>
>> Date: Wed, 3 Sep 2008 13:36:52 +0200
>> From: [EMAIL PROTECTED]
>> To: users@maven.apache.org
>> Subject: Re: What is current status of repositorytools-plugin ?
>>
>> Dead.
>>
>> On Wed, Sep 3, 2008 at 11:40 AM, Insitu <[EMAIL PROTECTED]> wrote:
>> > Hello,
>> > The question is in the title...
>> > --
>> > Arnaud Bailly, PhD
>> > OQube - Software Engineering
>> > http://www.oqube.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]
>>
>
> _
> See how Windows Mobile brings your life together—at home, work, or on the go.
> http://clk.atdmt.com/MRT/go/msnnkwxp1020093182mrt/direct/01/

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



Re: What is current status of repositorytools-plugin ?

2008-09-03 Thread Arnaud Bailly
"Tom Huybrechts" <[EMAIL PROTECTED]> writes:

> Dead.
>

Sort of very laconical answer...

IS there something out there that would provide the same functionality
(ie. copying between repositories) ?.

Thanks
-- 
Arnaud Bailly, PhD
OQube - Software Engineering
http://www.oqube.com

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



RE: What is current status of repositorytools-plugin ?

2008-09-03 Thread Martin Gainty

are you talking about the economy?
could you be more specific what the issue is?
has the project been archived?
Martin 
__ 
Disclaimer and confidentiality note 
Everything in this e-mail and any attachments relates to the official business 
of Sender. This transmission is of a confidential nature and Sender does not 
endorse distribution to any party other than intended recipient. Sender does 
not necessarily endorse content contained within this transmission. 


> Date: Wed, 3 Sep 2008 13:36:52 +0200
> From: [EMAIL PROTECTED]
> To: users@maven.apache.org
> Subject: Re: What is current status of repositorytools-plugin ?
> 
> Dead.
> 
> On Wed, Sep 3, 2008 at 11:40 AM, Insitu <[EMAIL PROTECTED]> wrote:
> > Hello,
> > The question is in the title...
> > --
> > Arnaud Bailly, PhD
> > OQube - Software Engineering
> > http://www.oqube.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]
> 

_
See how Windows Mobile brings your life together—at home, work, or on the go.
http://clk.atdmt.com/MRT/go/msnnkwxp1020093182mrt/direct/01/

updateDependencies doesn't run correctly in release plugin

2008-09-03 Thread Zucchi Alessandro

Hi all,
I have a multi-level project, for example (B & C are submodules of A;  B1 &
B2 are submodlules of B ; ...):

A  B -- B1
   ||  B2
   |
   |--- C --C1
 |-C2

B2 depends from B1
C1 depends from B1
C2 depends from C1 & B2

In C are defined  B1 & B2 & C1  as 
 
...  
 

and used as real dependencies



 ...


in C2 & C1

What I want is that after execution of:
mvn  -DpreparationGoals=clean install -DautoVersionSubmodules=true 
-DupdateDependencies=false release:clean release:prepareon C project 

the dependencies present in   of C project do not get
update to the next snapshot versions (development versions) but remain that
released.
Instead I get always the snapshot versions, like if updateDependencies=
false was ignored.

Than I debugged and I tried this piece of code the, for me, is where the
program fails.

AbstractRewritePomsPhase.java   Class
updateDomVersion()   Function

if ( mappedVersion != null && mappedVersion.endsWith( "SNAPSHOT" ) &&
   !dependencyVersion.endsWith( "SNAPSHOT" ) && 
!releaseDescriptor.isUpdateDependencies() )
   {
   return;
   }

The mappedVersion variable is always null when the code execute the
dependencies present in  of C project. This because:
String mappedVersion = (String) mappedVersions.get( key ); 
has the Map mappedVersions that does not contains dependencies bat only the
mapped released version of C projects.  Unfortunately I can't still a valid
solution ...
Morover, this piece of code is marked to MRELEASE-220 that is an issue of
JIRA that explains a similar problem. But no fix generated.

Anyone can help me ?
Nobody else met this problem ?
May be the problem is due to use of   without define
the real dependency in the some pom where   is
defined?

Best regards
Alex









-- 
View this message in context: 
http://www.nabble.com/updateDependencies-doesn%27t-run-correctly-in-release-plugin-tp19287555p19287555.html
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: What is current status of repositorytools-plugin ?

2008-09-03 Thread Tom Huybrechts
Dead.

On Wed, Sep 3, 2008 at 11:40 AM, Insitu <[EMAIL PROTECTED]> wrote:
> Hello,
> The question is in the title...
> --
> Arnaud Bailly, PhD
> OQube - Software Engineering
> http://www.oqube.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]



Refer to the enclosing project's version in the generated archetype

2008-09-03 Thread jwcarman

I have a project that contains a core library and a couple of archetypes that
I want to use it.  How do I put a dependency in my archetypes that says "use
the core library from the same version as me"?  Does that make sense?
-- 
View this message in context: 
http://www.nabble.com/Refer-to-the-enclosing-project%27s-version-in-the-generated-archetype-tp19287364p19287364.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



What is current status of repositorytools-plugin ?

2008-09-03 Thread Insitu
Hello,
The question is in the title...
-- 
Arnaud Bailly, PhD
OQube - Software Engineering
http://www.oqube.com


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



Re: WEB-INF vs web-inf

2008-09-03 Thread Manos Batsis

Tamsin wrote:

Won't it be a problem when deployed on a case sensitive server?



Yep.

My guess is the OP's POM contains or links to an Ant script (i.e. antrun 
plugin) that generates some descriptors or something (for example 
through webdoclet) and has the case wrong in some path reference.


hth,

Manos


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



RE: WEB-INF vs web-inf

2008-09-03 Thread Tamsin
Hi,

Won't it be a problem when deployed on a case sensitive server?

Thanks,
Tamsin

-Original Message-
From: xds2000 [mailto:[EMAIL PROTECTED]
Sent: 03 September 2008 09:57
To: users@maven.apache.org
Subject: Re: WEB-INF vs web-inf



i think this is not problem.no idea.

2008/9/3 Tamsin
<[EMAIL PROTECTED]<[EMAIL PROTECTED]
.com>
>

> Hi,
>
> Sorry if this has been asked before, I'm quite new to this, but I couldn't
> find an answer.
>
> When I do mvn package of my webapp, the resulting war file has both
> folders:
> web-inf
> > web.xml
> > my-servlet.xml
> WEB-INF
> > lib > jar files
>
> I know that the correct name is WEB-INF, and in my src tree, the xml files
> are in
> src > main > webapp > WEB-INF
>
> I'm on Windows XP, and think this may be something to do with it, but not
> sure why it is converting my correctly named uppercase version to
> lowercase,
> and what I can do about it.
>
> Thanks for any help,
> Tamsin
>
>
>
> -
> To unsubscribe, e-mail:
[EMAIL PROTECTED]
> For additional commands, e-mail:
[EMAIL PROTECTED]
>
>
>
> --
>  Subscribed to Nabble @ http://n2.nabble.com/maven-users-f828.html
> To start a new topic under maven users, email
>
[EMAIL PROTECTED]<[EMAIL PROTECTED]>
> To unsubscribe, click here< (link removed) ==>.
>
>
>


--
tommy xiao
QQ: 2667799
MSN Messenger: xds2000ATmsn.com
E-mail: xiaodsATgmail.com

--
View this message in context:
http://n2.nabble.com/WEB-INF-vs-web-inf-tp835685p835790.html
Sent from the maven users mailing list archive at Nabble.com.


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


No virus found in this incoming message.
Checked by AVG - http://www.avg.com
Version: 8.0.169 / Virus Database: 270.6.15/1648 - Release Date: 9/2/2008
5:29 PM


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



Re: WEB-INF vs web-inf

2008-09-03 Thread xds2000

i think this is not problem.no idea.

2008/9/3 Tamsin
<[EMAIL PROTECTED]<[EMAIL PROTECTED]>
>

> Hi,
>
> Sorry if this has been asked before, I'm quite new to this, but I couldn't
> find an answer.
>
> When I do mvn package of my webapp, the resulting war file has both
> folders:
> web-inf
> > web.xml
> > my-servlet.xml
> WEB-INF
> > lib > jar files
>
> I know that the correct name is WEB-INF, and in my src tree, the xml files
> are in
> src > main > webapp > WEB-INF
>
> I'm on Windows XP, and think this may be something to do with it, but not
> sure why it is converting my correctly named uppercase version to
> lowercase,
> and what I can do about it.
>
> Thanks for any help,
> Tamsin
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL 
> PROTECTED]
> For additional commands, e-mail: [EMAIL 
> PROTECTED]
>
>
>
> --
>  Subscribed to Nabble @ http://n2.nabble.com/maven-users-f828.html
> To start a new topic under maven users, email
> [EMAIL PROTECTED]<[EMAIL PROTECTED]>
> To unsubscribe, click here< (link removed) ==>.
>
>
>


-- 
tommy xiao
QQ: 2667799
MSN Messenger: xds2000ATmsn.com
E-mail: xiaodsATgmail.com

-- 
View this message in context: 
http://n2.nabble.com/WEB-INF-vs-web-inf-tp835685p835790.html
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: Explicit Profile Activation doesn't work for me

2008-09-03 Thread Danny

Yes, I thought about that last night, but according to the Maven 2 schema,
'false' is the default value for 'activeByDefault'.

But then again, you might be on to something, since Maven apparently thinks
that all three profiles are active (according to 'mvn
help:active-profiles'), which seems to contradict the schema's default value
of 'false'.

I going to try setting false explicitly
in the profiles.xml file tonight. I'll get back with my findings after I've
tried it.

I also remember reading somewhere that you can negate a profile activation
with e.g. 'mvn ... -P !prof1'. If this is true (I haven't tried it yet) it
would mean that all profiles are active by default(!), which is rather odd.



Carlos Alonso wrote:
> 
> Hi Danny.
> 
> I can guess that what you're missing is
> 
> 
> prof1
>  
> false
>  
> 
>   .
>   .
>   .
> 
> 
> So, it's up to you to specify from command line for example, the active
> profile you want.
> 
> 
> Danny escribió:
>> Hi!
>>
>> It seems that the profile activation isn't working for me, even though I
>> explicitly tell Maven to activate it with the -P option.
>>
>> Background:
>>
>> I have an external profile file (profiles.xml) that has some properties
>> in
>> each profile section: 
>>
>> 
>>   
>> prof1
>> 
>>   X
>> 
>>   
>>   
>> prof2
>> 
>>   Y
>> 
>>   
>>   
>> prof3
>> 
>>   Z
>> 
>>   
>> 
>>
>> The resource file that I want to filter contains:
>>
>> # app.properties
>> ...
>> property=${MyProp}
>> ...
>>
>> I've already turned resource filtering on in the top-level POM. 
>>
>> If I do 'mvn help:effective-pom -Pprof1' (I tried with and without a
>> space
>> between '-P' and 'prof1', to no effect), sure enough, the filtering seems
>> to
>> be working:
>>
>> 
>> ...
>>
>>  Z
>>   
>> 
>>
>> I can even confirm this by looking in the processes resource file:
>>
>> # app.properties
>> ...
>> property=Z
>> ...
>>
>> For some reason I don't understand, it doesn't matter what profile I
>> speficy
>> with the -P option, Maven will consistently use the last profile (which
>> sets
>> the value 'Z', as described above). When I try to use the command 'mvn
>> help:active-profiles' it also states that it has understood that there
>> are 3
>> profiles:
>>
>> (output from mvn help:active-profiles)
>>
>> Active Profiles for Project '...': 
>>
>> The following profiles are active:
>>
>>  - prof1 (source: profiles.xml)
>>  - prof2 (source: profiles.xml)
>>  - prof3 (source: profiles.xml)
>>
>> ...
>>
>>
>> What am I doing wrong? I suppose I could use the -tags (I
>> have
>> none specified at the moment because I'm assuming that the -P option
>> takes
>> care of that(?)) and activate a profile with 'mvn -Dprof1 ...', but that
>> shouldn't be necessary, because the -P option should work, right?
>>
>>
>>
>>   
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://n2.nabble.com/Explicit-Profile-Activation-doesn%27t-work-for-me-tp834749p835720.html
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: Explicit Profile Activation doesn't work for me

2008-09-03 Thread Carlos Alonso
Hi Danny.

I can guess that what you're missing is


prof1
 
false
 

  .
  .
  .


So, it's up to you to specify from command line for example, the active
profile you want.


Danny escribió:
> Hi!
>
> It seems that the profile activation isn't working for me, even though I
> explicitly tell Maven to activate it with the -P option.
>
> Background:
>
> I have an external profile file (profiles.xml) that has some properties in
> each profile section: 
>
> 
>   
> prof1
> 
>   X
> 
>   
>   
> prof2
> 
>   Y
> 
>   
>   
> prof3
> 
>   Z
> 
>   
> 
>
> The resource file that I want to filter contains:
>
> # app.properties
> ...
> property=${MyProp}
> ...
>
> I've already turned resource filtering on in the top-level POM. 
>
> If I do 'mvn help:effective-pom -Pprof1' (I tried with and without a space
> between '-P' and 'prof1', to no effect), sure enough, the filtering seems to
> be working:
>
> 
> ...
>
>  Z
>   
> 
>
> I can even confirm this by looking in the processes resource file:
>
> # app.properties
> ...
> property=Z
> ...
>
> For some reason I don't understand, it doesn't matter what profile I speficy
> with the -P option, Maven will consistently use the last profile (which sets
> the value 'Z', as described above). When I try to use the command 'mvn
> help:active-profiles' it also states that it has understood that there are 3
> profiles:
>
> (output from mvn help:active-profiles)
>
> Active Profiles for Project '...': 
>
> The following profiles are active:
>
>  - prof1 (source: profiles.xml)
>  - prof2 (source: profiles.xml)
>  - prof3 (source: profiles.xml)
>
> ...
>
>
> What am I doing wrong? I suppose I could use the -tags (I have
> none specified at the moment because I'm assuming that the -P option takes
> care of that(?)) and activate a profile with 'mvn -Dprof1 ...', but that
> shouldn't be necessary, because the -P option should work, right?
>
>
>
>   


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



WEB-INF vs web-inf

2008-09-03 Thread Tamsin
Hi,

Sorry if this has been asked before, I'm quite new to this, but I couldn't
find an answer.

When I do mvn package of my webapp, the resulting war file has both folders:
web-inf
> web.xml
> my-servlet.xml
WEB-INF
> lib > jar files

I know that the correct name is WEB-INF, and in my src tree, the xml files
are in
src > main > webapp > WEB-INF

I'm on Windows XP, and think this may be something to do with it, but not
sure why it is converting my correctly named uppercase version to lowercase,
and what I can do about it.

Thanks for any help,
Tamsin



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



Problem when customize and develop Jetspeed Portal in Eclipse based on tutorial?

2008-09-03 Thread Fancing
I have spent about 2 weeks to try to follow the tutorial to customize a
Jetspeed portal, but always failed when i start the server.

All my steps are based on the tutorial "
http://portals.apache.org/tutorials/jetspeed-2/";, and I use my own Tomcat
server.

And I got "BUILD SUCCESSFUL" at the end of "mvn -P tomcat,min", but when i
access to the portal, i got this exception:

*HTTP Status 500 -

type Exception report

message

description The server encountered an internal error () that prevented it
from fulfilling this request.

exception

javax.servlet.ServletException: Failed to initalize jetspeed.
 org.apache.jetspeed.exception.JetspeedException: Jetspeed Initialization
exception!
org.apache.jetspeed.engine.JetspeedServlet.doGet(JetspeedServlet.java:219)
javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.apache.jetspeed.engine.servlet.XXSUrlAttackFilter.doFilter(XXSUrlAttackFilter.java:52)

root cause

org.apache.jetspeed.exception.JetspeedException: Jetspeed Initialization
exception!
org.apache.jetspeed.engine.JetspeedEngine.start(JetspeedEngine.java:144)
org.apache.jetspeed.engine.JetspeedServlet.init(JetspeedServlet.java:159)
org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:626)
org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:553)
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:488)
org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)
org.apache.catalina.startup.Catalina.start(Catalina.java:552)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:597)
org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)

root cause

org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'ajax-pipeline' defined in ServletContext resource
[/WEB-INF/assembly/pipelines.xml]: Cannot resolve reference to bean
'layoutValve' while setting constructor argument with key [6]; nested
exception is org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'layoutValve' defined in ServletContext resource
[/WEB-INF/assembly/ajax-layout.xml]: Cannot resolve reference to bean
'AjaxRequestService' while setting constructor argument with index 0; nested
exception is org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'AjaxRequestService' defined in ServletContext
resource [/WEB-INF/assembly/ajax-layout.xml]: Cannot resolve reference to
bean 'AjaxActionMap' while setting constructor argument with index 0; nested
exception is org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'AjaxActionMap' defined in ServletContext resource
[/WEB-INF/assembly/ajax-layout.xml]: Cannot resolve reference to bean
'AjaxExportObject' while setting constructor argument with index 0 with key
[TypedStringValue: value [export], target type [null]]; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'AjaxExportObject' defined in ServletContext resource
[/WEB-INF/assembly/ajax-layout.xml]: Cannot resolve reference to bean
'importerCastorPageManager' while setting constructor argument with index 4;
nested exception is org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'org.apache.jetspeed.page.CastorPageManager'
defined in ServletContext resource
[/WEB-INF/assembly/importer-page-manager.xml]: Cannot resolve reference to
bean 'ImportDocumentHandlerFactory' while setting constructor argument with
index 1; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'ImportDocumentHandlerFactory' defined in ServletContext resource
[/WEB-INF/assembly/importer-page-manager.xml]: Cannot resolve reference to
bean 'ImportPsmlDocumentHandler' while setting constructor argument with key
[TypedStringValue: value [.psml], target type [null]]; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'ImportPsmlDocumentHandler' defined in ServletContext resource
[/WEB-INF/assembly/importer-page-manager.xml]: Instantiation of bean failed;
nested exception is org.springframework.beans.BeanInstantiationException:
Could not instantiate bean class
[org.apache.jetspeed.page.document.psml.CastorFileSystemDocumentHandler]:
Constructor threw exception; nested exception is
java.lang.NullPointerException
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolve