Comments (11)
Any plans/progress on this? Do you want to use Maven as build tool or use something else (Gradle?) but publish Maven artifacts as well?
Would also be nice to have a public build server, e.g. on CloudBees, wouldn't it?
from c4j.
I think Maven is fine. I'll need support for a customized Manifest-File and building an additional Jar - not sure if that's possible with Gradle.
Build server is a great idea, I'll open a separate issue for that one.
from c4j.
What needs to be customized in the manifest file?
from c4j.
Premain-Class and Boot-Class-Path, see https://github.com/C4J-Team/C4J/blob/master/c4j/build.xml
from c4j.
Thanks, wasn't aware of the Ant build file.
from c4j.
Do you want to keep working with JARs in the lib folder or use Maven for dependency management and m2eclipse locally?
from c4j.
Maven all the way!
from c4j.
Doesn't work for me on my MacBook (using Maven 3.03):
[INFO] ------------------------------------------------------------------------
[INFO] Building c4j-systemtest 4.0-Beta6-SNAPSHOT
[INFO] ------------------------------------------------------------------------
Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-jar-plugin/2.4/maven-jar-plugin-2.4.pom
Downloaded: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-jar-plugin/2.4/maven-jar-plugin-2.4.pom (6 KB at 10.4 KB/sec)
Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-jar-plugin/2.4/maven-jar-plugin-2.4.jar
Downloaded: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-jar-plugin/2.4/maven-jar-plugin-2.4.jar (34 KB at 29.5 KB/sec)
Downloading: http://repo1.maven.org/maven2/org/hamcrest/hamcrest-integration/1.3.RC2/hamcrest-integration-1.3.RC2.pom
Downloaded: http://repo1.maven.org/maven2/org/hamcrest/hamcrest-integration/1.3.RC2/hamcrest-integration-1.3.RC2.pom (2 KB at 2.9 KB/sec)
Downloading: http://repo1.maven.org/maven2/org/hamcrest/hamcrest-integration/1.3.RC2/hamcrest-integration-1.3.RC2.jar
Downloaded: http://repo1.maven.org/maven2/org/hamcrest/hamcrest-integration/1.3.RC2/hamcrest-integration-1.3.RC2.jar (7 KB at 16.3 KB/sec)
[INFO]
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ c4j-systemtest ---
[INFO]
[INFO] --- maven-resources-plugin:2.4.3:resources (default-resources) @ c4j-systemtest ---
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory /Users/mphilipp/Repositories/C4J/c4j-systemtest/src/main/resources
[INFO]
[INFO] --- maven-compiler-plugin:2.4:compile (default-compile) @ c4j-systemtest ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-resources-plugin:2.4.3:testResources (default-testResources) @ c4j-systemtest ---
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 1 resource
[INFO]
[INFO] --- maven-compiler-plugin:2.4:testCompile (default-testCompile) @ c4j-systemtest ---
[WARNING] File encoding has not been set, using platform encoding UTF-8, i.e. build is platform dependent!
[INFO] Compiling 87 source files to /Users/mphilipp/Repositories/C4J/c4j-systemtest/target/test-classes
[INFO]
[INFO] --- maven-surefire-plugin:2.12:test (default-test) @ c4j-systemtest ---
[INFO] Surefire report directory: /Users/mphilipp/Repositories/C4J/c4j-systemtest/target/surefire-reports
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Error opening zip file or JAR manifest missing : ../c4j/dist/c4j-current-all.jar
Error occurred during initialization of VM
agent library failed to init: instrument
Results :
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] c4j ............................................... SUCCESS [39.475s]
[INFO] c4j-systemtest .................................... FAILURE [3.574s]
[INFO] c4j-acceptancetest ................................ SKIPPED
[INFO] c4j-parent ........................................ SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 43.252s
[INFO] Finished at: Sat May 19 19:54:55 CEST 2012
[INFO] Final Memory: 12M/95M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project c4j-systemtest: Error occurred in starting fork, check output in log -> [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/MojoExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :c4j-systemtest
Doesn't work on the Usus Jenkins either (different error message):
https://projectusus.ci.cloudbees.com/job/C4J/2/console
from c4j.
Ok, figured out the problem I've had locally: Used mvn clean test
instead of mvn clean install
.
Now looking into the Jenkins config.
from c4j.
After having had the same compilation errors on BuildHive, it seems to be a bug in the Java Compiler - see https://github.com/C4J-Team/C4J/wiki/Known-Issues
Fixed the relevant code, should now also run on your Jenkins.
from c4j.
Indeed, it does: https://projectusus.ci.cloudbees.com/job/C4J/3/
Thanks!
from c4j.
Related Issues (20)
- Fix @AllowPureAccess not working correctly with Objects
- Exceptions being thrown while storing a value for old() in a pre-condition should be thrown in the post-condition
- Work together with EclEmma
- Fix old-Expressions being evaluated in post-condition
- Fix bug when using old and unchanged together in a post-condition
- Fix bug when using old and unchanged in a post-condition as well as in a class-invariant
- Fix pure trying to access package-private fields when subclass is in another package
- Fix XML-Configuration not working for top-level package-names
- Improve performance by removing Thread.currentThread.getStackTrace() calls
- Allow class initializers write access on own static fields in pure validation
- Configure contracts to be run only for a fraction of method calls, ensuring a limited overhead during runtime
- Use SLF4J instead of Log4J
- Review and decide on LSP Implementation HOT 1
- No instrumentation when method is undeclared and already instrumented in super-class
- Bug: unchanged() and old() not usable within extracted methods in Contract class
- Change constructor contract functionality
- Synthetic static method in contract class throws UsageError
- instrumenting too much?
- c4j once configured in Base Eclipse Plugin used in dependant plugins
- Checking whether a precondition is strengthening a super-defined precondition seems to be to strict in case of using external contract classes.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from c4j.