Maven keytool-plugin (mojo) exception during clean install


  <plugin>
    <groupId>org.codehaus.mojo</groupId>
    <artifactId>keytool-maven-plugin</artifactId>
    <version>1.6-SNAPSHOT>/version>
    <executions>
      <execution>
        <goals>
          <goal>generateKeyPair</goal>
        </goals>
        <phase>generate-resources</phase>
      </execution>
    </executions>
    <configuration>
      <keystore>/path/to/your/keystore</keystore>
      <storepass>storepass</storepass>
      <keypass>keypass</keypass>
      <alias>foo_alias</alias>
      <dname>cn=www.example.com, ou=None, L=Seattle, ST=Washington, o=ExampleOrg, c=US</dname>
      <sigalg>SHA1withDSA</sigalg>
      <ext></ext>
      <validity>100</validity>
      <keyalg>DSA</keyalg>
      <keysize>1024</keysize>
    </configuration>
  </plugin>

这是例外,我得到。

TEXT must be immediately followed by END_TAG and not START_TAG (position: START_TAG seen ...<version>1.6-SNAPSHOT>/version>n    ttt<executions>... @345:20)  @ line 345, column 20 -> [Help 2]
org.apache.maven.model.io.ModelParseException: TEXT must be immediately followed by END_TAG and not START_TAG (position: START_TAG seen ...<version>1.6-SNAPSHOT>/version>n    ttt<executions>... @345:20) 
    at org.apache.maven.model.io.DefaultModelReader.read(DefaultModelReader.java:130)
    at org.apache.maven.model.io.DefaultModelReader.read(DefaultModelReader.java:94)
    at org.apache.maven.model.building.DefaultModelProcessor.read(DefaultModelProcessor.java:81)
    at org.apache.maven.model.building.DefaultModelBuilder.readModel(DefaultModelBuilder.java:529)
    at org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:269)
    at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:469)
    at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:438)
    at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:401)
    at org.apache.maven.graph.DefaultGraphBuilder.collectProjects(DefaultGraphBuilder.java:419)
    at org.apache.maven.graph.DefaultGraphBuilder.getProjectsForMavenReactor(DefaultGraphBuilder.java:410)
    at org.apache.maven.graph.DefaultGraphBuilder.build(DefaultGraphBuilder.java:83)
    at org.apache.maven.DefaultMaven.buildGraph(DefaultMaven.java:491)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:219)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
    at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
    at org.apache.maven.cli.MavenCli.execute(MavenCli.java:862)
    at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:286)
    at org.apache.maven.cli.MavenCli.main(MavenCli.java:197)

我是maven和STS的新手,如果有人知道如何处理,请告诉我?

<version>1.6-SNAPSHOT>/version>

这不是有效的XML,必须是

<version>1.6-SNAPSHOT</version>

相关内容

  • 没有找到相关文章

最新更新