Re: 405 Method not allowed

2007-11-29 Thread Kristof Jozsa
Hi,

have you set up either username/password on the maven side or anonymous access
in Archiva?

Kristof

javijava wrote:
 Hi to all!   .I'm not sure where can i post my question:
 
 I have a Maven local repo managed by Apache archiva.Well now, i'm trying to
 do a mvn release,and after 
 modify the local pom of the project i have a build error:
   svn: Commitfailed (details follow)
   svn: PROPFIND request failed on '/(project)'
   svn: PROPFIND of  '/(project)' : 405 Method not allowed.
 
 
 In server we have: .a SVN repo with the user configured in passwd file.
.Access http via Apache2  (here i don't demand
 users, just put de  path of repo)
.Apache Archiva
 
 Someone knows where must be  the problem? thanks a lot!
 
 



Re: Repository scanning problem in 1.0?

2007-11-29 Thread ArneD

I don't know if this is related, but now I see a NPE in the logs when using
Update Database Now:

jvm 1| 2007-11-29 14:16:03,340 [Thread-6] ERROR
org.codehaus.plexus.taskqueue.execution.TaskQueueExecutor:database-u
pdate  - Error executing task
jvm 1|
edu.emory.mathcs.backport.java.util.concurrent.ExecutionException:
java.lang.NullPointerException
jvm 1|  at
edu.emory.mathcs.backport.java.util.concurrent.FutureTask.getResult(FutureTask.java:299)
jvm 1|  at
edu.emory.mathcs.backport.java.util.concurrent.FutureTask.get(FutureTask.java:118)
jvm 1|  at
org.codehaus.plexus.taskqueue.execution.ThreadedTaskQueueExecutor$ExecutorRunnable.waitForTask(Thread
edTaskQueueExecutor.java:159)
jvm 1|  at
org.codehaus.plexus.taskqueue.execution.ThreadedTaskQueueExecutor$ExecutorRunnable.run(ThreadedTaskQu
eueExecutor.java:127)
jvm 1| Caused by:
jvm 1| java.lang.NullPointerException
jvm 1|  at
org.apache.maven.archiva.database.updater.ProcessArchivaArtifactClosure.execute(ProcessArchivaArtifac
tClosure.java:56)
jvm 1|  at
org.apache.commons.collections.CollectionUtils.forAllDo(CollectionUtils.java:388)
jvm 1|  at
org.apache.maven.archiva.database.updater.JdoDatabaseUpdater.updateProcessed(JdoDatabaseUpdater.java:
170)
jvm 1|  at
org.apache.maven.archiva.database.updater.JdoDatabaseUpdater.updateAllProcessed(JdoDatabaseUpdater.ja
va:111)
jvm 1|  at
org.apache.maven.archiva.scheduled.executors.ArchivaDatabaseUpdateTaskExecutor.executeTask(ArchivaDat
abaseUpdateTaskExecutor.java:78)
jvm 1|  at
org.codehaus.plexus.taskqueue.execution.ThreadedTaskQueueExecutor$ExecutorRunnable$1.run(ThreadedTask
QueueExecutor.java:116)
jvm 1|  at
edu.emory.mathcs.backport.java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:442)
jvm 1|  at
edu.emory.mathcs.backport.java.util.concurrent.FutureTask.run(FutureTask.java:176)
jvm 1|  at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.j
ava:665)
jvm 1|  at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:
690)
jvm 1|  at java.lang.Thread.run(Thread.java:801)





ArneD wrote:
 
 Hi all,
 
 first of all, congratulations to all Archiva developers for releasing the
 1.0 version!
 
 I started playing around with it a little bit, and ran into the following
 problem:
 
 After starting up a fresh instance with default configuration, I copied
 parts of my existing repository to Archiva's default internal repository.
 Then I used the Scan Repository Now button on the repository
 administration page. Afterwards, all artifacts were visible on the
 Browse page. So far so good.
 
 I then copied some more groups of my existing repo to Archiva's default
 internal repository, and used Scan Repository Now once again. But this
 time, the Browse page did not show the newly added groups. This was
 quite surprising, as the log output of RepositoryScanner clearly showed
 that Archiva DID walk over these new artifacts, without errors or
 warnings. I tried to use the Update Database Now button, but still no
 effect. 
 
 I finally touched one of the POM files in the missing groups, i.e. I gave
 the POM file a new timestamp. After doing Scan Repository Now again, the
 artifact appeared on the Browse page. When browsing into the artifact,
 however, I get the error message Unable to find project model for [...].
 
 Seems like a bug to me? I know that my playground scenario may be a little
 bit unusual, but I would expect that Archiva should always be able to
 synchronize itself to the file system contents, regardless of the files'
 timestamps.
 
 Thanks
 - Arne
 
 

-- 
View this message in context: 
http://www.nabble.com/Repository-scanning-problem-in-1.0--tf4897121.html#a14025508
Sent from the archiva-users mailing list archive at Nabble.com.



Re: Repository scanning problem in 1.0?

2007-11-29 Thread ArneD


Wendy Smoak-3 wrote:
 
 On Nov 29, 2007 6:07 AM, ArneD [EMAIL PROTECTED] wrote:
 
 After starting up a fresh instance with default configuration, I copied
 parts of my existing repository to Archiva's default internal repository.
 Then I used the Scan Repository Now button on the repository
 administration page. Afterwards, all artifacts were visible on the
 Browse
 page. So far so good.

 I then copied some more groups of my existing repo to Archiva's default
 internal repository, and used Scan Repository Now once again. But this
 time, the Browse page did not show the newly added groups. This was
 quite
 surprising, as the log output of RepositoryScanner clearly showed that
 Archiva DID walk over these new artifacts, without errors or warnings. I
 tried to use the Update Database Now button, but still no effect.

 I finally touched one of the POM files in the missing groups, i.e. I gave
 the POM file a new timestamp. After doing Scan Repository Now again,
 the
 artifact appeared on the Browse page. When browsing into the artifact,
 however, I get the error message Unable to find project model for
 [...].
 
 I've seen Unable to find project model for [...] in recent versions
 of Archiva, also using with existing repository contents, but have not
 been able to isolate it with publicly available repo data.
 
 Can you come up with steps to reproduce this, and attach zipped
 repository contents to a JIRA issue?  It shouldn't take more than a
 few artifacts to provoke the problem, once you know the cause.
 http://jira.codehaus.org/browse/MRM
 
 Thanks,
 -- 
 Wendy
 
 


I filed http://jira.codehaus.org/browse/MRM-608 for the unable to find
project model problem.

Do you think the repository scanning problem as such, as described in my
original mail, should be filed as a second issue?

Thanks
- Arne

-- 
View this message in context: 
http://www.nabble.com/Repository-scanning-problem-in-1.0--tf4897121.html#a14026445
Sent from the archiva-users mailing list archive at Nabble.com.



Re: checkstyle report

2007-11-29 Thread Emmanuel Venisse

not yet without to look in the [working copy]/.../target/...

In 1.2, we'll try to add a plugins feature to add some reports.

Emmanuel

mffortin a écrit :

Is there a way to have a checkstyle report accessible from the build results
page without generating the site?


Re: email changes

2007-11-29 Thread Emmanuel Venisse

In 1.1?

Emmanuel

I am Who i am a écrit :

Hi All

Is there a way to change the email subjects and from Name of email being
sent from continuum

1. Right now its shows [EMAIL PROTECTED] email-address of Admin is there
way to change it to some name like  Build Result
2. Way to configure subject message?
3.  How to configure body of message ?

Please let me know is this possible?



Re: Maven build error not detected

2007-11-29 Thread Martin Höller
Am Donnerstag, 29. November 2007 schrieb Olivier ETIENNE:
 Hi,

 When I build my maven 2 project, the build fails but the status of the
 project is success !

Read the FAQ [1] or search the archive.

hth,
- martin

[1] http://maven.apache.org/continuum/faqs.html
-- 
Martin Höller   | [EMAIL PROTECTED]
*x Software + Systeme   | http://www.xss.co.at/
Karmarschgasse 51/2/20  | Tel: +43-1-6060114-30
A-1100 Vienna, Austria  | Fax: +43-1-6060114-71


signature.asc
Description: This is a digitally signed message part.


Re: Maven build error not detected

2007-11-29 Thread Olivier ETIENNE

Oups,

I forgot the RTFM rule :)

Thx


Martin Höller a écrit :

Am Donnerstag, 29. November 2007 schrieb Olivier ETIENNE:
  

Hi,

When I build my maven 2 project, the build fails but the status of the
project is success !



Read the FAQ [1] or search the archive.

hth,
- martin

[1] http://maven.apache.org/continuum/faqs.html
  




How to parameter mail Notification.

2007-11-29 Thread Eric LECOCQ

Hi,
I have a mail notification and it works fines when the build state change.

I'd like to be notify when my project has scm or dependencies changes, even if 
the current and last  build state are Success.

Can i do this ?

Thanks.
Eric


***
Ce message et toutes les pieces jointes sont confidentiels.

Toute utilisation ou diffusion non autorisee est interdite.

Sanef decline toute responsabilite si ce message est altere, deforme ou 
falsifie.
***-***



Re: Upgrade from 1.1-beta-3 to 1.1 failed

2007-11-29 Thread Emmanuel Venisse

Are you on windows?

Emmanuel

Julien Stern a écrit :

On Thu, Nov 29, 2007 at 09:41:14AM +0100, Emmanuel Venisse wrote:

Restart Continuum to see if this exception always appear.


Intriguing... It failed the first, second, third and fourth time, and
then eventually worked... Seems fixed now (I tried 3 times). The loading
phase has automagic healing capabilities apparently :)

Thanks.

--
Julien


Emmanuel

Julien Stern a écrit :

Hi list,

I had a bit of time so I tried to upgrade from beta3 to 1.1.
I followed the instructions on the upgrade page in order to
restore the databases.

When I start the new version (1.1) after the database import,
it fails with a NullPointerException.

The relevant part of the stack trace is attached.

Could it be that my original database was somehow corrupted?
Or is there any specific steps (other than those indicated
on the upgrade page) to follow?

Note that the Plexus listener IS configured in web.xml (in did not
change web.xml anyway).

Regards,

--
Julien






JVM Appears to be hung

2007-11-29 Thread Hemant Malik
Hi,
We are in the phase of adapting to the Continuum as CI tool here at our
organization.We are using the latest version available on Continuum Home.
For the testing purposes the Continuum worked beautifully but with actual
project from CVS, its taking quite a bit of time, after the checkout when I
give the build command, after waiting for certain time JVM appears to be
hung error comes and the JVM gets restarted, hence I loose the earlier
progress in the build.

Could please someone help out as if it is a configuration problem somewhere
or anything more serious?
The exact error is :
*
ERROR  | wrapper  | 2007/11/29 19:17:18 | JVM appears hung: Timed out
waiting for signal from JVM.
ERROR  | wrapper  | 2007/11/29 19:17:18 | JVM did not exit on request,
terminated
STATUS | wrapper  | 2007/11/29 19:17:24 | Launching a JVM...*


Regards,
Hemant Malik

We are working with :
1) Maven 2.0.7
2) CVS
3) Continuum 1.1


Upgrade from Continuum 1.0.3 to 1.1

2007-11-29 Thread Ken Turner

I've tried following the instructions given 
http://maven.apache.org/continuum/documentation/1_1/installation/upgrade.html
here  to convert my 1.0.3 database to 1.1, but none of it makes very much
sense in the context of my existing 1.0.3 directory structure:

1. There aren't two databases, only one.
2. The jdbc:derby:${old.continuum.home}/data/continuum/database and
jdbc:derby:${old.continuum.home}/data/users/database parameters provided
don't match my structure.
3. The section entitled Specific steps to do before to import also make no
sense: I cannot trace the builds.xml file under backup directory in my
structure.

Am I missing something here?



-- 
View this message in context: 
http://www.nabble.com/Upgrade-from-Continuum-1.0.3-to-1.1-tf4897583.html#a14026930
Sent from the Continuum - Users mailing list archive at Nabble.com.



Continuum 1.1: Release feature

2007-11-29 Thread Ken Turner

Does anybody know what the Release feature does?  I can find nothing in the
help pages, and when I tried pushing the Release button on a project that I
had successfully built, I got an error java.lang.NullPointerException:
groupId was null
-- 
View this message in context: 
http://www.nabble.com/Continuum-1.1%3A-Release-feature-tf4897585.html#a14026933
Sent from the Continuum - Users mailing list archive at Nabble.com.



Re: Continuum 1.1: Release feature

2007-11-29 Thread Graham Leggett
On Thu, November 29, 2007 4:38 pm, Ken Turner wrote:

 Does anybody know what the Release feature does?  I can find nothing in
 the
 help pages, and when I tried pushing the Release button on a project that
 I
 had successfully built, I got an error java.lang.NullPointerException:
 groupId was null

I am assuming the release feature uses the features in the release plugin,
but what isn't clear is whether clicking release triggers
release:prepare, release:perform, or both.

Regards,
Graham
--




Re: Continuum 1.1: Appearance feature

2007-11-29 Thread olivier lamy
Maybe the last solution :-)
Looks weird because it works for me.
Can you attach your company pom to a jira issue ?
Thanks,
--
Olivier

2007/11/29, Ken Turner [EMAIL PROTECTED]:


 Well, I upgraded to Firefox 2.0.0.10 as you suggested, and even shut
 down/restarted the Continuum app, but no joy :-(.  Only thing I haven't
 done
 is reboot the PC.
 --
 View this message in context:
 http://www.nabble.com/Continuum-1.1%3A-Appearance-feature-tf4897268.html#a14026452
 Sent from the Continuum - Users mailing list archive at Nabble.com.




Re: Continuum 1.1: Release feature

2007-11-29 Thread Ken Turner

I confess to never having looked at Maven's Release feature.  I will do so
now.  Thanks for your help.
-- 
View this message in context: 
http://www.nabble.com/Continuum-1.1%3A-Release-feature-tf4897585.html#a14027439
Sent from the Continuum - Users mailing list archive at Nabble.com.



Re: Continuum 1.1: Appearance feature

2007-11-29 Thread Ken Turner

OK have done. It's JIRA CONTINUUM-1584.

-- 
View this message in context: 
http://www.nabble.com/Continuum-1.1%3A-Appearance-feature-tf4897268.html#a14027958
Sent from the Continuum - Users mailing list archive at Nabble.com.



Stack Overflow in Continuum XMLRPC server

2007-11-29 Thread olivier . lambert
Hi,

I receive a StackOverflowError when using XMLRPC with Continuum.
It happens at line 224  231 of ContinuumServiceImpl :

protected String getProjectGroupName( int projectGroupId )
throws ContinuumException
{
ProjectGroupSummary pgs = getPGSummary( projectGroupId );
return pgs.getName();
}

private ProjectGroupSummary getPGSummary( int projectGroupId )
throws ContinuumException
{
checkViewProjectGroupAuthorization( getProjectGroupName( 
projectGroupId ) );

org.apache.maven.continuum.model.project.ProjectGroup projectGroup 
=
continuum.getProjectGroup( projectGroupId );
return populateProjectGroupSummary( projectGroup );
}

It happens when I execute updateBuildDefinitionOnProjectGroup.

Do you think it's normal ?
Do you have some clues ?
What can I do to correct the problem ?

Thanks for your response.
__
Smals sluit elke aansprakelijkheid uit in verband met de juistheid, de 
volledigheid of het tijdig toekomen van de informatie in deze e-mail. Aan 
deze e-mail kunnen geen rechten worden ontleend en deze e-mail houdt in 
geen geval een erkenning van welkdanige aansprakelijkheid in.
Dit bericht is alleen bestemd voor de geadresseerde. Indien dit bericht 
niet voor u bestemd is, verzoeken wij u dit onmiddellijk aan ons te melden 
en het bericht te vernietigen.

Smals décline toute responsabilité quant à l'exactitude, à l'exhaustivité 
et au délai de transmission des informations contenues dans cet e-mail. 
Aucun droit ne peut être revendiqué sur cet e-mail et cet e-mail 
n'implique en aucun cas une reconnaissance de responsabilité, quelle 
qu'elle soit.
Ce message s'adresse uniquement au destinataire. Si ce message ne vous est 
pas destiné, nous vous prions de nous le signaler immédiatement et de 
détruire le message. 

Re: email changes

2007-11-29 Thread I am Who i am
Yes

On Nov 29, 2007 2:39 AM, Emmanuel Venisse [EMAIL PROTECTED] wrote:

 In 1.1?

 Emmanuel

 I am Who i am a écrit :
   Hi All
 
  Is there a way to change the email subjects and from Name of email being
  sent from continuum
 
  1. Right now its shows [EMAIL PROTECTED] email-address of Admin is
 there
  way to change it to some name like  Build Result
  2. Way to configure subject message?
  3.  How to configure body of message ?
 
  Please let me know is this possible?
 



Re: clearcase update doesn't show autor,date,comment

2007-11-29 Thread I am Who i am
Yes it is english, and they both have exactly same time

On Nov 29, 2007 2:38 AM, Emmanuel Venisse [EMAIL PROTECTED] wrote:

 what is the language used for the cleartool output? english?

 Do you have the same date on the continuum machine and your clearcase
 server?

 Emmanuel

 I am Who i am a écrit :
   Hi All
 
  I'm using continuum with clearcase, update and builds are happening
 fine,
 
  but when i see the build page of project, its just show what files are
  updated not any information on autor,date,comment
 
  is there a way to get it?
 



Re: JVM Appears to be hung

2007-11-29 Thread Emmanuel Venisse

What is your OS?

Emmanuel

Hemant Malik a écrit :

Hi,
We are in the phase of adapting to the Continuum as CI tool here at our
organization.We are using the latest version available on Continuum Home.
For the testing purposes the Continuum worked beautifully but with actual
project from CVS, its taking quite a bit of time, after the checkout when I
give the build command, after waiting for certain time JVM appears to be
hung error comes and the JVM gets restarted, hence I loose the earlier
progress in the build.

Could please someone help out as if it is a configuration problem somewhere
or anything more serious?
The exact error is :
*
ERROR  | wrapper  | 2007/11/29 19:17:18 | JVM appears hung: Timed out
waiting for signal from JVM.
ERROR  | wrapper  | 2007/11/29 19:17:18 | JVM did not exit on request,
terminated
STATUS | wrapper  | 2007/11/29 19:17:24 | Launching a JVM...*


Regards,
Hemant Malik

We are working with :
1) Maven 2.0.7
2) CVS
3) Continuum 1.1



Re: email changes

2007-11-29 Thread Emmanuel Venisse

look at WEB-INF/classes/META-INF/plexus/application.xml in the mail notifier 
component conf.
You can configure the subject and some part of the body.

Emmanuel

I am Who i am a écrit :

Yes

On Nov 29, 2007 2:39 AM, Emmanuel Venisse [EMAIL PROTECTED] wrote:


In 1.1?

Emmanuel

I am Who i am a écrit :
  Hi All

Is there a way to change the email subjects and from Name of email being
sent from continuum

1. Right now its shows [EMAIL PROTECTED] email-address of Admin is

there

way to change it to some name like  Build Result
2. Way to configure subject message?
3.  How to configure body of message ?

Please let me know is this possible?





Re: JVM Appears to be hung

2007-11-29 Thread Hemant Malik
My OS is Windows XP with SP2.

Regards,
Hemant Malik

On Nov 29, 2007 8:58 PM, Emmanuel Venisse [EMAIL PROTECTED] wrote:

 What is your OS?

 Emmanuel

 Hemant Malik a écrit :
  Hi,
  We are in the phase of adapting to the Continuum as CI tool here at our
  organization.We are using the latest version available on Continuum
 Home.
  For the testing purposes the Continuum worked beautifully but with
 actual
  project from CVS, its taking quite a bit of time, after the checkout
 when I
  give the build command, after waiting for certain time JVM appears to
 be
  hung error comes and the JVM gets restarted, hence I loose the earlier
  progress in the build.
 
  Could please someone help out as if it is a configuration problem
 somewhere
  or anything more serious?
  The exact error is :
  *
  ERROR  | wrapper  | 2007/11/29 19:17:18 | JVM appears hung: Timed out
  waiting for signal from JVM.
  ERROR  | wrapper  | 2007/11/29 19:17:18 | JVM did not exit on request,
  terminated
  STATUS | wrapper  | 2007/11/29 19:17:24 | Launching a JVM...*
  
 
  Regards,
  Hemant Malik
 
  We are working with :
  1) Maven 2.0.7
  2) CVS
  3) Continuum 1.1
 



Re: clearcase update doesn't show autor,date,comment

2007-11-29 Thread Emmanuel Venisse

ok, so I don't know. Maybe it is a problem in the cleartool output parser but 
without clearcase, I can't look at it and fix it.

Emmanuel

I am Who i am a écrit :

Yes it is english, and they both have exactly same time

On Nov 29, 2007 2:38 AM, Emmanuel Venisse [EMAIL PROTECTED] wrote:


what is the language used for the cleartool output? english?

Do you have the same date on the continuum machine and your clearcase
server?

Emmanuel

I am Who i am a écrit :
  Hi All

I'm using continuum with clearcase, update and builds are happening

fine,

but when i see the build page of project, its just show what files are
updated not any information on autor,date,comment

is there a way to get it?





Re: JVM Appears to be hung

2007-11-29 Thread Hemant Malik
I tried increasing the PermSize and Heap Size, but no effect.

Hemant

On Nov 29, 2007 9:19 PM, Hemant Malik [EMAIL PROTECTED] wrote:

 My OS is Windows XP with SP2.

 Regards,
 Hemant Malik


 On Nov 29, 2007 8:58 PM, Emmanuel Venisse [EMAIL PROTECTED] wrote:

  What is your OS?
 
  Emmanuel
 
  Hemant Malik a écrit :
   Hi,
   We are in the phase of adapting to the Continuum as CI tool here at
  our
   organization.We are using the latest version available on Continuum
  Home.
   For the testing purposes the Continuum worked beautifully but with
  actual
   project from CVS, its taking quite a bit of time, after the checkout
  when I
   give the build command, after waiting for certain time JVM appears to
  be
   hung error comes and the JVM gets restarted, hence I loose the
  earlier
   progress in the build.
  
   Could please someone help out as if it is a configuration problem
  somewhere
   or anything more serious?
   The exact error is :
   *
   ERROR  | wrapper  | 2007/11/29 19:17:18 | JVM appears hung: Timed out
   waiting for signal from JVM.
   ERROR  | wrapper  | 2007/11/29 19:17:18 | JVM did not exit on request,
 
   terminated
   STATUS | wrapper  | 2007/11/29 19:17:24 | Launching a JVM...*
   
  
   Regards,
   Hemant Malik
  
   We are working with :
   1) Maven 2.0.7
   2) CVS
   3) Continuum 1.1
  
 




Re: Continuum 1.1: Appearance feature

2007-11-29 Thread olivier lamy
Thanks for your time to load an issue.
Have a look at the comment I have added.

HTH,
--
Olivier

2007/11/29, Ken Turner [EMAIL PROTECTED]:


 OK have done. It's JIRA CONTINUUM-1584.

 --
 View this message in context:
 http://www.nabble.com/Continuum-1.1%3A-Appearance-feature-tf4897268.html#a14027958
 Sent from the Continuum - Users mailing list archive at Nabble.com.




How to include logo

2007-11-29 Thread I am Who i am
Hi All

How do i include my company logo into continuum page?

I saw i need to include Company POM what is it? not that much clear, is
there any step by step instruction kinda of things to look into?

Thanks in advance for help


maven-webstart-plugin status?

2007-11-29 Thread Adrian Robert
Hi,

I read about the maven-webstart-plugin and am interested in trying it
out.  However an attempt to do 'mvn webstart:jnlp' resulted in the
prefix being looked up correctly and mapped to
org.apache.maven.plugins:maven-webstart-plugin, but then this fails
to find anything at central with does not exist or no valid version
could be found.

I read at this page: http://docs.codehaus.org/display/MOJO/Webstart+Plugin

about checking out from subversion, but, though I might be willing to
hack on this to get it working for our project, would really rather
try it out first without going to this length.  Is this possible, or
no?  Is the plugin still alive?  I'm not that experienced with maven
so I don't know if I need to be adding some additional repository
configs to pick it up (didn't see anything on the web pages at
http://mojo.codehaus.org/webstart-maven-plugin-parent/webstart-maven-plugin/index.html).

thanks,
Adrian

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



FW: [ANNOUNCE] VelocityTools 1.4

2007-11-29 Thread Misura, Gabriel
I get the impression this release broke the maven examples.


mvn archetype:create -DarchetypeGroupId=org.apache.maven.archetypes
-DarchetypeArtifactID=maven-archetype-webapp -DgroupId=com.mycompany.app
-DartifactID=my-webapp

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


[INFO] Building Maven Default Project
[INFO]task-segment: [archetype:create] (aggregator-style)
[INFO]


[INFO] Setting property: classpath.resource.loader.class =
'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'.
[INFO] Setting property: velocimacro.messages.on = 'false'.
[INFO] Setting property: resource.loader = 'classpath'.
[INFO] Setting property: resource.manager.logwhenfound = 'false'.
[INFO] **
[INFO] Starting Jakarta Velocity v1.4
[INFO] RuntimeInstance initializing.
[INFO] Default Properties File:
org/apache/velocity/runtime/defaults/velocity.properties
[INFO] Default ResourceManager initializing. (class
org.apache.velocity.runtime.resource.ResourceManagerImpl)
[INFO] Resource Loader Instantiated:
org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader
[INFO] ClasspathResourceLoader : initialization starting.
[INFO] ClasspathResourceLoader : initialization complete.
[INFO] ResourceCache : initialized. (class
org.apache.velocity.runtime.resource.ResourceCacheImpl)
[INFO] Default ResourceManager initialization complete.
[INFO] Loaded System Directive:
org.apache.velocity.runtime.directive.Literal
[INFO] Loaded System Directive:
org.apache.velocity.runtime.directive.Macro
[INFO] Loaded System Directive:
org.apache.velocity.runtime.directive.Parse
[INFO] Loaded System Directive:
org.apache.velocity.runtime.directive.Include
[INFO] Loaded System Directive:
org.apache.velocity.runtime.directive.Foreach
[INFO] Created: 20 parsers.
[INFO] Velocimacro : initialization starting.
[INFO] Velocimacro : adding VMs from VM library template :
VM_global_library.vm
[ERROR] ResourceManager : unable to find resource 'VM_global_library.vm'
in any resource loader.
[INFO] Velocimacro : error using  VM library template
VM_global_library.vm :
org.apache.velocity.exception.ResourceNotFoundException: Unable to find
resource 'VM_global_library.vm'
[INFO] Velocimacro :  VM library template macro registration complete.
[INFO] Velocimacro : allowInline = true : VMs can be defined inline in
templates
[INFO] Velocimacro : allowInlineToOverride = false : VMs defined inline
may NOT replace previous VM definitions
[INFO] Velocimacro : allowInlineLocal = false : VMs defined inline will
be  global in scope if allowed.
[INFO] Velocimacro : initialization complete.
[INFO] Velocity successfully started.
[INFO] [archetype:create]
[INFO] Defaulting package to group ID: com.mycompany.app
[INFO] artifact org.apache.maven.archetypes:maven-archetype-quickstart:
checking for updates from central
[INFO]


[INFO] Using following parameters for creating Archetype:
maven-archetype-quickstart:RELEASE
[INFO]


[INFO] Parameter: groupId, Value: com.mycompany.app
[INFO] Parameter: packageName, Value: com.mycompany.app
[INFO] Parameter: basedir, Value: /opt/home/build
[INFO] Parameter: package, Value: com.mycompany.app
[INFO] Parameter: version, Value: 1.0-SNAPSHOT
[INFO] Parameter: artifactId, Value: null
[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] Error creating from archetype

Embedded error: Artifact ID must be specified when creating a new
project from an archetype.
[INFO]

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

[INFO] Total time: 4 seconds
[INFO] Finished at: Wed Nov 28 17:36:11 PST 2007
[INFO] Final Memory: 4M/10M
[INFO]




 
Gabriel Misura | ATT eCommerce Release Manager
20111 120th Ave NE, Bothell 6, Office 2321D
Bothell, WA 98011
IM: Use Q/Team Link
Office: 425-288-6217
Cell: 425-533-3594
[EMAIL PROTECTED]

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Nathan
Bubna
Sent: Tuesday, November 27, 2007 4:00 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: [ANNOUNCE] VelocityTools 1.4

The Apache Velocity Team announces the immediate availability of the of
Apache VelocityTools 1.4.

Downloads are available here:
  http://velocity.apache.org/download.cgi#tools

Apache VelocityTools is a supplemental library for 

Re: [1.1] problem with usermanagement

2007-11-29 Thread Emmanuel Venisse

Do you use the same login/password with both ways?

Emmanuel

Cla Emanuel Monsch a écrit :

hi there

i've noticed a strange behavior.

when i add (as Admin) a normal user account, i cannot use it. every try 
to log in with the new account ends with the following message:


-- You have entered an incorrect username and/or password.

i'm sure that i'm using the right user/password!!

in contrast to this it works when i use the Register function. after 
validating the account it works without any problems.


does anybody have similar problems?

regards
cla







Re: clearcase update doesn't show autor,date,comment

2007-11-29 Thread Emmanuel Venisse

what is the language used for the cleartool output? english?

Do you have the same date on the continuum machine and your clearcase server?

Emmanuel

I am Who i am a écrit :

Hi All

I'm using continuum with clearcase, update and builds are happening fine,

but when i see the build page of project, its just show what files are
updated not any information on autor,date,comment

is there a way to get it?



Re: [1.1] problem with usermanagement

2007-11-29 Thread Cla Emanuel Monsch

yes.

i have a clue what the problem could be:

when i use the way over the Register function i have to activate my 
account by clicking a link. after doing that i can see a green icon 
under Validated under the user overview.


when i add a user over the Create New User function i can't see this 
icon under Validated.


regards cla

Emmanuel Venisse wrote:

Do you use the same login/password with both ways?

Emmanuel

Cla Emanuel Monsch a écrit :

hi there

i've noticed a strange behavior.

when i add (as Admin) a normal user account, i cannot use it. every 
try to log in with the new account ends with the following message:


-- You have entered an incorrect username and/or password.

i'm sure that i'm using the right user/password!!

in contrast to this it works when i use the Register function. after 
validating the account it works without any problems.


does anybody have similar problems?

regards
cla





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



Re: FW: [ANNOUNCE] VelocityTools 1.4

2007-11-29 Thread Stuart McCulloch
On 29/11/2007, Misura, Gabriel [EMAIL PROTECTED] wrote:

 I get the impression this release broke the maven examples.


 mvn archetype:create -DarchetypeGroupId=org.apache.maven.archetypes
 -DarchetypeArtifactID=maven-archetype-webapp -DgroupId=com.mycompany.app
 -DartifactID=my-webapp


that should be:   -DarchetypeArtifactId and -DartifactId   not
-DarchetypeArtifactID and -DartifactID


[INFO] Scanning for projects...
 [INFO] Searching repository for plugin with prefix: 'archetype'.
 [INFO]
 
 
 [INFO] Building Maven Default Project
 [INFO]task-segment: [archetype:create] (aggregator-style)
 [INFO]
 
 
 [INFO] Setting property: classpath.resource.loader.class =
 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'.
 [INFO] Setting property: velocimacro.messages.on = 'false'.
 [INFO] Setting property: resource.loader = 'classpath'.
 [INFO] Setting property: resource.manager.logwhenfound = 'false'.
 [INFO] **
 [INFO] Starting Jakarta Velocity v1.4
 [INFO] RuntimeInstance initializing.
 [INFO] Default Properties File:
 org/apache/velocity/runtime/defaults/velocity.properties
 [INFO] Default ResourceManager initializing. (class
 org.apache.velocity.runtime.resource.ResourceManagerImpl)
 [INFO] Resource Loader Instantiated:
 org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader
 [INFO] ClasspathResourceLoader : initialization starting.
 [INFO] ClasspathResourceLoader : initialization complete.
 [INFO] ResourceCache : initialized. (class
 org.apache.velocity.runtime.resource.ResourceCacheImpl)
 [INFO] Default ResourceManager initialization complete.
 [INFO] Loaded System Directive:
 org.apache.velocity.runtime.directive.Literal
 [INFO] Loaded System Directive:
 org.apache.velocity.runtime.directive.Macro
 [INFO] Loaded System Directive:
 org.apache.velocity.runtime.directive.Parse
 [INFO] Loaded System Directive:
 org.apache.velocity.runtime.directive.Include
 [INFO] Loaded System Directive:
 org.apache.velocity.runtime.directive.Foreach
 [INFO] Created: 20 parsers.
 [INFO] Velocimacro : initialization starting.
 [INFO] Velocimacro : adding VMs from VM library template :
 VM_global_library.vm
 [ERROR] ResourceManager : unable to find resource 'VM_global_library.vm'
 in any resource loader.
 [INFO] Velocimacro : error using  VM library template
 VM_global_library.vm :
 org.apache.velocity.exception.ResourceNotFoundException: Unable to find
 resource 'VM_global_library.vm'
 [INFO] Velocimacro :  VM library template macro registration complete.
 [INFO] Velocimacro : allowInline = true : VMs can be defined inline in
 templates
 [INFO] Velocimacro : allowInlineToOverride = false : VMs defined inline
 may NOT replace previous VM definitions
 [INFO] Velocimacro : allowInlineLocal = false : VMs defined inline will
 be  global in scope if allowed.
 [INFO] Velocimacro : initialization complete.
 [INFO] Velocity successfully started.
 [INFO] [archetype:create]
 [INFO] Defaulting package to group ID: com.mycompany.app
 [INFO] artifact org.apache.maven.archetypes:maven-archetype-quickstart:
 checking for updates from central
 [INFO]
 
 
 [INFO] Using following parameters for creating Archetype:
 maven-archetype-quickstart:RELEASE
 [INFO]
 
 
 [INFO] Parameter: groupId, Value: com.mycompany.app
 [INFO] Parameter: packageName, Value: com.mycompany.app
 [INFO] Parameter: basedir, Value: /opt/home/build
 [INFO] Parameter: package, Value: com.mycompany.app
 [INFO] Parameter: version, Value: 1.0-SNAPSHOT
 [INFO] Parameter: artifactId, Value: null
 [INFO]
 
 [ERROR] BUILD ERROR
 [INFO]
 
 [INFO] Error creating from archetype

 Embedded error: Artifact ID must be specified when creating a new
 project from an archetype.
 [INFO]
 
 [INFO] For more information, run Maven with the -e switch
 [INFO]
 
 [INFO] Total time: 4 seconds
 [INFO] Finished at: Wed Nov 28 17:36:11 PST 2007
 [INFO] Final Memory: 4M/10M
 [INFO]
 




 Gabriel Misura | ATT eCommerce Release Manager
 20111 120th Ave NE, Bothell 6, Office 2321D
 Bothell, WA 98011
 IM: Use Q/Team Link
 Office: 425-288-6217
 Cell: 425-533-3594
 [EMAIL PROTECTED]

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Nathan
 Bubna
 Sent: Tuesday, November 27, 2007 4:00 PM
 To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
 

Maven build error not detected

2007-11-29 Thread Olivier ETIENNE

Hi,

When I build my maven 2 project, the build fails but the status of the 
project is success !


The build logs contains :

[INFO] [compiler:compile]
[INFO] Compiling 176 source files to 
P:\Indernas\continuum-1.1-beta-4\apps\continuum\webapp\WEB-INF\working-directory\25\target\classes
[INFO] 
[ERROR] BUILD FAILURE
[INFO] 
[INFO] Compilation failure
D:\continuum-1.1-beta-4\apps\continuum\webapp\WEB-INF\working-directory\25\src\main\java\com\xxx\yyy\FractionDAO.java:[13,36]
 cannot find symbol
symbol  : class Fraction
location: package com.xxx.yyy.model
...


Any idea on how to open continuum eyes ?

Olivier


Re: Upgrade from 1.1-beta-3 to 1.1 failed

2007-11-29 Thread Emmanuel Venisse

Restart Continuum to see if this exception always appear.

Emmanuel

Julien Stern a écrit :

Hi list,

I had a bit of time so I tried to upgrade from beta3 to 1.1.
I followed the instructions on the upgrade page in order to
restore the databases.

When I start the new version (1.1) after the database import,
it fails with a NullPointerException.

The relevant part of the stack trace is attached.

Could it be that my original database was somehow corrupted?
Or is there any specific steps (other than those indicated
on the upgrade page) to follow?

Note that the Plexus listener IS configured in web.xml (in did not
change web.xml anyway).

Regards,

--
Julien



Re: JUnit, NetBeans 6

2007-11-29 Thread Stephen Connolly
have a look in target/surefire-reports/*.txt

On Nov 28, 2007 8:02 PM, Lally Singh [EMAIL PROTECTED] wrote:
 That fixes my pom problem, but it leaves me in the same state as
 before: no JUnit results.  The JUnit integration doesn't work with an
 external maven.

 I just get a pass/fail result, but nothing to tell me why the test
 failed (e.g. stack traces).

 Is there a way to tell maven to give me more output about what failed
 in my tests?


 Thanks,

 -ls

 On 11/28/07, Milos Kleint [EMAIL PROTECTED] wrote:
  project.basedir might have been introduced after 2.0.4 (which is what the
  embedded maven version is).
  http://mevenide.codehaus.org/m2-site/faq.html#question4
  or perhaps something to do with groovy plugin? not sure, never tried myself.
  please try setting the project to use command line maven for building, that
  should make the problem go away. Project/Properties to mark the project as
  buildable by command line and Tools/Options for setting the path to maven
  itself.
 
  If it's not working then, please file a bug report at
  jira.codehaus.org/browse/MEVENIDE
 
  Milos
 
  On Nov 28, 2007 8:00 PM, Lally Singh [EMAIL PROTECTED] wrote:
 
   I've got this little snippet in my POM:
   executions
execution
idtestdata_upload_vto/id
phasetest-compile/phase
goalsgoaloperation/goal/goals
configuration
  typeCLEAN_INSERT/type
  src${project.basedir}/src/test/data/db_vto.xml/src
  urljdbc:mysql://testsql.iddl.vt.edu/vto/url
 /configuration
/execution
   execution
  
   I get this bit from running my tests in NB:
  
   [groovy:execute {execution: default}]
   
   [ERROR]BUILD ERROR
   
   src/test/data/db_vto.xml (No such file or directory)
   
   For more information, run Maven with the -e switch
  
   I change the file name to db_vtoF.xml in my POM, save the POM,
   reloaded the project, and hit test again.  The error message referred
   to db_vto.xml, not db_vtoF.xml.
  
   Btw, the file's there, and this part of the test process runs fine
   from the command line.  But in NB, the error shows up. When the right
   POM loads, I'll figure out what to put between those ${}.
  
   Thanks,
  
   -ls
  
  
   On 11/28/07, Milos Kleint [EMAIL PROTECTED] wrote:
what do you mean by old version of POM? netbeans will update the project
definition if you changed the project's own pom, it will not currently
   do
automatically when changing something in the chain of parent poms. Use
   the
Reload action on project's popup. However for build execution there is
   no
caching, what is on disk is always used.
   
are you using netbeans 5.5 or 6.0? if 6.0, are you using the maven
   support
from default update center? that one shall open the regular JUnit window
   if
you run the Test project action. If you use just Build/Rebuild, it
   shall
underline the errors in output and create a hyperlink to the
stacktraces.
   
Could be a bug.
   
Milos
   
On Nov 28, 2007 7:45 PM, Lally Singh [EMAIL PROTECTED] wrote:
   
 Hey all,

  I've got a testcase that I'm trying to get working, but I've got a
 little dilemma:

 - In Netbeans, I can usually get a stacktrace for JUnit errors.  But
 NB's using a bad (old?) version of my POM.  E.g. I changed my pom and
 I continue to get an error mesage from the old version.  NB's using
 some ancient version of my POM (probably from the initial project
 import), and I can't get it to use the new version.

 - Maven will (obviously) use the latest pom, but I don't know how to
 get any sort of failure report from my junit tests.  Just a count  a
 list of the failed tests, but no stack traces or other diagnostics.

 Any idea how to fix either/both problems?

 Thanks in advance,

 -ls

 --
 H. Lally Singh
 Ph.D. Candidate, Computer Science
 Virginia Tech

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


   
  
  
   --
   H. Lally Singh
   Ph.D. Candidate, Computer Science
   Virginia Tech
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
 


 --

 H. Lally Singh
 Ph.D. Candidate, Computer Science
 Virginia Tech

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



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

Re: JUnit, NetBeans 6

2007-11-29 Thread Milos Kleint
a picture speak thousand words. I've tried to build my own project
externally (maven 2.0.7) and everything seems to work as expected.
I get the test error hyperlinked in output, I get the test failure
stacktrace hyperlinked, I even get the JUnit window output if I trigger the
Test project  action.

So there must be something different about your setup in comparison to mine.
Please file a bug at jira.codehaus.org/browse/MEVENIDE with a sample project
demonstating the problem attached or with detailed description of your
setup.

Milos Kleint

On Nov 29, 2007 10:39 AM, Stephen Connolly [EMAIL PROTECTED]
wrote:

 have a look in target/surefire-reports/*.txt

 On Nov 28, 2007 8:02 PM, Lally Singh [EMAIL PROTECTED] wrote:
  That fixes my pom problem, but it leaves me in the same state as
  before: no JUnit results.  The JUnit integration doesn't work with an
  external maven.
 
  I just get a pass/fail result, but nothing to tell me why the test
  failed (e.g. stack traces).
 
  Is there a way to tell maven to give me more output about what failed
  in my tests?
 
 
  Thanks,
 
  -ls
 
  On 11/28/07, Milos Kleint [EMAIL PROTECTED] wrote:
   project.basedir might have been introduced after 2.0.4 (which is what
 the
   embedded maven version is).
   http://mevenide.codehaus.org/m2-site/faq.html#question4
   or perhaps something to do with groovy plugin? not sure, never tried
 myself.
   please try setting the project to use command line maven for building,
 that
   should make the problem go away. Project/Properties to mark the
 project as
   buildable by command line and Tools/Options for setting the path to
 maven
   itself.
  
   If it's not working then, please file a bug report at
   jira.codehaus.org/browse/MEVENIDE
  
   Milos
  
   On Nov 28, 2007 8:00 PM, Lally Singh [EMAIL PROTECTED] wrote:
  
I've got this little snippet in my POM:
executions
 execution
 idtestdata_upload_vto/id
 phasetest-compile/phase
 goalsgoaloperation/goal/goals
 configuration
   typeCLEAN_INSERT/type
   src${project.basedir}/src/test/data/db_vto.xml/src
   urljdbc:mysql://testsql.iddl.vt.edu/vto/url
  /configuration
 /execution
execution
   
I get this bit from running my tests in NB:
   
[groovy:execute {execution: default}]
   
 
[ERROR]BUILD ERROR
   
 
src/test/data/db_vto.xml (No such file or directory)
   
 
For more information, run Maven with the -e switch
   
I change the file name to db_vtoF.xml in my POM, save the POM,
reloaded the project, and hit test again.  The error message
 referred
to db_vto.xml, not db_vtoF.xml.
   
Btw, the file's there, and this part of the test process runs fine
from the command line.  But in NB, the error shows up. When the
 right
POM loads, I'll figure out what to put between those ${}.
   
Thanks,
   
-ls
   
   
On 11/28/07, Milos Kleint [EMAIL PROTECTED] wrote:
 what do you mean by old version of POM? netbeans will update the
 project
 definition if you changed the project's own pom, it will not
 currently
do
 automatically when changing something in the chain of parent poms.
 Use
the
 Reload action on project's popup. However for build execution
 there is
no
 caching, what is on disk is always used.

 are you using netbeans 5.5 or 6.0? if 6.0, are you using the maven
support
 from default update center? that one shall open the regular JUnit
 window
if
 you run the Test project action. If you use just Build/Rebuild,
 it
shall
 underline the errors in output and create a hyperlink to the
 stacktraces.

 Could be a bug.

 Milos

 On Nov 28, 2007 7:45 PM, Lally Singh [EMAIL PROTECTED]
 wrote:

  Hey all,
 
   I've got a testcase that I'm trying to get working, but I've
 got a
  little dilemma:
 
  - In Netbeans, I can usually get a stacktrace for JUnit errors.
  But
  NB's using a bad (old?) version of my POM.  E.g. I changed my
 pom and
  I continue to get an error mesage from the old version.  NB's
 using
  some ancient version of my POM (probably from the initial
 project
  import), and I can't get it to use the new version.
 
  - Maven will (obviously) use the latest pom, but I don't know
 how to
  get any sort of failure report from my junit tests.  Just a
 count  a
  list of the failed tests, but no stack traces or other
 diagnostics.
 
  Any idea how to fix either/both problems?
 
  Thanks in advance,
 
  -ls
 
  --
  H. Lally Singh
  Ph.D. Candidate, Computer Science
  Virginia Tech
 
 
 -
  

Re: maven-webstart-plugin status?

2007-11-29 Thread Adrian Robert
 prefix being looked up correctly and mapped to
 org.apache.maven.plugins:maven-webstart-plugin, but then this fails
 to find anything at central with does not exist or no valid version
 could be found.

Scratch this, putting the below into my pom worked.  I'm still not
sure where the mapping described above came from, or when plugins must
be explicitly laid out in the pom (maybe always), but anyway I'm up
and running.  Sorry for the bother.

plugin
groupIdorg.codehaus.mojo/groupId
artifactIdwebstart-maven-plugin/artifactId
/plugin

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



Re: obfuscation

2007-11-29 Thread ben short
Have a look at the antrun plugin [1]

[1] http://maven.apache.org/plugins/maven-antrun-plugin/

On Nov 29, 2007 10:29 AM, Richard Chamberlain
[EMAIL PROTECTED] wrote:
 Hi all,



 I've got a requirement to obfuscate the java code we produce.



 Currently we use yguard with ant, there doesn't seem to be a maven
 plugin for it :-( Does anyone use yguard with maven?



 So I was looking for a maven-friendly obfuscator. Does anyone use any
 good ones?



 Cheers,



 Rich



 Richard Chamberlain
 Software Engineer | Caplin Systems Ltd

 Office: +44 (0)20 7826 9639
 Mobile: +44 (0)77 2068 6064
 www.caplin.com http://www.caplin.com/

 Registered in England and Wales No. 02823818
 Registered Office: Triton Court, Finsbury Square, London EC2A 1BR

 This message contains information which may be confidential or
 privileged. Unless you are the addressee,
 you may not use, copy or disclose to anyone the message or any
 information contained in the message.
 This message does not contain information which can be relied upon by
 any party unless expressly specified.





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



Re: Upgrade from 1.1-beta-3 to 1.1 failed

2007-11-29 Thread Julien Stern
On Thu, Nov 29, 2007 at 11:22:08AM +0100, Emmanuel Venisse wrote:
 Are you on windows?

No. Linux 2.6.18-amd64. Java 1.6.

I tried to stop and start it a few more times. No problem.
And now it's been working like a charm...

--
Julien

 Emmanuel
 
 Julien Stern a écrit :
 On Thu, Nov 29, 2007 at 09:41:14AM +0100, Emmanuel Venisse wrote:
 Restart Continuum to see if this exception always appear.
 
 Intriguing... It failed the first, second, third and fourth time, and
 then eventually worked... Seems fixed now (I tried 3 times). The loading
 phase has automagic healing capabilities apparently :)
 
 Thanks.
 
 --
 Julien
 
 Emmanuel
 
 Julien Stern a écrit :
 Hi list,
 
 I had a bit of time so I tried to upgrade from beta3 to 1.1.
 I followed the instructions on the upgrade page in order to
 restore the databases.
 
 When I start the new version (1.1) after the database import,
 it fails with a NullPointerException.
 
 The relevant part of the stack trace is attached.
 
 Could it be that my original database was somehow corrupted?
 Or is there any specific steps (other than those indicated
 on the upgrade page) to follow?
 
 Note that the Plexus listener IS configured in web.xml (in did not
 change web.xml anyway).
 
 Regards,
 
 --
 Julien
 
 
 
 


Re: obfuscation

2007-11-29 Thread Stephen Connolly
We use JavaGuard with the following in the pom.xml

You could probably adapt it to your config

plugin
groupIdorg.codehaus.mojo/groupId
artifactIdexec-maven-plugin/artifactId
executions
execution
phasepackage/phase
goals
goaljava/goal
/goals
/execution
/executions
configuration
mainClassJavaGuard/mainClass
executablejava/executable

includeProjectDependenciesfalse/includeProjectDependencies
includePluginDependenciestrue/includePluginDependencies
arguments
argument-i/argument

argument${project.build.directory}/${project.build.finalName}.jar/argument
argument-o/argument

argument${project.build.directory}/${project.build.finalName}-obfuscated.jar/argument
argument-s/argument

argument${basedir}/src/main/obfuscate/config.properties/argument
/arguments
/configuration
dependencies
dependency
groupIdoro/groupId
artifactIdoro/artifactId
version2.0.6/version
typejar/type
/dependency
dependency
groupIdnet.sf.javaguard/groupId
artifactIdjavaguard/artifactId
version1.0beta4/version
typejar/type
/dependency
/dependencies
/plugin
plugin
groupIdorg.codehaus.mojo/groupId
artifactIdbuild-helper-maven-plugin/artifactId
executions
execution
phasepackage/phase
goals
goalattach-artifact/goal
/goals
configuration
artifacts
artifact

file${project.build.directory}/${project.build.finalName}-obfuscated.jar/file
classifierobfuscated/classifier
typejar/type
/artifact
/artifacts
/configuration
/execution
/executions
/plugin


On Nov 29, 2007 10:31 AM, ben short [EMAIL PROTECTED] wrote:
 Have a look at the antrun plugin [1]

 [1] http://maven.apache.org/plugins/maven-antrun-plugin/

 On Nov 29, 2007 10:29 AM, Richard Chamberlain

 [EMAIL PROTECTED] wrote:
  Hi all,
 
 
 
  I've got a requirement to obfuscate the java code we produce.
 
 
 
  Currently we use yguard with ant, there doesn't seem to be a maven
  plugin for it :-( Does anyone use yguard with maven?
 
 
 
  So I was looking for a maven-friendly obfuscator. Does anyone use any
  good ones?
 
 
 
  Cheers,
 
 
 
  Rich
 
 
 
  Richard Chamberlain
  Software Engineer | Caplin Systems Ltd
 
  Office: +44 (0)20 7826 9639
  Mobile: +44 (0)77 2068 6064
  www.caplin.com http://www.caplin.com/
 
  Registered in England and Wales No. 02823818
  Registered Office: Triton Court, Finsbury Square, London EC2A 1BR
 
  This message contains information which may be confidential or
  privileged. Unless you are the addressee,
  you may not use, copy or disclose to anyone the message or any
  information contained in the message.
  This message does not contain information which can be relied upon by
  any party unless expressly specified.
 
 
 
 

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



set property value based on build's lifecycle or plugin?

2007-11-29 Thread Erez Nahir
Hi,

Is there a way to set a different value for given property on different
build phase? or based on running plugin?

Thanks,
Erez.


Re: 2.0.8 broken war build

2007-11-29 Thread Damien Lecan
Similar problem for me when swithcing from 2.07 to 2.0.8

Despite http://jira.codehaus.org/browse/MNG-3118, config files are now
read by surefire classloader in target/classes first, then in
target/test-classes

Try a simple getClass().getResource(/my.property)

As a workaround, I configured surefire 2.3 with this :
forkModenever/forkMode

Then Surefire classloader read config file in target/test-classes first.

Strange thing, I had to do that only for projects with war packaging
(but with classical unit tests).

So hard to say if it's a bug with surefire, war plugin (?) or Maven itself.

Damien Lecan

2007/11/29, Paul Benedict [EMAIL PROTECTED]:
 Kev,

 I reported something similar in the user list today. The classpath that
 Spring gets back in 2.0.8 points to classes, not test-classes, so all my
 testing data cannot be found. As you said, things work fine in 2.0.7

 Paul

 On Nov 28, 2007 9:29 PM, Kev Jackson [EMAIL PROTECTED] wrote:

  Hi,
 
  I've just been re-building my project with the new mvn 2.0.8 binary.
 
  Here's my experience so far.
 
  mvn clean install (jars) - works as 2.0.7
 
  mvn clean package -Pprofile (war) - broken (re-tested on 2.0.7 and
  works)
 
  So something has changed in 2.0.8 that has affected surefire.
 
  Here is a snippet of the error
 
  Nov 29, 2007 10:09:01 AM com.seanergie.persistence.SessionsManager
  initialize
  SEVERE: Exception building Hibernate SessionFactory :
  Could not find datasource
  org.hibernate.HibernateException: Could not find datasource
  at
  org.hibernate.connection.DatasourceConnectionProvider.configure(Datas
  ourceConnectionProvider.java:56)
  at
  org.hibernate.connection.ConnectionProviderFactory.newConnectionProvi
  der(ConnectionProviderFactory.java:124)
  at
  org.hibernate.connection.ConnectionProviderFactory.newConnectionProvi
 
  For each unit test that uses Hibernate (v3 with Annotations 
  HibernateSearch), the same error 'Could not find datasource'.
 
  For mvn 2.0.7 the build works perfectly.
 
  I haven't changed my hibernate.cfg.xml file between builds, I haven't
  changed any code or config between builds, the only thing I changed was
  MVN_HOME  PATH to 2.0.8.
 
  As these errors occur during the surefire:test phase of the build I'm
  assuming that something has changed in the Classpath management for
  surefire?
 
  Any help would be appreciated.
 
  Thanks,
  Kev
 
  -
  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]



Repository scanning problem in 1.0?

2007-11-29 Thread ArneD

Hi all,

first of all, congratulations to all Archiva developers for releasing the
1.0 version!

I started playing around with it a little bit, and ran into the following
problem:

After starting up a fresh instance with default configuration, I copied
parts of my existing repository to Archiva's default internal repository.
Then I used the Scan Repository Now button on the repository
administration page. Afterwards, all artifacts were visible on the Browse
page. So far so good.

I then copied some more groups of my existing repo to Archiva's default
internal repository, and used Scan Repository Now once again. But this
time, the Browse page did not show the newly added groups. This was quite
surprising, as the log output of RepositoryScanner clearly showed that
Archiva DID walk over these new artifacts, without errors or warnings. I
tried to use the Update Database Now button, but still no effect. 

I finally touched one of the POM files in the missing groups, i.e. I gave
the POM file a new timestamp. After doing Scan Repository Now again, the
artifact appeared on the Browse page. When browsing into the artifact,
however, I get the error message Unable to find project model for [...].

Seems like a bug to me? I know that my playground scenario may be a little
bit unusual, but I would expect that Archiva should always be able to
synchronize itself to the file system contents, regardless of the files'
timestamps.

Thanks
- Arne

-- 
View this message in context: 
http://www.nabble.com/Repository-scanning-problem-in-1.0--tf4897121.html#a14025501
Sent from the archiva-users mailing list archive at Nabble.com.



RE: obfuscation

2007-11-29 Thread Richard Chamberlain
Thanks Ben and Steve!

-Original Message-
From: Stephen Connolly [mailto:[EMAIL PROTECTED] 
Sent: 29 November 2007 11:08
To: Maven Users List
Subject: Re: obfuscation

We use JavaGuard with the following in the pom.xml

You could probably adapt it to your config

plugin
groupIdorg.codehaus.mojo/groupId
artifactIdexec-maven-plugin/artifactId
executions
execution
phasepackage/phase
goals
goaljava/goal
/goals
/execution
/executions
configuration
mainClassJavaGuard/mainClass
executablejava/executable

includeProjectDependenciesfalse/includeProjectDependencies
 
includePluginDependenciestrue/includePluginDependencies
arguments
argument-i/argument

argument${project.build.directory}/${project.build.finalName}.jar/arg
ument
argument-o/argument

argument${project.build.directory}/${project.build.finalName}-obfuscat
ed.jar/argument
argument-s/argument

argument${basedir}/src/main/obfuscate/config.properties/argument
/arguments
/configuration
dependencies
dependency
groupIdoro/groupId
artifactIdoro/artifactId
version2.0.6/version
typejar/type
/dependency
dependency
groupIdnet.sf.javaguard/groupId
artifactIdjavaguard/artifactId
version1.0beta4/version
typejar/type
/dependency
/dependencies
/plugin
plugin
groupIdorg.codehaus.mojo/groupId
artifactIdbuild-helper-maven-plugin/artifactId
executions
execution
phasepackage/phase
goals
goalattach-artifact/goal
/goals
configuration
artifacts
artifact

file${project.build.directory}/${project.build.finalName}-obfuscated.j
ar/file
classifierobfuscated/classifier
typejar/type
/artifact
/artifacts
/configuration
/execution
/executions
/plugin


On Nov 29, 2007 10:31 AM, ben short [EMAIL PROTECTED] wrote:
 Have a look at the antrun plugin [1]

 [1] http://maven.apache.org/plugins/maven-antrun-plugin/

 On Nov 29, 2007 10:29 AM, Richard Chamberlain

 [EMAIL PROTECTED] wrote:
  Hi all,
 
 
 
  I've got a requirement to obfuscate the java code we produce.
 
 
 
  Currently we use yguard with ant, there doesn't seem to be a maven
  plugin for it :-( Does anyone use yguard with maven?
 
 
 
  So I was looking for a maven-friendly obfuscator. Does anyone use
any
  good ones?
 
 
 
  Cheers,
 
 
 
  Rich
 
 
 
  Richard Chamberlain
  Software Engineer | Caplin Systems Ltd
 
  Office: +44 (0)20 7826 9639
  Mobile: +44 (0)77 2068 6064
  www.caplin.com http://www.caplin.com/
 
  Registered in England and Wales No. 02823818
  Registered Office: Triton Court, Finsbury Square, London EC2A 1BR
 
  This message contains information which may be confidential or
  privileged. Unless you are the addressee,
  you may not use, copy or disclose to anyone the message or any
  information contained in the message.
  This message does not contain information which can be relied upon
by
  any party unless expressly specified.
 
 
 
 

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



Inheriting developers list from parent POM.xml

2007-11-29 Thread Artsiukhou, Yauhen
Hello. I have a problem: I've defined pom.xml which I'm going to use an custom 
super-pom file:

project xmlns=http://maven.apache.org/POM/4.0.0; 
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;

  xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/maven-v4_0_0.xsd;

  modelVersion4.0.0/modelVersion

  groupIdcom.company.super_pom/groupId

  artifactIdSuperPom/artifactId

  version1.0-SNAPSHOT/version

  packagingpom/packaging

  nameSuper Pom/name

  urlhttp://192.168.1.1/projects/SuperPom//url

 

  !-- in current version this declaration isn't working when pom inherited by 
other project --

  developers

    developer

    idSirex/id

    nameYauhen, Artsiukhou/name

    email[email_protected]/email

    organizationMyCompany/organization

    organizationUrlmycompany.com/organizationUrl

    roles

   rolesome_role/role

    /roles

    /developer

  /developers

 

 

  distributionManagement

     repository

   idmy-repository-01/id

   urlftp://192.168.9.27//url

 /repository

  /distributionManagement

 

!-- when I run mvn deploy it fails with error: Unsupported protocol: 'ftp' 
... bla bla bla, but I've already found this issue in your jira --!

  build

     extensions

   extension

    groupIdorg.apache.maven.wagon/groupId

    artifactIdwagon-ftp/artifactId

    version1.0-alpha-6/version

   /extension

 /extensions

 

 plugins

   plugin

    !-- Using JDK 1.5 instead default 1.4 --

    artifactIdmaven-compiler-plugin/artifactId

    configuration

  source1.5/source

  target1.5/target

    /configuration

   /plugin

 /plugins

  /build

 

/project

 

Next project uses this super pom. Pom-file looks like:

project xmlns=http://maven.apache.org/POM/4.0.0; 
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;

  xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/maven-v4_0_0.xsd;

  modelVersion4.0.0/modelVersion

  groupIdcom.company.project/groupId

  artifactIdproject_name/artifactId

  packagingjar/packaging

  version1.0-SNAPSHOT/version

  nameproject_name/name

  urlhttp://192.168.1.1/projects/project_name/url

 

  parent

     groupIdcom.company.super_pom/groupId

 artifactIdSuperPom/artifactId

 version1.0-SNAPSHOT/version

  /parent

 

  dependencies

    dependency

  groupIdjunit/groupId

  artifactIdjunit/artifactId

  version3.8.1/version

      scopetest/scope

    /dependency

  /dependencies

!-- this section completely overrides inherited from super_pom. Expected: 
merging both two developers: Sirex and other developer --

  developers

     developer

   idother developer/id

   nameother developer/name

   email[email protected]/email

   organizationcompany/organization

   organizationUrlcompany.com/organizationUrl

   roles

    roleManager/role

    roleDeveloper/role

    roleTeam Leader/role

   /roles

 /developer

  /developers

/project

 

Problem:

Developers list overrides by child pom file

 

When I type mvn help:effective-pom I can see, that all  params from super_pom 
were inherited successful except developers section.

If I remove from com.company.project project developers declaration, 
super_poms' declaration will be inherited.

 

Is it a bug? Or it's my mistake of declaration/configuration pom-files.

 

May be it's your policy to make an ability to re-declaration such sections? So, 
how can I get merging such sections, if any?

 

Best Regards,
Artsiukhou Yauhen

Belarus, Minsk

 



Re: Continuum 1.1: Appearance feature

2007-11-29 Thread olivier lamy
Hi,
Upgrade to firefox 2.0.0.10 :-)
No issue here.

--
Olivier

2007/11/29, Ken Turner [EMAIL PROTECTED]:


 I have provided company POM information - Name, URL and Logo URL, and the
 result is very pretty when viewed using IE6, but doesn't work at all with
 Firefox 2.0.0.9.

 Anybody know of a workaround for this?
 --
 View this message in context:
 http://www.nabble.com/Continuum-1.1%3A-Appearance-feature-tf4897268.html#a14025957
 Sent from the Continuum - Users mailing list archive at Nabble.com.




Continuum 1.1: Appearance feature

2007-11-29 Thread Ken Turner

I have provided company POM information - Name, URL and Logo URL, and the
result is very pretty when viewed using IE6, but doesn't work at all with
Firefox 2.0.0.9.

Anybody know of a workaround for this? 
-- 
View this message in context: 
http://www.nabble.com/Continuum-1.1%3A-Appearance-feature-tf4897268.html#a14025957
Sent from the Continuum - Users mailing list archive at Nabble.com.



Message from my annotation processor don't appear in console

2007-11-29 Thread Sahoo

Hi,

Recently I was writing an annotation processor [1]  which gets called 
from javac. JDK 6 javac exposes an API called Messager to be used to 
report warnings or errors or diagnostic information. I noticed that if I 
launch javac from command line, my messages appear in the output, but 
when javac is invcoked by maven-compiler-plugin, my messages don't 
appear. While debugging I found that maven passes StringWriter to javac 
to write the messages to and javac is also writing to that object, so I 
suspect maven is not subsequently printing the information available in 
the StringWriter object. More information is available at [2].


Thanks,
Sahoo

[1] 
http://weblogs.java.net/blog/ss141213/archive/2007/11/a_javac_plugin_1.html

[2] http://forum.java.sun.com/thread.jspa?threadID=5241006tstart=0

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



Re: Continuum 1.1: Appearance feature

2007-11-29 Thread Ken Turner

Well, I upgraded to Firefox 2.0.0.10 as you suggested, and even shut
down/restarted the Continuum app, but no joy :-(.  Only thing I haven't done
is reboot the PC.
-- 
View this message in context: 
http://www.nabble.com/Continuum-1.1%3A-Appearance-feature-tf4897268.html#a14026452
Sent from the Continuum - Users mailing list archive at Nabble.com.



[ANN] Maven Site Plugin 2.0-beta-6 Released

2007-11-29 Thread Dennis Lundberg

The Maven team is pleased to announce the release of Maven Site
Plugin, version 2.0-beta-6.

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

You can run 'mvn -up' to get the latest version of the plugin, or
specify the version in your project's plugin configuration:

plugin
 groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-site-plugin/artifactId
 version2.0-beta-6/version
/plugin

Release Notes - Maven 2.x Site Plugin - Version 2.0-beta-6

** Bug
* [MSITE-25] - mvn site:site ignores server configuration in
settings.xml
* [MSITE-91] - src/site/site.xml hardcoded in AbstractSiteMojo.java
* [MSITE-114] - Frenglish project info reports with site:run
* [MSITE-120] - site:run return blank page for javadoc report
* [MSITE-137] - The 'name' element does not work for a menu that
references modules
* [MSITE-138] - site:stage does not create xref
* [MSITE-149] - version tag is ignored for plugins in the
reporting section of the POM
* [MSITE-155] - site:run does not work with upper case letters in
* [MSITE-170] - [ERROR] VM #displayTree: error : too few arguments
to macro
* [MSITE-175] - Log message shows wrong port number for site:run
* [MSITE-182] - site:stage doesn't bring over reports like javadoc
* [MSITE-185] - -Dproject.reporting.outputDirectory is not read
* [MSITE-191] - ${project.organization.name} is not evaluated in
site.xml
* [MSITE-192] - Docs don't indicate where site.xml should be created
* [MSITE-201] - ${modules} renders as [] causing parse error
* [MSITE-203] - bannerRight is not right aligned if no image is used
* [MSITE-205] - maven site plugin typo prevents parent site.xml
resolution from working
* [MSITE-207] - poweredBy not mentioned in the document
* [MSITE-239] - encoding declaration in site.xml is ignored
* [MSITE-246] - path of site.xml not possible to configure in tag
siteDirectory
* [MSITE-247] - Site generation does not inherit version element
from parent site.xml
* [MSITE-255] - Executing the site-site goal fails prior to
executing the site-deploy goal on a clean maven install (Could be due to
dependencies)
* [MSITE-260] - Bundle for Portuguese-BR is not correct
* [MSITE-265] - filename with dot are considered as duplicate

** Improvement
* [MSITE-133] - Fix documentation of skinning: groupId seems to
be org.apache.maven.skins instead of org.apache.maven
* [MSITE-147] - Date format defaults to US
* [MSITE-151] - Ability to change the site directory in the plugin
configuration in the pom.xml file.
* [MSITE-168] - Use underscores instead of spaces in anchor names
* [MSITE-219] - Slovak translation of site-plugin.properties
* [MSITE-221] - Korean translation resource file
* [MSITE-231] - Please update the german localization.
* [MSITE-259] - Bump to new release of jetty

** New Feature
* [MSITE-223] - Enable optional velocity processing of input documents
* [MSITE-243] - Czech translation

** Task
* [MSITE-200] - Schedule and release doxia 1.0-alpha-9
* [MSITE-266] - Schedule and release doxia 1.0-alpha-10


Enjoy!

- The Maven Team

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



Configure heap size used by Maven2

2007-11-29 Thread Yan Huang
Hello,

It seems to me that maven (version 2.0.7) does not allow me to allocate more
than 1024MB for max heap size and otherwise it aborts the build complaining
it could not allocate the required heap size. Is it true? How can I get
around it? I want to allocate 3G on a 32-bit machine though ...

Thanks
Yan


Re: Configure heap size used by Maven2

2007-11-29 Thread Wendy Smoak
On Nov 29, 2007 9:29 AM, Yan Huang [EMAIL PROTECTED] wrote:

 It seems to me that maven (version 2.0.7) does not allow me to allocate more
 than 1024MB for max heap size and otherwise it aborts the build complaining
 it could not allocate the required heap size. Is it true? How can I get
 around it? I want to allocate 3G on a 32-bit machine though ...

What error are you getting?  Maven generally just constructs
command-line executions of java, so I suspect that it's the JVM
complaining about the options when it tries to start up, not Maven.

-- 
Wendy

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



Re: gathe rlist of plugin in poms

2007-11-29 Thread Dennis Lundberg
You can use the maven-help-plugin for this. The following command will 
give you *lots* of information, but it will include the plugins that you 
have configured.


mvn help:effective-pom

Sonar, Nishant wrote:
Hi 

 


I want to gather list of all plugins used in the poms , with there
versions,groupid and artifact id. 


For dependency we are using dependency:resolve is there any command for
plugin

 


-Nishant

 






--
Dennis Lundberg

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



Re: maven-webstart-plugin status?

2007-11-29 Thread Wayne Fay
In the future, you can also use:
mvn org.codehaus.mojo:webstart-maven-plugin:insert version here:jnlp

But it is easier to simply add the plugin declaration (you should
really include a version btw) and then mvn webstart:jnlp should just
work.

Wayne

On 11/29/07, Adrian Robert [EMAIL PROTECTED] wrote:
  prefix being looked up correctly and mapped to
  org.apache.maven.plugins:maven-webstart-plugin, but then this fails
  to find anything at central with does not exist or no valid version
  could be found.

 Scratch this, putting the below into my pom worked.  I'm still not
 sure where the mapping described above came from, or when plugins must
 be explicitly laid out in the pom (maybe always), but anyway I'm up
 and running.  Sorry for the bother.

 plugin
groupIdorg.codehaus.mojo/groupId
artifactIdwebstart-maven-plugin/artifactId
 /plugin

 -
 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: Configure heap size used by Maven2

2007-11-29 Thread Wayne Fay
You took the words out of my mouth, Wendy. ;-)

Make sure your heap size parameters etc are accepted by Javac before
attempting to run them in Maven. There are many Maven errors post in
this list which are actually Javac errors due to bad params, params
not supported in the version of the jdk you're using, etc.

Wayne

On 11/29/07, Wendy Smoak [EMAIL PROTECTED] wrote:
 On Nov 29, 2007 9:29 AM, Yan Huang [EMAIL PROTECTED] wrote:

  It seems to me that maven (version 2.0.7) does not allow me to allocate more
  than 1024MB for max heap size and otherwise it aborts the build complaining
  it could not allocate the required heap size. Is it true? How can I get
  around it? I want to allocate 3G on a 32-bit machine though ...

 What error are you getting?  Maven generally just constructs
 command-line executions of java, so I suspect that it's the JVM
 complaining about the options when it tries to start up, not Maven.

 --
 Wendy

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



maven2 with seam archetype

2007-11-29 Thread �rico
I'm trying to deploy a sample app from the current site :  
http://software.softeu.cz/seam/usage.html 
 
When I run the command mvn jboss:deploy -e 
I get the error : 
[INFO] No server specified for authentication - using defaults 
[INFO]  
[ERROR] BUILD ERROR 
[INFO]  
[INFO] Mojo error occurred: Server returned HTTP response code: 505 for URL: 
http://localhost:8080/jmx-console/ 
HtmlAdaptor?action=invokeOpByNamename=jboss.system:service%3DMainDeployermethodName=deployargType=java.net.U
 
RLarg0=file:C:\java\helloApp\target/helloApp.war 
 
If I try to copy and paste the target war file to 
%JBOSS_HOME%\server\default\deploy I get the following error in JBoss log : 
ERROR 
[org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/helloApp]] 
Exception sending context initialized event to listener instance of class 
org.jboss.web.jsf.integration.config.JBossJSFConfigureListener 
java.lang.ClassCastException: org.apache.xerces.jaxp.SAXParserFactoryImpl 
 
I'm trying to run this sample to use Seam with Maven 
 
Is there any other sample or archetype to use seam with maven ?
   
-
Get easy, one-click access to your favorites.  Make Yahoo! your homepage.

Re: Configure heap size used by Maven2

2007-11-29 Thread Yan Huang
I'm setting this in MAVEN_OPTS on windows 2003 server: -Xms512m -Xmx1024m
-XX:MaxPermSize=256m

However, when I tried with more than 1G in the max heap size, the build
under maven2 immediately aborted the build by complaining about as such:

2007-11-29 08:23:26,072 [Thread-16] WARN  Maven2Script - Maven2Script
altering build property with space. Key:cvstimestamp; Orig Value:2007-11-29
16:23:25 GMT; New Value: 2007-11-29_16:23:25_GMT
2007-11-29 08:23:26,103 [Thread-23] INFO  ScriptRunner - Error occurred
during initialization of VM
2007-11-29 08:23:26,103 [Thread-23] INFO  ScriptRunner - Could not
reserve enough space for object heap
2007-11-29 08:23:26,119 [Thread-22] WARN  ScriptRunner - Could not
create the Java virtual machine.



On Nov 29, 2007 9:15 AM, Wayne Fay [EMAIL PROTECTED] wrote:

 You took the words out of my mouth, Wendy. ;-)

 Make sure your heap size parameters etc are accepted by Javac before
 attempting to run them in Maven. There are many Maven errors post in
 this list which are actually Javac errors due to bad params, params
 not supported in the version of the jdk you're using, etc.

 Wayne

 On 11/29/07, Wendy Smoak [EMAIL PROTECTED] wrote:
  On Nov 29, 2007 9:29 AM, Yan Huang [EMAIL PROTECTED] wrote:
 
   It seems to me that maven (version 2.0.7) does not allow me to
 allocate more
   than 1024MB for max heap size and otherwise it aborts the build
 complaining
   it could not allocate the required heap size. Is it true? How can I
 get
   around it? I want to allocate 3G on a 32-bit machine though ...
 
  What error are you getting?  Maven generally just constructs
  command-line executions of java, so I suspect that it's the JVM
  complaining about the options when it tries to start up, not Maven.
 
  --
  Wendy
 
  -
  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]




Is there a way to determine which repository resolved artifact?

2007-11-29 Thread James Chamberlain
I am writing a small utility that uses the Maven Embedder to resolve
transitive project dependencies and track things like licenses. I have
it working where it can resolve the dependencies, but I don't see a
way to know which of the repositories actually resolved the
dependency. Is there a way to get that information? Below is a snippet
of code that is being used:


MavenEmbedder maven = new MavenEmbedder();
ClassLoader cl = Thread.currentThread().getContextClassLoader();
maven.setClassLoader( cl );
maven.setLogger( new MavenEmbedderConsoleLogger() );
maven.start();

Artifact artifact = maven.createArtifact(junit, junit, 4.4, , pom);

maven.resolve(artifact, remoteRepositories, localRepository);
Model model = maven.readModel(artifact.getFile());


Thanks,

James

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



Does Maven 2.0.8 put test dependencies first in classpath?

2007-11-29 Thread Ryan Moquin
So if I have a test dependency I include that is meant to override
configuration files in a subproject I am building, should the test jar
dependency override the compile time dependencies in the project being
built?  I was hoping this is how 2.0.8 would behave, but either it's not, or
I have an error somewhere.. I want to confirm this before I spend a time of
time troubleshooting it.

Thanks.


Maven Sites

2007-11-29 Thread Morgovsky, Alexander (US - Glen Mills)
Could someone please explain to properly create multi-module sites in
Maven 2?  I have tried calling mvn site:site (custom site goals)
site:deploy site:site (custom site goals), and duplicating calls so that
my site would work, but it does not.  I understand that the parent site
gets generated before the child sites do, so the result if false,
however, I do not know the final correct way of properly generating a
multi-module Maven 2 site, please assist if you may. 


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


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


RE: Does Maven 2.0.8 put test dependencies first in classpath?

2007-11-29 Thread Blue . Thomas
It's supposed to:
http://maven.apache.org/release-notes.html

* MNG-3118 - Test-classes should come before classes in the classpath.
This may slightly alter behavior of tests. The test-classes is now
included first in the classpath to allow test resources to override
normal runtime ones. 

-Original Message-
From: Ryan Moquin [mailto:[EMAIL PROTECTED] 
Sent: Thursday, November 29, 2007 1:45 PM
To: Maven Users List
Subject: Does Maven 2.0.8 put test dependencies first in classpath?

So if I have a test dependency I include that is meant to override
configuration files in a subproject I am building, should the test jar
dependency override the compile time dependencies in the project being
built?  I was hoping this is how 2.0.8 would behave, but either it's
not, or I have an error somewhere.. I want to confirm this before I
spend a time of time troubleshooting it.

Thanks.

Visit our website at http://www.ubs.com

This message contains confidential information and is intended only
for the individual named.  If you are not the named addressee you
should not disseminate, distribute or copy this e-mail.  Please
notify the sender immediately by e-mail if you have received this
e-mail by mistake and delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free
as information could be intercepted, corrupted, lost, destroyed,
arrive late or incomplete, or contain viruses.  The sender therefore
does not accept liability for any errors or omissions in the contents
of this message which arise as a result of e-mail transmission.  If
verification is required please request a hard-copy version.  This
message is provided for informational purposes and should not be
construed as a solicitation or offer to buy or sell any securities or
related financial instruments.


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



dependency:analyze problem when using constants defined in an interface from a different module

2007-11-29 Thread Iker Almandoz
Hi everyone,

I am using maven 2.0.7 with dependency plugin versoin 2.0-alpha-4.

I have 2 projects as seen in the end of the e-mail (This are some test files
to reproduce the problem)
My first project contains a single interface that defines a String constant.
My second project, uses the String constant from my first project.

I am having issues with the dependency:analyze goal...
In all my projects, i fail the build if there is either an unused declared
dependency or an used undeclared dependency using
build
plugins
 plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-dependency-plugin/artifactId
executions
  execution
idanalyze/id
phasepackage/phase
goals
  goalanalyze/goal
/goals
configuration
failBuildtrue/failBuild
ignoreDirectfalse/ignoreDirect
/configuration
  /execution
/executions
  /plugin
/plugins
  /build


However, in the example below, i can not use the dependency  plugin to
achieve this..

If i add the dependency from project 2 to project 1, i get:
[INFO] [dependency:analyze {execution: analyze}]
[INFO] Used declared dependencies:
[INFO]None
[INFO] Used undeclared dependencies:
[WARNING]None
[INFO] Unused declared dependencies:
[INFO]test:project1:jar:1.0-SNAPSHOT:compile
[WARNING] Potential problems discovered.


If i remove the supposedly unused dependency, then I get a compile error:
[INFO]

[ERROR] BUILD FAILURE
[INFO]

[INFO] Compilation failure
C:\ASSIA\development\maven_bug\project2\src\main\java\project2\NamesUser.java:[6
,24] package project1 does not exist

C:\ASSIA\development\maven_bug\project2\src\main\java\project2\NamesUser.java:[6
,24] package project1 does not exist


Any help would be greatly appreciated,

Regards,
Iker



Project 1:
pom.xml:
project
  modelVersion4.0.0/modelVersion
  groupIdtest/groupId
  artifactIdproject1/artifactId
  packagingjar/packaging
  version1.0-SNAPSHOT/version
/project

1 source file:

package project1;

public interface Names {
/** name */
String NAME = name;
}



Project 2:
project
  modelVersion4.0.0/modelVersion
  groupIdtest/groupId
  artifactIdproject2/artifactId
  packagingjar/packaging
  version1.0-SNAPSHOT/version

  dependencies
dependency
  groupIdtest/groupId
  artifactIdproject1/artifactId
  version1.0-SNAPSHOT/version
  /dependency
  /dependencies
/project


and 1 source file:
package project2;

public interface NamesUser {

  String temp = project1.Names.NAME;
}


Re: Maven Sites

2007-11-29 Thread Dennis Lundberg

What is it that is not working?

Morgovsky, Alexander (US - Glen Mills) wrote:

Could someone please explain to properly create multi-module sites in
Maven 2?  I have tried calling mvn site:site (custom site goals)
site:deploy site:site (custom site goals), and duplicating calls so that
my site would work, but it does not.  I understand that the parent site
gets generated before the child sites do, so the result if false,
however, I do not know the final correct way of properly generating a
multi-module Maven 2 site, please assist if you may. 



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



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




--
Dennis Lundberg

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



Re: Does Maven 2.0.8 put test dependencies first in classpath?

2007-11-29 Thread Ryan Moquin
But I mean, if I had a subproject that generates a jar file containing test
resources and in include it in another project as a test scoped dependency,
will those classes also be first in the classpath since they are an included
test resource?

On Nov 29, 2007 2:04 PM, [EMAIL PROTECTED] wrote:

 It's supposed to:
 http://maven.apache.org/release-notes.html

 * MNG-3118 - Test-classes should come before classes in the classpath.
 This may slightly alter behavior of tests. The test-classes is now
 included first in the classpath to allow test resources to override
 normal runtime ones.

 -Original Message-
 From: Ryan Moquin [mailto:[EMAIL PROTECTED]
 Sent: Thursday, November 29, 2007 1:45 PM
 To: Maven Users List
 Subject: Does Maven 2.0.8 put test dependencies first in classpath?

 So if I have a test dependency I include that is meant to override
 configuration files in a subproject I am building, should the test jar
 dependency override the compile time dependencies in the project being
 built?  I was hoping this is how 2.0.8 would behave, but either it's
 not, or I have an error somewhere.. I want to confirm this before I
 spend a time of time troubleshooting it.

 Thanks.

 Visit our website at http://www.ubs.com

 This message contains confidential information and is intended only
 for the individual named.  If you are not the named addressee you
 should not disseminate, distribute or copy this e-mail.  Please
 notify the sender immediately by e-mail if you have received this
 e-mail by mistake and delete this e-mail from your system.

 E-mail transmission cannot be guaranteed to be secure or error-free
 as information could be intercepted, corrupted, lost, destroyed,
 arrive late or incomplete, or contain viruses.  The sender therefore
 does not accept liability for any errors or omissions in the contents
 of this message which arise as a result of e-mail transmission.  If
 verification is required please request a hard-copy version.  This
 message is provided for informational purposes and should not be
 construed as a solicitation or offer to buy or sell any securities or
 related financial instruments.


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




RE: Does Maven 2.0.8 put test dependencies first in classpath?

2007-11-29 Thread Blue . Thomas
Ah, I misunderstood.  Try running 'mvn test -X', you'll be able to see
the classpath and verify (look for [DEBUG]   (f) classpathElements)

-Original Message-
From: Ryan Moquin [mailto:[EMAIL PROTECTED] 
Sent: Thursday, November 29, 2007 2:49 PM
To: Maven Users List
Subject: Re: Does Maven 2.0.8 put test dependencies first in classpath?

But I mean, if I had a subproject that generates a jar file containing
test resources and in include it in another project as a test scoped
dependency, will those classes also be first in the classpath since they
are an included test resource?

On Nov 29, 2007 2:04 PM, [EMAIL PROTECTED] wrote:

 It's supposed to:
 http://maven.apache.org/release-notes.html

 * MNG-3118 - Test-classes should come before classes in the classpath.
 This may slightly alter behavior of tests. The test-classes is now 
 included first in the classpath to allow test resources to override 
 normal runtime ones.

 -Original Message-
 From: Ryan Moquin [mailto:[EMAIL PROTECTED]
 Sent: Thursday, November 29, 2007 1:45 PM
 To: Maven Users List
 Subject: Does Maven 2.0.8 put test dependencies first in classpath?

 So if I have a test dependency I include that is meant to override 
 configuration files in a subproject I am building, should the test jar

 dependency override the compile time dependencies in the project being

 built?  I was hoping this is how 2.0.8 would behave, but either it's 
 not, or I have an error somewhere.. I want to confirm this before I 
 spend a time of time troubleshooting it.

 Thanks.

 Visit our website at http://www.ubs.com

 This message contains confidential information and is intended only 
 for the individual named.  If you are not the named addressee you 
 should not disseminate, distribute or copy this e-mail.  Please notify

 the sender immediately by e-mail if you have received this e-mail by 
 mistake and delete this e-mail from your system.

 E-mail transmission cannot be guaranteed to be secure or error-free as

 information could be intercepted, corrupted, lost, destroyed, arrive 
 late or incomplete, or contain viruses.  The sender therefore does not

 accept liability for any errors or omissions in the contents of this 
 message which arise as a result of e-mail transmission.  If 
 verification is required please request a hard-copy version.  This 
 message is provided for informational purposes and should not be 
 construed as a solicitation or offer to buy or sell any securities or 
 related financial instruments.


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



Visit our website at http://www.ubs.com

This message contains confidential information and is intended only
for the individual named.  If you are not the named addressee you
should not disseminate, distribute or copy this e-mail.  Please
notify the sender immediately by e-mail if you have received this
e-mail by mistake and delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free
as information could be intercepted, corrupted, lost, destroyed,
arrive late or incomplete, or contain viruses.  The sender therefore
does not accept liability for any errors or omissions in the contents
of this message which arise as a result of e-mail transmission.  If
verification is required please request a hard-copy version.  This
message is provided for informational purposes and should not be
construed as a solicitation or offer to buy or sell any securities or
related financial instruments.


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



Re: Does Maven 2.0.8 put test dependencies first in classpath?

2007-11-29 Thread Ryan Moquin
Oh really?  Wish I would have seen that option sooner.  Thanks! I'll go
look.

On Nov 29, 2007 2:58 PM, [EMAIL PROTECTED] wrote:

 Ah, I misunderstood.  Try running 'mvn test -X', you'll be able to see
 the classpath and verify (look for [DEBUG]   (f) classpathElements)

 -Original Message-
 From: Ryan Moquin [mailto:[EMAIL PROTECTED]
 Sent: Thursday, November 29, 2007 2:49 PM
 To: Maven Users List
 Subject: Re: Does Maven 2.0.8 put test dependencies first in classpath?

 But I mean, if I had a subproject that generates a jar file containing
 test resources and in include it in another project as a test scoped
 dependency, will those classes also be first in the classpath since they
 are an included test resource?

 On Nov 29, 2007 2:04 PM, [EMAIL PROTECTED] wrote:

  It's supposed to:
  http://maven.apache.org/release-notes.html
 
  * MNG-3118 - Test-classes should come before classes in the classpath.
  This may slightly alter behavior of tests. The test-classes is now
  included first in the classpath to allow test resources to override
  normal runtime ones.
 
  -Original Message-
  From: Ryan Moquin [mailto:[EMAIL PROTECTED]
  Sent: Thursday, November 29, 2007 1:45 PM
  To: Maven Users List
  Subject: Does Maven 2.0.8 put test dependencies first in classpath?
 
  So if I have a test dependency I include that is meant to override
  configuration files in a subproject I am building, should the test jar

  dependency override the compile time dependencies in the project being

  built?  I was hoping this is how 2.0.8 would behave, but either it's
  not, or I have an error somewhere.. I want to confirm this before I
  spend a time of time troubleshooting it.
 
  Thanks.
 
  Visit our website at http://www.ubs.com
 
  This message contains confidential information and is intended only
  for the individual named.  If you are not the named addressee you
  should not disseminate, distribute or copy this e-mail.  Please notify

  the sender immediately by e-mail if you have received this e-mail by
  mistake and delete this e-mail from your system.
 
  E-mail transmission cannot be guaranteed to be secure or error-free as

  information could be intercepted, corrupted, lost, destroyed, arrive
  late or incomplete, or contain viruses.  The sender therefore does not

  accept liability for any errors or omissions in the contents of this
  message which arise as a result of e-mail transmission.  If
  verification is required please request a hard-copy version.  This
  message is provided for informational purposes and should not be
  construed as a solicitation or offer to buy or sell any securities or
  related financial instruments.
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 

 Visit our website at http://www.ubs.com

 This message contains confidential information and is intended only
 for the individual named.  If you are not the named addressee you
 should not disseminate, distribute or copy this e-mail.  Please
 notify the sender immediately by e-mail if you have received this
 e-mail by mistake and delete this e-mail from your system.

 E-mail transmission cannot be guaranteed to be secure or error-free
 as information could be intercepted, corrupted, lost, destroyed,
 arrive late or incomplete, or contain viruses.  The sender therefore
 does not accept liability for any errors or omissions in the contents
 of this message which arise as a result of e-mail transmission.  If
 verification is required please request a hard-copy version.  This
 message is provided for informational purposes and should not be
 construed as a solicitation or offer to buy or sell any securities or
 related financial instruments.


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




maven-jar-plugin excludes not working

2007-11-29 Thread pdelaney

Hello;

I am building an executable jar file and I am trying to remove my
database.properties file from the jar because I want to control the
properties outside of the jar file.

In my build I execute  mvn package  I have the maven-dependency-plugin part
of the lifecycle to get all of my .class files into the target/classes
directory.   In that directory is my database.properties file.

Next the directory basically gets jared up via the maven-jar-plugin.   I
cannot seem to get the jar plugin to remove or not put the
database.properties into the jar.  Here is my jar plugin definition.  Any
help would be appreciated. 

plugin
groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-jar-plugin/artifactId
 configuration
archive
manifest
 addClasspathtrue/addClasspath
  
mainClasscom.putnam.fams.batch.BatchProcessMain/mainClass
  /manifest
  /archive
  
outputDirectory${project.build.directory}/outputDirectory
   excludeGroupIdsjunit/excludeGroupIds
excludes**/database.properties/excludes
/configuration
/plugin

The database.properties in the target/classes/database.properties directory
before jar happens.

In the excludes I've tried 
excludes**/database.properties/excludes
excludes**/*database.properties/excludes
excludesdatabase.properties/excludes

Nothing seems to work.  Is this a bug that anyone knows about ?
Thanks
Peter
-- 
View this message in context: 
http://www.nabble.com/maven-jar-plugin-%3Cexcludes%3E-not-working-tf4899585s177.html#a14033720
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: maven2 with seam archetype

2007-11-29 Thread Siarhei Dudzin
This is most likely due to conflict of xml parser you try to deploy with the
one in JBoss libraries. Remove it from the archive.
For the questions regarding the archetype you can contact the author of the
library you are trying to use I don't think it's much known here.

And no there is no other archetype that I know of.

Michael Yuan has a blog with examples
http://www.michaelyuan.com/blog/category/seam/ it requires some refactoring
(easy if you're familiar with maven and dependency mechanisms).

On 11/29/07, Érico Teixeira [EMAIL PROTECTED] wrote:

 I'm trying to deploy a sample app from the current site :
 http://software.softeu.cz/seam/usage.html

 When I run the command mvn jboss:deploy -e
 I get the error :
 [INFO] No server specified for authentication - using defaults
 [INFO]
 
 [ERROR] BUILD ERROR
 [INFO]
 
 [INFO] Mojo error occurred: Server returned HTTP response code: 505 for
 URL: http://localhost:8080/jmx-console/
 HtmlAdaptor?action=invokeOpByNamename=
 jboss.system:service%3DMainDeployermethodName=deployargType=java.net.U
 RLarg0=file:C:\java\helloApp\target/helloApp.war

 If I try to copy and paste the target war file to
 %JBOSS_HOME%\server\default\deploy I get the following error in JBoss log :
 ERROR 
 [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/helloApp]]
 Exception sending context initialized event to listener instance of class
 org.jboss.web.jsf.integration.config.JBossJSFConfigureListener
 java.lang.ClassCastException: org.apache.xerces.jaxp.SAXParserFactoryImpl

 I'm trying to run this sample to use Seam with Maven

 Is there any other sample or archetype to use seam with maven ?

 -
 Get easy, one-click access to your favorites.  Make Yahoo! your homepage.


Re: maven-jar-plugin excludes not working

2007-11-29 Thread Dennis Lundberg

It's here:
http://jira.codehaus.org/browse/MJAR-30

pdelaney wrote:

Hello;

I am building an executable jar file and I am trying to remove my
database.properties file from the jar because I want to control the
properties outside of the jar file.

In my build I execute  mvn package  I have the maven-dependency-plugin part
of the lifecycle to get all of my .class files into the target/classes
directory.   In that directory is my database.properties file.

Next the directory basically gets jared up via the maven-jar-plugin.   I
cannot seem to get the jar plugin to remove or not put the
database.properties into the jar.  Here is my jar plugin definition.  Any
help would be appreciated. 


plugin
groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-jar-plugin/artifactId
 configuration
archive
manifest
 addClasspathtrue/addClasspath
  
mainClasscom.putnam.fams.batch.BatchProcessMain/mainClass

  /manifest
  /archive
		  
outputDirectory${project.build.directory}/outputDirectory

   excludeGroupIdsjunit/excludeGroupIds
excludes**/database.properties/excludes
/configuration
/plugin

The database.properties in the target/classes/database.properties directory
before jar happens.

In the excludes I've tried 
excludes**/database.properties/excludes

excludes**/*database.properties/excludes
excludesdatabase.properties/excludes

Nothing seems to work.  Is this a bug that anyone knows about ?
Thanks
Peter



--
Dennis Lundberg

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



getting the selected version from a range

2007-11-29 Thread deckrider
Is there some way for me to access the selected version from the range
that I put in my pom?

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



Injecting resources into a project

2007-11-29 Thread /U

I am using Maven 2.0.4. 

I have a project A which has resource R1 and R2:
   A/src/main/resources/
/R1
/R2

I have another project at the same level, say B.
I need a plugin which would copy R1 and R2 from A/src/main/resources
into a specified directory X of project B:

 $ cd B
 $ ls -R src/main/resources
 $ mvn insert-resources:insert-resources
 [...]
 $ ls -R src/main/resources
  src/main/resources/R1
  src/main/resources/R2
 $

Is there a plugin which would do this? 

If not, I am willing to write a plugin; I just am not sure how to 
pull R1 and R2 from A into B.

Would I just have project A package R1 and R2 into a jarfile,
put a dependency in B on A.jar and extract contents of A.jar in
my plugin?

Pl help,

/U
-- 
View this message in context: 
http://www.nabble.com/Injecting-resources-into-a-project-tf4900782s177.html#a14037850
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: no net in java.library.path

2007-11-29 Thread ozymandias


Wayne Fay wrote:
 
 What OS? What Java JDK version? What Maven version?
 

OS - Windows XP 
JDK - 1.6.0_03 
Maven - 2.0.7 


Wayne Fay wrote:
 
 Can you try running mvn with the -X parameter, to capture the full
 debug output?
 

Here is the full debug output.  This happens when I try to run ANY command
that I have not yet run: 

mvn -X clean
+ Error stacktraces are turned on.
Maven version: 2.0.7
Java version: 1.6.0_03
OS name: windows xp version: 5.1 arch: x86
[DEBUG] Building Maven user-level plugin registry from: 'C:\Documents and
Settin
gs\Matthew\.m2\plugin-registry.xml'
[DEBUG] Building Maven global-level plugin registry from:
'C:\Tools\maven-2.0.7\
bin\..\conf\plugin-registry.xml'
[INFO] Scanning for projects...
[INFO]
-
---
[INFO] Building dubbelty-infrastructure
[INFO]task-segment: [clean]
[INFO]
-
---
[INFO] artifact org.apache.maven.plugins:maven-clean-plugin: checking for
update
s from central
[INFO]

[ERROR] FATAL ERROR
[INFO]

[INFO] no net in java.library.path
[INFO]

[DEBUG] Trace
java.lang.UnsatisfiedLinkError: no net in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1682)
at java.lang.Runtime.loadLibrary0(Runtime.java:823)
at java.lang.System.loadLibrary(System.java:1030)
at
sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:50)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.PlainSocketImpl.clinit(PlainSocketImpl.java:82)
at java.net.Socket.init(Socket.java:117)
at sun.net.NetworkClient.doConnect(NetworkClient.java:144)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:394)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:529)
at sun.net.www.http.HttpClient.init(HttpClient.java:233)
at sun.net.www.http.HttpClient.New(HttpClient.java:306)
at sun.net.www.http.HttpClient.New(HttpClient.java:323)
at
sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLC
onnection.java:788)
at
sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConne
ction.java:729)
at
sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection
.java:654)
at
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLCon
nection.java:977)
at
org.apache.maven.wagon.providers.http.LightweightHttpWagon.fillInputD
ata(LightweightHttpWagon.java:83)
at org.apache.maven.wagon.StreamWagon.get(StreamWagon.java:68)
at
org.apache.maven.artifact.manager.DefaultWagonManager.getRemoteFile(D
efaultWagonManager.java:462)
at
org.apache.maven.artifact.manager.DefaultWagonManager.getArtifactMeta
data(DefaultWagonManager.java:363)
at
org.apache.maven.artifact.repository.metadata.DefaultRepositoryMetada
taManager.resolveAlways(DefaultRepositoryMetadataManager.java:364)
at
org.apache.maven.artifact.repository.metadata.DefaultRepositoryMetada
taManager.resolve(DefaultRepositoryMetadataManager.java:97)
at
org.apache.maven.artifact.transform.AbstractVersionTransformation.res
olveVersion(AbstractVersionTransformation.java:65)
at
org.apache.maven.artifact.transform.LatestArtifactTransformation.tran
sformForResolve(LatestArtifactTransformation.java:41)
at
org.apache.maven.artifact.transform.DefaultArtifactTransformationMana
ger.transformForResolve(DefaultArtifactTransformationManager.java:57)
at
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(De
faultArtifactResolver.java:114)
at
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(De
faultArtifactResolver.java:73)
at
org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepo
sitory(DefaultMavenProjectBuilder.java:526)
at
org.apache.maven.project.DefaultMavenProjectBuilder.buildFromReposito
ry(DefaultMavenProjectBuilder.java:234)
at
org.apache.maven.project.artifact.MavenMetadataSource.retrieve(MavenM
etadataSource.java:105)
at
org.apache.maven.plugin.version.DefaultPluginVersionManager.resolveMe
taVersion(DefaultPluginVersionManager.java:672)
at
org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePl
uginVersion(DefaultPluginVersionManager.java:186)
at
org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePl
uginVersion(DefaultPluginVersionManager.java:90)
at
org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPlug
inManager.java:166)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(Defa
ultLifecycleExecutor.java:1257)
at

Re: Maven Sites

2007-11-29 Thread Morgovsky, Alexander (US - Glen Mills)
Hello.  Calling mvn site:site site:deploy on a multi-module POM produces
a parent site with no values for children, because the parent is
generated with values before the children are created, which creates no
values for children in the parent. 


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


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


Re: no net in java.library.path

2007-11-29 Thread Wayne Fay
This seems to be a JDK issue for you, not a Maven issue (IMO). The
error occurs in an internal JDK class/library. You'll have to see if
Sun has this posted in their bug db.

Can you try a different JDK version eg 1.5.x or a later 1.6 build?

Wayne

On 11/29/07, ozymandias [EMAIL PROTECTED] wrote:


 Wayne Fay wrote:
 
  What OS? What Java JDK version? What Maven version?
 

 OS - Windows XP
 JDK - 1.6.0_03
 Maven - 2.0.7


 Wayne Fay wrote:
 
  Can you try running mvn with the -X parameter, to capture the full
  debug output?
 

 Here is the full debug output.  This happens when I try to run ANY command
 that I have not yet run:

 mvn -X clean
 + Error stacktraces are turned on.
 Maven version: 2.0.7
 Java version: 1.6.0_03
 OS name: windows xp version: 5.1 arch: x86
 [DEBUG] Building Maven user-level plugin registry from: 'C:\Documents and
 Settin
 gs\Matthew\.m2\plugin-registry.xml'
 [DEBUG] Building Maven global-level plugin registry from:
 'C:\Tools\maven-2.0.7\
 bin\..\conf\plugin-registry.xml'
 [INFO] Scanning for projects...
 [INFO]
 -
 ---
 [INFO] Building dubbelty-infrastructure
 [INFO]task-segment: [clean]
 [INFO]
 -
 ---
 [INFO] artifact org.apache.maven.plugins:maven-clean-plugin: checking for
 update
 s from central
 [INFO]
 
 [ERROR] FATAL ERROR
 [INFO]
 
 [INFO] no net in java.library.path
 [INFO]
 
 [DEBUG] Trace
 java.lang.UnsatisfiedLinkError: no net in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1682)
at java.lang.Runtime.loadLibrary0(Runtime.java:823)
at java.lang.System.loadLibrary(System.java:1030)
at
 sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:50)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.PlainSocketImpl.clinit(PlainSocketImpl.java:82)
at java.net.Socket.init(Socket.java:117)
at sun.net.NetworkClient.doConnect(NetworkClient.java:144)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:394)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:529)
at sun.net.www.http.HttpClient.init(HttpClient.java:233)
at sun.net.www.http.HttpClient.New(HttpClient.java:306)
at sun.net.www.http.HttpClient.New(HttpClient.java:323)
at
 sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLC
 onnection.java:788)
at
 sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConne
 ction.java:729)
at
 sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection
 .java:654)
at
 sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLCon
 nection.java:977)
at
 org.apache.maven.wagon.providers.http.LightweightHttpWagon.fillInputD
 ata(LightweightHttpWagon.java:83)
at org.apache.maven.wagon.StreamWagon.get(StreamWagon.java:68)
at

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



Re: Problem with deletion of artifacts

2007-11-29 Thread Brett Porter
Sorry, could you clarify - this has resolved the issue then?

On 29/11/2007, Arnaud Bailly [EMAIL PROTECTED] wrote:

 Hello,
 No, not sure we did it in the right order. I will check. Anyway, things seem
 fixed in 1.0 as we have seen the deletion update browser. But then putting
 the artifact back did not refresh the browser. And I just checked we did it
 in right order.

 Thanks for your answer

 Arnaud Bailly


 Brett Porter wrote:
 
  do you rescan both the repository and the database (in that order)?
 
  What do you mean by update consumers?
 
  - Brett
 
  On 29/11/2007, Arnaud Bailly [EMAIL PROTECTED] wrote:
 
  Hello,
  We are using archiva 1.0-beta-4 and have problems with artifact deletion,
  although this seems to have been resolved in 1.0-beta-3 according to
  Jira.
  The issue is:
   1. I delete an artifact's directory from the FS
   2. I do a rescan and update consumers
   3. The artifact still appears in the index file
 
  Thanks
 
  Arnaud Bailly
  --
  View this message in context:
  http://www.nabble.com/Problem-with-deletion-of-artifacts-tf4895968.html#a14022080
  Sent from the archiva-users mailing list archive at Nabble.com.
 
 
 
 
  --
  Brett Porter
  Blog: http://www.devzuz.org/blogs/bporter/
 
 

 --
 View this message in context: 
 http://www.nabble.com/Problem-with-deletion-of-artifacts-tf4895968.html#a14024588
 Sent from the archiva-users mailing list archive at Nabble.com.




-- 
Brett Porter
Blog: http://www.devzuz.org/blogs/bporter/


Re: Maven Sites

2007-11-29 Thread Dion Gillard
This is too funny to pass up.

On 11/30/07, Morgovsky, Alexander (US - Glen Mills)
[EMAIL PROTECTED] wrote:
 This message (including any attachments) contains confidential information 
 intended for a specific individual and purpose, and is protected by law.  If 
 you are not the intended recipient, you should delete this message.


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



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

Any receipt of this message, or the taking of any action based on
receipt of it, is strictly prohibited.

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



Re: Maven Sites

2007-11-29 Thread Marat Radchenko
sorry, mvn site-deploy

2007/11/30, Marat Radchenko [EMAIL PROTECTED]:
 please try mvn site deploy instead.

 2007/11/30, Morgovsky, Alexander (US - Glen Mills) [EMAIL PROTECTED]:
  Hello.  Calling mvn site:site site:deploy on a multi-module POM produces
  a parent site with no values for children, because the parent is
  generated with values before the children are created, which creates no
  values for children in the parent.
 
 
  This message (including any attachments) contains confidential information 
  intended for a specific individual and purpose, and is protected by law.  
  If you are not the intended recipient, you should delete this message.
 
 
  Any disclosure, copying, or distribution of this message, or the taking of 
  any action based on it, is strictly prohibited. [v.E.1]
 


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



Re: Maven Sites

2007-11-29 Thread Marat Radchenko
please try mvn site deploy instead.

2007/11/30, Morgovsky, Alexander (US - Glen Mills) [EMAIL PROTECTED]:
 Hello.  Calling mvn site:site site:deploy on a multi-module POM produces
 a parent site with no values for children, because the parent is
 generated with values before the children are created, which creates no
 values for children in the parent.


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


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


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