Git Product home page Git Product logo

addjars-maven-plugin's People

Watchers

 avatar  avatar

addjars-maven-plugin's Issues

Throws Nullpointer exception

What steps will reproduce the problem?
Adding external jar as suggested...

Following is maven snippet
<plugin>
    <groupId>com.googlecode.addjars-maven-plugin</groupId>
    <artifactId>addjars-maven-plugin</artifactId>
    <version>1.0.3</version>
    <executions>
        <execution>
            <goals>
                <goal>add-jars</goal>
            </goals>
            <configuration>
                <resources>
                    <resource>
                        <directory>${basedir}/src/resources/lib</directory>
                        <includes>
                            <include>**/*.jar</include>
                        </includes>                        
                    </resource>
                </resources>
            </configuration>
        </execution>
    </executions>
</plugin>

1.
2.
3.

What is the expected output? What do you see instead?

I get following output
[ERROR] Failed to execute goal 
com.googlecode.addjars-maven-plugin:addjars-maven-plugin:1.0.3:add-jars 
(default) on project TheWeb: null: MojoExecutionException: NullPointerException 
-> [Help 1]


What version of the product are you using? On what operating system?


Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 11 Apr 2012 at 7:10

file not found error for 'pom.xml'

What steps will reproduce the problem?
1. This may be hard to 'reproduce', but I'll try my best to describe the 
problem.

I am getting a file not found error at the end of my mvn install, it is looking 
for 'pom.xml' in your target/com.googlecode.addjars.mojo.AddJarsMojo/ 
directory.  That file is not there.  I do have a 'pom-modified.xml' there.  If 
I rename it to pom.xml and re-run the mvn install command the build completes 
successfully.  All jars are included also!!  I can't tell you how much work 
this will save me, but it is a lot! The product I am using as a (Adobe CQ) has 
100+ jars that it needs and of course we are switching versions soon... so I 
wanted an automated way to include a folder of jars on the classpath during 
build time in maven and you gave it too me!  Now I feel I am very close, if I 
can just get it to not have the file not found exception.  I will attach my 
parent pom.xml, my child pom.xml and the pom-modified.xml to this issue.  

Thank you so much for your work on this!

-Adam Yocum

Maven 3.0.4
Windows 7 + CYGWIN installed
addjars version: 1.0.3


here is the error output...

[ERROR] An internal error occurred
java.io.FileNotFoundException: 
c:\AYall\SWD\projects\CQ\psul-maven\psul\psul-services\target\com.googlecode.add
jars.mojo.AddJarsMojo\pom.xml (The system cannot find the file specified)
        at java.io.FileInputStream.open(Native Method)
        at java.io.FileInputStream.<init>(FileInputStream.java:138)
        at aQute.lib.osgi.FileResource.openInputStream(FileResource.java:15)
        at aQute.lib.osgi.FileResource.copy(FileResource.java:36)
        at aQute.lib.osgi.FileResource.write(FileResource.java:31)
        at aQute.lib.osgi.Jar.writeResource(Jar.java:445)
        at aQute.lib.osgi.Jar.write(Jar.java:224)
        at aQute.lib.osgi.Jar.write(Jar.java:192)
        at org.apache.felix.bundleplugin.BundlePlugin.execute(BundlePlugin.java:362)
        at org.apache.felix.bundleplugin.BundlePlugin.execute(BundlePlugin.java:264)
        at org.apache.felix.bundleplugin.BundlePlugin.execute(BundlePlugin.java:255)
        at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
        at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
        at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:601)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
        at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
        at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 13.060s
[INFO] Finished at: Fri Jun 15 13:58:15 EDT 2012
[INFO] Final Memory: 22M/508M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal 
org.apache.felix:maven-bundle-plugin:2.3.7:bundle (default-bundle) on project 
psul-services: Internal error in maven-bundle-plugin: 
c:\AYall\SWD\projects\CQ\psul-maven\psul\psul-se
rvices\target\com.googlecode.addjars.mojo.AddJarsMojo\pom.xml (The system 
cannot find the file specified) -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal 
org.apache.felix:maven-bundle-plugin:2.3.7:bundle (default-bundle) on project 
psul-services: Internal error in maven-bundle-plugin
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
        at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
        at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:601)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
        at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
        at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: org.apache.maven.plugin.MojoExecutionException: Internal error in 
maven-bundle-plugin
        at org.apache.felix.bundleplugin.BundlePlugin.execute(BundlePlugin.java:412)
        at org.apache.felix.bundleplugin.BundlePlugin.execute(BundlePlugin.java:264)
        at org.apache.felix.bundleplugin.BundlePlugin.execute(BundlePlugin.java:255)
        at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
        ... 19 more
Caused by: java.io.FileNotFoundException: 
c:\AYall\SWD\projects\CQ\psul-maven\psul\psul-services\target\com.googlecode.add
jars.mojo.AddJarsMojo\pom.xml (The system cannot find the file specified)
        at java.io.FileInputStream.open(Native Method)
        at java.io.FileInputStream.<init>(FileInputStream.java:138)
        at aQute.lib.osgi.FileResource.openInputStream(FileResource.java:15)
        at aQute.lib.osgi.FileResource.copy(FileResource.java:36)
        at aQute.lib.osgi.FileResource.write(FileResource.java:31)
        at aQute.lib.osgi.Jar.writeResource(Jar.java:445)
        at aQute.lib.osgi.Jar.write(Jar.java:224)
        at aQute.lib.osgi.Jar.write(Jar.java:192)
        at org.apache.felix.bundleplugin.BundlePlugin.execute(BundlePlugin.java:362)
        ... 23 more
[ERROR]
[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
c:\AYall\SWD\projects\CQ\psul-maven\psul\psul-services>

Original issue reported on code.google.com by [email protected] on 15 Jun 2012 at 6:30

Attachments:

About testing with it

What steps will reproduce the problem?
1. use this plugin
2. configure 3rd party jars - javalite jars
3. test

What is the expected output? What do you see instead?
expecting: running my own test
unexp.: the program will find some instrument file - 
activejdbc_models.properties - in 
target/com.googlecode.addjars.mojo.AddJarsMojo/...

What version of the product are you using? On what operating system?
max os 10.8

Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 2 Sep 2014 at 1:18

Failed to execute goal org.apache.axis2:axis2-java2wsdl-maven-plugin:1.6.2:java2wsdl (default) on project impact: null: MojoExecutionException: NullPointerException

What steps will reproduce the problem?
<plugin>
    <groupId>org.apache.axis2</groupId>
    <artifactId>axis2-java2wsdl-maven-plugin</artifactId>
    <version>1.6.2</version>
    <configuration>
        <className>us.oh.state.epa.stars2.services.MyService</className>
        <serviceName>MyService</serviceName>
        <schemaTargetNamespace>http://slopjong.de</schemaTargetNamespace>
        <schemaTargetNamespacePrefix>tns</schemaTargetNamespacePrefix>
    </configuration>
    <executions>
        <execution>
            <phase>package</phase>
            <goals>
                <goal>java2wsdl</goal>
            </goals>
        </execution>
    </executions>
</plugin>

pom.xml:

<?xml version="1.0" encoding="UTF-8"?>
<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/maven-v4_0_0.xsd">
    <modelVersion>4.0.0</modelVersion>

    <groupId>us.XX.state.XXX.impact</groupId>
    <artifactId>impact</artifactId>
    <version>0.8.0-SNAPSHOT</version>
    <packaging>pom</packaging>

    <name>Impact</name>

    <modules>
        <module>../impact-core</module>
        <module>web</module>
    </modules>

    <properties>
        <project.build.sourceEncoding>Windows-1252</project.build.sourceEncoding>
    </properties>

    <dependencies>
        <dependency>
            <groupId>org.slf4j</groupId>
            <artifactId>slf4j-api</artifactId>
            <version>1.7.2</version>
        </dependency>
        <dependency>
            <groupId>log4j</groupId>
            <artifactId>log4j</artifactId>
            <version>1.2.17</version>
        </dependency>
        <dependency>
            <groupId>org.slf4j</groupId>
            <artifactId>slf4j-log4j12</artifactId>
            <version>1.7.2</version>
        </dependency>
        <dependency>
            <groupId>org.apache.tomcat</groupId>
            <artifactId>jsp-api</artifactId>
            <version>6.0.36</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>org.apache.tomcat</groupId>
            <artifactId>tomcat-servlet-api</artifactId>
            <version>7.0.34</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <version>4.11</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.mockito</groupId>
            <artifactId>mockito-all</artifactId>
            <version>1.9.5</version>
            <scope>test</scope>
        </dependency>
         <dependency>   
           <groupId>org.apache.ws.commons.axiom</groupId>   
            <artifactId>axiom-api</artifactId>   
            <version>1.2.13</version>   
        </dependency>   
        <dependency>   
            <groupId>org.apache.ws.commons.axiom</groupId>   
            <artifactId>axiom-impl</artifactId>   
            <version>1.2.13</version>   
        </dependency>  
        <dependency>   
            <groupId>org.apache.axis2</groupId>   
            <artifactId>axis2-kernel</artifactId>   
            <version>1.6.2</version>   
        </dependency>
        <dependency>
            <artifactId>axis2-java2wsdl</artifactId>
            <groupId>org.apache.axis2</groupId>
            <version>1.6.2</version>
            <scope>runtime</scope>
        </dependency>
        <dependency>   
            <groupId>org.apache.axis2</groupId>   
            <artifactId>axis2-codegen</artifactId>   
            <version>1.6.2</version>   
        </dependency>   
        <dependency>   
            <groupId>org.apache.axis2</groupId>   
            <artifactId>axis2-adb</artifactId>   
            <version>1.6.2</version>   
        </dependency>  
<!--         <dependency>   
            <groupId>geronimo-spec</groupId>   
            <artifactId>geronimo-spec-javamail</artifactId>   
            <version>1.3.1-rc5</version>   
        </dependency>   
        <dependency>   
            <groupId>geronimo-spec</groupId>   
            <artifactId>geronimo-spec-activation</artifactId>   
            <version>1.0.2-rc4</version>   
        </dependency>  -->  
        <dependency>   
            <groupId>xmlbeans</groupId>   
            <artifactId>xbean</artifactId>   
            <version>2.1.0</version>   
        </dependency>   
        <dependency>   
            <groupId>annogen</groupId>   
            <artifactId>annogen</artifactId>   
            <version>0.1.0</version>   
        </dependency>

    </dependencies>
    <build>
        <plugins>
            <plugin>
                <artifactId>maven-compiler-plugin</artifactId>
                <inherited>true</inherited>
                <configuration>
                    <source>1.7</source>
                    <target>1.7</target>
                    <encoding>Windows-1252</encoding>
                </configuration>
            </plugin>
            <plugin>
                <artifactId>maven-resources-plugin</artifactId>
                <configuration>
                    <encoding>Windows-1252</encoding>
                </configuration>
            </plugin>

            <plugin>
                <groupId>org.apache.axis2</groupId>
                <artifactId>axis2-java2wsdl-maven-plugin</artifactId>
                 <version>1.6.2</version>
                <configuration>
                    <className>us.oh.state.epa.stars2.services.MyService</className>
                    <serviceName>MyService</serviceName>
                    <schemaTargetNamespace>http://slopjong.de</schemaTargetNamespace>
                    <schemaTargetNamespacePrefix>tns</schemaTargetNamespacePrefix>
                </configuration>
                <executions>
                    <execution>
                    <phase>package</phase>
                        <goals>
                            <goal>java2wsdl</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>

        </plugins>
    </build>
    <reporting>
        <plugins>
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>findbugs-maven-plugin</artifactId>
                <version>2.5.2</version>
            </plugin>
        </plugins>
    </reporting>
    <pluginRepositories>
        <pluginRepository>
            <id>apache.snapshots</id>
            <url>http://repository.apache.org/snapshots/</url>
        </pluginRepository>
    </pluginRepositories>
</project>

What is the expected output? What do you see instead?

Expected WSDL created. but got below exception:

[INFO] ------------------------------------------------------------------------
[INFO] Building Impact 0.8.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- axis2-java2wsdl-maven-plugin:1.6.2:java2wsdl (default) @ impact ---
java.lang.NullPointerException
        at sun.net.util.URLUtil.urlNoFragString(URLUtil.java:47)
        at sun.misc.URLClassPath.getLoader(URLClassPath.java:321)
        at sun.misc.URLClassPath.getResource(URLClassPath.java:194)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:358)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:264)
        at org.apache.axis2.description.java2wsdl.DefaultSchemaGenerator.<init>(DefaultSchemaGenerator.java:140)
        at org.apache.ws.java2wsdl.Java2WSDLBuilder.resolveSchemaGen(Java2WSDLBuilder.java:368)
        at org.apache.ws.java2wsdl.Java2WSDLBuilder.generateWSDL(Java2WSDLBuilder.java:211)
        at org.apache.ws.java2wsdl.Java2WSDLCodegenEngine.generate(Java2WSDLCodegenEngine.java:60)
        at org.apache.axis2.maven2.java2wsdl.Java2WSDLMojo.execute(Java2WSDLMojo.java:335)
        at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
        at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
        at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:601)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
        at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
        at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Impact ............................................ FAILURE [0.718s]
[INFO] Impact Core Module ................................ SKIPPED
[INFO] Impact Web Modules ................................ SKIPPED
[INFO] Impact Portal Web Module .......................... SKIPPED
[INFO] Impact Web Module ................................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.995s
[INFO] Finished at: Wed Mar 27 11:16:59 EDT 2013
[INFO] Final Memory: 9M/122M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal 
org.apache.axis2:axis2-java2wsdl-maven-plugin:1.6.2:java2wsdl (default) on 
project impact: null: MojoExecutionException: NullPointerException -> [Help 1]
[ERROR]


What version of the product are you using? On what operating system?
Maven :3.0.4
OS :Windows 7


Please provide any additional information below.

Original issue reported on code.google.com by [email protected] on 27 Mar 2013 at 3:29

addjars breaks the build

What steps will reproduce the problem?
1. Add 'lib' folder to project root.
2. Add custom *.jar file to the lib folder.
3. configure pom.xml with addjars:

....
<plugin>
  <groupId>com.googlecode.addjars-maven-plugin</groupId>
  <artifactId>addjars-maven-plugin</artifactId>
  <version>1.0.4</version>
    <executions>
      <execution>
        <goals>
      <goal>add-jars</goal>
    </goals>
        <configuration>
              <resources>
            <resource>
              <directory>${basedir}/lib</directory>
              <includes>
                <include>**/*.jar</include>
              </includes>
            </resource>
            </resources>
          </configuration>
        </execution>
  </executions>
</plugin>
....

What is the expected output? What do you see instead?
Expected: eclipse:eclipse should add custom.jar to build dependencies. But 
output is:

[ERROR] Failed to execute goal 
com.googlecode.addjars-maven-plugin:addjars-maven-plugin:1.0.4:add-jars 
(default) on project audatex-vw-claimcalculation: null: MojoExecutionException: 
UnsupportedOperationException -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal 
com.googlecode.addjars-maven-plugin:addjars-maven-plugin:1.0.4:add-jars 
(default) on project audatex-vw-claimcalculation: null
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
    at org.apache.maven.lifecycle.internal.MojoExecutor.executeForkedExecutions(MojoExecutor.java:365)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:199)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
    at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
    at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
    at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
    at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:601)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: org.apache.maven.plugin.MojoExecutionException
    at com.googlecode.addjars.mojo.AddJarsMojo.execute(AddJarsMojo.java:83)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
    ... 23 more
Caused by: java.lang.UnsupportedOperationException
    at java.util.Collections$UnmodifiableCollection.add(Collections.java:1075)
    at com.googlecode.addjars.mojo.AddJarsMojo.executeInt(AddJarsMojo.java:103)
    at com.googlecode.addjars.mojo.AddJarsMojo.execute(AddJarsMojo.java:77)
    ... 25 more


What version of the product are you using? On what operating system?

addjars version 1.0.4, maven 3.0.4, on linux mint 13

Please provide any additional information below.

Original issue reported on code.google.com by [email protected] on 16 Jul 2012 at 8:44

Plugin execution not covered by lifecycle configuration

What steps will reproduce the problem?
1. Include in the pom.xml the snippet from Usage about the plugin configuration


What is the expected output? What do you see instead?
Eclipse alerts an error in the pom.xml about the <execution> tag. The error 
says: "Plugin execution not covered by lifecycle configuration..."

What version of the product are you using? On what operating system?
Maven 3.0.5. Version of addjars plugin is 1.0.5


Original issue reported on code.google.com by [email protected] on 11 Aug 2013 at 8:48

Resource vs. JarResource

Possible documentation error.  Documentation states to use  "Resource". That 
resulted in "Error loading class ' com.googlecode.addjars.mojo.Resource'" 
exception though. Changed "Resource" to "JarResource", and that seemed to work 
(although running in to NullPointerException now).

{{{
      <plugin>
          <groupId>com.googlecode.addjars-maven-plugin</groupId>
          <artifactId>addjars-maven-plugin</artifactId>
          <version>1.0.2</version>
          <executions>
              <execution>
                  <goals>
                      <goal>add-jars</goal>
                  </goals>
                  <configuration>
                      <resources>
                          <JarResource> <!-- HERE -->
                              <directory>${basedir}/lib</directory>
                          </JarResource>
                      </resources>
                  </configuration>
              </execution>
          </executions>
      </plugin> 
}}}

Original issue reported on code.google.com by [email protected] on 7 Mar 2012 at 5:13

plugin is installing provided deps

What steps will reproduce the problem?
1. leave a provided dep in configured resource folder
2. mvn install
3. plugin installs the dep into local repo, duplicating the dep and causes 
duplicate entries on classpath (this is an issue with android dexing).

What is the expected output? What do you see instead?
should not install the provided dependency.

What version of the product are you using? On what operating system?
1.0.5 MacOS

Please provide any additional information below.
I did a fix locally by changing this line
https://code.google.com/p/addjars-maven-plugin/source/browse/src/main/java/com/g
ooglecode/addjars/mojo/AddJarsMojo.java#101

to be this:
if(jar.lastModified() > stamp.lastModified() && 
(!"provided".equals(resource.getScope()))) {

Please verify and merge this fix into a new release so that I don't need to 
fork your codebase.

Thanks!




Original issue reported on code.google.com by [email protected] on 15 Mar 2013 at 5:28

about 3rd party jars

What steps will reproduce the problem?
1. add jars configuration
2. compile the mvn project
3. run with mvn exec:java

What is the expected output? What do you see instead?
-- it's an java project, so it should run with additional jars. including the 
classes of add-jars.
--instead, console shows many 'classnotfoundexception'

What version of the product are you using? On what operating system?
-1.0.5
-mac x 10.8

Please provide any additional information below.
--if you fix the issue, please send an feedback to my gmail. thanks.

Original issue reported on code.google.com by [email protected] on 28 Aug 2014 at 9:44

After using the plugin ${basedir} is changed

I have a pom.xml that is using addjars-maven-plugin and the assembly plugin to 
make a zip for distribution.

After using the addjars-maven-plugin, the basedir of the project is changed. 
When using basedir in the assembly file, you are not where expected.

The only solution I found is to define de custom propertie in the pom.xml 
referencing to the right basedir and using the custom propertie in assembly 
instead of basedir propertie.


Original issue reported on code.google.com by [email protected] on 29 Apr 2014 at 9:00

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.