Re: Two questions about native2ascii plugin

2008-07-05 Thread Dan Tran
"\u00e7\u00a1\u00ae\u00e5\u00ae\u0161" is the correct format as far as
i know, and it works on my production build

-D

On Sat, Jul 5, 2008 at 6:38 PM, youhaodeyi <[EMAIL PROTECTED]> wrote:
>
> I use "$JAVA_HOME/bin/native2ascii -encoding UTF8" command to convert the
> file. But maven native2ascii convert the file have the same result with the
> command "$JAVA_HOME/bin/navite2ascii" without the encoding specification. So
> the problem is that maven will ignore the encoding tag, won't it?
>
> Dan Tran wrote:
>>
>> how different?
>>
>> On Sat, Jul 5, 2008 at 2:02 AM, youhaodeyi <[EMAIL PROTECTED]> wrote:
>>>
>>> I use native2ascii plugin to convert my resource files. This is my
>>> configuration in pom file:
>>>
>>>org.codehaus.mojo
>>>
>>> native2ascii-maven-plugin
>>>
>>>
>>> src/test/java/ui/demo/i18n
>>>classes/ui/demo/i18n
>>>
>>>
>>>
>>>
>>>
>>> native2ascii
>>>
>>>
>>>
>>>
>>> UTF8
>>>
>>>
>>>
>>>
>>>
>>> One problem is that when I use mvn native2ascii:native2ascii to do the
>>> job,
>>> the result file is different with when I use $JAVA_HOME/bin/native2ascii
>>> command? why?
>>>
>>> The other issue is that how can I let this goat to replace the existed
>>> file?
>>> --
>>> View this message in context:
>>> http://www.nabble.com/Two-questions-about-native2ascii-plugin-tp18290230p18290230.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/Two-questions-about-native2ascii-plugin-tp18290230p18298111.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]



Re: Access to e.g. jboss lib

2008-07-05 Thread Stephen Coy
Unless you happen to be using JBoss specific API's, then you probably  
do not need to do this at all.


Just using the standard javax.* dependencies will cover most of the  
bases.


If you are using JBoss specific API's (such as JBoss Seam), then they  
are available in the JBoss repo as mentioned by an earlier poster. In  
fact the individual(s) involved deserve some kudos for writing some  
good poms for the artifacts that are there.


Steve C


On 06/07/2008, at 8:18 AM, buters wrote:



I was simply trying to avoid 30 dependencies in my pom.xml. I  
thought that I

can only have one reference to all libraries. Furthermore I don't know
versions of plugins, that jboss uses. Here jar-files stand without any
version, not as in the repository. But that is important, sometimes  
or?


regards, buters


Tim Kettler wrote:


What does accessing the jboss jars has to do with plugins?

Anyway, JBoss maintains an own maven repository [1] you can add to
settings.xml or pom. I don't know if the specific jars you need are
available from there, but it's worth a try.

-Tim

[1] http://repository.jboss.com/maven2/

buters schrieb:
This difficult way I want to avoid. This is difficult because I  
have to

do
with a number of plugins. It is me circumstantially for every  
plugin "mvn

install:install-file" to execute. I want to find a better way.


Wayne Fay wrote:
The proper way to do this is to refer to the JBoss dependencies  
just

like any other dep, with a  tag.

If you can't find the specific file/version of the jar you need
already deployed in Central, then you can use "mvn
install:install-file" to install it into your local repo cache
directly, then add the  tag to add it to your project.

Wayne

On 7/5/08, buters <[EMAIL PROTECTED]> wrote:

Hi,

how can I access e.g. to jboss jars? I know that $ 
{env.JBOSS_HOME} can

be
used. But how can I use this, that I don't know. What schould I  
insert

in
my
pom.xml?

Thanks beforehand,
best regards, buters
--
View this message in context:
http://www.nabble.com/Access-to-e.g.-jboss-lib-tp18290267p18290267.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]








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





--
View this message in context: 
http://www.nabble.com/Access-to-e.g.-jboss-lib-tp18290267p18296860.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]



Re: Two questions about native2ascii plugin

2008-07-05 Thread youhaodeyi

I use "$JAVA_HOME/bin/native2ascii -encoding UTF8" command to convert the
file. But maven native2ascii convert the file have the same result with the
command "$JAVA_HOME/bin/navite2ascii" without the encoding specification. So
the problem is that maven will ignore the encoding tag, won't it?

Dan Tran wrote:
> 
> how different?
> 
> On Sat, Jul 5, 2008 at 2:02 AM, youhaodeyi <[EMAIL PROTECTED]> wrote:
>>
>> I use native2ascii plugin to convert my resource files. This is my
>> configuration in pom file:
>>
>>org.codehaus.mojo
>>   
>> native2ascii-maven-plugin
>>
>>   
>> src/test/java/ui/demo/i18n
>>classes/ui/demo/i18n
>>
>>
>>
>>
>>   
>> native2ascii
>>
>>
>>
>>   
>> UTF8
>>
>>
>>
>>
>>
>> One problem is that when I use mvn native2ascii:native2ascii to do the
>> job,
>> the result file is different with when I use $JAVA_HOME/bin/native2ascii
>> command? why?
>>
>> The other issue is that how can I let this goat to replace the existed
>> file?
>> --
>> View this message in context:
>> http://www.nabble.com/Two-questions-about-native2ascii-plugin-tp18290230p18290230.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/Two-questions-about-native2ascii-plugin-tp18290230p18298111.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: Two questions about native2ascii plugin

2008-07-05 Thread youhaodeyi

For example, use $JAVA_HOME/bin/native2ascii will get this string:
"\u786e\u5b9a", but if use maven native2ascii to convert the same file, it
will get "\u00e7\u00a1\u00ae\u00e5\u00ae\u0161" which isn't correct.


Dan Tran wrote:
> 
> how different?
> 
> On Sat, Jul 5, 2008 at 2:02 AM, youhaodeyi <[EMAIL PROTECTED]> wrote:
>>
>> I use native2ascii plugin to convert my resource files. This is my
>> configuration in pom file:
>>
>>org.codehaus.mojo
>>   
>> native2ascii-maven-plugin
>>
>>   
>> src/test/java/ui/demo/i18n
>>classes/ui/demo/i18n
>>
>>
>>
>>
>>   
>> native2ascii
>>
>>
>>
>>   
>> UTF8
>>
>>
>>
>>
>>
>> One problem is that when I use mvn native2ascii:native2ascii to do the
>> job,
>> the result file is different with when I use $JAVA_HOME/bin/native2ascii
>> command? why?
>>
>> The other issue is that how can I let this goat to replace the existed
>> file?
>> --
>> View this message in context:
>> http://www.nabble.com/Two-questions-about-native2ascii-plugin-tp18290230p18290230.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/Two-questions-about-native2ascii-plugin-tp18290230p18297921.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: Two questions about native2ascii plugin

2008-07-05 Thread Martin Gainty

Tranwhat is the behaviour when inputfile and outputfile are the 
same?http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/native2ascii.htmlMartin
 __ 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: Sat, 5 Jul 2008 15:53:00 -0700> From: [EMAIL PROTECTED]> To: 
users@maven.apache.org> Subject: Re: Two questions about native2ascii plugin> > 
how different?> > On Sat, Jul 5, 2008 at 2:02 AM, youhaodeyi <[EMAIL 
PROTECTED]> wrote:> >> > I use native2ascii plugin to convert my resource 
files. This is my> > configuration in pom file:> > > > 
org.codehaus.mojo> > 
native2ascii-maven-plugin> > > > 
src/test/java/ui/demo/i18n> > classes/ui/demo/i18n> > 
> > > > > > > > 
native2ascii> > > > > > 
> > UTF8> > > > 
> > > >> > > > One problem is that when I use 
mvn native2ascii:native2ascii to do the job,> > the result file is different 
with when I use $JAVA_HOME/bin/native2ascii> > command? why?> >> > The other 
issue is that how can I let this goat to replace the existed file?> > --> > 
View this message in context: 
http://www.nabble.com/Two-questions-about-native2ascii-plugin-tp18290230p18290230.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]> 
_
The i’m Talkaton. Can 30-days of conversation change the world?
http://www.imtalkathon.com/?source=EML_WLH_Talkathon_ChangeWorld

Re: Two questions about native2ascii plugin

2008-07-05 Thread Dan Tran
how different?

On Sat, Jul 5, 2008 at 2:02 AM, youhaodeyi <[EMAIL PROTECTED]> wrote:
>
> I use native2ascii plugin to convert my resource files. This is my
> configuration in pom file:
>
>org.codehaus.mojo
>
> native2ascii-maven-plugin
>
>src/test/java/ui/demo/i18n
>classes/ui/demo/i18n
>
>
>
>
>
> native2ascii
>
>
>
>
> UTF8
>
>
>
>
>
> One problem is that when I use mvn native2ascii:native2ascii to do the job,
> the result file is different with when I use $JAVA_HOME/bin/native2ascii
> command? why?
>
> The other issue is that how can I let this goat to replace the existed file?
> --
> View this message in context: 
> http://www.nabble.com/Two-questions-about-native2ascii-plugin-tp18290230p18290230.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]



Re: Filtering of a SINGLE property

2008-07-05 Thread Michael McCallum
Well maybe,

Why do you want the version in the code itself? 

runtime resolution
-

Would it be sufficent (or perhaps better) to get it at runtime rather than 
having it compiled in?

The maven jar plugin writes a file called pom.properties in 
META-INF/maven/groupid/artifactid/pom.properties

this contains the version

I used to do all sorts of replacements in the far distant past when using ant. 
Since moving to maven I have not really found many scenarios where that was 
the best option.

other options
-
i can't see any being able to specify the tokens used for identifying 
variables to replace or being able to disable the standard filters seem like 
great ides... i would be pretty easy to patch the resources plugin for this.

On Sun, 06 Jul 2008 02:21:28 Peter Horlock wrote:
> Noone?
>
> Please, there must be someone able to answer this?!
>
>
> Thanks,
>
> Peter
>
> 2008/7/3 Peter Horlock <[EMAIL PROTECTED]>:
> > Hi,
> >
> > I want to let Maven / the Resource plugin (
> > http://maven.apache.org/plugins/maven-resources-plugin/examples/include-e
> >xclude.html )
> >
> > parse my source code to replace {project.version} with the current
> > version of the project as defined in the pom.
> > This works great, but - in JSTL, as well as in OpenLazlo, ${variableName}
> > is also a variable of the language itself -
> > therefore, this leads to collisions - for example, one of our developers
> > used a variable named ${parent} which then was filtered by Maven and
> > booom the code was broken. Yada yada YAda!
> >
> > => Is there a way of telling Maven to JUST filter certain properties? I
> > know I could tell it to just filter certain files,
> > but
> > a) a developer could then STILL use ${parent} as a variable in this very
> > file
> > b) whenever I wanted a new file to be filtered, I would have to add this
> > file to the filter section...
> >
> > Thanks a lot folks,
> >
> > Peter



-- 
Michael McCallum
Enterprise Engineer
mailto:[EMAIL PROTECTED]

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



Re: Access to e.g. jboss lib

2008-07-05 Thread buters

I was simply trying to avoid 30 dependencies in my pom.xml. I thought that I
can only have one reference to all libraries. Furthermore I don't know
versions of plugins, that jboss uses. Here jar-files stand without any
version, not as in the repository. But that is important, sometimes or?

regards, buters


Tim Kettler wrote:
> 
> What does accessing the jboss jars has to do with plugins?
> 
> Anyway, JBoss maintains an own maven repository [1] you can add to 
> settings.xml or pom. I don't know if the specific jars you need are 
> available from there, but it's worth a try.
> 
> -Tim
> 
> [1] http://repository.jboss.com/maven2/
> 
> buters schrieb:
>> This difficult way I want to avoid. This is difficult because I have to
>> do
>> with a number of plugins. It is me circumstantially for every plugin "mvn
>> install:install-file" to execute. I want to find a better way.
>> 
>> 
>> Wayne Fay wrote:
>>> The proper way to do this is to refer to the JBoss dependencies just
>>> like any other dep, with a  tag.
>>>
>>> If you can't find the specific file/version of the jar you need
>>> already deployed in Central, then you can use "mvn
>>> install:install-file" to install it into your local repo cache
>>> directly, then add the  tag to add it to your project.
>>>
>>> Wayne
>>>
>>> On 7/5/08, buters <[EMAIL PROTECTED]> wrote:
 Hi,

 how can I access e.g. to jboss jars? I know that ${env.JBOSS_HOME} can
 be
 used. But how can I use this, that I don't know. What schould I insert
 in
 my
 pom.xml?

 Thanks beforehand,
 best regards, buters
 --
 View this message in context:
 http://www.nabble.com/Access-to-e.g.-jboss-lib-tp18290267p18290267.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]
>>>
>>>
>>>
>> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Access-to-e.g.-jboss-lib-tp18290267p18296860.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]



Issue with maven-changes-plugin and JIRA 3.12.3

2008-07-05 Thread Sebastien ARBOGAST
I'm trying to configure my project in order to include a JIRA report in my
site but I've tried several configuration options and the JIRA report
remains desperately empty.

Here is my reporting plugin configuration


org.apache.maven.plugins
maven-changes-plugin



jira-report




Closed
Resolved, Closed
Bug, New Feature, Improvement, Wish



And my issueManagement configuration (pointing to a public JIRA instance)


JIRA

http://bugs.epseelon.org/jira/secure/BrowseProject.jspa?id=10001


Did I miss something?

-- 
Sébastien Arbogast

http://sebastien-arbogast.com


Re: Access to e.g. jboss lib

2008-07-05 Thread Tim Kettler

What does accessing the jboss jars has to do with plugins?

Anyway, JBoss maintains an own maven repository [1] you can add to 
settings.xml or pom. I don't know if the specific jars you need are 
available from there, but it's worth a try.


-Tim

[1] http://repository.jboss.com/maven2/

buters schrieb:

This difficult way I want to avoid. This is difficult because I have to do
with a number of plugins. It is me circumstantially for every plugin "mvn
install:install-file" to execute. I want to find a better way.


Wayne Fay wrote:

The proper way to do this is to refer to the JBoss dependencies just
like any other dep, with a  tag.

If you can't find the specific file/version of the jar you need
already deployed in Central, then you can use "mvn
install:install-file" to install it into your local repo cache
directly, then add the  tag to add it to your project.

Wayne

On 7/5/08, buters <[EMAIL PROTECTED]> wrote:

Hi,

how can I access e.g. to jboss jars? I know that ${env.JBOSS_HOME} can be
used. But how can I use this, that I don't know. What schould I insert in
my
pom.xml?

Thanks beforehand,
best regards, buters
--
View this message in context:
http://www.nabble.com/Access-to-e.g.-jboss-lib-tp18290267p18290267.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]








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



skin html files in site ??

2008-07-05 Thread Chris Berry

Greetings,
Is there a way to include straight HTML files into a site (using mvn  
site:site) and have them skinned along with all the other files??  
(e.g. index.apt, xdoc files, etc.)
I have many HTML files in site/resources/. And I want them to have the  
same, standard Maven header, side navigation bar, logos, etc.
It seems that this should be possible since the maven-site-plugin  
seems capable of doing it...

Thanks,
-- Chris

S'all good  ---   chriswberry at gmail dot com




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



Re: Access to e.g. jboss lib

2008-07-05 Thread buters

This difficult way I want to avoid. This is difficult because I have to do
with a number of plugins. It is me circumstantially for every plugin "mvn
install:install-file" to execute. I want to find a better way.


Wayne Fay wrote:
> 
> The proper way to do this is to refer to the JBoss dependencies just
> like any other dep, with a  tag.
> 
> If you can't find the specific file/version of the jar you need
> already deployed in Central, then you can use "mvn
> install:install-file" to install it into your local repo cache
> directly, then add the  tag to add it to your project.
> 
> Wayne
> 
> On 7/5/08, buters <[EMAIL PROTECTED]> wrote:
>>
>> Hi,
>>
>> how can I access e.g. to jboss jars? I know that ${env.JBOSS_HOME} can be
>> used. But how can I use this, that I don't know. What schould I insert in
>> my
>> pom.xml?
>>
>> Thanks beforehand,
>> best regards, buters
>> --
>> View this message in context:
>> http://www.nabble.com/Access-to-e.g.-jboss-lib-tp18290267p18290267.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/Access-to-e.g.-jboss-lib-tp18290267p18295989.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 with jboss:start

2008-07-05 Thread buters

Thank you Wayne.

best regards, buters


Wayne Fay wrote:
> 
> I don't have much experience with the JBoss plugin, but I know a lot
> of people are using Cargo with Maven very successfully (deploying to
> JBoss and other containers). I'd consider that approach instead.
> 
> Wayne
> 
> On 7/5/08, buters <[EMAIL PROTECTED]> wrote:
>>
>> Hi,
>>
>> my aim is a jar file to deploy to jboss and then jboss to launch. It only
>> works not quite.
>> I can deploy my file with "mvn package jboss:harddeploy".
>> After mvn jboss:start I get "BUILD SUCCESSFUL".
>> My problems:
>>
>> 1. Though "BUILD SUCCESSFUL" jboss server isn't launched. If I try
>> "http://localhost:8080/";, I get empty site.
>>
>> 2. How can I combine deployment with start. Or I schould really write
>> such
>> command "mvn package jboss:harddeploy jboss:start"?
>>
>> Thanks beforehand,
>> best regards, buters
>> --
>> View this message in context:
>> http://www.nabble.com/Problem-with-jboss%3Astart-tp18294140p18294140.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/Problem-with-jboss%3Astart-tp18294140p18295902.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]



get active profile in pom

2008-07-05 Thread Arash Bizhan zadeh
Hi all,
Is there any variable to return active profile in the maven 2; (something
like ${maven.profile})?

thanks
-- 
The dirtiest book of all is the expurgated book.

Walt Whitman


Re: Problem with jboss:start

2008-07-05 Thread Wayne Fay
I don't have much experience with the JBoss plugin, but I know a lot
of people are using Cargo with Maven very successfully (deploying to
JBoss and other containers). I'd consider that approach instead.

Wayne

On 7/5/08, buters <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> my aim is a jar file to deploy to jboss and then jboss to launch. It only
> works not quite.
> I can deploy my file with "mvn package jboss:harddeploy".
> After mvn jboss:start I get "BUILD SUCCESSFUL".
> My problems:
>
> 1. Though "BUILD SUCCESSFUL" jboss server isn't launched. If I try
> "http://localhost:8080/";, I get empty site.
>
> 2. How can I combine deployment with start. Or I schould really write such
> command "mvn package jboss:harddeploy jboss:start"?
>
> Thanks beforehand,
> best regards, buters
> --
> View this message in context: 
> http://www.nabble.com/Problem-with-jboss%3Astart-tp18294140p18294140.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]



Re: Access to e.g. jboss lib

2008-07-05 Thread Wayne Fay
The proper way to do this is to refer to the JBoss dependencies just
like any other dep, with a  tag.

If you can't find the specific file/version of the jar you need
already deployed in Central, then you can use "mvn
install:install-file" to install it into your local repo cache
directly, then add the  tag to add it to your project.

Wayne

On 7/5/08, buters <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> how can I access e.g. to jboss jars? I know that ${env.JBOSS_HOME} can be
> used. But how can I use this, that I don't know. What schould I insert in my
> pom.xml?
>
> Thanks beforehand,
> best regards, buters
> --
> View this message in context: 
> http://www.nabble.com/Access-to-e.g.-jboss-lib-tp18290267p18290267.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]



Problem with jboss:start

2008-07-05 Thread buters

Hi,

my aim is a jar file to deploy to jboss and then jboss to launch. It only
works not quite.
I can deploy my file with "mvn package jboss:harddeploy".
After mvn jboss:start I get "BUILD SUCCESSFUL".
My problems:

1. Though "BUILD SUCCESSFUL" jboss server isn't launched. If I try
"http://localhost:8080/";, I get empty site.

2. How can I combine deployment with start. Or I schould really write such
command "mvn package jboss:harddeploy jboss:start"?

Thanks beforehand,
best regards, buters
-- 
View this message in context: 
http://www.nabble.com/Problem-with-jboss%3Astart-tp18294140p18294140.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: m2 eclipse plug installation problem

2008-07-05 Thread Eugene Kuleshov


Kent Tong wrote:
> 
> It turns out that I have to install buckminster first, at least on
> Windows. It seems to work without it on Linux.
> 

  If you are talking about m2eclipse [1], then installation requirements are
documented on the wiki [2], but it never required Buckminster. Also see New
and Noteworthy [3].

  regards,
  Eugene

[1] http://m2eclipse.codehaus.org/
[2] http://docs.codehaus.org/display/M2ECLIPSE/Installation+Requirements
[3] http://docs.codehaus.org/display/M2ECLIPSE/New+and+Noteworthy

-- 
View this message in context: 
http://www.nabble.com/m2-eclipse-plug-installation-problem-tp18212155p18293155.html
Sent from the Maven - Users mailing list archive at Nabble.com.


RE: Filtering of a SINGLE property

2008-07-05 Thread Martin Gainty

you can use setup maven exec task on sedThis will globally replace all fu with 
bar in input.file and output result to output.filee.g.   
org.codehaus.mojo  
exec-maven-plugin  
1.1
  exec-one  
verify
sed  
  s/fu/bar/g 
 input.file 
 > output.file 

   exec 

HTHMartin Gainty __ 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: Sat, 5 Jul 2008 16:21:28 +0200> From: [EMAIL PROTECTED]> 
To: users@maven.apache.org> Subject: Re: Filtering of a SINGLE property> > 
Noone?> > Please, there must be someone able to answer this?!> > > Thanks,> > 
Peter> > 2008/7/3 Peter Horlock <[EMAIL PROTECTED]>:> > > Hi,> >> > I want to 
let Maven / the Resource plugin (> > 
http://maven.apache.org/plugins/maven-resources-plugin/examples/include-exclude.html>
 > )> >> > parse my source code to replace {project.version} with the current 
version> > of the project as defined in the pom.> > This works great, but - in 
JSTL, as well as in OpenLazlo, ${variableName}> > is also a variable of the 
language itself -> > therefore, this leads to collisions - for example, one of 
our developers> > used a variable named ${parent} which then was filtered by 
Maven and booom> > the code was broken. Yada yada YAda!> >> > => Is there a way 
of telling Maven to JUST filter certain properties? I> > know I could tell it 
to just filter certain files,> > but> > a) a developer could then STILL use 
${parent} as a variable in this very> > file> > b) whenever I wanted a new file 
to be filtered, I would have to add this> > file to the filter section...> >> > 
Thanks a lot folks,> >> > Peter> >
_
The i’m Talkaton. Can 30-days of conversation change the world?
http://www.imtalkathon.com/?source=EML_WLH_Talkathon_ChangeWorld

Re: Filtering of a SINGLE property

2008-07-05 Thread Olivier Dehon
One way of achieving this would be to put the properties files that need
to be filtered in a folder and the non-filtered ones in another folder.
These folders can then be configured for
true/false accordingly.

Something along the lines of:


  src/main/filtered
  true


  src/main/unfiltered
  false


-Olivier

On Sat, 2008-07-05 at 16:21 +0200, Peter Horlock wrote:
> Noone?
> 
> Please, there must be someone able to answer this?!
> 
> 
> Thanks,
> 
> Peter
> 
> 2008/7/3 Peter Horlock <[EMAIL PROTECTED]>:
> 
> > Hi,
> >
> > I want to let Maven / the Resource plugin (
> > http://maven.apache.org/plugins/maven-resources-plugin/examples/include-exclude.html
> > )
> >
> > parse my source code to replace {project.version} with the current version
> > of the project as defined in the pom.
> > This works great, but - in JSTL, as well as in OpenLazlo, ${variableName}
> > is also a variable of the language itself -
> > therefore, this leads to collisions - for example, one of our developers
> > used a variable named ${parent} which then was filtered by Maven and booom
> > the code was broken. Yada yada YAda!
> >
> > => Is there a way of telling Maven to JUST filter certain properties? I
> > know I could tell it to just filter certain files,
> > but
> > a) a developer could then STILL use ${parent} as a variable in this very
> > file
> > b) whenever I wanted a new file to be filtered, I would have to add this
> > file to the filter section...
> >
> > Thanks a lot folks,
> >
> > Peter
> >


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



Problem with deployment

2008-07-05 Thread buters

Hi,

I try to specify output folders for the .classpath file with


http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
...
   
  

  
org.apache.maven.plugins
maven-eclipse-plugin

  D:\xxx

  

  
   


but I get BUILD FAILED with error:

Maven encountered an error while configuring one of the mojos for your
build.

Mojo:
Group-Id: org.apache.maven.plugins
Artifact-Id: maven-deploy-plugin
Version: 2.3
Mojo: deploy
brought in via: packaging: jar

How can I solve it?

Thanks beforehand,
best regards, buters
-- 
View this message in context: 
http://www.nabble.com/Problem-with-deployment-tp18292824p18292824.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: Filtering of a SINGLE property

2008-07-05 Thread Peter Horlock
Noone?

Please, there must be someone able to answer this?!


Thanks,

Peter

2008/7/3 Peter Horlock <[EMAIL PROTECTED]>:

> Hi,
>
> I want to let Maven / the Resource plugin (
> http://maven.apache.org/plugins/maven-resources-plugin/examples/include-exclude.html
> )
>
> parse my source code to replace {project.version} with the current version
> of the project as defined in the pom.
> This works great, but - in JSTL, as well as in OpenLazlo, ${variableName}
> is also a variable of the language itself -
> therefore, this leads to collisions - for example, one of our developers
> used a variable named ${parent} which then was filtered by Maven and booom
> the code was broken. Yada yada YAda!
>
> => Is there a way of telling Maven to JUST filter certain properties? I
> know I could tell it to just filter certain files,
> but
> a) a developer could then STILL use ${parent} as a variable in this very
> file
> b) whenever I wanted a new file to be filtered, I would have to add this
> file to the filter section...
>
> Thanks a lot folks,
>
> Peter
>


Re: Proper Dependency Management - HowTo?

2008-07-05 Thread Michael McCallum
On Fri, 04 Jul 2008 18:37:14 [EMAIL PROTECTED] wrote:
> The only time (admitedely) I use this is for a multi module J2EE project,
> where each module (WAR, EAR, EJB, JAR etc) all have the multi module pom
> as their parent, and the multi module pom has the corporate one as it's
> parent.
>
> I was told to do this, and in fact, if you you use
> archetype:create-from-project (?) that is how it generates the pom
> structure of the generated archetype.
>
> So, I'm curious as to why you would say not to do this.
firstly there is this magic default relationship between a project and its 
parent esp if you put the parent in the parent directory... which means that 
end not having a consistent pom... it can inherit from the one on disk not 
the one specified... this might no longer be a problem but I had all sorts or 
problems and the user list it littered with them going back a long time

and it just smells bad... it seems like with people are doing all sorts of 
nasty things to make the two work together... property interpolation.. 
snapshots... 

and you really don't need it... we just use release dependencies os there is 
no need to release a bunch of things in one go... 

i do use modules to generate docs and continuous integration but they are 
isolated and only aggregate for that purpose... i might be tempted to release 
more that one thing at a time with an aggregation but it has too many 
shortcuts based ont he bad smell of inheritance + aggregation

gotta sleep more later

-- 
Michael McCallum
Enterprise Engineer
mailto:[EMAIL PROTECTED]

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



Re: Running MVN Plugin from POM.xml VS Command-Line

2008-07-05 Thread Dennis Lundberg

Wendy Smoak wrote:

On Fri, Jul 4, 2008 at 6:35 PM, Morgovsky, Alexander (US - Glen Mills)
<[EMAIL PROTECTED]> wrote:


However, when I bound this plugin to a phase in the pom.xml (e.g.
deploy) and ran the following:

mvn deploy

Then the plugin executed correctly.  Why doesnt the plugin work from the
command line when invoked directly but only works in the POM.xml when
bound to a phase?  Please let me know what Im doing wrong.  Thanks.


When you type 'mvn deploy' you are not invoking the deploy plugin,
you're telling Maven to go through the build lifecycle and execute all
the plugins bound to the various phases up to and including the deploy
phase.  The default executions will depend on the packaging for that
pom, and then whatever additional plugins you have configured will
also be executed.

My guess is that the plugin goal needs something from one of the
earlier phases, so executing it in isolation doesn't work.



If your plugin requires the results of another phase, you might want to 
add a @phase annotation [1] for it in the source code of the mojo.


[1] 
http://maven.apache.org/developers/mojo-api-specification.html#The_Descriptor_and_Annotations


--
Dennis Lundberg

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



Re: Proper Dependency Management - HowTo?

2008-07-05 Thread Michael McCallum
On Sat, 05 Jul 2008 08:21:49 Jörg Schaible wrote:
>
> How do you address this QA problem?
I cheat and use generated poms that write deps if i'm going to patch... 
or i make a new release with the latest and greatest...

in both cases I go though a review to ensure that only the change we want 
makes into into production... so really its a manuall qa process... i could 
automate with scripts or a plugin to compare release pom vs resolved tree 

we release often so don't normally have a problem with latest and greatest


-- 
Michael McCallum
Enterprise Engineer
mailto:[EMAIL PROTECTED]

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



Re: Proper Dependency Management - HowTo?

2008-07-05 Thread Michael McCallum
On Fri, 04 Jul 2008 18:11:39 Peter Horlock wrote:
> Okay,
>
> one last thing - this conversation has helped me a LOT already, but, to
> catch it all, I need some more:
>
> 1) You say your version ranges wouldn't break a build - but what about
...
> sometimes even in the most obscure and hidden places, hard to find - same
> thing could happen with new dependency versions, couldn't it? I am
> therefore not yet totally convinced of transitive dependencies - it hides
> things, and then when you don't expect it, it might fail in a productive
> environment, if a test didn't catch it before.
Nope you release the same artifact into dev, staging, and production... once 
you release  a war then its made ( i also use the generate release pom flag 
for the release plugin but only for war/ear/assembly projects

>
> 2) When you are talking about composition, I know finally understood you
> are talking about using poms as a container to combine dependencies. But
> how soon will you start making such a combine pom? If you got 2 similar
> jars? 10? 20? What's the best ratio from your expierence?
use standard refactoring techniques to evolve them... i tend to not  usea 
number like that but rather compose again by implementation e.g. web service, 
logging, xml, jaxb, axis

>
> 3) Will those "composition poms" not clutter your project structure even
> more?
...
> already grumping about having to maintain the parent pom AND their project
> pom - I mean it has all its nice vantages, but on the other hand, it
> increases the projects complexity, in some way, too, you have to admit,
> don't you?!
it does yes, but then mvn dependency:tree makes it all very clear...
my ratio is 1:10 at the moment composition to real artifacts
>
> 4) I don't yet completly get the vantage of having all those seperate jars
...
> Do you get my point? It's hard to explain, I hope you get my analogy. A
> colleague pointed this out to me, and I didn't know how to answer it - imho
> it is a valid argument, isn't it???
this in an integration problem that always has to be addressed and it is 
solved by
1 communicaiton
2 process
3 continuous integration

The ultimate goal it to manage the deliverable and write code. So if it did 
happen to break you can filter at an appropriate level of the resolution tree 
by either making a stricter range e.g. [1,2-!) to [1.5,1.19-!)

So the point is things break, deal with it... don't make process so hard that 
you stiffle your ability to work. 
>
> Last but not least - we have about 10 sub projects, but in one of those sub
> projects, there are between 1-4 people working. So you still got the
> problem if you break something in a sub project, you will influence up to 3
> other developers
I reckon your projects are too big... make them smaller. It means your units 
tests get more specific and its way easier to refactor adjust and often 
avoids the need to branch and merge.

>
> Please, bring some light in my confusion! :-)
i think there is very little left now,  I am quite delighted

-- 
Michael McCallum
Enterprise Engineer
mailto:[EMAIL PROTECTED]

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



Re: Mixed version of assembly plugin causing errors in multi-module build

2008-07-05 Thread Jörg Schaible
Hi Jamie,

Jamie Whitehouse wrote:

> I'm hoping someone can explain some odd behavior I'm seeing and suggest
> a solution.
> 
> I have a multi-module project that makes use of two different versions
> of the assembly plugin on purpose.  There's functionality that is only
> available in the 2.2-beta-2 version that is required for one particular
> module.  I also need to use the 2.1 version to produce a 'distribution'
> assembly due to MASSEMBLY-328 affecting 2.2-beta.
> 
> Here's the project layout:
> root/parent pom has a pluginManagement fixing the assembly plugin to
> version 2.1
> A - creates a jar
> B - creates a war and a zip by using assembly 2.2-beta-2 (declared as
> the plugin version in it's pom)
> C - a pom project that ?combines A artifact and B artifact and assembly
> artifact into a new distribution assembly using assembly 2.1 (declared
> as the plugin version in it's pom)
> 
> ?What I found was that when running an reactor build B would use the
> correct 2.2 version, but C winds up using 2.2 instead of 2.1 and I
> encounter the issue described in MASSEMBLY-328 which prevents me from
> deploying the distribution artifact.
> 
> After the above build I can run the build within C and it uses the
> correct 2.1 version and properly deploys the distribution artifact.
> 
>>From this it seems like the assembly plugin version that's declared in
> the first run module is used for all subsequent modules, despite being
> very explicit about the version desired.
> 
> Has anyone else encountered this problem (I seem to remember having
> similar issues with the antrun plugin)?  Any way this can be fixed in
> pom's or is this a bug that requires a plugin change?

Maven will load a plugin only once for each reactor build. It simply depends
on which version is used first.

- Jörg


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



Mixed version of assembly plugin causing errors in multi-module build

2008-07-05 Thread Jamie Whitehouse
I'm hoping someone can explain some odd behavior I'm seeing and suggest
a solution.

I have a multi-module project that makes use of two different versions
of the assembly plugin on purpose.  There's functionality that is only
available in the 2.2-beta-2 version that is required for one particular
module.  I also need to use the 2.1 version to produce a 'distribution'
assembly due to MASSEMBLY-328 affecting 2.2-beta.

Here's the project layout:
root/parent pom has a pluginManagement fixing the assembly plugin to
version 2.1
A - creates a jar
B - creates a war and a zip by using assembly 2.2-beta-2 (declared as
the plugin version in it's pom)
C - a pom project that combines A artifact and B artifact and assembly
artifact into a new distribution assembly using assembly 2.1 (declared
as the plugin version in it's pom)

What I found was that when running an reactor build B would use the
correct 2.2 version, but C winds up using 2.2 instead of 2.1 and I
encounter the issue described in MASSEMBLY-328 which prevents me from
deploying the distribution artifact.

After the above build I can run the build within C and it uses the
correct 2.1 version and properly deploys the distribution artifact.

>From this it seems like the assembly plugin version that's declared in
the first run module is used for all subsequent modules, despite being
very explicit about the version desired.

Has anyone else encountered this problem (I seem to remember having
similar issues with the antrun plugin)?  Any way this can be fixed in
pom's or is this a bug that requires a plugin change?

Thanks in advance for any help,
Jamie.


---
CONFIDENTIALITY NOTICE: This e-mail and any files attached may contain 
confidential and proprietary information of Alcatel-Lucent and/or its 
affiliated entities. Access by the intended recipient only is authorized. Any 
liability arising from any party acting, or refraining from acting, on any 
information contained in this e-mail is hereby excluded. If you are not the 
intended recipient, please notify the sender immediately, destroy the original 
transmission and its attachments and do not disclose the contents to any other 
person, use it for any purpose, or store or copy the information in any medium. 
Copyright in this e-mail and any attachments belongs to Alcatel-Lucent and/or 
its affiliated entities.



Access to e.g. jboss lib

2008-07-05 Thread buters

Hi,

how can I access e.g. to jboss jars? I know that ${env.JBOSS_HOME} can be
used. But how can I use this, that I don't know. What schould I insert in my
pom.xml?

Thanks beforehand,
best regards, buters
-- 
View this message in context: 
http://www.nabble.com/Access-to-e.g.-jboss-lib-tp18290267p18290267.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]



Two questions about native2ascii plugin

2008-07-05 Thread youhaodeyi

I use native2ascii plugin to convert my resource files. This is my
configuration in pom file:

org.codehaus.mojo

native2ascii-maven-plugin

src/test/java/ui/demo/i18n
classes/ui/demo/i18n





native2ascii




UTF8





One problem is that when I use mvn native2ascii:native2ascii to do the job,
the result file is different with when I use $JAVA_HOME/bin/native2ascii
command? why?

The other issue is that how can I let this goat to replace the existed file?
-- 
View this message in context: 
http://www.nabble.com/Two-questions-about-native2ascii-plugin-tp18290230p18290230.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]