Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configured pom.xml is wrong #56

Closed
maxonfjvipon opened this issue Apr 25, 2024 · 3 comments
Closed

Configured pom.xml is wrong #56

maxonfjvipon opened this issue Apr 25, 2024 · 3 comments

Comments

@maxonfjvipon
Copy link

I do:

f.properties()
    .set("project.build.sourceEncoding", "UTF-8")
    .set("project.reporting.outputEncoding", "UTF-8");
f.build()
    .plugins()
    .append(
        "org.eolang",
        "eo-maven-plugin",
        System.getProperty("eo.version", "1.0-SNAPSHOT")
    )
    .goals(
        "register",
        "assemble",
        "verify",
        "transpile",
        "copy",
        "unplace"
    )
    .configuration()
    .set("foreign", "${project.basedir}/target/eo-foreign.csv")
    .set("foreignFormat", "csv")
    .set("failOnWarning", "false")
    .set("offline", "true")
    .set("withRuntimeDependency", "false")
    .set("placeBinariesThatHaveSources", "true");
  f.dependencies().append(
      "org.junit.jupiter",
      "junit-jupiter-api",
      "5.10.2"
  );
  f.build()
      .plugins()
      .append(
          "org.eolang",
          "eo-maven-plugin",
          System.getProperty("eo.version", "1.0-SNAPSHOT")
      )
      .phase("generate-test-sources")
      .goals(
          "register",
          "assemble",
          "verify",
          "transpile",
          "binarize"
      )
      .configuration()
      .set("offline", "true");
f.exec("clean", "test");

I get: [ERROR] [ERROR] Some problems were encountered while processing the POMs: [ERROR] 'build.plugins.plugin.[org.eolang:eo-maven-plugin].executions.execution.id' must be unique but found duplicate execution with id default @ line 35, column 27 @ [ERROR] The build could not read 1 project -> [Help 1] org.apache.maven.project.ProjectBuildingException: Some problems were encountered while processing the POMs: [ERROR] 'build.plugins.plugin.[org.eolang:eo-maven-plugin].executions.execution.id' must be unique but found duplicate execution with id default @ line 35, column 27

The pom.xml:

<?xml version="1.0" encoding="UTF-8"?>
<project>
   <modelVersion>4.0.0</modelVersion>
   <groupId>test</groupId>
   <artifactId>test</artifactId>
   <version>0.0.0</version>
   <name>test</name>
   <properties>
      <maven.compiler.source>11</maven.compiler.source>
      <maven.compiler.target>11</maven.compiler.target>
      <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
      <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
   </properties>
   <build>
      <plugins>
         <plugin>
            <groupId>org.eolang</groupId>
            <artifactId>eo-maven-plugin</artifactId>
            <version>1.0-SNAPSHOT</version>
            <executions>
               <execution>
                  <goals>
                     <goal>register</goal>
                     <goal>assemble</goal>
                     <goal>verify</goal>
                     <goal>transpile</goal>
                     <goal>copy</goal>
                     <goal>unplace</goal>
                  </goals>
               </execution>
               <execution>
                  <id>farea-2</id>
                  <phase>generate-test-sources</phase>
               </execution>
               <execution>
                  <goals>
                     <goal>register</goal>
                     <goal>assemble</goal>
                     <goal>verify</goal>
                     <goal>transpile</goal>
                     <goal>binarize</goal>
                  </goals>
               </execution>
            </executions>
            <configuration>
               <foreign>${project.basedir}/target/eo-foreign.csv</foreign>
               <foreignFormat>csv</foreignFormat>
               <failOnWarning>false</failOnWarning>
               <offline>true</offline>
               <withRuntimeDependency>false</withRuntimeDependency>
               <placeBinariesThatHaveSources>true</placeBinariesThatHaveSources>
               <skipMain>true</skipMain>
               <scope>test</scope>
               <sourcesDir>${project.basedir}/src/test/eo</sourcesDir>
               <targetDir>${project.basedir}/target/eo-test</targetDir>
               <addSourcesRoot>false</addSourcesRoot>
               <addTestSourcesRoot>true</addTestSourcesRoot>
               <generatedDir>${project.basedir}/target/generated-test-sources</generatedDir>
            </configuration>
         </plugin>
      </plugins>
   </build>
   <dependencies>
      <dependency>
         <groupId>org.junit.jupiter</groupId>
         <artifactId>junit-jupiter-api</artifactId>
         <version>5.10.2</version>
      </dependency>
   </dependencies>
</project>
yegor256 added a commit that referenced this issue Apr 25, 2024
@yegor256
Copy link
Owner

@rultor release, tag is 0.0.16

@rultor
Copy link
Collaborator

rultor commented Apr 25, 2024

@rultor release, tag is 0.0.16

@yegor256 OK, I will release it now. Please check the progress here

@rultor
Copy link
Collaborator

rultor commented Apr 25, 2024

@rultor release, tag is 0.0.16

@yegor256 Done! FYI, the full log is here (took me 11min)

yegor256 added a commit that referenced this issue Apr 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants