You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by Robert Burrell Donkin <ro...@gmail.com> on 2007/11/10 08:52:20 UTC

[site] maven site is broken for JAMES server

the maven site generation for JAMES server is broken for me. it seems
that the master stage directory is not longer included. anyone know
why?

- robert

rob@akrotiri /opt/development/james-workspace $ mvn site
[INFO] Scanning for projects...
[INFO] Reactor build order:
[INFO]   Apache JAMES Server
[INFO]   Apache JAMES Server IMAP Api
[INFO]   Apache JAMES Server Core
[INFO]   Apache JAMES Server Imap Mailbox Library
[INFO]   Apache JAMES Server IMAP Codec Library
[INFO]   Apache JAMES Server IMAP Command Library
[INFO]   Apache JAMES Server Mordred Data Source Library
[INFO]   Apache JAMES Server SMTP function
[INFO]   Apache JAMES Server POP3 function
[INFO]   Apache JAMES Server NNTP function
[INFO]   Apache JAMES Server SpoolManager function
[INFO]   Apache JAMES Server RemoteManager function
[INFO]   Apache JAMES Server FetchMail function
[INFO]   Apache JAMES Server IMAP Mailbox Processor function
[INFO]   Apache JAMES Server Torque Mailbox Manager
[INFO]   Apache JAMES Server IMAP function
[INFO]   Apache JAMES Server *Experimental* IMAP function
[INFO]   Apache JAMES Server Phoenix Deployment
[INFO] ----------------------------------------------------------------------------
[INFO] Building Apache JAMES Server
[INFO]    task-segment: [site]
[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] 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] 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] 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] Preparing javadoc:javadoc
[INFO] ----------------------------------------------------------------------------
[INFO] Building Apache JAMES Server
[INFO] ----------------------------------------------------------------------------
[INFO] No goals needed for project - skipping
[INFO] ----------------------------------------------------------------------------
[INFO] Building Apache JAMES Server IMAP Api
[INFO] ----------------------------------------------------------------------------
[INFO] No goals needed for project - skipping
[INFO] ----------------------------------------------------------------------------
[INFO] Building Apache JAMES Server Core
[INFO] ----------------------------------------------------------------------------
[INFO] No goals needed for project - skipping
[INFO] ----------------------------------------------------------------------------
[INFO] Building Apache JAMES Server Imap Mailbox Library
[INFO] ----------------------------------------------------------------------------
[INFO] No goals needed for project - skipping
[INFO] ----------------------------------------------------------------------------
[INFO] Building Apache JAMES Server IMAP Codec Library
[INFO] ----------------------------------------------------------------------------
[INFO] No goals needed for project - skipping
[INFO] ----------------------------------------------------------------------------
[INFO] Building Apache JAMES Server IMAP Command Library
[INFO] ----------------------------------------------------------------------------
[INFO] No goals needed for project - skipping
[INFO] ----------------------------------------------------------------------------
[INFO] Building Apache JAMES Server Mordred Data Source Library
[INFO] ----------------------------------------------------------------------------
[INFO] No goals needed for project - skipping
[INFO] ----------------------------------------------------------------------------
[INFO] Building Apache JAMES Server SMTP function
[INFO] ----------------------------------------------------------------------------
[INFO] No goals needed for project - skipping
[INFO] ----------------------------------------------------------------------------
[INFO] Building Apache JAMES Server POP3 function
[INFO] ----------------------------------------------------------------------------
[INFO] No goals needed for project - skipping
[INFO] ----------------------------------------------------------------------------
[INFO] Building Apache JAMES Server NNTP function
[INFO] ----------------------------------------------------------------------------
[INFO] No goals needed for project - skipping
[INFO] ----------------------------------------------------------------------------
[INFO] Building Apache JAMES Server SpoolManager function
[INFO] ----------------------------------------------------------------------------
[INFO] No goals needed for project - skipping
[INFO] ----------------------------------------------------------------------------
[INFO] Building Apache JAMES Server RemoteManager function
[INFO] ----------------------------------------------------------------------------
[INFO] No goals needed for project - skipping
[INFO] ----------------------------------------------------------------------------
[INFO] Building Apache JAMES Server FetchMail function
[INFO] ----------------------------------------------------------------------------
[INFO] No goals needed for project - skipping
[INFO] ----------------------------------------------------------------------------
[INFO] Building Apache JAMES Server IMAP Mailbox Processor function
[INFO] ----------------------------------------------------------------------------
[INFO] No goals needed for project - skipping
[INFO] ----------------------------------------------------------------------------
[INFO] Building Apache JAMES Server Torque Mailbox Manager
[INFO] ----------------------------------------------------------------------------
[INFO] No goals needed for project - skipping
[INFO] ----------------------------------------------------------------------------
[INFO] Building Apache JAMES Server IMAP function
[INFO] ----------------------------------------------------------------------------
[INFO] No goals needed for project - skipping
[INFO] ----------------------------------------------------------------------------
[INFO] Building Apache JAMES Server *Experimental* IMAP function
[INFO] ----------------------------------------------------------------------------
[INFO] No goals needed for project - skipping
[INFO] ----------------------------------------------------------------------------
[INFO] Building Apache JAMES Server Phoenix Deployment
[INFO] ----------------------------------------------------------------------------
[INFO] No goals needed for project - skipping
[INFO] Preparing javadoc:test-javadoc
[INFO] ----------------------------------------------------------------------------
[INFO] Building Apache JAMES Server
[INFO] ----------------------------------------------------------------------------
[INFO] No goals needed for project - skipping
[INFO] ----------------------------------------------------------------------------
[INFO] Building Apache JAMES Server IMAP Api
[INFO] ----------------------------------------------------------------------------
[INFO] No goals needed for project - skipping
[INFO] ----------------------------------------------------------------------------
[INFO] Building Apache JAMES Server Core
[INFO] ----------------------------------------------------------------------------
[INFO] No goals needed for project - skipping
[INFO] ----------------------------------------------------------------------------
[INFO] Building Apache JAMES Server Imap Mailbox Library
[INFO] ----------------------------------------------------------------------------
[INFO] No goals needed for project - skipping
[INFO] ----------------------------------------------------------------------------
[INFO] Building Apache JAMES Server IMAP Codec Library
[INFO] ----------------------------------------------------------------------------
[INFO] No goals needed for project - skipping
[INFO] ----------------------------------------------------------------------------
[INFO] Building Apache JAMES Server IMAP Command Library
[INFO] ----------------------------------------------------------------------------
[INFO] No goals needed for project - skipping
[INFO] ----------------------------------------------------------------------------
[INFO] Building Apache JAMES Server Mordred Data Source Library
[INFO] ----------------------------------------------------------------------------
[INFO] No goals needed for project - skipping
[INFO] ----------------------------------------------------------------------------
[INFO] Building Apache JAMES Server SMTP function
[INFO] ----------------------------------------------------------------------------
[INFO] No goals needed for project - skipping
[INFO] ----------------------------------------------------------------------------
[INFO] Building Apache JAMES Server POP3 function
[INFO] ----------------------------------------------------------------------------
[INFO] No goals needed for project - skipping
[INFO] ----------------------------------------------------------------------------
[INFO] Building Apache JAMES Server NNTP function
[INFO] ----------------------------------------------------------------------------
[INFO] No goals needed for project - skipping
[INFO] ----------------------------------------------------------------------------
[INFO] Building Apache JAMES Server SpoolManager function
[INFO] ----------------------------------------------------------------------------
[INFO] No goals needed for project - skipping
[INFO] ----------------------------------------------------------------------------
[INFO] Building Apache JAMES Server RemoteManager function
[INFO] ----------------------------------------------------------------------------
[INFO] No goals needed for project - skipping
[INFO] ----------------------------------------------------------------------------
[INFO] Building Apache JAMES Server FetchMail function
[INFO] ----------------------------------------------------------------------------
[INFO] No goals needed for project - skipping
[INFO] ----------------------------------------------------------------------------
[INFO] Building Apache JAMES Server IMAP Mailbox Processor function
[INFO] ----------------------------------------------------------------------------
[INFO] No goals needed for project - skipping
[INFO] ----------------------------------------------------------------------------
[INFO] Building Apache JAMES Server Torque Mailbox Manager
[INFO] ----------------------------------------------------------------------------
[INFO] No goals needed for project - skipping
[INFO] ----------------------------------------------------------------------------
[INFO] Building Apache JAMES Server IMAP function
[INFO] ----------------------------------------------------------------------------
[INFO] No goals needed for project - skipping
[INFO] ----------------------------------------------------------------------------
[INFO] Building Apache JAMES Server *Experimental* IMAP function
[INFO] ----------------------------------------------------------------------------
[INFO] No goals needed for project - skipping
[INFO] ----------------------------------------------------------------------------
[INFO] Building Apache JAMES Server Phoenix Deployment
[INFO] ----------------------------------------------------------------------------
[INFO] No goals needed for project - skipping
[INFO] [site:site]
[WARNING] Unable to load parent project from repository: Could not
find the model file
'/opt/development/james-workspace/../james-project/project/server/pom.xml'.
for project unknown
[INFO] Skipped "About" report, file "index.html" already exists for
the English version.
[ERROR] VM #displayTree: error : too few arguments to macro. Wanted 2 got 0
[ERROR] VM #menuItem: error : too few arguments to macro. Wanted 1 got 0
[ERROR] Error parsing
/opt/development/james-workspace/src/site/xdoc/dns_configuration.xml:
line [-1] Error parsing the model.
org.apache.maven.doxia.parser.ParseException: Error parsing the model.
        at org.apache.maven.doxia.module.xdoc.XdocParser.parse(XdocParser.java:55)
        at org.apache.maven.doxia.DefaultDoxia.parse(DefaultDoxia.java:52)
        at org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.renderDocument(DefaultSiteRenderer.java:264)
        at org.apache.maven.doxia.siterenderer.DoxiaDocumentRenderer.renderDocument(DoxiaDocumentRenderer.java:43)
        at org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.renderModule(DefaultSiteRenderer.java:239)
        at org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.render(DefaultSiteRenderer.java:115)
        at org.apache.maven.plugins.site.SiteMojo.renderLocale(SiteMojo.java:124)
        at org.apache.maven.plugins.site.SiteMojo.execute(SiteMojo.java:92)
        at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:443)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:459)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:280)
        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)
Caused by: org.codehaus.plexus.util.xml.pull.XmlPullParserException:
end tag name </p> must match start tag name <strong> from line 60
(position: TEXT seen ...</strong> seconds.</p>... @60:382)
        at org.codehaus.plexus.util.xml.pull.MXParser.parseEndTag(MXParser.java:1686)
        at org.codehaus.plexus.util.xml.pull.MXParser.nextImpl(MXParser.java:1128)
        at org.codehaus.plexus.util.xml.pull.MXParser.next(MXParser.java:1090)
        at org.apache.maven.doxia.module.xdoc.XdocParser.parseXdoc(XdocParser.java:312)
        at org.apache.maven.doxia.module.xdoc.XdocParser.parse(XdocParser.java:51)
        ... 25 more
[INFO] Generate "JavaDocs" report.
Downloading: file:///opt/development/james-workspace/core-library/stage/org.apache.james/poms/mailet-3.0-SNAPSHOT.pom
Downloading: file:///opt/development/james-workspace/core-library/../stage/org.apache.james/poms/mailet-3.0-SNAPSHOT.pom
Downloading: http://people.apache.org/repo/m2-snapshot-repository/org/apache/james/mailet/3.0-SNAPSHOT/mailet-3.0-SNAPSHOT.pom
Downloading: file:///opt/development/james-workspace/core-library/stage/org.bouncycastle/poms/bcmail-jdk14-129.pom
Downloading: file:///opt/development/james-workspace/core-library/../stage/org.bouncycastle/poms/bcmail-jdk14-129.pom
Downloading: http://people.apache.org/repo/m2-ibiblio-rsync-repository/org/bouncycastle/bcmail-jdk14/129/bcmail-jdk14-129.pom
Downloading: file:///opt/development/james-workspace/core-library/stage/org.bouncycastle/poms/bcmail-jdk14-workaround-129.pom
Downloading: file:///opt/development/james-workspace/core-library/../stage/org.bouncycastle/poms/bcmail-jdk14-workaround-129.pom
Downloading: http://people.apache.org/repo/m2-ibiblio-rsync-repository/org/bouncycastle/bcmail-jdk14-workaround/129/bcmail-jdk14-workaround-129.pom
Downloading: file:///opt/development/james-workspace/core-library/stage/commons-collections/poms/commons-collections-3.0.pom
Downloading: file:///opt/development/james-workspace/core-library/../stage/commons-collections/poms/commons-collections-3.0.pom
Downloading: http://people.apache.org/repo/m2-ibiblio-rsync-repository/commons-collections/commons-collections/3.0/commons-collections-3.0.pom
Downloading: file:///opt/development/james-workspace/core-library/stage/commons-lang/poms/commons-lang-2.0.pom
Downloading: file:///opt/development/james-workspace/core-library/../stage/commons-lang/poms/commons-lang-2.0.pom
Downloading: http://people.apache.org/repo/m2-ibiblio-rsync-repository/commons-lang/commons-lang/2.0/commons-lang-2.0.pom
Downloading: file:///opt/development/james-workspace/core-library/stage/xerces/poms/xerces-2.0.2.pom
Downloading: file:///opt/development/james-workspace/core-library/../stage/xerces/poms/xerces-2.0.2.pom
Downloading: http://people.apache.org/repo/m2-ibiblio-rsync-repository/xerces/xerces/2.0.2/xerces-2.0.2.pom
[WARNING] While downloading xml-apis:xml-apis:2.0.2
  This artifact has been relocated to xml-apis:xml-apis:1.0.b2.


Downloading: file:///opt/development/james-workspace/core-library/stage/xpp3/poms/xpp3_min-1.1.3.4.O.pom
Downloading: file:///opt/development/james-workspace/core-library/../stage/xpp3/poms/xpp3_min-1.1.3.4.O.pom
Downloading: http://people.apache.org/repo/m2-ibiblio-rsync-repository/xpp3/xpp3_min/1.1.3.4.O/xpp3_min-1.1.3.4.O.pom
Downloading: file:///opt/development/james-workspace/imap-codec-library/stage/org.apache.james/jars/james-server-imap-api-3.0-SNAPSHOT-tests.jar
Downloading: file:///opt/development/james-workspace/imap-codec-library/../stage/org.apache.james/jars/james-server-imap-api-3.0-SNAPSHOT-tests.jar
Downloading: http://people.apache.org/repo/m2-snapshot-repository/org/apache/james/james-server-imap-api/3.0-SNAPSHOT/james-server-imap-api-3.0-SNAPSHOT-tests.jar
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to resolve artifact.

Missing:
----------
1) org.apache.james:james-server-imap-api:test-jar:tests:3.0-SNAPSHOT

  Try downloading the file manually from the project website.

  Then, install it using the command:
      mvn install:install-file -DgroupId=org.apache.james
-DartifactId=james-server-imap-api \
          -Dversion=3.0-SNAPSHOT -Dclassifier=tests
-Dpackaging=test-jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file
there:       mvn deploy:deploy-file -DgroupId=org.apache.james
-DartifactId=james-server-imap-api \
          -Dversion=3.0-SNAPSHOT -Dclassifier=tests
-Dpackaging=test-jar -Dfile=/path/to/file \
           -Durl=[url] -DrepositoryId=[id]

  Path to dependency:
        1) org.apache.james:james-server-imap-codec-library:jar:3.0-SNAPSHOT
        2) org.apache.james:james-server-imap-api:test-jar:tests:3.0-SNAPSHOT

----------
1 required artifact is missing.

for artifact:
  org.apache.james:james-server-imap-codec-library:jar:3.0-SNAPSHOT

from the specified remote repositories:
  central (http://repo1.maven.org/maven2),
  parent-james-stage-m1
(file:///opt/development/james-workspace/imap-codec-library/../stage),
  apache.snapshots (http://people.apache.org/repo/m2-snapshot-repository),
  local-james-stage-m1
(file:///opt/development/james-workspace/imap-codec-library/stage),
  apache.releases (http://people.apache.org/repo/m2-ibiblio-rsync-repository)


[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 25 seconds
[INFO] Finished at: Sat Nov 10 07:47:03 GMT 2007
[INFO] Final Memory: 34M/81M
[INFO] ------------------------------------------------------------------------

---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Re: [site] maven site is broken for JAMES server

Posted by Stefano Bagnara <ap...@bago.org>.
Robert Burrell Donkin ha scritto:
> On Nov 14, 2007 9:29 PM, Stefano Bagnara <ap...@bago.org> wrote:
>> Robert Burrell Donkin ha scritto:
>>>> Do you think that the test failure is a maven related issue?
>>> not sure - these are good tests but maven has a habit of getting into
>>> trouble with exotic test cases

Just to share my experience I never had maven specific problems with
unit testing. There may be issues with classloaders, but this most times
depend on badly architected tests and weird dependencies and classloader
requirements in the test (and this was not the case).

>> [...]
>> I'm going to check also ant and if it works here and I'll try to
>> understand what's strange in the tests to break them under eclipse and
>> maven.
> 
> run fine in eclipse for me. i'm on gentoo in GMT (which may be a factor).
> 
> they try to set the default locale in order to simulate a server
> running in that locale. the idea is to catch implicit localisation
> issues (for example, naive date formatting and parsing)
> 
> - robert

After debugging it the error was: Test Resource
'/org/apache/james/test/functional/imap/scripts/Welcome.test' not found.

I moved *.test files found in
experimental-seda-imap-function/src/test/java to
experimental-seda-imap-function/src/test/resources and everything seems
to work now.

I checked both mvn and ant and they successfully run the tests.

Stefano


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Re: [site] maven site is broken for JAMES server

Posted by Robert Burrell Donkin <ro...@gmail.com>.
On Nov 14, 2007 9:29 PM, Stefano Bagnara <ap...@bago.org> wrote:
> Robert Burrell Donkin ha scritto:
> > On Nov 12, 2007 12:54 AM, Stefano Bagnara <ap...@bago.org> wrote:
> >>>> can you try a "mvn package install" first and the the "mvn site"?
> >>> "mvn package install" fails on one of my new localisation unit tests.
> >>> basically, these swap the default Locale.
> >> Do you think that the test failure is a maven related issue?
> >
> > not sure - these are good tests but maven has a habit of getting into
> > trouble with exotic test cases
> >
> >> I disabled most tests in the experimental-seda-imap-function and some
> >> related imap tests in phoenix-deployment in order to be able to run the
> >> "mvn -Plocal install" command and I found a few issue I fixed (see the
> >> svn notifications)
> >
> > the IMAP tests have been working reliably under ant. good test
> > coverage is vital for an IMAP implementation so i don't want to remove
> > them.
>
> I don't want to remove them. I just want to know if they work for you.
> I tried executing them from maven and from eclipse and they didn't pass.
>
> That's why I thought there was simply something wrong in the tests.
>
> I'm going to check also ant and if it works here and I'll try to
> understand what's strange in the tests to break them under eclipse and
> maven.

run fine in eclipse for me. i'm on gentoo in GMT (which may be a factor).

they try to set the default locale in order to simulate a server
running in that locale. the idea is to catch implicit localisation
issues (for example, naive date formatting and parsing)

- robert

---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Re: [site] maven site is broken for JAMES server

Posted by Stefano Bagnara <ap...@bago.org>.
Robert Burrell Donkin ha scritto:
> On Nov 12, 2007 12:54 AM, Stefano Bagnara <ap...@bago.org> wrote:
>>>> can you try a "mvn package install" first and the the "mvn site"?
>>> "mvn package install" fails on one of my new localisation unit tests.
>>> basically, these swap the default Locale.
>> Do you think that the test failure is a maven related issue?
> 
> not sure - these are good tests but maven has a habit of getting into
> trouble with exotic test cases
> 
>> I disabled most tests in the experimental-seda-imap-function and some
>> related imap tests in phoenix-deployment in order to be able to run the
>> "mvn -Plocal install" command and I found a few issue I fixed (see the
>> svn notifications)
> 
> the IMAP tests have been working reliably under ant. good test
> coverage is vital for an IMAP implementation so i don't want to remove
> them.

I don't want to remove them. I just want to know if they work for you.
I tried executing them from maven and from eclipse and they didn't pass.

That's why I thought there was simply something wrong in the tests.

I'm going to check also ant and if it works here and I'll try to
understand what's strange in the tests to break them under eclipse and
maven.

Stefano



---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Re: [site] maven site is broken for JAMES server

Posted by Robert Burrell Donkin <ro...@gmail.com>.
On Nov 12, 2007 12:54 AM, Stefano Bagnara <ap...@bago.org> wrote:
> Robert Burrell Donkin ha scritto:
> > On Nov 10, 2007 4:38 PM, Stefano Bagnara <ap...@bago.org> wrote:
> >> Robert Burrell Donkin ha scritto:
> >>> the maven site generation for JAMES server is broken for me. it seems
> >>> that the master stage directory is not longer included. anyone know
> >>> why?
> >>>
> >>> - robert
> >>>
> >>> rob@akrotiri /opt/development/james-workspace $ mvn site
> >> I've no time right now, I hope I can look at it later or tomorrow:
> >
> > great :-)
> >
> >> can you try a "mvn package install" first and the the "mvn site"?
> >
> > "mvn package install" fails on one of my new localisation unit tests.
> > basically, these swap the default Locale.
>
> Do you think that the test failure is a maven related issue?

not sure - these are good tests but maven has a habit of getting into
trouble with exotic test cases

> I disabled most tests in the experimental-seda-imap-function and some
> related imap tests in phoenix-deployment in order to be able to run the
> "mvn -Plocal install" command and I found a few issue I fixed (see the
> svn notifications)

the IMAP tests have been working reliably under ant. good test
coverage is vital for an IMAP implementation so i don't want to remove
them.

- robert

---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Re: [site] maven site is broken for JAMES server

Posted by Stefano Bagnara <ap...@bago.org>.
Robert Burrell Donkin ha scritto:
> On Nov 10, 2007 4:38 PM, Stefano Bagnara <ap...@bago.org> wrote:
>> Robert Burrell Donkin ha scritto:
>>> the maven site generation for JAMES server is broken for me. it seems
>>> that the master stage directory is not longer included. anyone know
>>> why?
>>>
>>> - robert
>>>
>>> rob@akrotiri /opt/development/james-workspace $ mvn site
>> I've no time right now, I hope I can look at it later or tomorrow:
> 
> great :-)
> 
>> can you try a "mvn package install" first and the the "mvn site"?
> 
> "mvn package install" fails on one of my new localisation unit tests.
> basically, these swap the default Locale.

Do you think that the test failure is a maven related issue?

I disabled most tests in the experimental-seda-imap-function and some
related imap tests in phoenix-deployment in order to be able to run the
"mvn -Plocal install" command and I found a few issue I fixed (see the
svn notifications)

Once I fixed the issues and removed the failing tests the install worked
and the following "mvn -Plocal site" worked too.

The need to run install before site is probably because of known maven2
bugs:
http://jira.codehaus.org/browse/MNG-2045
http://jira.codehaus.org/browse/MNG-3043

The first seems to be fixed in the next 2.0.8: I'm not sure it is
exactly the bug we hit, but we'll stick to "mvn install + mvn site" in
the mean time.

Stefano


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Re: [site] maven site is broken for JAMES server

Posted by Robert Burrell Donkin <ro...@gmail.com>.
On Nov 10, 2007 4:38 PM, Stefano Bagnara <ap...@bago.org> wrote:
> Robert Burrell Donkin ha scritto:
> > the maven site generation for JAMES server is broken for me. it seems
> > that the master stage directory is not longer included. anyone know
> > why?
> >
> > - robert
> >
> > rob@akrotiri /opt/development/james-workspace $ mvn site
>
> I've no time right now, I hope I can look at it later or tomorrow:

great :-)

> can you try a "mvn package install" first and the the "mvn site"?

"mvn package install" fails on one of my new localisation unit tests.
basically, these swap the default Locale.

- robert

---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Re: [site] maven site is broken for JAMES server

Posted by Stefano Bagnara <ap...@bago.org>.
Robert Burrell Donkin ha scritto:
> the maven site generation for JAMES server is broken for me. it seems
> that the master stage directory is not longer included. anyone know
> why?
> 
> - robert
> 
> rob@akrotiri /opt/development/james-workspace $ mvn site

I've no time right now, I hope I can look at it later or tomorrow:
can you try a "mvn package install" first and the the "mvn site"?

The problem is that it does not find the test jar: maybe there is a
problem in the default m2 lifecycle for "site" that does not take care
of making test jars available in a reactor build.

What maven version are you using?

I also noticed there is an XML error in dns_configuration.xml that
probably will not create its page, but this is not related with the
dependency problem.

Stefano

[...]
> [ERROR] Error parsing
> /opt/development/james-workspace/src/site/xdoc/dns_configuration.xml:
> line [-1] Error parsing the model.
> org.apache.maven.doxia.parser.ParseException: Error parsing the model.
>         at org.apache.maven.doxia.module.xdoc.XdocParser.parse(XdocParser.java:55)
>         at org.apache.maven.doxia.DefaultDoxia.parse(DefaultDoxia.java:52)
>         at org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.renderDocument(DefaultSiteRenderer.java:264)
>         at org.apache.maven.doxia.siterenderer.DoxiaDocumentRenderer.renderDocument(DoxiaDocumentRenderer.java:43)
>         at org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.renderModule(DefaultSiteRenderer.java:239)
>         at org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.render(DefaultSiteRenderer.java:115)
>         at org.apache.maven.plugins.site.SiteMojo.renderLocale(SiteMojo.java:124)
>         at org.apache.maven.plugins.site.SiteMojo.execute(SiteMojo.java:92)
>         at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:443)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:459)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:280)
>         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)
> Caused by: org.codehaus.plexus.util.xml.pull.XmlPullParserException:
> end tag name </p> must match start tag name <strong> from line 60
> (position: TEXT seen ...</strong> seconds.</p>... @60:382)
>         at org.codehaus.plexus.util.xml.pull.MXParser.parseEndTag(MXParser.java:1686)
>         at org.codehaus.plexus.util.xml.pull.MXParser.nextImpl(MXParser.java:1128)
>         at org.codehaus.plexus.util.xml.pull.MXParser.next(MXParser.java:1090)
>         at org.apache.maven.doxia.module.xdoc.XdocParser.parseXdoc(XdocParser.java:312)
>         at org.apache.maven.doxia.module.xdoc.XdocParser.parse(XdocParser.java:51)
>         ... 25 more
> [INFO] Generate "JavaDocs" report.
[...]
> Missing:
> ----------
> 1) org.apache.james:james-server-imap-api:test-jar:tests:3.0-SNAPSHOT
> 
>   Try downloading the file manually from the project website.
> 
>   Then, install it using the command:
>       mvn install:install-file -DgroupId=org.apache.james
> -DartifactId=james-server-imap-api \
>           -Dversion=3.0-SNAPSHOT -Dclassifier=tests
> -Dpackaging=test-jar -Dfile=/path/to/file
> Alternatively, if you host your own repository you can deploy the file
> there:       mvn deploy:deploy-file -DgroupId=org.apache.james
> -DartifactId=james-server-imap-api \
>           -Dversion=3.0-SNAPSHOT -Dclassifier=tests
> -Dpackaging=test-jar -Dfile=/path/to/file \
>            -Durl=[url] -DrepositoryId=[id]
> 
>   Path to dependency:
>         1) org.apache.james:james-server-imap-codec-library:jar:3.0-SNAPSHOT
>         2) org.apache.james:james-server-imap-api:test-jar:tests:3.0-SNAPSHOT
> 
> ----------
> 1 required artifact is missing.
> 
> for artifact:
>   org.apache.james:james-server-imap-codec-library:jar:3.0-SNAPSHOT
> 
> from the specified remote repositories:
>   central (http://repo1.maven.org/maven2),
>   parent-james-stage-m1
> (file:///opt/development/james-workspace/imap-codec-library/../stage),
>   apache.snapshots (http://people.apache.org/repo/m2-snapshot-repository),
>   local-james-stage-m1
> (file:///opt/development/james-workspace/imap-codec-library/stage),
>   apache.releases (http://people.apache.org/repo/m2-ibiblio-rsync-repository)
> 
> 
> [INFO] ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 25 seconds
> [INFO] Finished at: Sat Nov 10 07:47:03 GMT 2007
> [INFO] Final Memory: 34M/81M
> [INFO] ------------------------------------------------------------------------



---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org