GUJ Discussões   :   últimos tópicos   |   categorias   |   GUJ Respostas

Erro dependencias iReport Maven


#1

Comecei a adicionar um relatório na minha aplicação, fui construir e começou a dar esse erro.

já exclui a .m2
já deletei e adicionei denovo a dependencia do erro, enfim estou me batendo aqui e não acho a solução
alguém pode ajudar ?

cd /home/bruno/Projects/fcar/FCAR; JAVA_HOME=/usr/lib/jvm/default-java /home/bruno/netbeans-8.2/java/maven/bin/mvn clean install
Scanning for projects…


Building FCAR 1.0

The POM for unknown.binary:hibernate-jpamodelgen-4.3.1.Final:jar:SNAPSHOT is missing, no dependency information available
The POM for unknown.binary:AbsoluteLayout:jar:SNAPSHOT is missing, no dependency information available

— maven-clean-plugin:2.4.1:clean (default-clean) @ FCAR —

— maven-resources-plugin:2.5:resources (default-resources) @ FCAR —
[debug] execute contextualize
Using ‘UTF-8’ encoding to copy filtered resources.
Copying 40 resources

— maven-compiler-plugin:2.3.2:compile (default-compile) @ FCAR —
Compiling 175 source files to /home/bruno/Projects/fcar/FCAR/target/classes

— maven-resources-plugin:2.5:testResources (default-testResources) @ FCAR —
[debug] execute contextualize
Using ‘UTF-8’ encoding to copy filtered resources.
skip non existing resourceDirectory /home/bruno/Projects/fcar/FCAR/src/test/resources

— maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @ FCAR —
Nothing to compile - all classes are up to date

— maven-surefire-plugin:2.10:test (default-test) @ FCAR —
No tests to run.
Surefire report directory: /home/bruno/Projects/fcar/FCAR/target/surefire-reports


T E S T S

Results :

Tests run: 0, Failures: 0, Errors: 0, Skipped: 0

— maven-jar-plugin:2.3.2:jar (default-jar) @ FCAR —
Downloading: http://repo.maven.apache.org/maven2/commons-lang/commons-lang/2.1/commons-lang-2.1.pom

Downloaded: http://repo.maven.apache.org/maven2/commons-lang/commons-lang/2.1/commons-lang-2.1.pom (10 KB at 17.2 KB/sec)
Downloading: http://repo.maven.apache.org/maven2/commons-lang/commons-lang/2.1/commons-lang-2.1.jar

Downloaded: http://repo.maven.apache.org/maven2/commons-lang/commons-lang/2.1/commons-lang-2.1.jar (203 KB at 259.1 KB/sec)
Building jar: /home/bruno/Projects/fcar/FCAR/target/FCAR.jar

— maven-assembly-plugin:2.2-beta-5:single (default) @ FCAR —
Missing POM for unknown.binary:AbsoluteLayout:jar:SNAPSHOT
Missing POM for unknown.binary:AbsoluteLayout:jar:SNAPSHOT
Downloading: file:/home/bruno/Projects/fcar/FCAR/lib/com/lowagie/itext/2.1.7.js2/itext-2.1.7.js2.pom
Exception in thread “pool-3-thread-1” java.lang.NoClassDefFoundError: org/apache/commons/lang/StringUtils
at org.apache.maven.wagon.providers.file.FileWagon.resolveDestinationPath(FileWagon.java:206)
at org.apache.maven.wagon.providers.file.FileWagon.resourceExists(FileWagon.java:265)
at org.sonatype.aether.connector.wagon.WagonRepositoryConnector$GetTask.run(WagonRepositoryConnector.java:577)
at org.sonatype.aether.util.concurrency.RunnableErrorForwarder$1.run(RunnableErrorForwarder.java:60)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.ClassNotFoundException: org.apache.commons.lang.StringUtils
at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50)
at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:244)
at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:230)
… 7 more

BUILD FAILURE

Total time: 14.989s
Finished at: Wed Dec 06 15:50:55 BRST 2017
Final Memory: 27M/381M

Failed to execute goal org.apache.maven.plugins:maven-assembly-plugin:2.2-beta-5:single (default) on project FCAR: Execution default of goal org.apache.maven.plugins:maven-assembly-plugin:2.2-beta-5:single failed: A required class was missing while executing org.apache.maven.plugins:maven-assembly-plugin:2.2-beta-5:single: org/apache/commons/lang/StringUtils

realm = plugin>org.apache.maven.plugins:maven-assembly-plugin:2.2-beta-5
strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
urls[0] = file:/home/bruno/.m2/repository/org/apache/maven/plugins/maven-assembly-plugin/2.2-beta-5/maven-assembly-plugin-2.2-beta-5.jar
urls[1] = file:/home/bruno/.m2/repository/org/apache/maven/shared/maven-common-artifact-filters/1.1/maven-common-artifact-filters-1.1.jar
urls[2] = file:/home/bruno/.m2/repository/org/apache/maven/shared/maven-plugin-testing-harness/1.1/maven-plugin-testing-harness-1.1.jar
urls[3] = file:/home/bruno/.m2/repository/org/codehaus/plexus/plexus-interpolation/1.7/plexus-interpolation-1.7.jar
urls[4] = file:/home/bruno/.m2/repository/org/codehaus/plexus/plexus-archiver/1.0-alpha-12/plexus-archiver-1.0-alpha-12.jar
urls[5] = file:/home/bruno/.m2/repository/org/apache/maven/shared/file-management/1.1/file-management-1.1.jar
urls[6] = file:/home/bruno/.m2/repository/org/apache/maven/shared/maven-shared-io/1.1/maven-shared-io-1.1.jar
urls[7] = file:/home/bruno/.m2/repository/org/apache/maven/shared/maven-filtering/1.0-beta-2/maven-filtering-1.0-beta-2.jar
urls[8] = file:/home/bruno/.m2/repository/org/apache/maven/reporting/maven-reporting-api/2.0.6/maven-reporting-api-2.0.6.jar
urls[9] = file:/home/bruno/.m2/repository/org/apache/maven/doxia/doxia-sink-api/1.0-alpha-7/doxia-sink-api-1.0-alpha-7.jar
urls[10] = file:/home/bruno/.m2/repository/commons-cli/commons-cli/1.0/commons-cli-1.0.jar
urls[11] = file:/home/bruno/.m2/repository/org/codehaus/plexus/plexus-interactivity-api/1.0-alpha-4/plexus-interactivity-api-1.0-alpha-4.jar
urls[12] = file:/home/bruno/.m2/repository/org/codehaus/plexus/plexus-active-collections/1.0-beta-2/plexus-active-collections-1.0-beta-2.jar
urls[13] = file:/home/bruno/.m2/repository/org/codehaus/plexus/plexus-io/1.0-alpha-4/plexus-io-1.0-alpha-4.jar
urls[14] = file:/home/bruno/.m2/repository/org/apache/maven/maven-archiver/2.4/maven-archiver-2.4.jar
urls[15] = file:/home/bruno/.m2/repository/junit/junit/3.8.1/junit-3.8.1.jar
urls[16] = file:/home/bruno/.m2/repository/org/codehaus/plexus/plexus-utils/2.0.1/plexus-utils-2.0.1.jar
urls[17] = file:/home/bruno/.m2/repository/org/apache/maven/shared/maven-repository-builder/1.0-alpha-2/maven-repository-builder-1.0-alpha-2.jar
Number of foreign imports: 1
import: Entry[import from realm ClassRealm[maven.api, parent: null]]

-----------------------------------------------------: org.apache.commons.lang.StringUtils
-> [Help 1]

To see the full stack trace of the errors, re-run Maven with the -e switch.
Re-run Maven using the -X switch to enable full debug logging.

For more information about the errors and possible solutions, please read the following articles:
[Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginContainerException

<dependencies>
    <dependency>
        <groupId>mysql</groupId>
        <artifactId>mysql-connector-java</artifactId>
        <version>5.1.6</version>
    </dependency>
    <dependency>
        <groupId>com.toedter</groupId>
        <artifactId>jcalendar</artifactId>
        <version>1.4</version>
    </dependency>
    <dependency>
        <groupId>org.hibernate</groupId>
        <artifactId>hibernate-entitymanager</artifactId>
        <version>4.3.1.Final</version>
    </dependency>
    <dependency>
        <groupId>unknown.binary</groupId>
        <artifactId>hibernate-jpamodelgen-4.3.1.Final</artifactId>
        <version>SNAPSHOT</version>
        <scope>provided</scope>
    </dependency>
    <dependency>
        <groupId>it.tidalwave.betterbeansbinding</groupId>
        <artifactId>betterbeansbinding-core</artifactId>
        <version>1.3.0</version>
    </dependency>   
    <dependency>
        <groupId>it.tidalwave.betterbeansbinding</groupId>
        <artifactId>betterbeansbinding-el</artifactId>
        <version>1.3.0</version>
    </dependency>
    <dependency>
        <groupId>it.tidalwave.betterbeansbinding</groupId>
        <artifactId>betterbeansbinding-swingbinding</artifactId>
        <version>1.3.0</version>
    </dependency>
    <dependency>
        <groupId>org.jboss.jandex</groupId>
        <artifactId>jandex-maven-plugin</artifactId>
        <version>1.0.5</version>
    </dependency>
    <dependency>
        <groupId>org.swinglabs.swingx</groupId>
        <artifactId>swingx-all</artifactId>
        <version>1.6.5-1</version>
    </dependency>
    <!-- https://mvnrepository.com/artifact/commons-beanutils/commons-beanutils -->
    <dependency>
        <groupId>commons-beanutils</groupId>
        <artifactId>commons-beanutils</artifactId>
        <version>1.9.2</version>
    </dependency>
    <dependency>
        <groupId>unknown.binary</groupId>
        <artifactId>AbsoluteLayout</artifactId>
        <version>SNAPSHOT</version>
    </dependency>
    <dependency>
        <groupId>net.sf.jasperreports</groupId>
        <artifactId>jasperreports</artifactId>
        <version>6.1.0</version>
        <type>jar</type>
    </dependency>
    <dependency>
        <groupId>commons-lang</groupId>
        <artifactId>commons-lang</artifactId>
        <version>2.6</version>
    </dependency>
    <dependency>
        <groupId>commons-codec</groupId>
        <artifactId>commons-codec</artifactId>
        <version>1.10</version>
    </dependency>
</dependencies>
<properties>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    <maven.compiler.source>1.8</maven.compiler.source>
    <maven.compiler.target>1.8</maven.compiler.target>
</properties>

<build>
    <finalName>FCAR</finalName>
    <plugins>
        <plugin>
            <artifactId>maven-assembly-plugin</artifactId>
            <executions>
                <execution>
                    <phase>package</phase> <!-- bind to the packaging phase -->
                    <goals>
                        <goal>single</goal>
                    </goals>
                </execution>
            </executions>
            <configuration>
                <archive>
                    <manifest>
                        <mainClass>br.com.bspicinini.view.LoginView</mainClass>
                    </manifest>
                </archive>
                <descriptorRefs>
                    <descriptorRef>jar-with-dependencies</descriptorRef>
                </descriptorRefs>
            </configuration>
        </plugin>
    </plugins>
</build>