kazurayam / inspectus

The Inspectus library enables automated UI tests in Java/Groovy to perform "Visual Inspection" on top of the "materialstore"
Apache License 2.0
0 stars 0 forks source link

No <dependency> is included in the pom.xml #39

Closed kazurayam closed 1 year ago

kazurayam commented 1 year ago

the pom.xml generated by 0.5.5. is as follows:


<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <modelVersion>4.0.0</modelVersion>
  <groupId>com.kazurayam</groupId>
  <artifactId>inspectus</artifactId>
  <version>0.5.6-SNAPSHOT</version>
  <name>inspectus</name>
  <description>A Java/Groovy API to store objects (Screenshots, HTML, JSON, XML) collected during End-to-end testings empowered by diffing and reporting tools</description>
  <url>https://kazurayam.github.io/materialstore/</url>
  <licenses>
    <license>
      <name>The Apache License, Version 2.0</name>
      <url>https://www.apache.org.licenses/LICENSE-2.0.txt</url>
    </license>
  </licenses>
  <developers>
    <developer>
      <id>kazurayam</id>
      <name>URAYAMA,kazuaki</name>
      <email>kazuaki.urayama@gmail.com</email>
    </developer>
  </developers>
  <scm>
    <connection>scm:git:https://github.com/kazurayam/inspectus.git</connection>
    <developerConnection>scm:git:git@github.com:kazurayam/inspectus.git</developerConnection>
    <url>https://github.com/kazurayam/inspectus</url>
  </scm>
</project>

No <dependencies> element is included.

kazurayam commented 1 year ago

See https://github.com/kazurayam/materialstore/issues/376 for the solution

kazurayam commented 1 year ago

I applied the approach suggested in https://github.com/kazurayam/materialstore/issues/376. I mean, I just added

        pom.Xml {
            ...
        }

I got the following pom.xml:

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <modelVersion>4.0.0</modelVersion>
  <groupId>com.kazurayam</groupId>
  <artifactId>inspectus</artifactId>
  <version>0.6.0-SNAPSHOT</version>
  <name>inspectus</name>
  <description>A Java/Groovy API to store objects (Screenshots, HTML, JSON, XML) collected during End-to-end testings empowered by diffing and reporting tools</description>
  <url>https://kazurayam.github.io/materialstore/</url>
  <licenses>
    <license>
      <name>The Apache License, Version 2.0</name>
      <url>https://www.apache.org.licenses/LICENSE-2.0.txt</url>
    </license>
  </licenses>
  <developers>
    <developer>
      <id>kazurayam</id>
      <name>URAYAMA,kazuaki</name>
      <email>kazuaki.urayama@gmail.com</email>
    </developer>
  </developers>
  <scm>
    <connection>scm:git:https://github.com/kazurayam/inspectus.git</connection>
    <developerConnection>scm:git:git@github.com:kazurayam/inspectus.git</developerConnection>
    <url>https://github.com/kazurayam/inspectus</url>
  </scm>
  <dependencies>
    <dependency>
      <groupId>com.kazurayam</groupId>
      <artifactId>materialstore</artifactId>
      <version>0.13.0-SNAPSHOT</version>
    </dependency>
    <dependency>
      <groupId>org.slf4j</groupId>
      <artifactId>slf4j-api</artifactId>
      <version>1.7.25</version>
    </dependency>
  </dependencies>
</project>

This pom.xml include the dependiencies immediately declared in this project.

I does not include the transitive dependencies on which the materialstore-0.13.0-SNAPSHOT.jar depends.

I need the transitive dependencies to be emitted in the pom.xml.

How can I make it?

kazurayam commented 1 year ago

https://stackoverflow.com/questions/30287826/how-to-get-the-information-of-transitive-dependencies-in-a-gradle-task

kazurayam commented 1 year ago

done at 0.6.0