How to download and compile SwingX

This should be basically a question by the newcomers to Maven.

Since SwingX has moved to Kenai, there are warnings on the website that many links are broken .. so this is my best attempt.

  • I went to https://java.net/projects/swingx/downloads/directory/releases
  • By clicking on "SwingX 1.6.4 All - Sources" (really not an intuitive, hit-or-miss choice for me, but maybe this is a naming convention that other people understand?)
  • This loads swingx-all-1.6.4-sources.jar (why is it even a jar and not a zip?)

However, this source does not contain POM.XML.

So, I downloaded swingx-all-1.6.4.jar from the same link, renamed it to .zip, overpriced. It contains META-INF \ Maven \ org.swinglabs.swingx \ swingx-all \ pom.xml:

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  <modelVersion>4.0.0</modelVersion>
  <parent>
    <artifactId>swingx-project</artifactId>
    <groupId>org.swinglabs.swingx</groupId>
    <version>1.6.4</version>
    <relativePath>../pom.xml</relativePath>
  </parent>
  <artifactId>swingx-all</artifactId>
  <packaging>jar</packaging>
  <name>SwingX Complete</name>
  <description>A Maven project to aggregate all modules into a single artifact.</description>
  <properties>
    <project.generatedDependencies>${project.generatedSourcesDirectoy}/dependencies</project.generatedDependencies>
  </properties>
  <!-- make the dependent swingx modules optional, since we're aggregating -->
  <dependencies>
    <dependency>
      <groupId>${project.groupId}</groupId>
      <artifactId>swingx-graphics</artifactId>
      <version>${project.version}</version>
      <type>jar</type>
      <scope>compile</scope>
      <optional>true</optional>
    </dependency>
    <dependency>
      <groupId>${project.groupId}</groupId>
      <artifactId>swingx-core</artifactId>
      <version>${project.version}</version>
      <type>jar</type>
      <scope>compile</scope>
      <optional>true</optional>
    </dependency>
    <dependency>
      <groupId>${project.groupId}</groupId>
      <artifactId>swingx-mavensupport</artifactId>
      <version>${project.version}</version>
      <type>jar</type>
      <scope>compile</scope>
      <optional>true</optional>
    </dependency>
  </dependencies>
  <profiles>
    <profile>
      <id>jvnet-release</id>
      <build>
        <plugins>
          <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-dependency-plugin</artifactId>
            <version>2.4</version>
            <executions>
              <execution>
                <id>src-dependencies</id>
                <phase>generate-sources</phase>
                <goals>
                  <goal>unpack-dependencies</goal>
                </goals>
                <configuration>
                  <classifier>sources</classifier>
                  <includeGroupIds>${project.groupId}</includeGroupIds>
                  <excludeArtifactIds>swingx-mavensupport</excludeArtifactIds>
                  <failOnMissingClassifierArtifact>false</failOnMissingClassifierArtifact>
                  <outputDirectory>${project.generatedDependencies}</outputDirectory>
                </configuration>
              </execution>
            </executions>
          </plugin>
          <plugin>
            <groupId>org.codehaus.mojo</groupId>
            <artifactId>build-helper-maven-plugin</artifactId>
            <version>1.4</version>
            <executions>
              <execution>
                <id>add-dependencies-source</id>
                <phase>generate-sources</phase>
                <goals>
                  <goal>add-source</goal>
                </goals>
                <configuration>
                  <sources>
                    <source>${project.generatedDependencies}</source>
                  </sources>
                </configuration>
              </execution>
              <execution>
                <id>add-dependencies-resource</id>
                <phase>generate-resources</phase>
                <goals>
                  <goal>add-resource</goal>
                </goals>
                <configuration>
                  <resources>
                    <resource>
                      <directory>${project.generatedDependencies}</directory>
                      <excludes>
                        <exclude>**/*.java</exclude>
                      </excludes>
                    </resource>
                  </resources>
                </configuration>
              </execution>
            </executions>
          </plugin>
          <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-jar-plugin</artifactId>
            <configuration>
              <archive>
                <manifestFile>${project.generatedAnnotations}/META-INF/MANIFEST.MF</manifestFile>
              </archive>
            </configuration>
          </plugin>
        </plugins>
      </build>
    </profile>
  </profiles>
</project>

, POM.XML mvn install, , , .. :

[INFO] Directory F:\swingx\swingx--1.6.4\META-INF\ Maven\org.swinglabs.swingx\swingx-\SRC\\

, src . , .jar, , , , , - Maven - ... , ? Confused.

src zip , pom.xml . , - , .

, - , swingx-mavensupport-1.6.4.jar

, , .zip, , :  META-INF\Maven\org.swinglabs.swingx\swingx-mavensupport\pom.xml:

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  <modelVersion>4.0.0</modelVersion>
  <parent>
    <artifactId>swingx-project</artifactId>
    <groupId>org.swinglabs.swingx</groupId>
    <version>1.6.4</version>
    <relativePath>../pom.xml</relativePath>
  </parent>
  <artifactId>swingx-mavensupport</artifactId>
  <name>SwingX Maven Support</name>
</project>

mvn.install

.

, . ?

+4
1

URL SVN: https://svn.java.net/svn/swingx~svn. pom.xml ( ), .

swingx-all-1.6.4-sources.jar( , zip?)

Maven.

+6

All Articles