Giuseppe Bux wrote:
Here in the following the complete report. The Build error at the end of the message.

I'm terribly sorry, but it appears some of the things our 2.4 release depended on have decayed; I tried out the release build and ran into the same problem you did. It worked when we released it... :(

Here are replacement files. You should see their outdated counterparts in the base longwell/ directory; I renamed them to avoid triggering filters, so change the '-' to a '.'

Or you could resort to the Subversion repository and use the latest and greatest.

We should be making a more stable release in the very near future as well.

Again, my apologies.

--
Ryan Lee                 [EMAIL PROTECTED]
W3C Research Engineer    +1.617.253.5327
http://simile.mit.edu/
<?xml version="1.0" encoding="UTF-8"?>
<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";
>
  <modelVersion>4.0.0</modelVersion>
  <groupId>edu.mit.simile</groupId>
  <artifactId>longwell</artifactId>
  <name>SIMILE Longwell</name>
  <version>2.4</version>
  <description>Longwell is a web-based general-purpose faceted browser for RDF data</description> 
  <url>http://simile.mit.edu/longwell/</url>
  <inceptionYear>2004</inceptionYear>

  <issueManagement>
    <system>jira</system>
    <url>http://simile.mit.edu/issues/browse/LONGWELL</url>
  </issueManagement>

  <distributionManagement>
    <repository>
      <id>simile.mit.edu</id>
      <url>scpexe://simile.mit.edu/var/maven</url>
    </repository>
  </distributionManagement>

  <scm>
    <connection>scm:svn:http://simile.mit.edu/repository/longwell/trunk/</connection>
    <developerConnection>scm:svn:http://simile.mit.edu/repository/longwell/trunk/</developerConnection>
    <url>http://simile.mit.edu/viewsvn/longwell/trunk/</url>
  </scm>

  <reporting>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-surefire-report-plugin</artifactId>
      </plugin>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>jxr-maven-plugin</artifactId>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-javadoc-plugin</artifactId>
        <configuration>
          <links>
            <link>http://java.sun.com/j2ee/1.4/docs/api</link>
            <link>http://java.sun.com/j2se/1.5.0/docs/api</link>
            <link>http://jakarta.apache.org/commons/collections/apidocs-COLLECTIONS_3_0/</link>
            <link>http://jakarta.apache.org/commons/dbcp/apidocs/</link>
            <link>http://jakarta.apache.org/commons/fileupload/apidocs/</link>
            <link>http://jakarta.apache.org/commons/httpclient/apidocs/</link>
            <link>http://jakarta.apache.org/commons/logging/api/</link>
            <link>http://jakarta.apache.org/commons/pool/apidocs/</link>
            <link>http://www.junit.org/junit/javadoc/</link>
            <link>http://logging.apache.org/log4j/docs/api/</link>
            <link>http://jakarta.apache.org/regexp/apidocs/</link>
            <link>http://jakarta.apache.org/velocity/api/</link>
          </links>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-assembly-plugin</artifactId>
        <configuration>
          <descriptors>
           <descriptor>src/conf/assembly.xml</descriptor>
          </descriptors>
          <finalName>longwell-${project.version}</finalName>
          <appendAssemblyId>false</appendAssemblyId>
          <workDirectory>target/assembly/work</workDirectory>
          <tarLongFileMode>error</tarLongFileMode>
          <outputDirectory>.</outputDirectory>
        </configuration>
      </plugin>
    </plugins>
  </reporting>
  
  <build>
    <plugins>
      <plugin>
        <groupId>org.mortbay.jetty</groupId>
        <artifactId>maven-jetty-plugin</artifactId>
        <version>6.0.0</version>
        <configuration>
          <connectors>
            <connector implementation="org.mortbay.jetty.nio.SelectChannelConnector">
              <port>${jetty.port}</port>
              <maxIdleTime>60000</maxIdleTime>
            </connector>
          </connectors>        
          <scanIntervalSeconds>5</scanIntervalSeconds>
          <contextPath>/</contextPath>
          <webAppSourceDirectory>src/main/webapp</webAppSourceDirectory>
        </configuration>
      </plugin>
    </plugins>
  </build>

  <repositories>
    <repository>
      <id>simile.mit.edu</id>
      <url>http://simile.mit.edu/maven-proxy</url>
    </repository>
  </repositories>

  <dependencies>
    <dependency>
      <groupId>edu.mit.simile</groupId>
      <artifactId>fresnel</artifactId>
      <version>1.1-alpha</version>
    </dependency>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>3.8.1</version>
    </dependency>
    <dependency>
      <groupId>javax.servlet</groupId>
      <artifactId>servlet-api</artifactId>
      <version>2.4</version>
    </dependency>
    <dependency>
      <groupId>log4j</groupId>
      <artifactId>log4j</artifactId>
      <version>1.2.13</version>
    </dependency>
    <dependency>
      <groupId>velocity</groupId>
      <artifactId>velocity</artifactId>
      <version>1.4</version>
    </dependency>
    <dependency>
      <groupId>commons-codec</groupId>
      <artifactId>commons-codec</artifactId>
      <version>1.3</version>
    </dependency>
    <dependency>
      <groupId>openrdf</groupId>
      <artifactId>sesame</artifactId>
      <version>2.0-alpha-3-jre1.4</version>
    </dependency>
    <dependency>
      <groupId>commons-collections</groupId>
      <artifactId>commons-collections</artifactId>
      <version>3.1</version>
    </dependency>
    <dependency>
      <groupId>lucene</groupId>
      <artifactId>lucene</artifactId>
      <version>1.4.3</version>
    </dependency>
    <dependency>
      <groupId>commons-lang</groupId>
      <artifactId>commons-lang</artifactId>
      <version>2.1</version>
    </dependency>
    <dependency>
      <groupId>whirlycache</groupId>
      <artifactId>whirlycache</artifactId>
      <version>1.0.1</version>
    </dependency>
  </dependencies>
</project>
@echo off
rem
rem Configuration variables
rem
rem JAVA_HOME
rem   Home of Java installation.
rem
rem JAVA_OPTIONS
rem   Extra options to pass to the JVM
rem

rem --- First two utilities for exiting 
--------------------------------------------

goto endUtils

:usage
echo Usage: %0 [options]
echo where [options] include:
echo.
echo  /h print this message and exit
echo.
echo  /c _configuration_ the configuration that longwell should start
echo     default: longwell
echo.
echo  /p _path_ is the paths where longwell will look for configurations
echo     default:  ./src/main/webapp/
echo.
echo  /d _database_ the directory were the triple store files reside
echo     default:  ./src/main/webapp/WEB-INF/database
echo.
echo  /a _action_ is what to do, the default is run
echo   supported _action_s are:
echo    run          Run longwell
echo    debug        Run longwell and turn on JVM remote debug
echo    profile      Run longwell and turn on JVM profiling with HProf
echo    shark        Run longwell and turn on JVM profiling with Apple Shark 
(MacOSX only)
echo    yourkit      Run longwell and turn on JVM profiling with YourKit
echo    jmx          Run longwell and turn on JVM monitoring with JMX and 
JConsole
echo.
echo  /r _rdf_ is the directory where the RDF data to load is
echo   default: no data is loaded
goto end

:fail
echo See: '%0 /h' for usage.
goto end

:endUtils

if not "%JAVA_HOME%" == "" goto gotJavaHome
echo You must set JAVA_HOME to point at your Java Development Kit installation
goto fail
:gotJavaHome

set MAVEN_OPTS=-Djava.awt.headless=true
set ACTION=run

rem --- Argument parsing --------------------------------------------

:loop
if ""%1"" == """" goto endArgumentParsing
if ""%1"" == ""/h"" goto usage
if ""%1"" == ""/d"" goto arg-d
if ""%1"" == ""/c"" goto arg-c
if ""%1"" == ""/p"" goto arg-p
if ""%1"" == ""/r"" goto arg-r
if ""%1"" == ""/a"" goto arg-a
echo ERROR: Unknown Argument: '%1'
goto fail

:arg-c
set MAVEN_OPTS=%MAVEN_OPTS% -Dlongwell.configuration=%2
goto shift2loop

:arg-d
set MAVEN_OPTS=%MAVEN_OPTS% -Dlongwell.store.dir=%2
goto shift2loop 

:arg-p
set MAVEN_OPTS=%MAVEN_OPTS% -Dlongwell.configuration.path=%2
goto shift2loop 

:arg-r
set MAVEN_OPTS=%MAVEN_OPTS% -Dlongwell.data=%2
goto shift2loop 

:arg-a
set ACTION="$2"
goto shift2loop 

:shift2loop
shift
shift
goto loop

:endArgumentParsing


rem --- Fold in Environment Vars --------------------------------------------

if not "%JAVA_OPTIONS%" == "" goto gotJavaOptions
set JAVA_OPTIONS=-Xms32M -Xmx256M
:gotJavaOptions
set MAVEN_OPTS=%MAVEN_OPTS% %JAVA_OPTIONS%

if not "%JETTY_PORT%" == "" goto gotJettyPort
set JETTY_PORT=8080
:gotJettyPort
set MAVEN_OPTS=%MAVEN_OPTS% -Djetty.port=%JETTY_PORT%


rem ----- Respond to the action 
----------------------------------------------------------

if ""%ACTION%"" == ""run"" goto doRun
if ""%ACTION%"" == ""debug"" goto doDebug
if ""%ACTION%"" == ""profile"" goto doProfile
if ""%ACTION%"" == ""shark"" goto doShark
if ""%ACTION%"" == ""yourkit"" goto doYourKit
if ""%ACTION%"" == ""jmx"" goto doJMX

:doRun
goto doIt

:doDebug
set MAVEN_OPTS=%MAVEN_OPTS% -Xdebug 
-Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n
goto doIt

:doProfile
set MAVEN_OPTS=%MAVEN_OPTS% -Xrunhprof:heap=all,cpu=samples,thread=y,depth=3
goto doIt

:doShark
set MAVEN_OPTS=%MAVEN_OPTS% -Xrunshark
goto doIt

:doYourKit
set MAVEN_OPTS=%MAVEN_OPTS% -agentlib:yjpagent
goto doIt

:doJMX
set MAVEN_OPTS=%MAVEN_OPTS% -Dcom.sun.management.jmxremote
goto doIt

:doIt

echo [INFO]: MAVEN_OPTS=%MAVEN_OPTS%

if not "%MAVEN_PARAMS%" == "" goto withMavenParams
mvn jetty6:run
goto end

:withMavenParams
mvn %MAVEN_PARAMS% jetty:run

:end

#!/bin/sh

fail () {
   cat <<EOF
ERROR: $1
Usage: $0 <options>
  -h for more details
EOF
exit 1
}

usage()
{
cat <<EOF
Usage: $0 [options]
where [options] include:

  -h print this message and exit

  -c <configuration> the configuration that longwell should start
     default: longwell

  -p <path> is the paths where longwell will look for configurations
     default:  ./src/main/webapp/

  -d <database> the directory were the triple store files reside
     default:  ./src/main/webapp/WEB-INF/database

  -a <action> is what to do, the default is run
   supported <action>s are:
    run          Run longwell
    debug        Run longwell and turn on JVM remote debug
    profile      Run longwell and turn on JVM profiling with HProf
    shark        Run longwell and turn on JVM profiling with Apple Shark 
(MacOSX only)
    yourkit      Run longwell and turn on JVM profiling with YourKit
    jmx          Run longwell and turn on JVM monitoring with JMX and JConsole

  -r <rdf> is the directory where the RDF data to load is
    default: no data is loaded
EOF
    exit 0
}

### Parse the command line args.

ACTION='run'
MAVEN_OPTS='-Djava.awt.headless=true'

add_option () {
  MAVEN_OPTS="$MAVEN_OPTS $1"
}

absolute_path () {
  case $1 in
    /*) echo $1; ;;
    *) echo `pwd`/$1; ;;
  esac
}

while [ $# -ne 0 ] ; do
  case "x$1" in
    x-c) shift; add_option "-Dlongwell.configuration=$1"; shift; ;;
    x-d) shift; add_option "-Dlongwell.store.dir=$1"; shift; ;;
    x-p) shift; add_option "-Dlongwell.configuration.path=`absolute_path $1`"; 
shift; ;;
    x-r) shift; add_option "-Dlongwell.data=`absolute_path $1`"; shift; ;;
    x-a) shift; ACTION="$1"; shift; ;;
    x-h) usage; ;;
    *) fail "malformed argument '$1', '$*' remain"; ;;
  esac
done

# ----- Verify and Set Required Environment Variables -------------------------

if [ "$JETTY_PORT" = "" ] ; then
  JETTY_PORT=8080
fi
add_option "-Djetty.port=$JETTY_PORT"

if [ "$JAVA_OPTIONS" = "" ] ; then
  JAVA_OPTIONS="-Xms32M -Xmx128M"
fi
add_option "$JAVA_OPTIONS"

# ----- Respond to the action given. 
----------------------------------------------------------

case "$ACTION" in
  run) ;;
  debug)
    add_option '-Xdebug 
-Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n'; ;;
  profile)
    add_option '-Xrunhprof:heap=all,cpu=samples,thread=y,depth=3'; ;;
  shark)
    add_option '-Xrunshark'; ;;
  yourkit)
    add_option '-agentlib:yjpagent'; ;;
  jmx)
    add_option '-Dcom.sun.management.jmxremote'; ;;
  *)
    fail "Unknown action '$ACTION'"; ;;
esac

export MAVEN_OPTS
echo "[INFO] MAVEN_OPTS: '$MAVEN_OPTS'"
mvn $MAVEN_PARAMS jetty:run

exit 0
_______________________________________________
General mailing list
[EMAIL PROTECTED]
http://simile.mit.edu/mailman/listinfo/general

Reply via email to