Somethings to check.
1: Your SVN is 100% uptodate and you find the sling-servlet-archetype under
tooling (there were some changes recently)
x43543:trunk ieb$ find . -name pom.xml -exec grep -rl
"sling-servlet-archetype" * \;
tooling/maven/archetypes/servlet/pom.xml

2: both java and maven are in your class path, and are late enough
versions. The log file should have produced a header like:
(Some of the debug messages are different which makes me think your version
of maven is different, not necessarily wrong, just different)
x43543:servlet ieb$ mvn -X clean install
Apache Maven 3.0.5 (r01de14724cdef164cd33c7c8c2fe155faf9602da; 2013-02-19
13:51:28+0000)
Maven home: /usr/share/maven
Java version: 1.6.0_51, vendor: Apple Inc.
Java home: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
Default locale: en_US, platform encoding: MacRoman
OS name: "mac os x", version: "10.8.4", arch: "x86_64", family: "mac"
[INFO] Error stacktraces are turned on.
[DEBUG] Reading global settings from /usr/share/maven/conf/settings.xml
[DEBUG] Reading user settings from /Users/ieb/.m2/settings.xml
[DEBUG] Using local repository at /Users/ieb/.m2/repository
[DEBUG] Using manager EnhancedLocalRepositoryManager with priority 10 for
/Users/ieb/.m2/repository
....


3: The point at which it fails, maven forks a internal builder, I am seeing
[INFO] Invoking post-archetype-generation goals: package

[INFO] [INFO] Error stacktraces are turned on.
[INFO] [INFO] Scanning for projects...
[INFO] [INFO]

[INFO] [INFO]
------------------------------------------------------------------------
[INFO] [INFO] Building test-servlet-archetype-project 0.0.1-SNAPSHOT
[INFO] [INFO]
------------------------------------------------------------------------


The second build is running without debug but it is launching, your build
fails to launch, hence the questions.


try:
export MAVEN_OPTS="$MAVEN_OPTS -X"
cd tooling/maven/archetypes/servlet
mvn clean install 1> build.log 2>&1
and when it finishes pastebin the build.log


Best Regards
Ian










On 27 July 2013 00:15, Dishara Wijewardana <ddwijeward...@gmail.com> wrote:

> On Fri, Jul 26, 2013 at 1:36 PM, Ian Boston <i...@tfd.co.uk> wrote:
>
> > Hi,
> > Looking at the log there is no reported error for the failure.
> > Can you do
> > mvn -X clean install -rf :sling-servlet-archetype
> >
> > And post the output to a paste bin.
> >
> Hi Ian,
> Please find the log at here http://pastebin.com/FBrDjJ6L
>
>
> > Thanks
> > Ian
> >
> >
> > On 26 July 2013 04:35, Dishara Wijewardana <ddwijeward...@gmail.com>
> > wrote:
> >
> > > Hi all,
> > > I checked out the trunk code to a new location and removed my existing
> M2
> > > repository and do a mvn clean install. Still fails in same place. So I
> > > believe this should fail in clean repo. I am compiling this code in 1.6
> > JDK
> > > in Ubuntu 11.10. These are the only facts left for me to compare with
> if
> > > this is local to me.
> > >
> > > On Fri, Jul 26, 2013 at 6:30 AM, Dishara Wijewardana <
> > > ddwijeward...@gmail.com> wrote:
> > >
> > > > Still getting the same error.
> > > >
> > > > 1. Command is  mvn clean install -DskipTests.
> > > > 2. Please find the link [1] for the pastebin build log.
> > > >
> > > > [1] - http://pastebin.com/12x8F4UG
> > > >
> > > > On Thu, Jul 25, 2013 at 6:53 PM, Robert Munteanu <rob...@lmn.ro>
> > wrote:
> > > >
> > > >> On Thu, Jul 25, 2013 at 3:04 PM, Dishara Wijewardana
> > > >> <ddwijeward...@gmail.com> wrote:
> > > >> > On Thu, Jul 25, 2013 at 11:22 AM, Carsten Ziegeler <
> > > >> cziege...@apache.org>wrote:
> > > >> >
> > > >> >> The first error you reported is fixed - now you're running into a
> > new
> > > >> issue
> > > >> >> which I can't reproduce on my machine. I'm usually doing a full
> > clean
> > > >> build
> > > >> >> with tests
> > > >> >>
> > > >> > Hi  Carsten
> > > >> > Sorry for the inconvenience. The initial error I posted was doing
> > the
> > > >> build
> > > >> > in inside some sub module (Because the error I am getting when
> > > building
> > > >> in
> > > >> > parent level is not very descriptive. Hence I went in side the
> > failing
> > > >> > module and build it specifically and posted the log.).
> > > >> > The latest error log is the one I get when building from parent
> > level.
> > > >> > Still I am getting the same when I go inside and build.
> > > >>
> > > >>
> > > >> 1. Does the build work with -DskipTests for you?
> > > >> 2. Can you paste somewhere ( pastebin, github gist etc ) the full
> > > >> command and build output?
> > > >>
> > > >> Robert
> > > >>
> > > >> >
> > > >> >
> > > >> >>
> > > >> >> Carsten
> > > >> >>
> > > >> >>
> > > >> >> 2013/7/25 Dishara Wijewardana <ddwijeward...@gmail.com>
> > > >> >>
> > > >> >> > Hi all,
> > > >> >> > Does any body could build the trunk in clean repo with/without
> > > tests
> > > >> ?
> > > >> >> >
> > > >> >> > On Thu, Jul 25, 2013 at 6:28 AM, Dishara Wijewardana <
> > > >> >> > ddwijeward...@gmail.com> wrote:
> > > >> >> >
> > > >> >> > >
> > > >> >> > >
> > > >> >> > > On Wed, Jul 24, 2013 at 1:18 PM, Carsten Ziegeler <
> > > >> >> cziege...@apache.org
> > > >> >> > >wrote:
> > > >> >> > >
> > > >> >> > >> Should be fixed now
> > > >> >> > >>
> > > >> >> > > This is not yet fixed. I tried both ways. With tests and
> > without
> > > >> tests.
> > > >> >> > My
> > > >> >> > > revision is 1506788.
> > > >> >> > > I am building from root level. And fails with following.
> > > >> >> > >
> > > >> >> > > [INFO]
> > > >> >> > >
> > > >> >>
> > > >>
> > ------------------------------------------------------------------------
> > > >> >> > > [INFO] BUILD FAILURE
> > > >> >> > > [INFO]
> > > >> >> > >
> > > >> >>
> > > >>
> > ------------------------------------------------------------------------
> > > >> >> > > [INFO] Total time: 30.506s
> > > >> >> > > [INFO] Finished at: Thu Jul 25 06:27:09 IST 2013
> > > >> >> > > [INFO] Final Memory: 89M/975M
> > > >> >> > > [INFO]
> > > >> >> > >
> > > >> >>
> > > >>
> > ------------------------------------------------------------------------
> > > >> >> > > [ERROR] Failed to execute goal
> > > >> >> > >
> > > >> org.apache.maven.plugins:maven-archetype-plugin:2.2:integration-test
> > > >> >> > > (default-integration-test) on project
> sling-servlet-archetype:
> > > >> >> > > [ERROR] Archetype IT 'normal' failed: Cannot run additions
> > goals.
> > > >> >> > > [ERROR] -> [Help 1]
> > > >> >> > > [ERROR]
> > > >> >> > > [ERROR] To see the full stack trace of the errors, re-run
> Maven
> > > >> with
> > > >> >> the
> > > >> >> > > -e switch.
> > > >> >> > > [ERROR] Re-run Maven using the -X switch to enable full debug
> > > >> logging.
> > > >> >> > > [ERROR]
> > > >> >> > > [ERROR] For more information about the errors and possible
> > > >> solutions,
> > > >> >> > > please read the following articles:
> > > >> >> > > [ERROR] [Help 1]
> > > >> >> > >
> > > >> >>
> > > >>
> > http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
> > > >> >> > > [ERROR]
> > > >> >> > > [ERROR] After correcting the problems, you can resume the
> build
> > > >> with
> > > >> >> the
> > > >> >> > > command
> > > >> >> > > [ERROR]   mvn <goals> -rf :sling-servlet-archetype
> > > >> >> > >
> > > >> >> > >
> > > >> >> > >
> > > >> >> > >
> > > >> >> > >
> > > >> >> > >>
> > > >> >> > >> 2013/7/24 Ian Boston <i...@tfd.co.uk>
> > > >> >> > >>
> > > >> >> > >> > This looks like an unfixed bug [1], try without disabling
> > > tests.
> > > >> >> > >> >
> > > >> >> > >> > Ian
> > > >> >> > >> >
> > > >> >> > >> > 1. https://issues.apache.org/jira/browse/SLING-2804
> > > >> >> > >> >
> > > >> >> > >> >
> > > >> >> > >> > On 24 July 2013 03:02, Dishara Wijewardana <
> > > >> ddwijeward...@gmail.com
> > > >> >> >
> > > >> >> > >> > wrote:
> > > >> >> > >> >
> > > >> >> > >> > > Hi all,
> > > >> >> > >> > > I am building the trunk to build a latest pack to try
> > deploy
> > > >> the
> > > >> >> > >> > > implementation.
> > > >> >> > >> > > I am seeing following when building the trunk with
> > > >> >> >  -Dtest.skip=true.
> > > >> >> > >> Is
> > > >> >> > >> > > this a known issue?
> > > >> >> > >> > >
> > > >> >> > >> > >
> > > >> >> > >> > > [INFO] Scanning for projects...
> > > >> >> > >> > > [INFO]
> > > >> >> > >> > >
> > > >> >> > >> > > [INFO]
> > > >> >> > >> > >
> > > >> >> > >>
> > > >> >>
> > > >>
> > ------------------------------------------------------------------------
> > > >> >> > >> > > [INFO] Building Sling Servlet Archetype 1.0.1-SNAPSHOT
> > > >> >> > >> > > [INFO]
> > > >> >> > >> > >
> > > >> >> > >>
> > > >> >>
> > > >>
> > ------------------------------------------------------------------------
> > > >> >> > >> > > [INFO]
> > > >> >> > >> > > [INFO] --- maven-clean-plugin:2.5:clean (default-clean)
> @
> > > >> >> > >> > > sling-servlet-archetype ---
> > > >> >> > >> > > [INFO] Deleting
> > > >> >> > >> > >
> > > >> >> >
> > > /home/dishara/mystuff/sling/svn/sling/maven/archetypes/servlet/target
> > > >> >> > >> > > [INFO]
> > > >> >> > >> > > [INFO] --- maven-enforcer-plugin:1.0.1:enforce
> > > (enforce-java)
> > > >> @
> > > >> >> > >> > > sling-servlet-archetype ---
> > > >> >> > >> > > [INFO]
> > > >> >> > >> > > [INFO] --- maven-antrun-plugin:1.7:run
> > > >> >> > >> > > (set-bundle-required-execution-environment) @
> > > >> >> > sling-servlet-archetype
> > > >> >> > >> ---
> > > >> >> > >> > > [INFO] Executing tasks
> > > >> >> > >> > >
> > > >> >> > >> > > main:
> > > >> >> > >> > > [INFO] Executed tasks
> > > >> >> > >> > > [INFO]
> > > >> >> > >> > > [INFO] --- maven-remote-resources-plugin:1.4:process
> > > >> (default) @
> > > >> >> > >> > > sling-servlet-archetype ---
> > > >> >> > >> > > [INFO]
> > > >> >> > >> > > [INFO] --- maven-resources-plugin:2.6:resources
> > > >> >> (default-resources)
> > > >> >> > @
> > > >> >> > >> > > sling-servlet-archetype ---
> > > >> >> > >> > > [INFO] Using 'UTF-8' encoding to copy filtered
> resources.
> > > >> >> > >> > > [INFO] Copying 6 resources
> > > >> >> > >> > > [INFO] Copying 3 resources
> > > >> >> > >> > > [INFO]
> > > >> >> > >> > > [INFO] --- maven-antrun-plugin:1.7:run
> > (check-memory-task) @
> > > >> >> > >> > > sling-servlet-archetype ---
> > > >> >> > >> > > [INFO] Executing tasks
> > > >> >> > >> > >
> > > >> >> > >> > > main:
> > > >> >> > >> > >      [echo] **************** WARNING
> > (SLING-443/SLING-1782)
> > > >> >> > >> > > ******************************
> > > >> >> > >> > >      [echo] On most platforms, you'll get
> > OutOfMemoryErrors
> > > >> when
> > > >> >> > >> building
> > > >> >> > >> > > unless you set
> > > >> >> > >> > >      [echo] on 32bit platforms: MAVEN_OPTS="-Xmx256M
> > > >> >> > >> > -XX:MaxPermSize=256M",
> > > >> >> > >> > > see SLING-443
> > > >> >> > >> > >      [echo] on 64bit platforms: MAVEN_OPTS="-Xmx512M
> > > >> >> > >> > -XX:MaxPermSize=512M",
> > > >> >> > >> > > see SLING-1782
> > > >> >> > >> > >      [echo]
> > > >> >> > >> > >
> > > >> >> > >> > >
> > > >> >> > >> >
> > > >> >> > >>
> > > >> >> >
> > > >> >>
> > > >>
> > >
> >
> ******************************************************************************
> > > >> >> > >> > > [INFO] Executed tasks
> > > >> >> > >> > > [INFO]
> > > >> >> > >> > > [INFO] --- maven-resources-plugin:2.6:testResources
> > > >> >> > >> > (default-testResources)
> > > >> >> > >> > > @ sling-servlet-archetype ---
> > > >> >> > >> > > [INFO] Not copying test resources
> > > >> >> > >> > > [INFO]
> > > >> >> > >> > > [INFO] --- maven-antrun-plugin:1.7:run (fix-crlfs) @
> > > >> >> > >> > > sling-servlet-archetype ---
> > > >> >> > >> > > [INFO] Executing tasks
> > > >> >> > >> > >
> > > >> >> > >> > > main:
> > > >> >> > >> > > [INFO]
> > > >> >> > >> > >
> > > >> >> > >>
> > > >> >>
> > > >>
> > ------------------------------------------------------------------------
> > > >> >> > >> > > [INFO] BUILD FAILURE
> > > >> >> > >> > > [INFO]
> > > >> >> > >> > >
> > > >> >> > >>
> > > >> >>
> > > >>
> > ------------------------------------------------------------------------
> > > >> >> > >> > > [INFO] Total time: 2.380s
> > > >> >> > >> > > [INFO] Finished at: Wed Jul 24 07:28:14 IST 2013
> > > >> >> > >> > > [INFO] Final Memory: 11M/490M
> > > >> >> > >> > > [INFO]
> > > >> >> > >> > >
> > > >> >> > >>
> > > >> >>
> > > >>
> > ------------------------------------------------------------------------
> > > >> >> > >> > > [ERROR] Failed to execute goal
> > > >> >> > >> > > org.apache.maven.plugins:maven-antrun-plugin:1.7:run
> > > >> (fix-crlfs)
> > > >> >> on
> > > >> >> > >> > project
> > > >> >> > >> > > sling-servlet-archetype: An Ant BuildException has
> > occured:
> > > >> >> > <fixcrlf>
> > > >> >> > >> > > error: srcdir does not exist:
> > > >> >> > >> > >
> > > >> >> > >> > >
> > > >> >> > >> >
> > > >> >> > >>
> > > >> >> >
> > > >> >>
> > > >>
> > >
> >
> '/home/dishara/mystuff/sling/svn/sling/maven/archetypes/servlet/target/test-classes'
> > > >> >> > >> > > [ERROR] around Ant part ...<fixcrlf
> > > >> >> > >> > >
> > > >> >> > >> > >
> > > >> >> > >> >
> > > >> >> > >>
> > > >> >> >
> > > >> >>
> > > >>
> > >
> >
> srcdir="/home/dishara/mystuff/sling/svn/sling/maven/archetypes/servlet/target/test-classes"/>...
> > > >> >> > >> > > @ 4:105 in
> > > >> >> > >> > >
> > > >> >> > >> > >
> > > >> >> > >> >
> > > >> >> > >>
> > > >> >> >
> > > >> >>
> > > >>
> > >
> >
> /home/dishara/mystuff/sling/svn/sling/maven/archetypes/servlet/target/antrun/build-main.xml
> > > >> >> > >> > > [ERROR] -> [Help 1]
> > > >> >> > >> > > [ERROR]
> > > >> >> > >> > > [ERROR] To see the full stack trace of the errors,
> re-run
> > > >> Maven
> > > >> >> with
> > > >> >> > >> the
> > > >> >> > >> > -e
> > > >> >> > >> > > switch.
> > > >> >> > >> > > [ERROR] Re-run Maven using the -X switch to enable full
> > > debug
> > > >> >> > logging.
> > > >> >> > >> > > [ERROR]
> > > >> >> > >> > > [ERROR] For more information about the errors and
> possible
> > > >> >> > solutions,
> > > >> >> > >> > > please read the following articles:
> > > >> >> > >> > >
> > > >> >> > >> > >
> > > >> >> > >> > >
> > > >> >> > >> > >
> > > >> >> > >> > > --
> > > >> >> > >> > > Thanks
> > > >> >> > >> > > /Dishara
> > > >> >> > >> > >
> > > >> >> > >> >
> > > >> >> > >>
> > > >> >> > >>
> > > >> >> > >>
> > > >> >> > >> --
> > > >> >> > >> Carsten Ziegeler
> > > >> >> > >> cziege...@apache.org
> > > >> >> > >>
> > > >> >> > >
> > > >> >> > >
> > > >> >> > >
> > > >> >> > > --
> > > >> >> > > Thanks
> > > >> >> > > /Dishara
> > > >> >> > >
> > > >> >> >
> > > >> >> >
> > > >> >> >
> > > >> >> > --
> > > >> >> > Thanks
> > > >> >> > /Dishara
> > > >> >> >
> > > >> >>
> > > >> >>
> > > >> >>
> > > >> >> --
> > > >> >> Carsten Ziegeler
> > > >> >> cziege...@apache.org
> > > >> >>
> > > >> >
> > > >> >
> > > >> >
> > > >> > --
> > > >> > Thanks
> > > >> > /Dishara
> > > >>
> > > >>
> > > >>
> > > >> --
> > > >> Sent from my (old) computer
> > > >>
> > > >
> > > >
> > > >
> > > > --
> > > > Thanks
> > > > /Dishara
> > > >
> > >
> > >
> > >
> > > --
> > > Thanks
> > > /Dishara
> > >
> >
>
>
>
> --
> Thanks
> /Dishara
>

Reply via email to