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


 
org.apache.maven.plugins
maven-dependency-plugin

  
analyze
package

  analyze


true
false

  

  

  


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:

  4.0.0
  test
  project1
  jar
  1.0-SNAPSHOT


1 source file:

package project1;

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



Project 2:

  4.0.0
  test
  project2
  jar
  1.0-SNAPSHOT

  

  test
  project1
  1.0-SNAPSHOT
  
  



and 1 source file:
package project2;

public interface NamesUser {

  String temp = project1.Names.NAME;
}


Re: Problem with Maven in build of Continuum 1.1-beta-3

2007-10-05 Thread Iker Almandoz
Providing the log entry that shows the maven command executed can help
narrow down the problem...
When i had this problem, the maven command showed

INFO   | jvm 1| 2007/09/30 20:27:23 | 2007-09-30 20:27:23,621
[pool-1-thread-1] INFO  ShellCommandHelper:default - Executing:
/bin/bash -c 'cd
/usr/local/continuum-1.1-beta-2/apps/continuum/webapp/WEB-INF/working-directory/279
&& /usr/local/bin/mvn --batch-mode --non-recursive -
Dcontinuum.project.lastBuild.state=3 -Dcontinuum.project.nextBuild.number=1"-
Dcontinuum.project.group.name=Aggregators " -
Dcontinuum.project.lastBuild.number=0 clean site site:deploy'

which lead to the deteciton that the group.name had spaces ( "-
Dcontinuum.project.group.name=Aggregators ")


Regards,
Iker

On 10/5/07, Paola26 <[EMAIL PROTECTED]> wrote:
>
>
> Emamanuel,
>  I verify my project and don't find trailing spaces...
>  So, the problems are differents.
> Tkanks for you help.
>
> Emmanuel Venisse wrote:
> >
> > I don't know if it is related but, check if your project group name have
> a
> > trailing space:
> >
> http://www.nabble.com/Error-when-project-group-has-trailing-spaces..-t4549392.html
> >
> > Emmanuel
> >
> > Paola26 a écrit :
> >> Hi,
> >>  I work with continuum, i have two differents versions installed in
> the
> >> same
> >> server, one is Continuum 1.0.3 this work in port 8080 , the other is
> >> Continuum 1.1-Beta-3, for both working with maven 2.0.7, and make build
> >> the
> >> same project.
> >>  With Continuum 1.0.3, i don't have a problem, the build made whith
> >> sucessful always, however with Continuum1.1-beta-3, the build is
> broken,
> >> the
> >> continuum 1.1-beta-3 send a error mensage about this :  constituent[0]:
> >> file:/usr/local/maven-2.0.7/lib/maven-core-2.0.7-uber.jar  , I ckeck my
> >> maven installation and this package exist, and build with continuum
> 1.0.3
> >>  I don't understand very good this mensage, please i need help,
> because I
> >> intent change my continuum.
> >>  This error mensage is in attachement.:
> >> ---
> >> constituent[0]: file:/usr/local/maven-2.0.7/lib/maven-
> core-2.0.7-uber.jar
> >> ---
> >> java.lang.StringIndexOutOfBoundsException: String index out of range:
> -1
> >>  at
> >> java.lang.AbstractStringBuilder.setLength(AbstractStringBuilder.java
> :146)
> >>  at java.lang.StringBuffer.setLength(StringBuffer.java:154)
> >>  at org.apache.maven.cli.MavenCli$CLIManager.cleanArgs(
> MavenCli.java:796)
> >>  at org.apache.maven.cli.MavenCli$CLIManager.parse(MavenCli.java
> :749)
> >>  at org.apache.maven.cli.MavenCli.main(MavenCli.java:98)
> >>  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >>  at
> >> sun.reflect.NativeMethodAccessorImpl.invoke(
> NativeMethodAccessorImpl.java:39)
> >>  at
> >> sun.reflect.DelegatingMethodAccessorImpl.invoke(
> DelegatingMethodAccessorImpl.java:25)
> >>  at java.lang.reflect.Method.invoke(Method.java:585)
> >>  at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java
> :315)
> >>  at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
> >>  at org.codehaus.classworlds.Launcher.mainWithExitCode(
> Launcher.java:430)
> >>  at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> >>
> >> Tks,
> >> Rgs
> >>
> >
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/Problem-with-Maven-in--build-of--Continuum-1.1-beta-3-tf4575939.html#a13063606
> Sent from the Continuum - Users mailing list archive at Nabble.com.
>
>


Re: Weird behavior in user management

2007-10-02 Thread Iker Almandoz
Hi Emmanuel,

I have gone over the exported files and have noted the following:
- uesrs.xml Guest user has no e-mail address assigned
- keys.xml does not show all the users (I guess because some have never used
the system so far)
- In rbac.xml all users are shown and all of them have a role assigned
If they can help you debug i could try to obfuscate project name / user
names and send you the 3 files such that you can take a look

Regarding the admin, i agree that the current behavior is normal... however,
if i do change a project group name, then i can not see those projects
anymore even with admin, which is the problem i was having in
continuum-1.1-beta-2 and is still happening in continuum-1.1-beta-3...(I
created a JIRA-1502 to reflect this).

Thanks a lot for all the effort on this project.  Continuum is a great tool
!!

Best regards,
Iker

On 10/2/07, Emmanuel Venisse <[EMAIL PROTECTED]> wrote:
>
> Do you have a user without role?
>
> About your admin, it's normal, an admin can do everything.
>
> Emmanuel
>
> Iker Almandoz a écrit :
> > Hi Emmanuel,
> >
> > I have updated to 1.1-beta-3 following the instructions in
> > http://maven.apache.org/continuum/guides/mini/guide-data-management.html
> >
> > The problem is gone as now my admin user can see all the projects.
> However,
> > i was not able to import the users.
> >
> > While trying to import the users database, i run into the following
> problem
> > which means that i could not import the users into the db...
> >
> > 15144 [main] INFO JPOX.RDBMS  - Validated 1 index(es) for table
> > USERSMANAGEMENTMODELLOMETADATA
> > Exception in thread "main" java.lang.NullPointerException
> > at
> >
> org.codehaus.plexus.redback.management.JdoDataManagementTool.restoreRBACDatabase
> > (JdoDataManagementTool.java:169)
> > at
> >
> org.apache.maven.continuum.management.redback.JdoDataManagementTool.restoreDatabase
> > (JdoDataManagementTool.java:93)
> > at
> > org.apache.maven.continuum.management.DataManagementCli.processDatabase(
> > DataManagementCli.java:243)
> > at org.apache.maven.continuum.management.DataManagementCli.main(
> > DataManagementCli.java:153)
> >
> > Any thoughts ?
> >
> > Regards,
> > Iker
> >
> >
> >
> >
> >
> >
> > On 10/1/07, Emmanuel Venisse <[EMAIL PROTECTED]> wrote:
> >> You can upgrade your continuum to 1.1-beta-3, some issues in redback
> >> (security framework) are fixed.
> >>
> >> Emmanuel
> >>
> >> Iker Almandoz a écrit :
> >>> Hi All,
> >>>
> >>> I'm using continuum-1.1-beta-2 with maven 7.
> >>>
> >>> I am running the system as admin and i am getting a project group
> twice
> >> when
> >>> i look at my permission list:
> >>>
> >>> * Project Administrator - Aggregators
> >>> * Project User - Aggregators
> >>> * Project Administrator - Aggregators
> >>> * Project Developer - Aggregators
> >>> * Project User - Aggregators
> >>> * Project Developer - Aggregators
> >>>
> >>> When i try to add a new project into this group, i am getting the
> >> following
> >>> error:
> >>>   * You are not authorized to access this page. Please contact your
> >>> administrator to be granted the appropriate permissions.
> >>>
> >>> However, i am the admin of the continuum installation.
> >>>
> >>> Here is part of my log:
> >>>
> >>>
> >>> INFO   | jvm 1| 2007/10/01 10:21:18 | 2007-10-01 10:21:18,818
> >>> [SocketListener0-0] INFO  DispatcherUtils- Unable to
> >> find '
> >>> webwork.multipart.saveDir' property setting. Defaulting to
> >>> javax.servlet.context.tempdir
> >>> INFO   | jvm 1| 2007/10/01 10:21:18 | 2007-10-01 10:21:18,821
> >>> [SocketListener0-0] WARN  MultiPartRequest   - Item is a
> >> file
> >>> upload of 0 size, ignoring
> >>> INFO   | jvm 1| 2007/10/01 10:21:18 | 2007-10-01 10:21:18,821
> >>> [SocketListener0-0] ERROR DispatcherUtils- Error
> setting
> >>> character encoding to 'UTF-8' - ignoring.
> >>> INFO   | jvm 1| 2007/10/01 10:21:18 |
> >> java.lang.IllegalStateException:
> >>> getReader() or getInputStream() called
> &g

Re: Error when project group has trailing spaces..

2007-10-01 Thread Iker Almandoz
Hi Emmanuel,

See below the whole output report

Thanks for the help,
Regards,
Iker

Online report :
http://continuum_server:8080/continuum/buildResult.action?buildId=1740&projectId=211

Build statistics:
  State: Failed
  Previous State: Failed
  Started at: Sun 30 Sep 2007 19:51:34 -0700
  Finished at: Sun 30 Sep 2007 19:51:37 -0700
  Total time: 2s
  Build Trigger: Forced
  Build Number: 0
  Exit code: 100
  Building machine hostname: localhost.localdomain
  Operating system : Linux(unknown)
  Java Home version :
  java version "1.5.0_08"
  Java(TM) 2 Runtime Environment, Standard Edition (build
1.5.0_08-b03)
  Java HotSpot(TM) Server VM (build 1.5.0_08-b03, mixed mode)

  Builder version :
  Maven version: 2.0.7
  Java version: 1.5.0_08
  OS name: "linux" version: "2.4.21-50.elsmp" arch: "i386"


SCM Changes:

Changed: no author @ no date
Comment: no comment
Files changed:
  /pom.xml ( no revision )
..

Dependencies Changes:

No dependencies changed


Test Summary:

Tests: 0
Failures: 0
Total time: 0


Output:

---
constituent[0]: file:/usr/local/maven/lib/maven-core-2.0.7-uber.jar
---
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.lang.AbstractStringBuilder.setLength(AbstractStringBuilder.java
:146)
at java.lang.StringBuffer.setLength(StringBuffer.java:154)
at org.apache.maven.cli.MavenCli$CLIManager.cleanArgs(MavenCli.java:796)
at org.apache.maven.cli.MavenCli$CLIManager.parse(MavenCli.java:749)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:98)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)





On 10/1/07, Emmanuel Venisse <[EMAIL PROTECTED]> wrote:
>
> What do you get in the build output?
>
> Emmanuel
>
> Iker Almandoz a écrit :
> > Hi All,
> >
> > I am using continuum 1.1-beta2 with maven 2.0.7.
> >
> > I am getting the following error when building one of my applications:
> >
> >
> 
> >
> > Output:
> >
> >
> 
> >
> > ---
> >
> > constituent[0]:
> > file:/usr/local/maven/lib/maven-core-2.0.7-uber.jar
> 
> >
> > ---
> >
> > java.lang.StringIndexOutOfBoundsException: String index out of range: -1
> >
> >   at java.lang.AbstractStringBuilder.setLength(
> > AbstractStringBuilder.java:146)
> >
> >   at java.lang.StringBuffer.setLength(StringBuffer.java:154)
> >
> >   at org.apache.maven.cli.MavenCli$CLIManager.cleanArgs(
> MavenCli.java
> > :796)
> >
> >   at org.apache.maven.cli.MavenCli$CLIManager.parse(MavenCli.java
> :749)
> >
> >   at org.apache.maven.cli.MavenCli.main(MavenCli.java:98)
> >
> >   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >
> >   at sun.reflect.NativeMethodAccessorImpl.invoke(
> > NativeMethodAccessorImpl.java:39)
> >
> >   at sun.reflect.DelegatingMethodAccessorImpl.invoke(
> > DelegatingMethodAccessorImpl.java:25)
> >
> >   at java.lang.reflect.Method.invoke(Method.java:585)
> >
> >   at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java
> :315)
> >
> >   at org.codehaus.classworlds.L

Weird behavior in user management

2007-10-01 Thread Iker Almandoz
Hi All,

I'm using continuum-1.1-beta-2 with maven 7.

I am running the system as admin and i am getting a project group twice when
i look at my permission list:

* Project Administrator - Aggregators
* Project User - Aggregators
* Project Administrator - Aggregators
* Project Developer - Aggregators
* Project User - Aggregators
* Project Developer - Aggregators

When i try to add a new project into this group, i am getting the following
error:
  * You are not authorized to access this page. Please contact your
administrator to be granted the appropriate permissions.

However, i am the admin of the continuum installation.

Here is part of my log:


INFO   | jvm 1| 2007/10/01 10:21:18 | 2007-10-01 10:21:18,818
[SocketListener0-0] INFO  DispatcherUtils- Unable to find '
webwork.multipart.saveDir' property setting. Defaulting to
javax.servlet.context.tempdir
INFO   | jvm 1| 2007/10/01 10:21:18 | 2007-10-01 10:21:18,821
[SocketListener0-0] WARN  MultiPartRequest   - Item is a file
upload of 0 size, ignoring
INFO   | jvm 1| 2007/10/01 10:21:18 | 2007-10-01 10:21:18,821
[SocketListener0-0] ERROR DispatcherUtils- Error setting
character encoding to 'UTF-8' - ignoring.
INFO   | jvm 1| 2007/10/01 10:21:18 | java.lang.IllegalStateException:
getReader() or getInputStream() called
INFO   | jvm 1| 2007/10/01 10:21:18 | at
org.mortbay.jetty.servlet.ServletHttpRequest.setCharacterEncoding(
ServletHttpRequest.java:602)
INFO   | jvm 1| 2007/10/01 10:21:18 | at
javax.servlet.ServletRequestWrapper.setCharacterEncoding(
ServletRequestWrapper.java:112)
INFO   | jvm 1| 2007/10/01 10:21:18 | at
com.opensymphony.webwork.dispatcher.DispatcherUtils.prepare(
DispatcherUtils.java:392)
INFO   | jvm 1| 2007/10/01 10:21:18 | at
com.opensymphony.webwork.dispatcher.FilterDispatcher.doFilter(
FilterDispatcher.java:160)
INFO   | jvm 1| 2007/10/01 10:21:18 | at
org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(
WebApplicationHandler.java:821)
INFO   | jvm 1| 2007/10/01 10:21:18 | at
com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java
:118)
INFO   | jvm 1| 2007/10/01 10:21:18 | at
com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java
:52)
INFO   | jvm 1| 2007/10/01 10:21:18 | at
org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(
WebApplicationHandler.java:821)
INFO   | jvm 1| 2007/10/01 10:21:18 | at
com.opensymphony.webwork.dispatcher.ActionContextCleanUp.doFilter(
ActionContextCleanUp.java:88)
INFO   | jvm 1| 2007/10/01 10:21:18 | at
org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(
WebApplicationHandler.java:821)
INFO   | jvm 1| 2007/10/01 10:21:18 | at
org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(
WebApplicationHandler.java:471)
INFO   | jvm 1| 2007/10/01 10:21:18 | at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:568)
INFO   | jvm 1| 2007/10/01 10:21:18 | at
org.mortbay.http.HttpContext.handle(HttpContext.java:1530)
INFO   | jvm 1| 2007/10/01 10:21:18 | at
org.mortbay.jetty.servlet.WebApplicationContext.handle(
WebApplicationContext.java:633)
INFO   | jvm 1| 2007/10/01 10:21:18 | at
org.mortbay.http.HttpContext.handle(HttpContext.java:1482)
INFO   | jvm 1| 2007/10/01 10:21:18 | at
org.mortbay.http.HttpServer.service(HttpServer.java:909)
INFO   | jvm 1| 2007/10/01 10:21:18 | at
org.mortbay.http.HttpConnection.service(HttpConnection.java:816)
INFO   | jvm 1| 2007/10/01 10:21:18 | at
org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:982)
INFO   | jvm 1| 2007/10/01 10:21:18 | at
org.mortbay.http.HttpConnection.handle(HttpConnection.java:833)
INFO   | jvm 1| 2007/10/01 10:21:18 | at
org.mortbay.http.SocketListener.handleConnection(SocketListener.java:244)
INFO   | jvm 1| 2007/10/01 10:21:18 | at
org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357)
INFO   | jvm 1| 2007/10/01 10:21:18 | at
org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534)
INFO   | jvm 1| 2007/10/01 10:21:18 | 2007-10-01 10:21:18,823
[SocketListener0-0] DEBUG MemoryStore- keysCacheCache:
keysCacheMemoryStore miss for fcd7b8abc5014db6b27279795e8a5862
INFO   | jvm 1| 2007/10/01 10:21:18 | 2007-10-01 10:21:18,823
[SocketListener0-0] DEBUG Cache  - keysCache cache -
Miss
INFO   | jvm 1| 2007/10/01 10:21:18 | 2007-10-01 10:21:18,826
[SocketListener0-0] DEBUG MemoryStore- keysCacheCache:
keysCacheMemoryStore miss for 6565ca2206354041b6ab9963fe682141
INFO   | jvm 1| 2007/10/01 10:21:18 | 2007-10-01 10:21:18,826
[SocketListener0-0] DEBUG Cache  - keysCache cache -
Miss
INFO   | jvm 1| 2007/10/01 10:21:18 | 2007-10-01 10:21:18,828
[SocketListener0-0] DE

Error when project group has trailing spaces..

2007-10-01 Thread Iker Almandoz
Hi All,

I am using continuum 1.1-beta2 with maven 2.0.7.

I am getting the following error when building one of my applications:



Output:



---

constituent[0]:
file:/usr/local/maven/lib/maven-core-2.0.7-uber.jar

---

java.lang.StringIndexOutOfBoundsException: String index out of range: -1

  at java.lang.AbstractStringBuilder.setLength(
AbstractStringBuilder.java:146)

  at java.lang.StringBuffer.setLength(StringBuffer.java:154)

  at org.apache.maven.cli.MavenCli$CLIManager.cleanArgs(MavenCli.java
:796)

  at org.apache.maven.cli.MavenCli$CLIManager.parse(MavenCli.java:749)

  at org.apache.maven.cli.MavenCli.main(MavenCli.java:98)

  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

  at sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:39)

  at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:25)

  at java.lang.reflect.Method.invoke(Method.java:585)

  at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)

  at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)

  at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java
:430)

  at org.codehaus.classworlds.Launcher.main(Launcher.java:375)







I am trying to build a file with pom with maven
targets mvn clean site site:deploy**

If I run the targets from the continuum working directory using maven
directly, the build is successful. However, if I try to force the build, I
get the above exception everytime



My guess is that the problem is happening because the group name has a
trailing space, in my case "Aggregators ".



This is what I get from the continuum log files



INFO   | jvm 1| 2007/09/30 20:27:23 | 2007-09-30 20:27:23,334
[pool-1-thread-1] INFO  BuildController:default- Performing action
execute-builder

INFO   | jvm 1| 2007/09/30 20:27:23 | 2007-09-30 20:27:23,621
[pool-1-thread-1] INFO  ShellCommandHelper:default - Executing:
/bin/bash -c 'cd
/usr/local/continuum-1.1-beta-2/apps/continuum/webapp/WEB-INF/working-directory/279
&& /usr/local/bin/mvn --batch-mode --non-recursive -
Dcontinuum.project.lastBuild.state=3 -Dcontinuum.project.nextBuild.number=1"-
Dcontinuum.project.group.name=Aggregators " -
Dcontinuum.project.lastBuild.number=0 clean site site:deploy'

INFO   | jvm 1| 2007/09/30 20:27:23 | 2007-09-30 20:27:23,622
[pool-1-thread-1] INFO  ShellCommandHelper:default - Working directory:
/usr/local/continuum-1.1-beta-2
/apps/continuum/webapp/WEB-INF/working-directory/279

INFO   | jvm 1| 2007/09/30 20:26:36 | 2007-09-30 20:26:36,214
[pool-1-thread-1] DEBUG ShellCommandHelper:default -
EnvironmentVariables [MAVEN_TERMINATE_CMD=on, DISPLAY=:0.0,
SSH_AUTH_SOCK=/tmp/ssh-Tow21658/agent.21658,
TOOLS_JAR=/usr/java/jdk1.5.0_08/lib/tools.jar, G_BROKEN_FILENAMES=1,
LESSOPEN=|/usr/bin/lesspipe.sh %s,
XFILESEARCHPATH=/usr/dt/app-defaults/%L/Dt,
PATH=.:/usr/local/ant/bin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/oracle/product/10.2.0/db_1/bin:/opt/SUNWappserver/bin:/home/tester/bin,
LOGNAME=tester, COLORTERM=gnome-terminal, SHLVL=3, HISTSIZE=1000,
ANT_HOME=/usr/local/ant, XAUTHORITY=/home/tester/.Xauthority,
GTK_RC_FILES=/etc/gtk/gtkrc:/home/tester/.gtkrc-1.2-gnome2,
TOMCAT_HOME=/usr/local/tomcat, INPUTRC=/etc/inputrc, SHELL=/bin/bash,
AXIS2_HOME=/usr/local/axis2, GNOME_DESKTOP_SESSION_ID=Default,
[EMAIL PROTECTED], HOSTNAME=localhost.localdomain, WRAPPER_BITS=32,
SESSION_MANAGER=local/localhost.localdomain:/tmp/.ICE-unix/21658,
SSH_ASKPASS=/usr/libexec/openssh/gnome-ssh-askpass,
WRAPPER_FILE_SEPARATOR=/, WINDOWID=29360196, MAIL=/var/spool/mail/tester,
LANG=en_US.UTF-8,
LS_COLORS=no=00:fi=00:di=00;34:ln=00;36:pi=40;33:so=00;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=00;32:*.cmd=00;32:*.exe=00;32:*.com=00;32:*.btm=00;32:*.bat=00;32:*.sh=00;32:*.csh=00;32:*.tar=00;31:*.tgz=00;31:*.arj=00;31:*.taz=00;31:*.lzh=00;31:*.zip=00;31:*.z=00;31:*.Z=00;31:*.gz=00;31:*.bz2=00;31:*.bz=00;31:*.tz=00;31:*.rpm=00;31:*.cpio=00;31:*.jpg=00;35:*.gif=00;35:*.bmp=00;35:*.xbm=00;35:*.xpm=00;35:*.png=00;35:*.tif=00;35:,
CVS_RSH=ssh,
LD_LIBRARY_PATH=/usr/java/jdk1.5.0_08/jre/lib/i386/server:/usr/java/jdk1.5.0_08/jre/lib/i386:/usr/java/jdk1.5.0_08/jre/../lib/i386,
OLDPWD=/usr/local/continuum/bin/linux-x86-32, HOME=/home/tester,
WRAPPER_ARCH=x86, PLEXUS_HOME=/usr/local/continuum,
PWD=/usr/local/continuum-1.1-beta-2/bin/linux-x86-32, CVSROOT=:
ext:[EMAIL PROTECTED]:/cvs, WRAPPER_OS=windows, WRAPPER_PATH_SEPARATOR=:,
J2EE_HOME=/opt/SUNWappserver, ORACLE_SID=SID,
PLEXUS_BASE=/usr/local/continuum, ORACLE_HOME=/oracle/prod

RE: Where is crimson-1.1.3 dependency coming from?

2007-09-28 Thread Iker Almandoz
dependency:tree is only supported by
maven-dependency-plugin-2.0-alpha-5-SNAPSHOT currently... you can add the
SNAPSHOT repository by adding the following to your pom.xml

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



Another option is to run the 'site' target and look at the dependency
report, 

Iker

-Original Message-
From: Mills, Blake S. [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 28, 2007 11:54 AM
To: Maven Users List
Subject: RE: Where is crimson-1.1.3 dependency coming from?

Hmmm.  Gotta love it. "Required goal not found: dependency:tree"

Maven downloaded maven-dependency-plugin-2.0-alpha-4.jar, but the goal
still won't work.

Forgive me for not loving the transitive dependencies when I can't even
track down where the dependencies are coming from.

Thx anyway Barrett.


-Original Message-
From: Barrett Nuzum [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 28, 2007 1:20 PM
To: Maven Users List
Subject: RE: Where is crimson-1.1.3 dependency coming from?

Blake:
 
Analyzing the Project Site Dependency report or running dependency:tree
(if available :( )
should be able to tell you which dependency is causing crimson to be
included.
 
Barrett
 
::   
Barrett Nuzum
Sr. Consultant
Direct: 918.640.4414
Fax: 972.789.1340 

Valtech Technologies, Inc.
5080 Spectrum Drive
Suite 700 West
Addison, Texas 75001
www.valtech.us 
Delivering Business Agility




From: Mills, Blake S. [mailto:[EMAIL PROTECTED]
Sent: Fri 9/28/2007 1:12 PM
To: users@maven.apache.org
Subject: Where is crimson-1.1.3 dependency coming from?



The jar crimson-1.1.3 is causing an exception.  When I manually remove
the jar from my WEB-INF/lib the exception goes away.  I can't find where
the dependency for crimson-1.1.3 is coming from.  Below is the
exception, maven version, jdk version, and pom.xml.

Exception:
org.springframework.beans.factory.BeanDefinitionStoreException: Parser
configuration exception parsing XML from ServletContext resource
[/WEB-INF/spring-servlet.xml]; nested exception is
javax.xml.parsers.ParserConfigurationException: Unable to validate using
XSD: Your JAXP provider
[EMAIL PROTECTED] does not
support XML Schema. Are you running on Java 1.4 or below with Apache
Crimson? Upgrade to Apache Xerces (or Java 1.5) for full XSD support.


Maven and jdk version:
Maven version: 2.0.7
Java version: 1.5.0_11
OS name: "windows xp" version: "5.1" arch: "x86"


pom.xml:
http://maven.apache.org/POM/4.0.0";
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd";>
  4.0.0
  com.myCompany.claims
  ITClaimsSite
  war
  1.0-SNAPSHOT
  ITClaimsSite Maven Webapp
  http://maven.apache.org  
 
  


org.springframework
spring
2.0.6


org.springmodules
spring-modules-validation
0.7

 


org.hibernate
hibernate
3.0.5




joda-time
joda-time
1.4




org.calendartag
calendartag
1.0.1




  junit
  junit
  3.8.1
  test




jfree
jfreechart
1.0.5


cewolf
cewolf
1.0


gnujaxp
gnujaxp



 


javax.servlet
servlet-api
2.4
provided


javax.servlet
jsp-api
2.0
provided


javax.servlet
jstl
1.1.2


taglibs
standard
1.1.2

  
 
  
ITClaimsSite


org.apache.maven.plugins
maven-compiler-plugin

1.5
1.5



  









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



RE: Code Coverage Plugins with Maven 2

2007-09-24 Thread Iker Almandoz
Matt, 
Cobertura 2.0 works ok for me...

My pom.xml has:

  
   

org.codehaus.mojo
cobertura-maven-plugin
2.0



That sets the cobertura version to 2.0 as the latest did not seem to work...

  
  

   
   org.codehaus.mojo
   cobertura-maven-plugin
   


Regards, 
Iker

-Original Message-
From: mraible [mailto:[EMAIL PROTECTED] 
Sent: Monday, September 24, 2007 9:57 AM
To: users@maven.apache.org
Subject: Code Coverage Plugins with Maven 2


AFAICT, the cobertura-maven-plugin (versions 2.0 and 2.1) doesn't work and
neither does the emma-maven-plugin in Mojo's sandbox. Has anyone had any
luck with either of these plugins? Is there an open source code-coverage
plugin that works with Maven 2? I know about Clover, but that's not open
source.

Using Emma and Cobertura with Ant seem to work great.

Thanks,

Matt
-- 
View this message in context:
http://www.nabble.com/Code-Coverage-Plugins-with-Maven-2-tf4510331s177.html#
a12863761
Sent from the Maven - Users mailing list archive at Nabble.com.


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


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



RE: NoClassDeFoundError running unit test

2007-09-11 Thread Iker Almandoz
Is your dependent class a 'test' class in project A or a 'main' class in
project A ?

In eclipse, are you importing project A or you have used 'mvn
eclipse:eclipse' to generate your dependencies?

Eclipse does not distinguish between test classpath and compile classpath so
that could be part of the issue...




-Original Message-
From: GAMBELLI Raffaele [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 11, 2007 7:26 AM
To: users@maven.apache.org
Subject: NoClassDeFoundError running unit test

I'm using Maven 2.0.7 
I have two project, let's call them A and B.
A has only external dependencies.
B has external dependencies, but is also dependent on project A.

Project B uses a class from Project A in a unit test. 

Running either "mvn test" or "mvn package"  from the project B level results
in a 
java.lang.NoClassDefFoundError (it can't found the class defined in project
A) during the unit test of project B. 

But, if I run directly unit test of project B from Eclipse, the unit test
completes successfully. Why?

Thanks in advance, regards.
Raffaele



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