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

Add assembly plugin for creation of a distribution including dependencies #4

Open
wants to merge 32 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
2dbe3b0
jdom-->jdom2
Jul 3, 2014
2fe3297
Added .classpath and .project, changed .gitignore.
pmclaren Dec 18, 2015
1a28db9
added maven-assembly-plugin to allow building a distribution.
pmclaren Jan 7, 2016
7b451eb
Merge remote-tracking branch 'arxes-tolina/master'
pmclaren Jan 8, 2016
98c06a7
removed obsolete annotations.
pmclaren Jan 8, 2016
e017fb8
corrected version.
pmclaren Jan 8, 2016
ff1afc8
corrected assembly.xml and reorganized maven plugins.
pmclaren Jan 8, 2016
15bb142
fixed possible NPE when rules apply to java.lang.Object -> there is no
tillneum Jun 2, 2016
4f0cd8d
added missing files from macker 0.4.2 required to build report when
tillneum Jun 2, 2016
854656c
updated libraries & new release 1.0.3
tillneum Jun 6, 2016
5107d44
news in version 1.0.3
tillneum Jun 6, 2016
0e2b482
URL: his-eg statt andrena
tillneum Jun 6, 2016
f6b5656
Fix "too many open files" on Linux: InputStream is closed now.
tillneum Sep 26, 2016
2f844a7
removed insecure but fortunately unused methods
tillneum Sep 26, 2016
911321f
close OutputStream at end of run() method
tillneum Sep 26, 2016
0750de6
close Streams in MackerReportAntTask, too
tillneum Sep 26, 2016
226ea3b
set version to 1.0.4 and Java version to 1.7 because use of multi-catch
tillneum Sep 26, 2016
cead0ec
move to Java 8
tillneum Jan 2, 2017
6dc8155
move to Java 8
tillneum Jan 3, 2017
67ee971
added travis build status. #00000
pmclaren Jan 5, 2017
6ddeb38
added travis-config. #00000
pmclaren Jan 5, 2017
dab4830
update travis config to use java8. #00000
pmclaren Jan 5, 2017
5f6291f
Merge branch 'master' into master
pmclaren Jan 5, 2017
92aaef0
correct travis link. #00000
pmclaren Jan 5, 2017
1879b2f
update to version 1.0.4
tillneum Feb 15, 2017
706250a
Prepare release 1.0.5 which is built itself with Java 8 +++ fix javadoc
tillneum Feb 15, 2017
0e45ea9
log end of run even if no issues were found
tillneum Feb 24, 2017
43e1f15
use regex.Matcher only when required -> performance almost doubled
tillneum Aug 21, 2017
aab2497
prepare next release
tillneum Aug 21, 2017
19f58fc
mention bugfix
tillneum Aug 21, 2017
c589382
fixed compiler errors in test classes
tillneum Nov 4, 2020
f06dbdc
Update README.md
pmclaren Oct 6, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions .classpath
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" output="target/classes" path="src/main/java">
<attributes>
<attribute name="optional" value="true"/>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="src" output="target/test-classes" path="src/test/java">
<attributes>
<attribute name="optional" value="true"/>
<attribute name="maven.pomderived" value="true"/>
<attribute name="test" value="true"/>
</attributes>
</classpathentry>
<classpathentry excluding="**" kind="src" output="target/classes" path="src/main/resources">
<attributes>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry excluding="**" kind="src" output="target/test-classes" path="src/test/resources">
<attributes>
<attribute name="maven.pomderived" value="true"/>
<attribute name="test" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER">
<attributes>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
<attributes>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="output" path="target/classes"/>
</classpath>
4 changes: 1 addition & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
/target
/.settings
/.classpath
/.project
/bin/
23 changes: 23 additions & 0 deletions .project
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>macker</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.m2e.core.maven2Builder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.m2e.core.maven2Nature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
</projectDescription>
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
language: java

jdk:
- oraclejdk8
17 changes: 17 additions & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
Version 1.0.6:
* Speed improvement by almost factor 2
* Bugfix: The rules project is stored in preferences now, and the rules directory searched inside it.


Version 1.0.5:
* is built itself with Java 8
* fixes javadoc problem with Java 8 (doclint must be turned off in pom.xml)

Version 1.0.4:
* Closing InputStreams in several cases fixed "too many open files" on Linux.

Version 1.0.3:
* Fixed NullPointerException when a rule applies to java.lang.Object, so that there is no superclass
* added files from original macker 0.4.2 required for html report
* updated required libraries

Version 1.0.2:
* Fixed XML validation requiring internet connection.

Expand Down
19 changes: 8 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
[![Build Status](https://travis-ci.org/andrena/macker.svg)](https://travis-ci.org/andrena/macker)


[Documentation and examples](http://innig.net/macker/guide/)

This is a [fork from innig.net](http://innig.net/macker/) ([source](http://sourceforge.net/p/macker/code/177/tree/trunk/macker/)), who initiated and developed this project.

The intent of this fork is solely to ensure availability in Maven Central and updating it as necessary to provide support for today's JVMs. The original Macker (Version 0.4.2) was using [BCEL 5.2](http://commons.apache.org/bcel/) to do the bytecode parsing necessary to detect package dependencies. Unfortunately, it is no longer compatible to the Java Class File Format of Java 1.7 and 1.8. This fork eliminates the dependency to BCEL and replaces it with [Javassist](http://www.csg.is.titech.ac.jp/~chiba/javassist/), which seems to work with the newer class file versions.

See also:
* The corresponding [Maven Plugin](https://github.com/andrena/macker-maven-plugin).
[Documentation and examples](http://innig.net/macker/guide/)

This is a [fork from innig.net](http://innig.net/macker/) ([source](http://sourceforge.net/p/macker/code/177/tree/trunk/macker/)), who initiated and developed this project.

The intent of this fork is solely to ensure availability in Maven Central and updating it as necessary to provide support for today's JVMs. The original Macker (Version 0.4.2) was using [BCEL 5.2](http://commons.apache.org/bcel/) to do the bytecode parsing necessary to detect package dependencies. Unfortunately, it is no longer compatible to the Java Class File Format of Java 1.7 and 1.8. This fork eliminates the dependency to BCEL and replaces it with [Javassist](http://www.csg.is.titech.ac.jp/~chiba/javassist/), which seems to work with the newer class file versions.

See also:
* The corresponding [Maven Plugin](https://github.com/andrena/macker-maven-plugin).
32 changes: 32 additions & 0 deletions assembly.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<assembly
xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0 http://maven.apache.org/xsd/assembly-1.1.0.xsd">
<id>dist</id>
<formats>
<format>zip</format>
</formats>
<dependencySets>
<dependencySet>
<unpack>false</unpack>
<scope>compile</scope>
<useProjectArtifact>false</useProjectArtifact>
<outputDirectory>lib</outputDirectory>
</dependencySet>
<dependencySet>
<unpack>false</unpack>
<scope>runtime</scope>
<useProjectArtifact>false</useProjectArtifact>
<outputDirectory>lib</outputDirectory>
</dependencySet>
</dependencySets>
<fileSets>
<fileSet>
<directory>target</directory>
<outputDirectory>/</outputDirectory>
<includes>
<include>*.jar</include>
</includes>
</fileSet>
</fileSets>
</assembly>
Loading