Skip to content

Why not publish to Maven Central #15

@wnm3

Description

@wnm3

It would make it easier if you published to Maven Central so we could simply reference your jar in our pom.xml. I found, after building with: mvn install clean I was able to reference locally in my ~/.m2/repository using:

    <dependency>
      <groupId>com.google.search.robotstxt</groupId>
      <artifactId>robotstxt-java</artifactId>
      <version>1.0-SNAPSHOT</version>
    </dependency>

But I need to inform others to clone and build locally if they intend to use the library.

It would also be helpful to add the build for *-jar-with-dependencies.jar by updating the pom.xml with these lines in the plugin:

      <plugin>
        <artifactId>maven-assembly-plugin</artifactId>

add these

        <executions>
          <execution>
            <id>simple-command</id>
            <phase>package</phase>
            <goals>
              <goal>attached</goal>
            </goals>
          </execution>
        </executions>

end addition

        <configuration>
          <descriptorRefs>
            <descriptorRef>jar-with-dependencies</descriptorRef>
          </descriptorRefs>
          <archive>
            <manifest>
              <mainClass>com.google.search.robotstxt.RobotsParserApp</mainClass>
            </manifest>
          </archive>
        </configuration>
      </plugin>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions