kinow / testopia-plugin

Jenkins plug-in to integrate different test management tools
2 stars 6 forks source link

[ERROR] Invalid extension descriptor for org.kohsuke.stapler:maven-stapler-plugin:1.15: error in opening zip file #5

Closed tooh closed 11 years ago

tooh commented 11 years ago

Last Built Revision: Revision fca657e71804f1ccb60d5860af4c8ec323282593 (origin/HEAD, origin/master) Fetching changes from 1 remote Git repository Fetching upstream changes from http://github.com/kinow/testthemall Seen branch in repository origin/HEAD Seen branch in repository origin/master Commencing build of Revision 259e24642980150cc04333c066eb26fee2647f31 (origin/HEAD, origin/master) Checking out Revision 259e24642980150cc04333c066eb26fee2647f31 (origin/HEAD, origin/master) Warning : There are multiple branch changesets here [TestThemAll] $ mvn package [INFO] Scanning for projects... [WARNING] The POM for org.kohsuke.stapler:maven-stapler-plugin:jar:1.15 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details [ERROR] Invalid extension descriptor for org.kohsuke.stapler:maven-stapler-plugin:1.15: error in opening zip file [WARNING] [WARNING] Some problems were encountered while building the effective model for jenkins.plugins.testthemall:testthemall:hpi:1.0-SNAPSHOT [WARNING] 'dependencies.dependency.systemPath' for testopia:testopia:jar should not point at files within the project directory, ${project.basedir}/src/main/webapp/WEB-INF/lib/testopia-java-driver-0.1-SNAPSHOT.jar will be unresolvable by dependent projects @ line 20, column 21 [WARNING] 'build.plugins.plugin.version' for com.cloudbees:maven-license-plugin is missing. @ org.jenkins-ci.plugins:plugin:1.424, /Users/peter/.m2/repository/org/jenkins-ci/plugins/plugin/1.424/plugin-1.424.pom, line 191, column 15 [WARNING] [WARNING] It is highly recommended to fix these problems because they threaten the stability of your build. [WARNING] [WARNING] For this reason, future Maven versions might no longer support building such malformed projects. [WARNING]

kinow commented 11 years ago

Hmm, weird. Did you follow the steps in the setting up environment section of the plug-in tutorial?

tooh commented 11 years ago

Yes, but there are some extra's in it I don't know if that is of influence:

Contents of settings.xml:

<?xml version="1.0" encoding="UTF-8"?>

<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" 
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
          xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
  <pluginGroups>
    <pluginGroup>org.jenkins-ci.tools</pluginGroup>
    <pluginGroup>org.mortbay.jetty</pluginGroup>
  </pluginGroups>

  <profiles>
    <!-- Give access to Jenkins plugins -->
    <profile>
      <id>jenkins</id>
      <activation>
        <activeByDefault>true</activeByDefault> <!-- change this to false, if you don't like to have it on per default -->
      </activation>
      <repositories>
        <repository>
          <id>maven.jenkins-ci.org</id>
          <url>http://maven.jenkins-ci.org/content/groups/artifacts/</url>
        </repository>
    <repository> 
          <id>repo.jenkins-ci.org</id> 
          <url>http://repo.jenkins-ci.org/public/</url> 
        </repository>
      </repositories>      
      <pluginRepositories>
        <pluginRepository>
          <id>maven.jenkins-ci.org</id>
          <url>http://maven.jenkins-ci.org/content/groups/artifacts/</url>
        </pluginRepository>
        <pluginRepository> 
          <id>repo.jenkins-ci.org</id> 
          <url>http://repo.jenkins-ci.org/public/</url> 
        </pluginRepository> 
      </pluginRepositories>
    </profile>
  </profiles>

<mirrors> 
     <mirror> 
       <id>repo.jenkins-ci.org</id> 
       <url>http://repo.jenkins-ci.org/public/</url> 
       <mirrorOf>m.g.o-public</mirrorOf> 
     </mirror>
</mirrors>

</settings>
kinow commented 11 years ago

Hmmm, I used this tag in the past, but can't remember why I needed it. Did I send you this settings.xml? Here's my settings.xml now:

<?xml version="1.0" encoding="UTF-8"?>

<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" 
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
          xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
  <pluginGroups>
    <pluginGroup>org.jenkins-ci.tools</pluginGroup>
    <pluginGroup>org.mortbay.jetty</pluginGroup>
  </pluginGroups>

  <profiles>
    <!-- Give access to Jenkins plugins -->
    <profile>
      <id>jenkins</id>
      <activation>
        <activeByDefault>true</activeByDefault> <!-- change this to false, if you don't like to have it on per default -->
      </activation>
      <repositories>
    <repository> 
          <id>repo.jenkins-ci.org</id> 
          <url>http://repo.jenkins-ci.org/public/</url> 
        </repository>
      </repositories>      
      <pluginRepositories>
        <pluginRepository> 
          <id>repo.jenkins-ci.org</id> 
          <url>http://repo.jenkins-ci.org/public/</url> 
        </pluginRepository> 
      </pluginRepositories>
    </profile>
  </profiles>
</settings>

Hope that helps :) -B

tooh commented 11 years ago

Installed your settings.xml.

Still the same error.

kinow commented 11 years ago

Hmm, maybe the Java version, or the version of Maven or some other tool? I'm using Debian 6, Java 1.6, Maven 3.0.4... I thought maybe there was something wrong with my environment, but I'm building the plug-in at BuildHive (https://buildhive.cloudbees.com/view/My%20Repositories/job/kinow/job/testthemall/).

Could you remove the artifacts that are mentioned in the error log and try it again, please?

tooh commented 11 years ago

I'm not sure what to do. Where should I remove something ?

kinow commented 11 years ago

It depends on your environment. If you are using Windows, the Maven repository should be by default in your user directory/.m2/repository then you have to navigate through groupId, artifactId and version to find the artifacts.

The hardcore option is remove the contents of .m2/repository... but next time you run anything it will download the whole Internet again... :-(

tooh commented 11 years ago

OK,

my path is /Users/peter/.m2/repository/org/kohsuke/stapler/maven-stapler-plugin

I see a 1.15 there and a 1.16. Is this OK ?

Shall I remove the 1.15 folder ?

kinow commented 11 years ago

I have both too... remove the kohsuke folder. This will cause maven to download a few extra artifacts, but it won't take more than 5 minutes (hopefully haha).

tooh commented 11 years ago

Remove kohsuke folder.

Recompiled.

NO ERROR