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

Update instructions as assembly:assembly is not working #109

Closed
gurminder71 opened this issue May 8, 2024 · 0 comments · Fixed by #116 or #115
Closed

Update instructions as assembly:assembly is not working #109

gurminder71 opened this issue May 8, 2024 · 0 comments · Fixed by #116 or #115

Comments

@gurminder71
Copy link
Contributor

gurminder71 commented May 8, 2024

The assembly plugin has single goal that should be used. In the pom.xml, add:

        <executions>
          <execution>
            <id>make-assembly</id>
            <phase>package</phase>
            <goals>
              <goal>single</goal>
            </goals>
          </execution>
        </executions>

If above is done, then the build instructions are:

mvn clean generate-sources compile package

If the execution is not added, then instructions should be:

mvn clean generate-sources compile assembly:single

I am getting following error:

% mvn clean generate-resources compile assembly:assembly
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  0.116 s
[INFO] Finished at: 2024-05-07T23:37:07-07:00
[INFO] ------------------------------------------------------------------------
[ERROR] Could not find goal 'assembly' in plugin org.apache.maven.plugins:maven-assembly-plugin:3.6.0 among available goals help, single -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoNotFoundException
@gurminder71 gurminder71 changed the title Update instructions to use assembly:single instead of assembly:assembly Update instructions as assembly:assembly is not working May 8, 2024
nielm added a commit to nielm/spanner-schema-diff-tool that referenced this issue May 27, 2024
use mvn package to generate single JAR.

fixes cloudspannerecosystem#109
nielm added a commit to nielm/spanner-schema-diff-tool that referenced this issue May 27, 2024
use mvn package to generate single JAR.

fixes cloudspannerecosystem#109
nielm added a commit to nielm/spanner-schema-diff-tool that referenced this issue May 27, 2024
use mvn package to generate single JAR.

fixes cloudspannerecosystem#109
nielm added a commit that referenced this issue May 27, 2024
use `mvn package` to generate single JAR with dependencies

fixes #109
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant