java - Cargo Maven Plugin unable to download and unpack Jetty zip due to "Negative seek offset" -


  1. i facing below error while running integration tests:

    failed execute goal org.codehaus.cargo:cargo-maven2-  plugin:1.1.3:start (start-container) on project <project-name>: execution start-container of goal org.codehaus.cargo:cargo-maven2- plugin:1.1.3:start failed: error while expanding  <project>/target/downloads/jetty-6.1.26.zip [error] java.io.ioexception: negative seek offset 

although, if mvn jetty:run, start server. did face similar issue, how did solve it?

here configuration have :

    <plugin>             <!-- http://cargo.codehaus.org/maven2+plugin+reference+guide -->             <groupid>org.codehaus.cargo</groupid>             <artifactid>cargo-maven2-plugin</artifactid>             <version>1.1.3</version>             <executions>                 <execution>                     <id>start-container</id>                     <phase>pre-integration-test</phase>                     <goals>                         <goal>start</goal>                     </goals>                 </execution>                 <execution>                     <id>stop-container</id>                     <phase>post-integration-test</phase>                     <goals>                         <goal>stop</goal>                     </goals>                 </execution>             </executions>             <configuration>                 <wait>false</wait>                 <container>                     <containerid>jetty6x</containerid>                     <!-- 'embedded' container not seem support                          setting jndi values through jetty-env.xml file, see http://jira.codehaus.org/browse/cargo-861                          , http://jira.codehaus.org/browse/cargo-862 more information. now,                          we'll use 'installed' container works fine,                          slower embedded version since large distribution (25 mb)                          must downloaded. -->                     <type>installed</type>                     <zipurlinstaller>                         <url>http://dist.codehaus.org/jetty/jetty-6.1.26/jetty-6.1.26.zip</url>                         <downloaddir>${project.build.directory}/downloads</downloaddir>                         <extractdir>${project.build.directory}/extracts</extractdir>                     </zipurlinstaller>                     <systemproperties>                         <java.io.tmpdir>target/tmp</java.io.tmpdir>                         <!-- these "jetty6.*" system properties used                              set values in jetty-env.xml file. -->                         <jetty6.context>project-name</jetty6.context>                         <jetty6.warfile>${project.build.directory}/project-war.war</jetty6.warfile>                     </systemproperties>                     <output>${project.build.directory}/cargo-container.log</output>                     <log>${project.build.directory}/cargo.log</log>                     <dependencies>                         <dependency>                             <location>${project.basedir}/src/test/keystores/sun/${keystoretype}</location>                         </dependency>                         <dependency>                             <groupid>com.oracle</groupid>                             <artifactid>ojdbc6</artifactid>                         </dependency>                     </dependencies>                 </container>                 <configuration>                     <home>${project.build.directory}/jetty6x/container</home>                     <!-- see http://cargo.codehaus.org/configuration+properties                          possible properties. -->                     <properties>                         <cargo.servlet.port>9090</cargo.servlet.port>                         <cargo.logging>low</cargo.logging>                         <!-- enable debug server, see http://cargo.codehaus.org/debugging                              more information. -->                        <!--  <cargo.jvmargs> -xdebug -xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8888                              -xnoagent -djava.compiler=none </cargo.jvmargs> -->                     </properties>                     <configfiles>                         <configfile>                             <file>${project.basedir}/src/test/keystores/sun/${keystoretype}/jetty-env.xml</file>                             <todir>contexts</todir>                             <tofile>project-name.xml</tofile>                         </configfile>                     </configfiles>                     <deployables>                         <deployable>                             <groupid><project-name></groupid>                             <artifactid>project-war</artifactid>                             <type>war</type>                             <properties>                                 <context>project-name</context>                             </properties>                         </deployable>                     </deployables>                 </configuration>             </configuration>         </plugin> 
  1. i know codehaus going down, have update. suggestions lightweight server deploy war , run integration tests client?

the fundamental reason:

codehaus.org dead website. 100% offline on may 17, 2015.

the time has come end era of codehaus.

all codehaus services terminated progressively until may 17th 2015

with increasing diversity in opensource hosting platforms github , bitbucket - meeting needs of 1000s of projects - makes sense end opensource hosting services of codehaus.

codehaus has operated @ loss several years (we're not powered venture capital), , can not compete army of developers , integrated product offerings commonplace.

the platform terminated @ end of february 2015, sonarqube has graciously offered sponsor codehaus few months aid in transition.

your url access dist.codehaus.org failing.

<url>http://dist.codehaus.org/jetty/jetty-6.1.26/jetty-6.1.26.zip</url> 

other important notes:

  • there have been 25 releases of cargo-maven2-plugin since version 1.1.3, consider upgrading.
  • cargo has moved off of codehaus well, find them @ codehaus-cargo.github.io now.
  • don't use jetty 6, eol (end of life) of 2010.
  • there not replacement download location jetty 5 , jetty 6 binaries once hosted on dist.codehaus.org.
  • don't use jetty 7 or jetty 8 either, eol of 2014.
  • jetty 9 stable , supported series of jetty @ point in time (may 2015).

Comments

Popular posts from this blog

Email notification in google apps script -

c++ - Difference between pre and post decrement in recursive function argument -

javascript - IE11 incompatibility with jQuery's 'readonly'? -