Open MikeHanson opened 11 years ago
Hi Mike, I don't have a jar hosted anywhere for download, but it should build with Maven very easily using 'mvn clean install'
Regards, Tim
On May 3, 2013, at 6:54 AM, Mike Hanson notifications@github.com wrote:
Sorry been a long time since I did Java and don't really want to dig around to remember how to build this into a jar. Is there a ready built jar available?
— Reply to this email directly or view it on GitHub.
I just did a mvn clean install, but got the error bellow. If you can help with the build, I will update the readme in my fork, and send a pull request.
[INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [INFO] Building fitnesse-git-plugin [INFO] task-segment: [clean, install] [INFO] ------------------------------------------------------------------------ Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-clean-plugin/2.3/maven-clean-plugin-2.3.pom 4K downloaded (maven-clean-plugin-2.3.pom) Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-clean-plugin/2.3/maven-clean-plugin-2.3.jar 16K downloaded (maven-clean-plugin-2.3.jar) Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-compiler-plugin/2.0.2/maven-compiler-plugin-2.0.2.pom 2K downloaded (maven-compiler-plugin-2.0.2.pom) Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-plugins/8/maven-plugins-8.pom 5K downloaded (maven-plugins-8.pom) Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-compiler-plugin/2.0.2/maven-compiler-plugin-2.0.2.jar 17K downloaded (maven-compiler-plugin-2.0.2.jar) Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-source-plugin/2.0.4/maven-source-plugin-2.0.4.pom 3K downloaded (maven-source-plugin-2.0.4.pom) Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-source-plugin/2.0.4/maven-source-plugin-2.0.4.jar 14K downloaded (maven-source-plugin-2.0.4.jar) Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-release-plugin/2.0-beta-9/maven-release-plugin-2.0-beta-9.pom 6K downloaded (maven-release-plugin-2.0-beta-9.pom) Downloading: http://repo1.maven.org/maven2/org/apache/maven/release/maven-release/2.0-beta-9/maven-release-2.0-beta-9.pom 6K downloaded (maven-release-2.0-beta-9.pom) Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-release-plugin/2.0-beta-9/maven-release-plugin-2.0-beta-9.jar 31K downloaded (maven-release-plugin-2.0-beta-9.jar) Downloading: http://repo1.maven.org/maven2/org/apache/maven/shared/file-management/1.2.1/file-management-1.2.1.pom 3K downloaded (file-management-1.2.1.pom) Downloading: http://repo1.maven.org/maven2/org/apache/maven/shared/maven-shared-io/1.1/maven-shared-io-1.1.pom 3K downloaded (maven-shared-io-1.1.pom) Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven-artifact/2.0.2/maven-artifact-2.0.2.pom 765b downloaded (maven-artifact-2.0.2.pom) Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven/2.0.2/maven-2.0.2.pom 12K downloaded (maven-2.0.2.pom) Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven-artifact-manager/2.0.2/maven-artifact-manager-2.0.2.pom 1K downloaded (maven-artifact-manager-2.0.2.pom) Downloading: http://repo1.maven.org/maven2/org/apache/maven/wagon/wagon-provider-api/1.0-alpha-6/wagon-provider-api-1.0-alpha-6.pom 588b downloaded (wagon-provider-api-1.0-alpha-6.pom) Downloading: http://repo1.maven.org/maven2/org/apache/maven/wagon/wagon/1.0-alpha-6/wagon-1.0-alpha-6.pom 6K downloaded (wagon-1.0-alpha-6.pom) Downloading: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-utils/1.4.6/plexus-utils-1.4.6.pom 2K downloaded (plexus-utils-1.4.6.pom) Downloading: http://repo1.maven.org/maven2/org/apache/maven/shared/file-management/1.2.1/file-management-1.2.1.jar 36K downloaded (file-management-1.2.1.jar) Downloading: http://repo1.maven.org/maven2/org/apache/maven/shared/maven-shared-io/1.1/maven-shared-io-1.1.jar 38K downloaded (maven-shared-io-1.1.jar) [INFO] [clean:clean {execution: default-clean}] Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-surefire-plugin/2.10/maven-surefire-plugin-2.10.pom 10K downloaded (maven-surefire-plugin-2.10.pom) Downloading: http://repo1.maven.org/maven2/org/apache/maven/surefire/surefire/2.10/surefire-2.10.pom 11K downloaded (surefire-2.10.pom) Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven-parent/20/maven-parent-20.pom 24K downloaded (maven-parent-20.pom) Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-surefire-plugin/2.10/maven-surefire-plugin-2.10.jar 29K downloaded (maven-surefire-plugin-2.10.jar) [INFO] [resources:resources {execution: default-resources}] [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] skip non existing resourceDirectory /home/richard/+Files/workshops/fitnesse-git-plugin/src/main/resources Downloading: http://repo1.maven.org/maven2/org/mockito/mockito-all/1.8.5/mockito-all-1.8.5.pom 858b downloaded (mockito-all-1.8.5.pom) Downloading: http://repo1.maven.org/maven2/org/fitnesse/fitnesse/20100303/fitnesse-20100303.pom [INFO] Unable to find resource 'org.fitnesse:fitnesse:pom:20100303' in repository central (http://repo1.maven.org/maven2) Downloading: http://repo1.maven.org/maven2/org/fitnesse/fitnesse/20100303/fitnesse-20100303.jar [INFO] Unable to find resource 'org.fitnesse:fitnesse:jar:20100303' in repository central (http://repo1.maven.org/maven2) [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Failed to resolve artifact.
1) org.fitnesse:fitnesse:jar:20100303
Try downloading the file manually from the project website.
Then, install it using the command: mvn install:install-file -DgroupId=org.fitnesse -DartifactId=fitnesse -Dversion=20100303 -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=org.fitnesse -DartifactId=fitnesse -Dversion=20100303 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency: 1) org.fitnesse:fitnesse-git-plugin:jar:1.2-SNAPSHOT 2) org.fitnesse:fitnesse:jar:20100303
1 required artifact is missing.
for artifact: org.fitnesse:fitnesse-git-plugin:jar:1.2-SNAPSHOT
from the specified remote repositories: central (http://repo1.maven.org/maven2)
[INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [INFO] Total time: 16 seconds [INFO] Finished at: Thu Sep 12 21:49:08 BST 2013 [INFO] Final Memory: 10M/78M [INFO] ------------------------------------------------------------------------
Hi Richard,
What problem are you having with the build?
Tim
On Thu, Sep 12, 2013 at 3:55 PM, richard-delorenzi <notifications@github.com
wrote:
I just did a mvn clean install, but got the error bellow. If you can help with the build, I will update the readme in my fork, and send a pull request. Missing:
1) org.fitnesse:fitnesse:jar:20100303
Try downloading the file manually from the project website.
Then, install it using the command: mvn install:install-file -DgroupId=org.fitnesse -DartifactId=fitnesse -Dversion=20100303 -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=org.fitnesse -DartifactId=fitnesse -Dversion=20100303 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency: 1) org.fitnesse:fitnesse-git-plugin:jar:1.2-SNAPSHOT
2) org.fitnesse:fitnesse:jar:20100303
1 required artifact is missing.
for artifact: org.fitnesse:fitnesse-git-plugin:jar:1.2-SNAPSHOT
from the specified remote repositories: central (http://repo1.maven.org/maven2)
— Reply to this email directly or view it on GitHubhttps://github.com/timander/fitnesse-git-plugin/issues/1#issuecomment-24355160 .
$ mvn clean install
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building fitnesse-git-plugin 1.2-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ fitnesse-git-plugin ---
[INFO] Deleting fitnesse-git-plugin/target
[INFO]
[INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ fitnesse-git-plugin ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory fitnesse-git-plugin/src/main/resources
[INFO]
[INFO] --- maven-compiler-plugin:2.0.2:compile (default-compile) @ fitnesse-git-plugin ---
[INFO] Compiling 3 source files to fitnesse-git-plugin/target/classes
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.462s
[INFO] Finished at: Sun Dec 15 23:57:05 BRST 2013
[INFO] Final Memory: 10M/24M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile (default-compile) on project fitnesse-git-plugin: Compilation failure: Compilation failure:
[ERROR] fitnesse-git-plugin/src/main/java/org/fitnesse/plugins/GitDelegate.java:[3,15] error: cannot find symbol
[ERROR]
[ERROR] could not parse error message: symbol: class ComponentFactory
[ERROR] location: package fitnesse
[ERROR] fitnesse-git-plugin/src/main/java/org/fitnesse/plugins/GitDelegate.java:4: error: cannot find symbol
[ERROR] import fitnesse.components.CommandRunner;
[ERROR] ^
[ERROR]
[ERROR] could not parse error message: symbol: class CommandRunner
[ERROR] location: package fitnesse.components
[ERROR] fitnesse-git-plugin/src/main/java/org/fitnesse/plugins/CommandExecutor.java:3: error: cannot find symbol
[ERROR] import fitnesse.components.CommandRunner;
[ERROR] ^
[ERROR]
[ERROR] could not parse error message: symbol: class CommandRunner
[ERROR] location: package fitnesse.components
[ERROR] fitnesse-git-plugin/src/main/java/org/fitnesse/plugins/CommandExecutor.java:6: error: cannot find symbol
[ERROR] public CommandRunner exec(String command) {
[ERROR] ^
[ERROR]
[ERROR] could not parse error message: symbol: class CommandRunner
[ERROR] location: class CommandExecutor
[ERROR] fitnesse-git-plugin/src/main/java/org/fitnesse/plugins/GitDelegate.java:37: error: cannot find symbol
[ERROR] CommandRunner runner = executor.exec(gitPath() + " log -1 --pretty=oneline");
[ERROR] ^
[ERROR]
[ERROR] could not parse error message: symbol: class CommandRunner
[ERROR] location: class GitDelegate
[ERROR] fitnesse-git-plugin/src/main/java/org/fitnesse/plugins/GitDelegate.java:59: error: cannot find symbol
[ERROR] FileInputStream inputStream = new FileInputStream(ComponentFactory.PROPERTIES_FILE);
[ERROR] ^
[ERROR]
[ERROR] could not parse error message: symbol: variable ComponentFactory
[ERROR] location: class GitDelegate
[ERROR] fitnesse-git-plugin/src/main/java/org/fitnesse/plugins/CommandExecutor.java:7: error: cannot find symbol
[ERROR] CommandRunner runner = new CommandRunner(command, "");
[ERROR] ^
[ERROR]
[ERROR] could not parse error message: symbol: class CommandRunner
[ERROR] location: class CommandExecutor
[ERROR] fitnesse-git-plugin/src/main/java/org/fitnesse/plugins/CommandExecutor.java:7: error: cannot find symbol
[ERROR] CommandRunner runner = new CommandRunner(command, "");
[ERROR] ^
[ERROR] -> [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/MojoFailureException
Hi Carlos, are you still having trouble running the build for the fitnesse-git-plugin? What version of FitNesse are you planning to use?
On Sun, Dec 15, 2013 at 8:02 PM, Carlos Romel Pereira da Silva < notifications@github.com> wrote:
$ mvn clean install [INFO] Scanning for projects... [INFO]
[INFO]
[INFO] Building fitnesse-git-plugin 1.2-SNAPSHOT
[INFO]
[INFO] [INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ fitnesse-git-plugin --- [INFO] Deleting fitnesse-git-plugin/target [INFO] [INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ fitnesse-git-plugin --- [debug] execute contextualize [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] skip non existing resourceDirectory fitnesse-git-plugin/src/main/resources [INFO] [INFO] --- maven-compiler-plugin:2.0.2:compile (default-compile) @ fitnesse-git-plugin --- [INFO] Compiling 3 source files to fitnesse-git-plugin/target/classes
[INFO]
[INFO] BUILD FAILURE
[INFO]
[INFO] Total time: 3.462s [INFO] Finished at: Sun Dec 15 23:57:05 BRST 2013 [INFO] Final Memory: 10M/24M
[INFO]
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile (default-compile) on project fitnesse-git-plugin: Compilation failure: Compilation failure: [ERROR] fitnesse-git-plugin/src/main/java/org/fitnesse/plugins/GitDelegate.java:[3,15] error: cannot find symbol [ERROR] [ERROR] could not parse error message: symbol: class ComponentFactory [ERROR] location: package fitnesse [ERROR] fitnesse-git-plugin/src/main/java/org/fitnesse/plugins/GitDelegate.java:4: error: cannot find symbol [ERROR] import fitnesse.components.CommandRunner; [ERROR] ^ [ERROR] [ERROR] could not parse error message: symbol: class CommandRunner [ERROR] location: package fitnesse.components [ERROR] fitnesse-git-plugin/src/main/java/org/fitnesse/plugins/CommandExecutor.java:3: error: cannot find symbol [ERROR] import fitnesse.components.CommandRunner; [ERROR] ^ [ERROR] [ERROR] could not parse error message: symbol: class CommandRunner [ERROR] location: package fitnesse.components [ERROR] fitnesse-git-plugin/src/main/java/org/fitnesse/plugins/CommandExecutor.java:6: error: cannot find symbol [ERROR] public CommandRunner exec(String command) { [ERROR] ^ [ERROR] [ERROR] could not parse error message: symbol: class CommandRunner [ERROR] location: class CommandExecutor [ERROR] fitnesse-git-plugin/src/main/java/org/fitnesse/plugins/GitDelegate.java:37: error: cannot find symbol [ERROR] CommandRunner runner = executor.exec(gitPath() + " log -1 --pretty=oneline"); [ERROR] ^ [ERROR] [ERROR] could not parse error message: symbol: class CommandRunner [ERROR] location: class GitDelegate [ERROR] fitnesse-git-plugin/src/main/java/org/fitnesse/plugins/GitDelegate.java:59: error: cannot find symbol [ERROR] FileInputStream inputStream = new FileInputStream(ComponentFactory.PROPERTIES_FILE); [ERROR] ^ [ERROR] [ERROR] could not parse error message: symbol: variable ComponentFactory [ERROR] location: class GitDelegate [ERROR] fitnesse-git-plugin/src/main/java/org/fitnesse/plugins/CommandExecutor.java:7: error: cannot find symbol [ERROR] CommandRunner runner = new CommandRunner(command, ""); [ERROR] ^ [ERROR] [ERROR] could not parse error message: symbol: class CommandRunner [ERROR] location: class CommandExecutor [ERROR] fitnesse-git-plugin/src/main/java/org/fitnesse/plugins/CommandExecutor.java:7: error: cannot find symbol [ERROR] CommandRunner runner = new CommandRunner(command, ""); [ERROR] ^ [ERROR] -> [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/MojoFailureException
— Reply to this email directly or view it on GitHubhttps://github.com/timander/fitnesse-git-plugin/issues/1#issuecomment-30628754 .
Sorry been a long time since I did Java and don't really want to dig around to remember how to build this into a jar. Is there a ready built jar available?